/* ============== RESET / BASE ============== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow-x: hidden; background: #fff; }
/* Inter Regular (400) */
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/Inter18pt-Regular.woff2') format('woff2'),
       url('../assets/fonts/Inter18pt-Regular.woff2') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Inter Bold (700) */
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/Inter24pt-Bold.woff2') format('woff2'),
       url('../assets/fonts/Inter28pt-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
body { font-family: 'Inter', sans-serif; color: #333; line-height: 1.6; background-color: #F5F5F5; }

/* ============== HEADER / NAV ============== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: #fff;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .05);
  display: flex;
  align-items: center;
}

nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  gap: 16px;
}

nav .logo {
  width: 84px;
  height: 74px;
  display: block;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}

nav .logo:hover {
  transform: scale(1.2);
  filter: brightness(1.1);
}

/* Menú normal */
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 250px;
  margin: 0;
  padding: 0;
  padding-right: 40px;
}

nav a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
  font-size: 25px;
}

/* Botón hamburguesa */
.menu-toggle {
  display: none; /* oculto en escritorio */
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: #000;
}

/* ============== RESPONSIVE NAV ============== */
@media (max-width: 1024px) {
  .nav-links {
    gap: 60px;
  }
  nav a {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  nav {
    flex-direction: row;
    justify-content: space-between;
    height: auto;
    padding: 10px 20px;
  }

  /* mostrar hamburguesa */
  .menu-toggle {
    display: block;
  }

  /* ocultar links por defecto */
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
    width: 100%;
    background: #fff;
    position: absolute;
    top: 80px; /* debajo del header */
    left: 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }

  /* cuando esté abierto */
  .nav-links.open {
    display: flex;
  }

  nav a {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  nav .logo {
    width: 64px;
    height: 54px;
  }
  nav a {
    font-size: 16px;
  }
}

/* ============== INTRO (CITA) ============== */
.intro{
  text-align:center;
  padding:15px 6vw;   /* lateral fluido */
  font-size: clamp(18px, 2.6vw, 40px);
  max-width: 1400px;
  margin: 80px auto;
  margin-bottom: 0px;
}
.intro strong{ font-weight:600; }

/* ===== REELS layout ===== */
.reels-section{
  max-width: 1400px;
  margin-top: 10px;
  margin: 30px auto;
  padding: 0 20px;
}
.reels-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  justify-items: center;
}
.reel{
  position: relative;
  width: 100%;
  max-width: 400px;      /* ajusta el tamaño deseado */
  aspect-ratio: 9/16;    /* formato vertical tipo Reel */
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.reel-video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Botón sonido */
.mute-toggle{
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  border: none;
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  background: rgba(0,0,0,.55);
  color: #fff;
  transition: transform .15s ease, background .2s ease;
}
.mute-toggle:hover{ transform: scale(1.06); background: rgba(0,0,0,.7); }

/* Responsive */
@media (max-width: 1024px){
  .reels-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px){
  .reels-grid{ grid-template-columns: 1fr; }
  /* Móvil: muestra solo el primer vídeo */
  .reel:nth-child(n+2){ display: none; }
}

/* ============== ENGAGEMENT ============== */
.engagement{
  text-align:center;
  padding:15px 6vw;   /* lateral fluido */
  font-size: clamp(18px, 2.6vw, 40px);
  max-width: 1400px;
  margin: 0px auto;
  margin-bottom: 0px;
}
.intro strong{ font-weight:600; }

/* ============== IMAGEN HERO PORTADA - ENGAGEMENT ============== */
.kpis-image {
  width: 100%;              /* Ocupa todo el ancho de la página */
  margin: 0px;                /* Sin márgenes */
  padding: 0;               /* Sin relleno */
  display: flex;            /* Usamos flex para centrar la imagen */
  justify-content: center;  /* Centrado horizontal */
}

.kpis-image img {
  width: 100%;              /* La imagen se ajusta al ancho completo */
  max-width: 100%;          /* No se sale del contenedor */
  height: auto;             /* Mantiene proporciones */
  display: block;           /* Elimina espacios fantasmas bajo la imagen */
}

/* ============== CONTACT BAR (barra gris) ============== */
.contact-bar{
  background-color:#d5d4d4;
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px;
  padding: 18px 24px;
}
.contact-text p{ margin:0; font-size: clamp(18px, 2.4vw, 34px); color:#333; font-weight:600; }
.social-icons{ display:flex; gap: clamp(16px, 6vw, 80px); }
.social-icons img{ width: clamp(28px, 4vw, 50px); height: clamp(28px, 4vw, 50px); transition: transform .3s ease; }
.social-icons a:hover img{ transform:scale(1.2); }

/* =============== FEATURES / GRID DE TÍTULOS =============== */
/* =============== FEATURES / GRID DE TÍTULOS =============== */
.features{
  max-width: 1400px;
  margin: 60px auto;
  padding: 0 20px;
}

.features-title{
  font-size: 34px;            /* título de sección */
  font-weight: 700;
  text-align: left;
  margin-bottom: 28px;
}

/* Grid 3 columnas (2 filas con 6 items) */
.features-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 18px;
  row-gap: 60px;
}

/* Cada celda: bloque centrado con altura amplia para “ocupar” */
.feature-item{
  display: grid;
  place-items: center;        /* centra horizontal y verticalmente */
  min-height: 160px;          /* ajusta para que ocupe gran parte de la celda */
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: transform .22s ease, color .22s ease, background .22s ease, box-shadow .22s ease;
}

/* Título dentro de la celda */
.feature-item h3{
  margin: 0 16px;
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  color: #111;
  line-height: 1.2;
}

/* Hover */
.feature-item:hover{
  transform: scale(1.04);
  background: #e9f7ee;
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
}
.feature-item:hover h3{
  color: #0a800a;
}

/* ===== Responsive ===== */
@media (max-width: 1024px){
  .features-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px){
  .features-grid{ grid-template-columns: 2, 1fr; }
  .feature-item{ min-height: 130px; }
  .feature-item h3{ font-size: 24px; }
}


/* ============== GET MY GEAR (tarjetas con overlay) ============== */
/* ============== GET MY GEAR — 4 filas full-width con expansión ============== */

/* Contenedor: una sola columna (4 filas), casi todo el ancho de la página */
.partners-images{
  display: grid;
  grid-template-columns: 1fr;           /* 1 columna -> 4 filas */
  gap: 14px;                            /* espacio entre filas */
  width: min(98vw, 1400px);             /* casi ancho completo */
  margin: 16px auto 32px;               /* centrado */
  padding: 0;                           
}

/* Tarjeta (fila). Alturas controladas con variables para que transicionen bien */
.foto-hover{
  --h: 175px;        /* altura cerrada (ajusta a gusto) */
  --h-open: 350px;   /* altura al hacer hover (ajusta a gusto) */

  position: relative;
  display: block;
  width: 100%;
  height: var(--h);
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  background: #000;                   /* por si la imagen tarda */

  transition: height .35s ease;
}

/* Imagen de fondo */
.foto-hover img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  filter: brightness(100%);
  transition: transform .35s ease, filter .35s ease;
}

