/* =================================================
   TIPOGRAFÍA OFICIAL – RETHINK SANS
   ================================================= */
@import url('https://fonts.googleapis.com/css2?family=Rethink+Sans:wght@400;500;700&display=swap');

/* =================================================
   BRAND GUIDELINES – COLORES OFICIALES
   ================================================= */
:root{
  --brand-blue: #01537b;       /* Azul Von Hesse */
  --brand-blue-light: #378ba4; /* Azul claro */
  --midnight-blue: #01273e;    /* Azul medianoche */
  --gray-light: #f2f2f2;
  --gray-medium: #ffffff;
  --text-primary: #1f2937;
  --text-muted: #4b5563;
  --max-width: 1200px;
}

/* =================================================
   RESET BASE
   ================================================= */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body {
  font-family: 'Rethink Sans', sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  
}


img{
  max-width:100%;
  display:block;
}

a{
  text-decoration:none;
  color:inherit;
}

.hero-wrapper::before {
  pointer-events: none;
}

.logo {
  position: relative;
  z-index: 10;
}
.logo a {
  display: inline-block;
}
.container{
  max-width: var(--max-width);
  margin: auto;
  padding: 0 20px;
}

/* =================================================
   HEADER / NAV
   ================================================= */
.header {
  background: transparent;
  padding: 20px 0;
}
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact-item a {
  color: inherit;
  text-decoration: none;
}
.logo img {
  height: 52px;       /* tamaño ideal para header */
  width: auto;
  max-width: 290px; 
  position: relative;  
  top: 15px;/* evita logos gigantes */
}




nav ul{
  display:flex;
  align-items:center;
  gap:30px;
  list-style:none;
  margin:0;
  padding:0;
}

nav li{
  display:flex;
  align-items:center;
}

.nav a {
  color: #fff;
  margin-left: 24px;
  text-decoration: none;
}


.nav a {
  color: #0c0c0c;
  margin-left: 24px;
  text-decoration: none;
}

nav .btn-primary{
  background: var(--brand-blue);
  border-radius:6px;
  padding:0 20px;
}

nav .btn-primary:hover{
  background: var(--brand-blue-light);
  color:#fff;
}

nav a:hover{
  color: var(--brand-blue-light);
}
nav ul li a {
  text-decoration: none;
  color: #ffffff;
  padding: 9px 13px;
  transition: all 0.3s ease;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}
nav ul li a.btn-contact {
  background-color: #01537b; /* color de ejemplo */
  color: #fff;
  border-radius: 5px;
  padding: 12px 18px; /* más grande que antes */
  font-size: 1.05rem; /* ligeramente más grande */
  font-weight: 500;   /* un poco más visible */
}

nav ul li a.btn-contact:hover {
  background-color: #01334a;
}



/* ================= HERO NUEVO LAYOUT ================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero .container {
  margin-left: auto;
  margin-right: 0;
  padding-left: 0;
}
.home .hero-wrapper {
  min-height: 80vh;
}

.home .hero {
  min-height: 60vh;
  align-items: center;
}



/* ================= HERO + HEADER ================= */
.hero-wrapper {
  min-height: 100vh;
  background-image: url("../img/Milton\ y\ Juniors\ 2-convertido-a-1920x1080-convertido-a-1500x1080.jpeg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  color: #fff;
}

.hero-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  z-index: 2;
  pointer-events: none;

}
  

.hero-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.08); /* 🔥 casi nada */
  z-index: 1;
}
.hero-text {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.3s;
  
}
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



.services-intro-mobile {
    display: none;
  }

  .service-btn{

display:inline-block;
margin-top:22px;

padding:12px 24px;

background:#01537b;
color:white;

font-size:14px;
font-weight:600;

text-decoration:none;

border-radius:6px;

transition:all .25s ease;

}

.service-btn:hover{

background:#01537b;

transform:translateY(-2px);

}
html{
scroll-behavior:smooth;
}
.scroll-top-btn {
  position: fixed;
  bottom: 25px;
  right: 20px;
  z-index: 9999;

  font-size: 38px; /* tamaño grande de la flecha */
  background: none; /* quitamos el fondo azul */
  border: none;

  cursor: pointer;
  display: none; /* oculto por defecto */
  transition: transform 0.2s ease;
}

.scroll-top-btn:hover {
  transform: scale(1.2); /* pequeño efecto al tocar */
}
/* solo móviles */
@media (max-width:768px){
  .scroll-top-btn{
    display:block;
  }
}

/* HERO BASE */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center; /* centrado horizontal */
  text-align: center;
  width: 100%;
}

/* CONTAINER */
.hero .container {
  max-width: 1200px;
  margin: 0 auto; /* 🔥 clave */
  padding: 0 20px;
}

/* GRID */
.hero-grid {
  max-width: 800px;
  margin: 0 auto;
}

.hero-text {
  margin: 0 auto;
  max-width: 850px; /* 🔥 más ancho */
  text-align: center;
  margin-top: 60px;
}
/* TÍTULO GRANDE PREMIUM */
.hero-text h1 {
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  line-height: 1.15;
  margin-bottom: 20px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 
    0 2px 6px rgba(0,0,0,0.4),
    0 8px 30px rgba(0,0,0,0.35);
}

