/* ===================================== */
/* RESET */
/* ===================================== */

:root {
  --bg: #ffffff;
  --text: #2c2c2c;
  --muted: #555555;
  --brand: #f05a28;
  --brand-contrast: #ffffff;
  --surface: #fafafa;
  --elevated: #ffffff;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
  --radius-s: 3px;
  --radius-m: 6px;
  --radius-l: 16px;
  --container: 88%;
  --container-max: 1400px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

h1 { font-size: clamp(32px, 5vw, 44px); }
h2 { font-size: clamp(24px, 3vw, 32px); }

/* ===================================== */
/* CONTENEDOR */
/* ===================================== */

.container {
    width: var(--container);
    max-width: var(--container-max);
    margin: 0 auto;
}

/* ===================================== */
/* HEADER */
/* ===================================== */

.header {
    padding: 14px 0;
    background: #ffffff;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

/* Optional: offset body if header height changes */
/* body { padding-top: 96px; } */

.header.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 120px;
}

/* ===================================== */
/* NAV */
/* ===================================== */

.nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav a {
    text-decoration: none;
    color: #444;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.25s ease;
}

.nav a:hover {
    color: var(--brand);
}

.btn-nav {
    padding: 8px 16px;
    background: transparent;
    color: var(--brand) !important;
    border-radius: 6px;
    border: 1px solid var(--brand);
}

/* ===================================== */
/* NAV TOGGLE (MOBILE) */
/* ===================================== */

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 40px;
  height: 32px;
  padding: 0;
  position: relative;
}
.nav-toggle .bar {
  display: block;
  height: 2px;
  background: #333;
  margin: 6px 0;
  transition: transform .25s ease, opacity .25s ease;
}

/* Responsive behavior */
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .nav { 
    position: absolute; 
    top: 100%; 
    right: 0; 
    left: 0; 
    background: var(--elevated);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
  }
  .nav a, .dropdown > a { 
    padding: 12px 20px; 
    display: block; 
    color: #333; 
  }
  .dropdown { position: static; }
  .dropdown-menu { 
    position: static; 
    top: auto; 
    left: auto; 
    box-shadow: none; 
    border-radius: 0; 
    padding: 0; 
    transform: none; 
    visibility: visible; 
    opacity: 1; 
    display: none; 
  }
  .dropdown.open .dropdown-menu { display: block; }
  .nav.open { display: flex; }
}

/* ===================================== */
/* DROPDOWN */
/* ===================================== */

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 38px;
    left: 0;
    background: var(--elevated);
    min-width: 220px;
    box-shadow: none;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s ease;
    z-index: 999;
}

.dropdown-menu a {
    display: block;
    padding: 10px 14px;
    font-size: 14px;
}

.dropdown-menu a:hover {
    background: rgba(0,0,0,0.03);
    color: inherit;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ===================================== */
/* HERO */
/* ===================================== */

.hero {
    margin-top: 96px;
    min-height: 65vh;
    display: flex;
    align-items: center;
    background: url('../assets/images/hero-4k.png') no-repeat center right;
    background-size: cover;
    position: relative;
    padding: 70px 0;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(255,255,255,0.75) 0%,
        rgba(255,255,255,0.55) 40%,
        rgba(255,255,255,0.30) 70%,
        rgba(255,255,255,0.10) 100%
    );
}

@media (max-width: 600px) {
  .hero::before {
    background: linear-gradient(
      to right,
      rgba(255,255,255,0.85) 0%,
      rgba(255,255,255,0.65) 40%,
      rgba(255,255,255,0.40) 70%,
      rgba(255,255,255,0.20) 100%
    );
  }
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 44px;
    font-weight: 400;
    max-width: 820px;
    margin-bottom: 24px;
}

.hero p {
    max-width: 620px;
    margin-bottom: 36px;
    font-size: 18px;
    color: #444;
}

.btn-primary {
    padding: 12px 20px;
    background: var(--brand);
    color: var(--brand-contrast);
    text-decoration: none;
    border-radius: 8px;
}

.btn-primary:hover { filter: none; opacity: .9; }
.btn-nav:hover { background: var(--brand); color: var(--brand-contrast) !important; }

.btn-primary:active { transform: translateY(0); opacity: .85; }
.btn-nav:active { transform: translateY(1px); }

a:focus-visible, .btn-primary:focus-visible, .btn-nav:focus-visible, .dropdown-menu a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--radius-s);
}

/* ===================================== */
/* SECTIONS */
/* ===================================== */

.section {
    padding: 90px 0;
}

.section.light {
    background: var(--surface);
}

.section h2 {
    font-size: 32px;
    margin-bottom: 32px;
    position: relative;
}

.section h2::before {
    display: none;
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 4px;
    height: 28px;
    background: var(--brand);
}

/* ===================================== */
/* SOLUCIONES */
/* ===================================== */

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-image {
    border-radius: 12px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    display: block;
    height: auto;
    transition: transform 1.2s cubic-bezier(.19,1,.22,1);
}

.card-image:hover img {
    transform: scale(1.02);
}

.card h3 {
    font-size: 20px;
    margin: 14px 0 8px;
    font-weight: 600;
}

.card p {
    color: #555;
}

/* Responsive para soluciones */

@media (max-width: 1200px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ===================================== */
/* CAPACIDADES */
/* ===================================== */

.capabilities {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
    text-align: center;
}

.cap-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cap-item h3 {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
    min-height: 52px;
    margin-bottom: 14px;
    display: inline-block;
    position: relative;
}

.cap-item h3::after {
    content: "";
    display: block;
    height: 3px;
    background: var(--brand);
    margin: 10px auto 0 auto;
    width: 60px;
    transition: width 0.3s ease;
}

.cap-item:hover h3::after {
    width: 100px;
}

.cap-item p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.5;
    max-width: 260px;
}

/* ===================================== */
/* INDUSTRY */
/* ===================================== */

.industry {
    min-height: 45vh;
    display: flex;
    align-items: center;
    background: url('../assets/images/industry-4k.png') center/cover no-repeat;
    position: relative;
    padding: 90px 0;
}

.industry::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(255,255,255,0.75) 0%,
        rgba(255,255,255,0.55) 40%,
        rgba(255,255,255,0.30) 70%,
        rgba(255,255,255,0.15) 100%
    );
}

.industry .container {
    position: relative;
    z-index: 2;
}

/* ===================================== */
/* FOOTER */
/* ===================================== */

.footer {
    background: #1f1f1f;
    color: #9b9b9b;
    text-align: center;
    padding: 40px 0;
    font-size: 13px;
}

.nav a.active { 
    color: var(--brand); 
    font-weight: 600; 
}