/* Título centrado (opcional, como lo tenías) */
.nombre{
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.95);
  text-align: center;
  color: #fff;
  font-weight: 600;
  font-size: clamp(16px, 2.2vw, 32px);
  padding: 10px 16px;
  border-radius: 2px;
  opacity: 1;
  pointer-events: none;
  z-index: 2;
  transition: transform .35s ease, opacity .35s ease;
}

/* Bloque de texto que aparece debajo (dentro de la misma tarjeta) */
.foto-hover .extra{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  max-height: 0;                 /* cerrado */
  overflow: hidden;
  opacity: 0;
  background: rgba(0,0,0,0.55);
  color: #fff;
  padding: 0 16px;               /* sin padding cuando está cerrado */
  font-size: 1.1rem;
  line-height: 1.4;
  transition: max-height .35s ease, opacity .25s ease, padding .35s ease;
  z-index: 3;
  text-align: center;
}

/* HOVER: aumenta la altura de la tarjeta, zoom/oscurece imagen y muestra el texto extra */
.foto-hover:hover{
  height: var(--h-open);
}

.foto-hover:hover img{
  transform: scale(1.06);
  filter: brightness(65%);
}

.foto-hover:hover .extra{
  max-height: 200px;     /* altura visible del texto desplegado */
  opacity: 1;
  padding: 16px;         /* aparece padding al abrir */
}

/* (Opcional) mover ligeramente el título arriba cuando se despliega el texto */
.foto-hover:hover .nombre{
  transform: translate(-50%, calc(-50% - 12px)) scale(1);
}

/* Responsive (si quieres ajustar alturas en móvil) */
@media (max-width: 640px){
  .foto-hover{
    --h: 180px;
    --h-open: 340px;
  }
  .foto-hover .extra{
    font-size: 0.9rem;
  }
}

/* ============== FOOTER ============== */
footer{ background:#222; color:#fff; text-align:center; padding:16px;  width:100%; display:block; grid-column: 1 / -1;}