/* SUBTEXTO MÁS ELEGANTE */
.hero-text p {
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
  line-height: 1.6;
  max-width: 650px;
  margin: 0 auto 30px auto;
  color: #ffffff;
  text-shadow: 
    0 1px 4px rgba(0,0,0,0.35),
    0 6px 20px rgba(0,0,0,0.3);
  
}
.hero-text h1 {
  text-shadow: 0 4px 25px rgba(0,0,0,0.6);
}

.hero-text p {
  text-shadow: 0 3px 15px rgba(0,0,0,0.5);
}
/* RESPONSIVE GRANDE */
@media (min-width: 1600px) {
  .hero-text h1 {
    font-size: 3.2rem;
  }

  .hero-text p {
    font-size: 1.2rem;
  }
}
/* BOTÓN (listo para usar) */
.hero-text .btn {
  display: inline-block;
  margin-top: 10px;
}
@media (max-width: 768px) {
  .case-switch { 
    display: none; /* ocultamos los dos botones originales */
  }  

  .case-switch-mobile { 
    display: block; 
    margin: 20px; 
  }
  
  .case-tab-mobile {
    width: 100%;
    padding: 12px;
    font-size: 14px;          /* tamaño legible */
    border-radius: 6px;
    background: #f2f4f5;      /* azul visible */
    color: rgb(255, 255, 255);
    cursor: pointer;
    text-align: left;
    box-sizing: border-box;

    display: -webkit-box;     /* necesario para truncado multilinea */
    -webkit-line-clamp: 2;    /* máximo 2 líneas */
    line-clamp: 2;            /* propiedad estándar para compatibilidad */
    -webkit-box-orient: vertical;
    overflow: hidden;         /* corta exceso */
    text-overflow: ellipsis;  /* agrega "..." al final */
  }

  .case-tab-title {
    font-weight: 600;
    margin-top: 5px;
    font-size: 12px;         /* tamaño legible */
    line-height: 1.3;
  }
  
}
/* Ocultar los botones originales en móviles */
@media (max-width: 768px) {
  .case-switch {
    display: none !important;
  }
  
  .case-switch-mobile {
    display: block !important;
  }
}
/* ================= CASOS EN MÓVILES ================= */
@media (max-width: 768px) {

  /* Contenedores principales de los casos */
  .case-container, .case2-container {
    padding-left: 10px !important;
    padding-right: 10px !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  /* Cabecera y texto de los casos */
  .case-hero, .case2-hero,
  .case-text, .case2-text {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left;
  }

  /* FIGURES */
  .case-figure, .case2-figure {
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .case-figure img, .case2-figure img {
    width: 100% !important;   /* que ocupen todo el ancho del contenedor */
    height: auto !important;
    display: block;
    margin: 0 !important;
  }

  .figure-source {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    font-size: 0.75rem;
    line-height: 1.4;
    word-wrap: break-word;
  }

  /* Ajuste general para el botón móvil de alternar casos */
  .case-switch-mobile {
    display: block !important;
    margin: 20px 10px !important;
  }
}
/* Para pantallas grandes, ocultar el botón móvil */
@media (min-width: 769px) {
  .case-switch-mobile {
    display: none !important;
  }
}
@media (min-width: 1600px) {

  .header-content {
    max-width: 1600px;
    padding: 0 80px; /* más aire */
  }

  

   nav {
    margin-left: auto;
    padding-right: -10px; /* 👈 empuja más a la derecha */
  }

  nav ul {
    gap: 50px;
  }

  nav ul li a {
    font-size: 1.15rem;
  }

  nav ul li a.btn-contact {
    padding: 14px 24px;
    font-size: 1.1rem;
  }
}
/* Móviles */
@media (max-width: 900px) {
  .hero-text {
    margin-left: 0;
    text-align: center;
  }
}
/* =================================================
   BOTONES
   ================================================= */
.btn{
  display:inline-block;
  padding:14px 34px;
  border-radius:40px;
  font-weight:500;
  transition:.3s ease;
}

.btn-primary{
  background: var(--brand-blue);
  color:#fff;
}

.btn-primary:hover{
  background: var(--brand-blue-light);
}

.btn-secondary{
  background:#378ba4;
  color:#fff;
}

.btn-secondary:hover{
  background:#01537b;
}

/* =================================================
   SECCIONES
   ================================================= */
.section{
  padding:80px 0;
  position:relative;
}

.section.light{
  background: linear-gradient(180deg, #f2f2f2 0%, #e6f0f8 100%);
}

.section-title{
  font-size:2.2rem;
  font-weight:700;
  color: var(--brand-blue);
  margin-bottom:10px;
}

.section-subtitle{
  font-weight:500;
  color: var(--brand-blue-light);
  margin-bottom:50px;
}

/* ================= CASOS DE ESTUDIO – ESTILO EDITORIAL ================= */

/* ==============================
CASE STUDY – PREMIUM CONSULTING
============================== */

.case-container{

max-width:1500px;
margin:0 auto;
padding:120px 70px;

font-family:"Inter",system-ui,sans-serif;
color:#1f2937;
line-height:1.75;

}

/* HERO */

.case-hero{

max-width:1000px;
margin:0 auto 90px auto;

position:relative;

animation:fadeUp .8s ease;

}


/* etiqueta */

.case-label{

font-size:11px;
letter-spacing:4px;
text-transform:uppercase;
color:#6b7280;

display:inline-block;

padding-bottom:8px;

border-bottom:2px solid #2563eb;

margin-bottom:22px;

}


/* titulo */

.case-hero h1{

font-size:3.2rem;
font-weight:600;
line-height:1.18;

margin-bottom:22px;

color:#111827;

max-width:900px;

}

/* AUTOR */

.case-author{

margin-top:28px;

padding-top:18px;

border-top:1px solid rgba(0,0,0,0.08);

max-width:420px;

}


/* etiqueta */

.case-author span{

display:block;

font-size:11px;

letter-spacing:2px;

text-transform:uppercase;

color:#9ca3af;

margin-bottom:6px;

}


/* nombre */

.case-author strong{

font-size:1.2rem;

font-weight:600;

color:#111827;

letter-spacing:0.2px;

display:block;

}

.case-hero{
opacity:0;
transform:translateY(40px);
animation:heroReveal 1s ease forwards;
animation-delay:.2s;
}

@keyframes heroReveal{

0%{
opacity:0;
transform:translateY(40px);
}

100%{
opacity:1;
transform:translateY(0);
}

}

.case-label{

font-size:11px;
letter-spacing:4px;
text-transform:uppercase;
color:#6b7280;

display:inline-block;

padding-bottom:8px;

position:relative;

margin-bottom:22px;

}

.case-label:after{

content:"";
position:absolute;
left:0;
bottom:0;

width:0;
height:2px;

background:#2563eb;

animation:lineReveal 1s ease forwards;
animation-delay:.6s;

}

@keyframes lineReveal{

0%{
width:0;
}

100%{
width:100%;
}

}

.case-author{

margin-top:28px;
padding-top:18px;

border-top:1px solid rgba(0,0,0,0.08);

max-width:420px;

opacity:0;
transform:translateY(20px);

animation:authorReveal .9s ease forwards;
animation-delay:1s;

}

@keyframes authorReveal{

0%{
opacity:0;
transform:translateY(20px);
}

100%{
opacity:1;
transform:translateY(0);
}

}

/* TEXT BLOCK */

.case-text{

max-width:950px;
margin:0 auto 60px auto;

font-size:1.08rem;

color:#374151;

animation:textReveal .9s ease;

}


/* TITULOS */

.case-text h2{

font-size:1.9rem;

font-weight:600;

color:#111827;

margin:65px 0 18px 0;

position:relative;

letter-spacing:-0.3px;

}


/* linea elegante debajo */

.case-text h2:after{

content:"";

display:block;

width:60px;

height:3px;

margin-top:12px;

background:linear-gradient(
90deg,
#2563eb,
#60a5fa
);

border-radius:2px;

}


/* PARRAFOS */

.case-text p{
font-size:1.08rem;
color:#374151;
margin-bottom:20px;
line-height:1.85;
}

.case-text p:first-of-type::first-letter{
font-size:1.6rem;
font-weight:700;
color:#111827;
display:inline-block;
transform: translateY(10px);
}


/* LISTAS */

.case-text ol{

padding-left:22px;

margin-top:10px;

}

.case-text li{

margin-bottom:12px;

}


/* ANIMACION SUAVE */

@keyframes textReveal{

0%{

opacity:0;
transform:translateY(25px);

}

100%{

opacity:1;
transform:translateY(0);

}

}

.case-figure{

margin:70px auto 70px 290px;

max-width:1100px;

text-align:center;

animation:fadeUp 1s ease;


}

.case-figure img{

width:100%;
max-width:720px;

border-radius:8px;

border:1px solid rgba(0,0,0,0.08);

box-shadow:0 10px 35px rgba(0,0,0,0.06);

transition:all .35s ease;

}

.case-figure img:hover{

transform:translateY(-6px) scale(1.01);

box-shadow:0 18px 45px rgba(0,0,0,0.12);

}

.figure-source{
margin-top:14px;
font-size:14px;
color:#6b7280;
font-style: italic;
line-height:1.5;
}


/* SEPARADOR PREMIUM */

.case-text + .case-figure{

position:relative;

}

.case-text + .case-figure:before{

content:"";
display:block;

width:100%;
height:1px;

background:linear-gradient(
to right,
transparent,
rgba(0,0,0,0.1),
transparent
);

margin-bottom:35px;

}


/* ANIMATION */

@keyframes fadeUp{

from{

opacity:0;
transform:translateY(30px);

}

to{

opacity:1;
transform:translateY(0);

}

}

.caso{
display:none;
}

.caso.activo{
display:block;
}

.case-switch{
display:flex;
gap:10px;
margin-bottom:30px;
}

.case-tab{
padding:12px 20px;
border:none;
background:#f3f4f6;
border-radius:8px;
cursor:pointer;
font-weight:600;
}

.case-tab:hover{
background:#e5e7eb;
}


/* =========================
CASO 2 (MISMO DISEÑO QUE CASO 1)
========================= */

.case2-container{
max-width:1500px;
margin:0 auto;
padding:120px 70px;

font-family:"Inter",system-ui,sans-serif;
color:#1f2937;
line-height:1.75;
}

/* HERO */

.case2-hero{
max-width:1000px;
margin:0 auto 90px auto;
position:relative;
animation:fadeUp .8s ease;
}

/* etiqueta */

.case2-label{
font-size:11px;
letter-spacing:4px;
text-transform:uppercase;
color:#6b7280;

display:inline-block;
padding-bottom:8px;

border-bottom:2px solid #2563eb;

margin-bottom:22px;
}

/* titulo */

.case2-hero h1{
font-size:3.2rem;
font-weight:600;
line-height:1.18;

margin-bottom:22px;

color:#111827;

max-width:900px;
}

/* AUTOR */

.case2-author{
margin-top:28px;
padding-top:18px;

border-top:1px solid rgba(0,0,0,0.08);

max-width:420px;
}

.case2-author span{
display:block;

font-size:11px;

letter-spacing:2px;

text-transform:uppercase;

color:#9ca3af;

margin-bottom:6px;
}

.case2-author strong{
font-size:1.2rem;

font-weight:600;

color:#111827;

letter-spacing:0.2px;

display:block;
}

/* TEXT BLOCK */

.case2-text{
max-width:950px;

margin:0 auto 60px auto;

font-size:1.08rem;

color:#374151;

animation:textReveal .9s ease;
}

/* TITULOS */

.case2-text h2{
font-size:1.9rem;

font-weight:600;

color:#111827;

margin:65px 0 18px 0;

position:relative;

letter-spacing:-0.3px;
}

.case2-text h2:after{
content:"";

display:block;

width:60px;

height:3px;

margin-top:12px;

background:linear-gradient(
90deg,
#2563eb,
#60a5fa
);

border-radius:2px;
}

/* PARRAFOS */

.case2-text p{
font-size:1.08rem;
color:#374151;
margin-bottom:20px;
line-height:1.85;
}

.case2-text p:first-of-type::first-letter{
font-size:1.5rem;
font-weight:700;
color:#111827;

display:inline-block;
transform: translateY(14px);
}

/* FIGURAS */

.case2-figure{

margin:70px auto 70px 290px;

max-width:1100px;

text-align:center;

animation:fadeUp 1s ease;

}

.case2-figure img{
width:100%;
max-width:720px;

border-radius:8px;

border:1px solid rgba(0,0,0,0.08);

box-shadow:0 10px 35px rgba(0,0,0,0.06);

transition:all .35s ease;
}

.case2-figure img:hover{
transform:translateY(-6px) scale(1.01);

box-shadow:0 18px 45px rgba(0,0,0,0.12);
}

.case2-figure .figure-source{
margin-top:14px;
font-size:14px;
color:#6b7280;
font-style: italic;
line-height:1.5;
}
/* ==============================
SELECTOR DE CASOS – EDITORIAL PREMIUM
============================== */

/* ==============================
SELECTOR DE CASOS – PREMIUM
============================== */

.case-switch{

display:flex;
justify-content:center;
align-items:center;

gap:140px;

max-width:1100px;

margin:100px auto 25px auto;

position:relative;

text-align:center;

}


/* LINEA CENTRAL DE REFERENCIA */

.case-switch:before{

content:"";

position:absolute;

bottom:-2px;

width:100%;

height:1px;

background:linear-gradient(
to right,
transparent,
rgba(0,0,0,0.15),
transparent
);

}


/* BOTON */

.case-tab{

background:none;
border:none;

cursor:pointer;

display:flex;
flex-direction:column;

align-items:center;

position:relative;

padding-bottom:16px;

transition:all .3s ease;

}


/* ETIQUETA */

.case-tab-label{

font-size:10px;

letter-spacing:4px;

text-transform:uppercase;

color:#9ca3af;

margin-bottom:6px;

}


/* TITULO */

.case-tab-title{

font-size:19px;

font-weight:600;

color:#6b7280;

white-space:nowrap;

transition:all .3s ease;

}


/* HOVER */

.case-tab:hover .case-tab-title{

color:#111827;

transform:translateY(-2px);

}


/* LINEA ACTIVA */

.case-tab:after{

content:"";

position:absolute;

bottom:-2px;

width:0;

height:3px;

background:linear-gradient(
90deg,
#2563eb,
#60a5fa
);

transition:width .35s ease;

border-radius:2px;

}


/* ACTIVO */

.case-tab.active .case-tab-title{

color:#111827;

font-weight:650;

}

.case-tab.active:after{

width:100%;

}
/* =================================================
   FOOTER
   ================================================= */
/* ================= FOOTER COMPLETO CON LOGO ================= */
footer{
  background: var(--midnight-blue);
  color: #fff;
  padding: 50px 20px 20px 20px;
  font-size: 0.95rem;
}
.footer-contact {
  color: #fff;
}

.footer-contact h4 {
  margin-bottom: 18px;
  font-size: 1.1rem;
  font-weight: 600;
}

.footer-contact .contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
}

.footer-contact .contact-item img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: 0.85;
}

.footer-contact .contact-item span {
  line-height: 1.4;
}
footer a{
  color: #e0f0ff;
  text-decoration: none;
}

footer a:hover{
  color: var(--brand-blue-light);
}

.footer-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
  gap: 40px;
  max-width: var(--max-width);
  margin: auto;
}

