/* =========================================================
HERO — STRATEGIC LAYOUT (MBB STYLE)
------------------------------------------------------------
========================================================= */

.hero{
  position:relative;
  min-height:650px;
  display:flex;
  align-items:flex-start;
  padding:60px 0 0 0;
  color:white;
  background:
    linear-gradient(180deg, #0a2230 0%, #0c2a3a 100%);
  overflow:hidden;
}

.hero-emphasis{
  white-space:nowrap;
  color:rgba(215,228,242,.78);
}

/* ---------------------------------------------------------
TEXTURA (SUTIL)
- Añade profundidad sin interferir con lectura
--------------------------------------------------------- */
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:url('/assets/images/noise.webp');
  opacity:0.02;
  pointer-events:none;
}

/* ---------------------------------------------------------
GRID DESKTOP
- Layout editorial (texto dominante)
--------------------------------------------------------- */
.hero-grid{
  width:100%;
  max-width:1120px;
  margin:auto;

  display:grid;
  grid-template-columns:1.2fr .8fr; /* texto > imagen */
  gap:50px;

  align-items:start;
}

/* =========================================================
TEXT BLOCK
========================================================= */

.hero-content{
  max-width:500px;

  /* Micro ajuste para tensión vertical */
  margin-top:-10px;
}

/* Eyebrow / contexto */
.hero-label{
  font-size:10px;
  letter-spacing:3px;
  text-transform:uppercase;
  color:#7c93a8;
  margin-bottom:16px;
}

/* Headline principal */
.hero h1{
  font-family:'Cormorant Garamond',serif;
  font-size:62px;
  line-height:1.05;
  font-weight:500;
  letter-spacing:-0.6px;
  margin-bottom:18px;
}

/* Texto de soporte */
.hero-sub{
  font-size:15.5px;
  line-height:1.7;
  color:#aebfd1;
  margin:16px 0 20px 0;
}

.hero-sub-secondary{
  margin-top:18px;
  max-width:720px;
  font-size:15px;
  line-height:1.9;
  color:rgba(215,228,242,.72);
}

/* CTA container */
.hero-actions{
  display:flex;
  align-items:center;
  gap:16px;
  margin-top:20px;
}

/* CTA principal */
.btn-primary{
  background:transparent;
  color:#e6eef8;

  padding:13px 24px;
  font-size:11px;
  letter-spacing:1.4px;
  text-transform:uppercase;

  border:1px solid rgba(255,255,255,0.25);
  border-radius:3px;

  text-decoration:none;
  transition:all .25s ease;
}

.btn-primary:hover{
  background:rgba(255,255,255,0.06);
  border-color:rgba(255,255,255,0.4);
}

/* Contacto secundario */
.hero-contact{
  margin-top:10px;
  font-size:12.5px;
  color:#8096aa;
}

.hero-contact a{
  color:#cfe3ff;
  text-decoration:none;
  margin-left:6px;
}

/* =========================================================
IMAGE (DESKTOP)
------------------------------------------------------------
Rol:
- Refuerzo visual
- No competir con el headline
- Composición editorial (ligeramente fuera del grid)
========================================================= */

.hero-image-wrapper{
 position:relative;
  display:flex;
  justify-content:flex-end;
  align-items:flex-end;
  padding-top:10px;
  padding-bottom:0;
  margin-right:-80px;

}

/* Glow sutil (profundidad) */
.hero-image-wrapper::before{
  content:"";
  position:absolute;
  width:380px;
  height:380px;
  right:20px;
  bottom:20px;

  background: radial-gradient(
    circle,
    rgba(255,255,255,.05) 0%,
    transparent 70%
  );

  z-index:-1;
}

/* Imagen */
  .hero-image-wrapper img{
max-height:640px;
  width:auto;
  display:block;
  object-fit:contain;

  transform:translateY(-10px);

   filter:
    contrast(1.08)
    brightness(1.03)
    saturate(1.02)
    drop-shadow(0px 60px 100px rgba(0,0,0,0.55));
     will-change: transform;
}

.nav a{
  position:relative;
  text-decoration:none;
  color:#1c2b39;
}

/* Línea oculta */
.nav a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-6px;
  width:0%;
  height:2px;
  background:#2f6df6; /* tu azul */
  transition:width .25s ease;
}

/* Hover */
.nav a:hover::after{
  width:100%;
}

/* =========================================================
RESPONSIVE STRATEGY
------------------------------------------------------------
Desktop → editorial
Tablet → equilibrio
Mobile → conversión (flujo vertical)
========================================================= */

/* =========================
TABLET (<=1024px)
========================= */
@media (max-width:1024px){

  .hero{
    padding:70px 0 0 0;
  }

  .hero-grid{
    grid-template-columns:1fr;
    gap:20px;
  }

  .hero-content{
    max-width:680px;
    margin:auto;
  }

  .hero h1{
    font-size:46px;
  }

.hero-image-wrapper{
  justify-content:center;
  margin-right:0;
  margin-top:-20px;
}

  .hero-image-wrapper img{
   max-height:460px;
    transform:none;
  }
}

/* =========================
TABLET SMALL (<=900px)
========================= */
@media (max-width:900px){

  .hero{
    padding:70px 0 0 0;
  }

  .hero-content{
    max-width:600px;
    margin:auto;
    margin-top:-5px;
  }

  .hero-image-wrapper{
    justify-content:center;
    margin-top:-20px;
    transform:translate(10px, -10px);
  }

  .hero-image-wrapper img{
    max-height:360px;
  }
}

/* =========================
MOBILE (<=600px)
------------------------------------------------------------
Prioridad:
- Flujo claro
- CTA visible
- Imagen integrada (no decorativa)
========================= */
@media (max-width:600px){

  .hero{
    padding:80px 0 0 0; /* sin espacio muerto inferior */
    padding-bottom:0;
  }

  .hero-grid{
    grid-template-columns:1fr;
    gap:20px;
    padding:0 20px;
  }

  .hero-content{
    padding:0 14px;
    margin-top:0;
  }

  .hero h1{
      font-size:29px;
    line-height:1.16;
  }

  .hero-sub{
   font-size:14px;
    line-height:1.65;
    max-width:100%;
    margin-bottom:22px;
  }

  .hero-actions{
    flex-direction:column;
    align-items:flex-start;
    padding:0 6px;
    margin-top:18px;
  }


  .hero-image-wrapper::before{
    pointer-events: none;
  }

  .hero-content{
    position: relative;
    z-index: 5;
  }


  /* Imagen integrada al flujo */
 .hero-image-wrapper{
    display:flex;
    justify-content:center;
    margin-top:20px; 
        position: relative;
    z-index: 1;
  }

  .hero-image-wrapper img{
    max-height:300px; 
    transform:translateY(0px); 
    display:block;
    margin-bottom:-5px;
  }
}