.footer-grid h4{
  font-weight: 700;
  margin-bottom: 15px;
  color: #fff;
}

.footer-grid ul{
  list-style: none;
  padding: 0;
}

.footer-grid ul li{
  margin-bottom: 8px;
}

.footer-bottom{
  text-align:center;
  padding-top:20px;
  font-size:0.85rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  margin-top:30px;
}/* ================= BOTÓN HAMBURGUESA - versión íconos ================= */
.hamburger-btn {
  font-size: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 2000;
  display: none; /* 🔹 oculto por defecto en pantallas grandes */
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Iconos dentro del botón */
.hamburger-btn .hamburger-icon {
  display: block;
  color: #1962ea;
}

.hamburger-btn .close-icon {
  display: none;
  color: #000;
}

/* Cuando el menú está abierto */
.hamburger-btn.open .hamburger-icon {
  display: none;
}
.hamburger-btn.open .close-icon {
  display: block;
}

/* ================= MENÚ HAMBURGUESA ================= */
.hamburger-menu {
  display: flex;
  flex-direction: column;
  padding: 190px 20px 20px 20px;
  background: rgba(25, 98, 234, 0.9);
  width: 280px;
  height: 100%;
  position: fixed;
  top: 0;
  right: -280px; 
  z-index: 1000;
  transition: right 0.3s ease;
}

.hamburger-menu.open {
  right: 0;
}

/* Animación de links */
.hamburger-menu a {
  color: #fff;
  font-size: 20px;
  text-decoration: none;
  margin: 18px 0;
  transition: transform 0.3s ease;
  opacity: 0;
  transform: translateX(20px);
}

.hamburger-menu.open a:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateX(0); }
.hamburger-menu.open a:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateX(0); }
.hamburger-menu.open a:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateX(0); }
.hamburger-menu.open a:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateX(0); }
.hamburger-menu.open a:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: translateX(0); }

.hamburger-menu a:hover {
  transform: translateX(5px);
}


/* ================= MEDIA QUERY - mostrar en móviles ================= */


/* ================= LOGO + CONTACTO ================= */
footer .footer-top {
  display: flex;
  justify-content: space-between; /* separa logo y resto */
  align-items: flex-start;
  gap: 40px; /* espacio entre el logo y el resto del contenido */
  padding-bottom: 20px;
}

.footer-logo {
  margin-left: 0; /* logo pegado a la izquierda */
}

.footer-logo img {
  height: 60px;
  width: auto;
  display: block;
}


.footer-contact .contact-item img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  opacity: 0.85;
}
.cta-blue {
  background: #fff; /* azul Von Hesse */
  color: #01537b; /* texto por defecto blanco */
}

.cta-blue .section-subtitle {
  color: #01537b; /* un azul clarito para subtitulo */
}

.read-more {
  display: none;
}

/* Desktop: solo hero */
.hero-p-desktop {
  display: block;
  color: #fff; /* blanco para hero */
  margin-top: 16px;
  line-height: 1.6;
  font-size: 1rem;
}

.hero-p-mobile {
  display: none; /* oculto en desktop */
}

/* ================= HEADER / MENÚ HAMBURGUESA ================= */

/* Desktop: menú normal */
.hamburger-btn {
  display: none; /* oculto en desktop */
}
.hamburger-menu {
  display: none; /* oculto en desktop */
}
.authority-content,
.authority-image {
  opacity: 0;
  transform: translateY(80px); /* más abajo para que se note */
  transition: opacity 1.4s ease, transform 1.4s ease; /* más lento */
}

.authority-section.visible .authority-content,
.authority-section.visible .authority-image {
  opacity: 1;
  transform: translateY(0);
}
.case-featured,
.case-row {
  position: relative;
  padding-bottom: 80px;
  margin-bottom: 0px;
}

.case-featured::after,
.case-row::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  height: 3px; /* más gruesa */

  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(42, 76, 157, 0.25) 20%,
    rgba(13, 43, 111, 0.6) 50%,
    rgba(15, 23, 42, 0.25) 80%,
    transparent 100%
  );

  border-radius: 2px; /* suaviza bordes */
  opacity: 0.9;
}
/* =================================================
   RESPONSIVE MOBILE (≤900px)
   ================================================= */
@media (max-width: 900px) {
/* 🔒 BLOQUEAR SCROLL CUANDO EL MENÚ ESTÁ ABIERTO */
html:has(.hamburger-menu.open),
body:has(.hamburger-menu.open) {
  overflow: hidden;
  height: 100vh;
}

  /* ================= HEADER / NAV ================= */
 .header-content {
    display: flex;
    justify-content: space-between; /* logo a la izquierda, hamburguesa a la derecha */
    align-items: center;
    padding: 10px 20px;
  }
  nav ul {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    display: none; /* oculto por defecto */
    background: #fff;
    position: absolute;
    top: 70px;
    left: 0;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 10px;
    z-index: 10;
  }

  nav ul.show {
    display: flex;
  }

 
  /* HERO WRAPPER */
/* HERO WRAPPER */
.hero-wrapper {
  position: relative;
  min-height: auto;
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background-image: url("../img/Milton\ y\ Juniors\ 2-convertido-a-1920x1080-convertido-a-1500x1080.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden; /* importante para overlay */
}

/* LÁMINA SEMITRANSPARENTE */
.hero-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35); /* lámina negra semitransparente */
  z-index: 1; /* debajo del texto, encima de la imagen */
}


  .hero,
.hero-wrapper {
  position: relative;
  z-index: 1;
}

  /* HERO GRID */
  .hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
    transform: none !important;  /* ⚡ quitar transform que movía todo fuera */
  }

  /* TEXTO HERO */
.hero-text {
  opacity: 1;
  transform: none;
  animation: none;
  color: #f5f5f5;
  z-index: 1;
  transition: opacity 0.3s ease;
}
.hero-text h1,
  .hero-text p {
    left: 0; /* vuelve a su posición normal */
  }
.hero-text h1 {
  font-size: 1.9rem;
  line-height: 1.2;
  margin-bottom: 19px;
}

.hero-text p {
  font-size: 1.03rem;
  margin-bottom: 25px;
}

.hero-text h1,
.hero-text p {
  color: #fff;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.6);
}
.hamburger-menu.open ~ .hero .hero-text {
  opacity: 0;
  pointer-events: none;
}
/* cuando el menú está abierto */
body.menu-open .hero {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

  html, body {
    overflow-x: hidden;
  }
/* ================== CASE SWITCH RESPONSIVE ================== */

.case-switch {
  display: flex;
  flex-wrap: wrap; /* permite que los botones bajen en móviles */
  gap: 10px;
  margin-bottom: 30px;
}

.case-tab {
  flex: 1 1 100%; /* ocupa todo en móviles */
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 12px;
  background: #f9f9f9;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.case-tab.active {
  background: #ffffff;
  border-color: #2563eb;
}

.case-tab-label {
  display: block;
  font-size: 0.8rem;
  color: #555;
}

.case-tab-title {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 4px;
  color: #111;
}

/* ================= CONTENIDO DE CADA CASO ================= */
.caso {
  display: none;
}

.caso.activo {
  display: block;
}

.case-container,
.case2-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.case-hero, .case2-hero {
  margin-bottom: 30px;
}

.case-label, .case2-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #2563eb;
  display: block;
  margin-bottom: 8px;
}

.case-hero h1, .case2-hero h1 {
  font-size: 1.6rem;
  margin-bottom: 10px;
  line-height: 1.3;
}

.case-author strong, .case2-author strong {
  display: block;
}

.case-text, .case2-text {
  margin-bottom: 30px;
}

.case-text h2, .case2-text h2 {
  font-size: 1.3rem;
  margin-top: 25px;
  margin-bottom: 10px;
}

.case-figure, .case2-figure {
  text-align: center;
  margin-bottom: 30px;
}

.case-figure img, .case2-figure img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.figure-source {
  font-size: 0.75rem;
  color: #666;
  margin-top: 6px;
}

/* ================== MEDIA QUERIES ================== */

/* Tablet ≥ 600px */
@media (min-width: 600px) {
  .case-tab {
    flex: 1 1 48%; /* dos por fila */
  }

  .case-hero h1, .case2-hero h1 {
    font-size: 1.9rem;
  }

  .case-text h2, .case2-text h2 {
    font-size: 1.5rem;
  }
}

/* Desktop ≥ 900px */
@media (min-width: 900px) {
  .case-tab {
    flex: 1 1 30%; /* tres por fila */
  }

  .case-hero h1, .case2-hero h1 {
    font-size: 2.2rem;
  }

  .case-text h2, .case2-text h2 {
    font-size: 1.6rem;
  }
}

 .read-more {
    display: inline-block;
    background: none;
    border: none;
    color: #0b3d99;
    font-weight: 900;
    margin-top: 10px;
    cursor: pointer;
  }
 

  /* HERO IMAGE */
  .hero-image img {
    max-width: 100%;
    height: auto;
    margin: 15px auto 0 auto;
    border-radius: 12px;
    display: block;
    z-index: 2;
  }

  /* HERO STAMPS */
  .hero-stamps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
  }

  .hero-stamps img {
    max-width: 70px;
    height: auto;
    display: block;
  }
  /* BOTÓN HAMBURGUESA - visible en mobile */
   /* Logo */
  .header-content .logo {
    max-width: 150px; /* ajusta según tu gusto */
    height: auto;
  }
  /* ================= HEADER / MENÚ HAMBURGUESA ================= */

/* Desktop: menú normal */
.hamburger-btn {
  display: none; /* oculto en desktop */
}
.hamburger-menu {
  display: none; /* oculto en desktop */
}

/* Mobile (≤900px) */

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

/* Botón hamburguesa */
.hamburger-btn {
  display: flex;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10001;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
}
 .hamburger-btn {
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 9999999;
}

/* Iconos dentro del botón */
.hamburger-btn .hamburger-icon { display: inline; color: #1962ea; }
.hamburger-btn .close-icon { display: none; color: #fff; }
.hamburger-btn.open .hamburger-icon { display: none; }
.hamburger-btn.open .close-icon { display: inline; }

/* Menú hamburguesa */
.hamburger-menu {
  width: 100vw;
  height: auto;             /* 🔹 dejar altura automática para que no corte el footer */
  min-height: 100vh;        /* para que siga ocupando toda la pantalla si hay pocos links */
  right: -100vw;            /* oculto al inicio */
  top: 0;
  padding: 60px 20px 20px 20px;
  background: #01537b;
  display: flex;
  flex-direction: column;
  align-items: center;      /* centra horizontalmente */
  justify-content: flex-start;
  gap: 20px;                /* espacio entre links */
  position: fixed;
  z-index: 10000;
  transition: right 0.3s ease;
  overflow-y: auto;         /* permite scroll si el contenido es muy grande */
}
/* Abrir menú */
.hamburger-menu.open {
  right: 0;
}

/* Links del menú siempre visibles */
.hamburger-menu a {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-align: center;
  font-size: 1.2rem;
  width: 100%;
  max-width: 250px;
  margin: 10px auto;       /* agrega espacio vertical entre links */
  padding: 10px 0;         /* aumenta el “clic area” y separación */
  color: #fff;
  text-decoration: none;
}

/* Botón de cerrar (“X”) siempre en esquina superior derecha */
.close-btn {
  display: flex;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10001;
  background: transparent;
  border: none;
  cursor: pointer;
}
.close-btn img {
  width: 48px;
  height: auto;
}

/* Overlay para bloquear scroll y oscurecer fondo */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.3s ease;
}
.menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Bloquear scroll cuando el menú está abierto */
body.menu-open {
  overflow: hidden;
  height: 100vh;
}
/* Redes sociales dentro del menú */
.menu-socials {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.menu-socials a i {
  color: #fff;
  font-size: 1.4rem;
}

.menu-footer {
  margin-top: -90px;
  text-align: center;
  color: #fff;
  font-size: 1.1rem;
}


  /* ================= CASOS DE ESTUDIO – MOBILE ================= */
.cases-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
  }

  .case-row {
    display: flex;
    flex-direction: column; /* imagen arriba, texto abajo */
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    
  }

 
  .case-thumb {
    order: 1 !important;
    width: 100%;
  }

  .case-content {
    order: 2 !important;
    width: 100%;
  }
  .case-thumb img {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }

 

  .case-content h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }

  .case-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 10px;
  }

  .case-meta {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 12px;
    color: #666;
  }

  .case-link {
    font-weight: 600;
    color: #1962ea;
  }

  /* botón final centrado */
  #casos-estudio .btn {
    display: block;
    width: 100%;
    text-align: center;
  }


  footer .footer-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* todo a la izquierda */
    gap: 30px;
  }

  /* LOGO PRIMERO */
  
  .footer-logo {
    width: 100%;
    display: flex;
    justify-content: center;   /* 🔥 centra horizontal */
    margin: 0;
    padding: 0;
  }

  .footer-logo img {
    display: block;
    margin: 0 auto;            /* 🔥 mata espacio lateral */
    max-width: 570px;
  }
  /* CONTACTO */
  .footer-contact {
    order: 2;
    width: 100%;
  }

  .footer-contact h4 {
    margin-bottom: 12px;
  }

  .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
  }

  .contact-item img {
    width: 18px;
    height: 18px;
  }

  /* REDES */
  .footer-social {
    order: 3;
    width: 100%;
  }

  .footer-social ul {
    padding-left: 0;
    list-style: none;
  }

  .footer-social li {
    margin-bottom: 8px;
  }
  


  #cases-premium {
    padding: 120px 0;
  }

  .cases-wrapper {
    gap: 120px;
  }

  .case-row,
  .case-featured-link,
  .case-full-link {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .case-row.reverse {
    direction: ltr;
  }

  .case-image img {
    height: 420px;
  }

  .case-featured-image img {
    height: 500px;
  }

  .cases-head h2 {
    font-size: 2.4rem;
  }

  .case-featured-content h3 {
    font-size: 2rem;
  }

}


/* ===== Mobile ===== */
@media (max-width: 768px) {

  #cases-premium {
    padding: 90px 20px;
  }

  .cases-head {
    margin-bottom: 80px;
  }

  .cases-head h2 {
    font-size: 1.9rem;
  }

  .cases-head p {
    font-size: 1rem;
  }

  .cases-wrapper {
    gap: 90px;
  }

  .case-row,
  .case-featured-link,
  .case-full-link {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .case-image img {
    height: 300px;
  }

  .case-featured-image img {
    height: 380px;
  }

  .case-content h3 {
    font-size: 1.4rem;
  }

  .case-featured-content h3 {
    font-size: 1.6rem;
  }

  .case-metrics {
    flex-direction: column;
    gap: 20px;
  }

  
}
/* Evitar espacio en blanco horizontal */
html, body {
  overflow-x: hidden;
}
/* 🔒 BLOQUEAR SCROLL CUANDO MENÚ ESTÁ ABIERTO */



.hamburger-btn {
  font-size: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 2000;
  display: none; /* 🔹 oculto por defecto en pantallas grandes */
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Iconos dentro del botón */
.hamburger-btn .hamburger-icon {
  display: block;
  color: #1962ea;
}

.hamburger-btn .close-icon {
  display: none;
  color: #000;
}

/* Cuando el menú está abierto */
.hamburger-btn.open .hamburger-icon {
  display: none;
}
.hamburger-btn.open .close-icon {
  display: block;
}

/* ================= MENÚ HAMBURGUESA ================= */
.hamburger-menu {
  display: flex;
  flex-direction: column;
  padding: 190px 20px 20px 20px;
  background: rgba(25, 98, 234, 0.9);
  width: 280px;
  height: 100%;
  position: fixed;
  top: 0;
  right: -280px; 
  z-index: 1000;
  transition: right 0.3s ease;
}

.hamburger-menu.open {
  right: 0;
}

/* Animación de links */
.hamburger-menu a {
  color: #fff;
  font-size: 20px;
  text-decoration: none;
  margin: 18px 0;
  transition: transform 0.3s ease;
  opacity: 0;
  transform: translateX(20px);
}

.hamburger-menu.open a:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateX(0); }
.hamburger-menu.open a:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateX(0); }
.hamburger-menu.open a:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateX(0); }
.hamburger-menu.open a:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateX(0); }
.hamburger-menu.open a:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: translateX(0); }

.hamburger-menu a:hover {
  transform: translateX(5px);
}


/* ================= MEDIA QUERY - mostrar en móviles ================= */


/* ================= HEADER / MENÚ HAMBURGUESA ================= */

/* Desktop: menú normal */
.hamburger-btn {
  display: none; /* oculto en desktop */
}
.hamburger-menu {
  display: none; /* oculto en desktop */
}


/* SOLO MÓVILES */
@media (max-width: 768px) {
  .hamburger-btn.open-btn {
    display: flex;           /* siempre visible */
    position: absolute;      /* relativo a header */
    top: 20px;               /* desde arriba del header */
    right: 20px;             /* desde la derecha del header */
    z-index: 50;             /* suficiente solo para el header */
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
  }

  .hamburger-btn.open-btn img {
    width: 100%;
    height: auto;
  }
}
.scroll-top-btn {
  position: fixed;
  bottom: 25px;
  right: 20px;
  z-index: 9999;

  font-size: 38px; /* tamaño grande de la flecha */
  background: none; /* quitamos el fondo azul */
  border: none;

  cursor: pointer;
  display: none; /* oculto por defecto */
  transition: transform 0.2s ease;
}

.scroll-top-btn:hover {
  transform: scale(1.2); /* pequeño efecto al tocar */
}

/* solo móviles */
@media (max-width:768px){
  .scroll-top-btn{
    display:block;
  }
}
/* =================================================
   RESPONSIVE MOBILE (≤900px)
================================================= */
@media (max-width: 900px) {


/* =================================================
   BLOQUEAR SCROLL CUANDO EL MENÚ ESTÁ ABIERTO
================================================= */

html:has(.hamburger-menu.open),
body:has(.hamburger-menu.open) {
  overflow: hidden;
  height: 100vh;
}

html, body {
  overflow-x: hidden;
}


/* =================================================
   HEADER
================================================= */

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.header-content .logo {
  max-width: 150px;
  height: auto;
}
.header {
  position: relative;
}

/* =================================================
   NAV
===

/* seguridad para el boton */
.hamburger-btn{
  pointer-events:auto !important;
}

.hero,
.hero-wrapper {
  position: relative;
  z-index: 1;
}




/* BOTONES */
.hero-text .btn {
  display: block;        /* 🔥 uno debajo del otro */
  width: 100%;
  max-width: 260px;
  margin: 10px auto;
  text-align: center;
  padding: 12px 20px;
  font-size: 0.95rem;
  border-radius: 30px;
}


.hamburger-menu.open ~ .hero .hero-text {
  opacity: 0;
  pointer-events: none;
}



/* =================================================
   MENÚ HAMBURGUESA
================================================= */

/* Desktop */

.hamburger-btn {
  display: none;
}

.hamburger-menu {
  display: none;
}


/* Mobile */

.hamburger-btn {
  display: flex;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10001;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
}


/* Iconos */

.hamburger-btn .hamburger-icon { display: inline; color: #1962ea; }
.hamburger-btn .close-icon { display: none; color: #fff; }
.hamburger-btn.open .hamburger-icon { display: none; }
.hamburger-btn.open .close-icon { display: inline; }


/* Menú */

.hamburger-menu {
  width: 100vw;
  height: auto;
  min-height: 100vh;
  right: -100vw;
  top: 0;
  padding: 60px 20px 20px 20px;
  background: #01537b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  position: fixed;
  z-index: 10000;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.hamburger-menu.open {
  right: 0;
}

.hamburger-menu a {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-align: center;
  font-size: 1.2rem;
  width: 100%;
  max-width: 250px;
  margin: 10px auto;
  padding: 10px 0;
  color: #fff;
  text-decoration: none;
}


/* Cerrar */

.close-btn {
  display: flex;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10001;
  background: transparent;
  border: none;
  cursor: pointer;
}

.close-btn img {
  width: 48px;
  height: auto;
}


/* Overlay */

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

}

