/* ===================================================
   SECCIONES DE LA LANDING - ECO THE IT AGENCY
=================================================== */

/* ---------------------------------------------------
   1. HERO SECTION (ZONA 1)
   Fondo claro de estudio, tipografía con máscaras de entrada
   y texto marca de agua 'impacto'
--------------------------------------------------- */
.hero-zone {
  min-height: 92vh;
  background-color: #f4f5f7;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(6.5rem, 11vw, 8.5rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

/* Marca de agua vectorial 'impacto' que cubre el ancho de la pantalla sin cortarse */
.hero-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%) scale(0.96);
  width: min(96vw, 1400px);
  pointer-events: none;
  user-select: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 1.3s cubic-bezier(0.16, 1, 0.3, 1), transform 1.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
  display: flex;
  justify-content: center;
  align-items: center;
}

.watermark-svg-img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.055;
}

.hero-zone.is-revealed .hero-watermark {
  opacity: 1;
  transform: translate(-50%, -46%) scale(1);
}

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

/* Logo superior centrado */
.hero-brand-top {
  text-align: center;
  margin-bottom: clamp(2rem, 4.5vw, 3.5rem);
}

.hero-logo-img {
  height: clamp(34px, 4vw, 44px);
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.hero-logo-img:hover {
  transform: scale(1.04);
}

/* Bloque tipográfico principal */
.hero-content-block {
  max-width: 1100px;
  margin-inline: auto;
  padding-left: clamp(0.5rem, 3vw, 2.5rem);
}

/* Sistema de Máscaras para Textos Animados */
.mask-line {
  display: block;
  overflow: hidden;
  padding-block: 0.03em;
  margin-bottom: 0.05em;
}

.mask-inner {
  display: inline-block;
  transform: translateY(118%);
  opacity: 0;
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.85s ease;
  will-change: transform, opacity;
}

.line-nowrap {
  white-space: nowrap;
}

.hero-zone.is-revealed .mask-inner {
  transform: translateY(0%);
  opacity: 1;
}

/* Retardos escalonados (Stagger) */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.22s; }
.delay-3 { transition-delay: 0.38s; }
.delay-4 { transition-delay: 0.54s; }
.delay-5 { transition-delay: 0.72s; }
.delay-6 { transition-delay: 0.88s; }

/* Tipografía del Titular */
.hero-headline {
  font-family: var(--font-family-heading);
  font-size: clamp(2.2rem, 4.8vw, 4.4rem);
  font-weight: 700;
  color: #121417;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-line-accent {
  cursor: default;
}

.hero-arrow {
  display: inline-block;
  color: #121417;
  margin-right: 0.15em;
  font-weight: 400;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-impact-word {
  color: var(--color-primary);
  font-weight: 800;
}

.hero-line-accent:hover .hero-arrow {
  transform: translateX(10px);
}

/* Subtítulo */
.hero-tagline {
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  color: #555c68;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.hero-tagline .text-red {
  color: var(--color-primary);
  font-weight: 700;
}

/* Píldora oscura de Estadísticas */
.hero-stats-pill {
  display: inline-flex;
  align-items: center;
  background-color: #3f4349;
  color: #ffffff;
  padding: 0.75rem 1.6rem;
  border-radius: 6px;
  font-size: clamp(0.825rem, 1vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  margin-top: 1.75rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.hero-stats-pill:hover {
  background-color: #2b2e33;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

@media (max-width: 768px) {
  .hero-content-block {
    padding-left: 0;
    text-align: left;
  }

  .hero-headline {
    font-size: clamp(1.65rem, 6.2vw, 2.4rem);
    line-height: 1.18;
  }

  .hero-watermark {
    top: 54%;
    width: 95vw;
  }

  .hero-stats-pill {
    font-size: 0.8rem;
    padding: 0.65rem 1rem;
    line-height: 1.4;
  }
}

/* ---------------------------------------------------
   2. SECCIÓN DEL ABANICO INTERACTIVO (ZONA 2)
   Estrategia que trasciende con popovers de hover
   laterales y máscaras de entrada
--------------------------------------------------- */
.fan-section {
  background-color: #ffffff;
  color: var(--text-dark);
  padding-block: clamp(4.5rem, 8vw, 7.5rem);
  position: relative;
  overflow: hidden;
}

.fan-section-header {
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.fan-main-title {
  font-family: var(--font-family-heading);
  font-size: clamp(2.3rem, 5.2vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #111317;
  line-height: 1.1;
  margin-bottom: 0.6rem;
}

.fan-sub-line-1 {
  font-size: clamp(1.2rem, 2.2vw, 1.85rem);
  font-weight: 700;
  color: #374151;
  line-height: 1.35;
}

.fan-sub-line-2 {
  font-size: clamp(1.2rem, 2.2vw, 1.85rem);
  font-weight: 700;
  color: #6b7280;
  line-height: 1.35;
}

/* Animación de entrada de encabezados de Zona 2 con máscaras */
.fan-section .mask-line {
  display: block;
  overflow: hidden;
  padding-block: 0.04em;
  margin-bottom: 0.15rem;
}

.fan-section .mask-inner {
  display: inline-block;
  transform: translateY(118%);
  opacity: 0;
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.85s ease;
  will-change: transform, opacity;
}

.fan-section.is-revealed .mask-inner {
  transform: translateY(0%);
  opacity: 1;
}

/* Contenedor del Abanico Desktop */
.fan-interactive-container {
  max-width: 1200px;
  margin-inline: auto;
  position: relative;
}

.fan-desktop-stage {
  position: relative;
  width: 100%;
  max-width: 1180px;
  height: 520px;
  margin-inline: auto;
  display: flex;
  justify-content: center;
}

/* Círculo Central */
.fan-center-node {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 275px;
  height: 275px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08), 0 2px 10px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  z-index: 10;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.fan-center-node h4 {
  font-family: var(--font-family-heading);
  font-size: 1.25rem;
  line-height: 1.35;
  color: #1a1a1a;
  font-weight: 700;
}

.fan-center-node .math-symbol {
  color: var(--color-primary);
  font-weight: 800;
  margin-inline: 0.2rem;
}

/* Pétalos individuales: usan DIRECTAMENTE los gráficos diseñados
   sin encimarlos en contenedores artificiales ni bordes cuadrados */
.fan-petal {
  position: absolute;
  width: 175px;
  height: 175px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
  z-index: 5;
}

.fan-petal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.07));
  transition: transform 0.35s ease, filter 0.35s ease;
}

/* Posiciones exactas del abanico desktop (los PNGs ya vienen con su ángulo pre-orientado) */
.petal-1 { top: 90px;  left: calc(50% - 335px); }
.petal-2 { top: 205px; left: calc(50% - 255px); }
.petal-3 { top: 245px; left: calc(50% - 87px); }
.petal-4 { top: 205px; left: calc(50% + 80px); }
.petal-5 { top: 90px;  left: calc(50% + 160px); }

/* Efecto hover/active: sutil elevación y resplandor contorneado que abraza el diseño propio */
.fan-petal:hover, .fan-petal.is-active {
  transform: translateY(-8px) scale(1.05);
  z-index: 15;
}

.fan-petal:hover img, .fan-petal.is-active img {
  filter: drop-shadow(0 14px 22px rgba(221, 31, 40, 0.32));
}

/* ---------------------------------------------------
   POPOVERS LATERALES DE TEXTO (HOVER CON MÁSCARAS)
   Con espacio suficiente para no encimarse ni cortarse
--------------------------------------------------- */
.fan-popover {
  position: absolute;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  z-index: 25;
}

.fan-popover.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Máscaras de animación dentro del popover */
.fan-popover .mask-line {
  display: block;
  overflow: hidden;
  padding-block: 0.05em;
  padding-inline: 4px;
  margin-bottom: 0.25rem;
}

.fan-popover .mask-inner {
  display: inline-block;
  transform: translateY(115%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
  will-change: transform, opacity;
}

.fan-popover.is-active .mask-inner {
  transform: translateY(0%);
  opacity: 1;
}

.delay-p1 { transition-delay: 0.04s; }
.delay-p2 { transition-delay: 0.14s; }
.delay-p3 { transition-delay: 0.24s; }

/* Tipografía de los Popovers */
.popover-title {
  font-family: var(--font-family-heading);
  font-size: clamp(1.15rem, 1.45vw, 1.35rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 0.45rem;
}

.popover-tags {
  font-size: clamp(0.88rem, 1.05vw, 0.98rem);
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.35;
  margin-bottom: 0.45rem;
}

.popover-desc {
  font-size: clamp(0.82rem, 0.92vw, 0.92rem);
  color: #6b7280;
  line-height: 1.45;
}

/* Posicionamiento exacto de cada popover con amplio margen para cero colisiones */
/* Posición 1: Marketing Digital (Izquierda de Pétalo 1) */
.popover-pos-1 {
  top: 75px;
  right: calc(50% + 345px);
  width: 320px;
  text-align: right;
}

/* Posición 2: Contact Center (Izquierda de Pétalo 2) */
.popover-pos-2 {
  top: 205px;
  right: calc(50% + 285px);
  width: 320px;
  text-align: right;
}

/* Posición 3: Hub Visual (Inferior Centrado de Pétalo 3) */
.popover-pos-3 {
  top: 440px;
  left: 50%;
  transform: translateX(-50%);
  width: 440px;
  text-align: center;
}

/* Posición 4: Desarrollo UX (Derecha de Pétalo 4) */
.popover-pos-4 {
  top: 205px;
  left: calc(50% + 285px);
  width: 320px;
  text-align: left;
}

/* Posición 5: Hub Experience (Derecha de Pétalo 5) */
.popover-pos-5 {
  top: 75px;
  left: calc(50% + 345px);
  width: 320px;
  text-align: left;
}

/* ---------------------------------------------------
   VERSIÓN MÓVIL ADAPTADA (< 868px)
--------------------------------------------------- */
.fan-mobile-view {
  display: none;
}

@media (max-width: 868px) {
  .fan-desktop-stage {
    display: none;
  }

  .fan-mobile-view {
    display: block;
  }

  .mobile-concept-pill {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
  }

  .mobile-concept-pill h4 {
    font-size: 1.15rem;
    color: var(--text-dark);
  }

  /* Selector táctil horizontal */
  .mobile-tabs-row {
    display: flex;
    gap: 0.85rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    justify-content: center;
    align-items: center;
  }

  .mobile-tabs-row::-webkit-scrollbar {
    display: none;
  }

  .mobile-tab-btn {
    flex: 0 0 auto;
    width: 62px;
    height: 62px;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
  }

  .mobile-tab-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
    transition: transform 0.25s ease, filter 0.25s ease;
  }

  .mobile-tab-btn.is-active img {
    transform: translateY(-4px) scale(1.12);
    filter: drop-shadow(0 10px 18px rgba(221, 31, 40, 0.35));
  }

  /* Tarjeta móvil con animación de máscara */
  .mobile-detail-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    text-align: center;
    margin-top: 1rem;
  }

  .mobile-detail-card .mask-line {
    display: block;
    overflow: hidden;
    padding-block: 0.04em;
    margin-bottom: 0.35rem;
  }

  .mobile-detail-card .mask-inner {
    display: inline-block;
    transform: translateY(115%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
  }

  .mobile-detail-card.is-active .mask-inner {
    transform: translateY(0%);
    opacity: 1;
  }
}

/* ===================================================
   3A. SECCIÓN ESPECIALISTAS TI (BLOQUE CLARO)
   Fondo de estudio claro, titulares con máscaras
=================================================== */
.specialists-section {
  background-color: #f4f5f7;
  padding-block: clamp(4.5rem, 7vw, 6.5rem);
  position: relative;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.specialists-header {
  text-align: center;
  max-width: 980px;
  margin-inline: auto;
}

.specialists-title-line {
  font-family: var(--font-family-heading);
  font-size: clamp(2.2rem, 4.2vw, 3.75rem);
  font-weight: 800;
  color: #0d0f12;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.specialists-subtitle {
  font-size: clamp(1.1rem, 1.8vw, 1.6rem);
  font-weight: 600;
  color: #4b5563;
  line-height: 1.4;
  margin-top: 1.25rem;
}

.specialists-section.is-revealed .mask-inner {
  transform: translateY(0%);
  opacity: 1;
}

/* ===================================================
   3B. SECCIÓN RESELLER - MEDIO LÍDER TI (BLOQUE NEGRO)
   Fondo #000000, logo SVG animado, líneas dinámicas y contadores
=================================================== */
.reseller-section {
  background-color: #000000;
  color: #ffffff;
  padding-block: clamp(5.5rem, 9vw, 8.5rem);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.reseller-header {
  text-align: center;
  max-width: 900px;
  margin-inline: auto;
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
}

.reseller-title-line {
  font-family: var(--font-family-heading);
  font-size: clamp(1.6rem, 2.7vw, 2.5rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.reseller-section.is-revealed .mask-inner {
  transform: translateY(0%);
  opacity: 1;
}

/* Escenario central Reseller (viewBox 1024x493) */
.reseller-stage {
  position: relative;
  max-width: 1024px;
  height: 480px;
  margin-inline: auto;
}

/* Capa SVG para las líneas conectoras */
.reseller-connector-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.reseller-vector-line {
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
  /* La animación de stroke se activa mediante JS */
  transition: stroke-dashoffset 1.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.reseller-vector-dot {
  fill: var(--color-primary);
  stroke: #ffffff;
  stroke-width: 1.5;
  opacity: 0;
  transform: scale(0);
  transform-origin: center;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 1.2s,
              opacity 0.35s ease 1.2s;
}

.reseller-section.is-revealed .reseller-vector-dot {
  opacity: 1;
  transform: scale(1);
}

/* Callouts con Métricas y Números */
.reseller-callout {
  position: absolute;
  z-index: 2;
  text-align: left;
}

.callout-top-left {
  top: 15%;
  left: 3%;
}

.callout-top-right {
  top: 15%;
  left: 74%;
}

.callout-bottom {
  top: 72%;
  left: 52%;
}

/* Números en Rojo con Contadores */
.stat-number-wrapper {
  display: flex;
  align-items: baseline;
  font-family: var(--font-family-heading);
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.counter {
  font-variant-numeric: tabular-nums;
  display: inline-block;
}

.stat-plus {
  font-size: 0.85em;
  margin-right: 2px;
}

.stat-unit {
  font-size: 0.85em;
}

.stat-millones {
  font-family: var(--font-family-heading);
  font-size: clamp(1.3rem, 2.1vw, 1.85rem);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  line-height: 1.1;
  margin-top: 0.15rem;
}

/* Etiquetas en Blanco debajo de los números con máscaras */
.reseller-callout .mask-line {
  display: block;
  overflow: hidden;
  padding-block: 0.05em;
  margin-bottom: 0.1em;
}

.stat-label-stack {
  display: flex;
  flex-direction: column;
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.35;
  margin-top: 0.45rem;
}

.stat-label-line {
  white-space: nowrap;
}

/* Marca Central Reseller (Vector SVG) */
.reseller-brand-center {
  position: absolute;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.reseller-svg-wrap {
  width: clamp(240px, 32vw, 350px);
  color: #ffffff;
  opacity: 0;
  transform: scale(0.88);
  filter: drop-shadow(0 0 10px rgba(221, 31, 40, 0));
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s,
              opacity 0.9s ease 0.15s,
              filter 1.2s ease 0.35s;
  cursor: pointer;
}

.reseller-section.is-revealed .reseller-svg-wrap {
  opacity: 1;
  transform: scale(1);
  filter: drop-shadow(0 0 25px rgba(221, 31, 40, 0.4));
  animation: resellerGlowPulse 4s ease-in-out infinite alternate 1.2s;
}

.reseller-svg-wrap:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 35px rgba(221, 31, 40, 0.75));
}

@keyframes resellerGlowPulse {
  0% {
    filter: drop-shadow(0 0 18px rgba(221, 31, 40, 0.35));
  }
  100% {
    filter: drop-shadow(0 0 32px rgba(221, 31, 40, 0.65));
  }
}

.reseller-logo-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Barra de Alianzas Estratégicas */
.alliances-bar {
  margin-top: clamp(4rem, 6.5vw, 5.5rem);
  padding-top: clamp(2rem, 3.5vw, 3rem);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  flex-wrap: wrap;
  text-align: center;
}

.alliances-title {
  font-family: var(--font-primary);
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #ffffff;
  white-space: nowrap;
}

.alliances-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 3.5vw, 3.5rem);
  flex-wrap: wrap;
}

.alliance-logo-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.alliance-logo-img {
  width: auto;
  object-fit: contain;
  display: block;
  opacity: 0.92;
  filter: brightness(0.98);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
              opacity 0.25s ease,
              filter 0.25s ease;
}

.alliance-logo-img.logo-idc {
  height: clamp(28px, 2.7vw, 35px);
}

.alliance-logo-img.logo-mastercios {
  height: clamp(28px, 2.7vw, 35px);
}

.alliance-logo-img.logo-mundo-ejecutivo {
  height: clamp(44px, 4.2vw, 52px);
}

.alliance-logo-item:hover .alliance-logo-img {
  opacity: 1;
  filter: brightness(1) drop-shadow(0 0 12px rgba(255, 255, 255, 0.45));
  transform: translateY(-2px) scale(1.04);
}

/* Adaptabilidad Móvil (< 868px) */
@media (max-width: 868px) {
  .reseller-stage {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .reseller-connector-svg {
    display: none;
  }

  .reseller-brand-center {
    position: static;
    transform: none;
    order: 1;
    margin-bottom: 1rem;
  }

  .reseller-callout {
    position: static;
    width: 100%;
    max-width: 320px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
  }

  .callout-top-left { order: 2; }
  .callout-top-right { order: 3; }
  .callout-bottom { order: 4; }

  .stat-number-wrapper {
    justify-content: center;
  }

  .alliances-bar {
    flex-direction: column;
    gap: 1.5rem;
  }

  .alliances-logos {
    gap: 1.75rem;
  }
}

/* ---------------------------------------------------
   4. SECCIÓN LATAM
   Titular editorial de alto impacto con máscaras
   y marca de agua 'LATAM' de fondo
--------------------------------------------------- */
.latam-section {
  background-color: #ffffff;
  position: relative;
  overflow: hidden;
  padding-block: clamp(6.5rem, 12vw, 10.5rem);
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.latam-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  font-family: var(--font-family-heading);
  font-size: clamp(5rem, 15vw, 13.5rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #eceff2;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  line-height: 1;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.latam-container {
  position: relative;
  z-index: 2;
  max-width: min(96vw, 1320px);
}

.latam-headline-wrap {
  width: 100%;
  margin-inline: auto;
  text-align: center;
}

.latam-headline-1,
.latam-headline-2 {
  font-family: var(--font-family-heading);
  font-size: clamp(0.95rem, 3.1vw, 2.75rem);
  font-weight: 800;
  color: #1a1e24;
  line-height: 1.28;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.latam-headline-wrap .mask-line {
  display: block;
  overflow: hidden;
  padding-block: 0.05em;
  margin-bottom: 0.25rem;
}

.latam-headline-wrap .mask-inner {
  display: inline-block;
  transform: translateY(118%);
  opacity: 0;
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.85s ease;
  will-change: transform, opacity;
}

.latam-section.is-revealed .mask-inner {
  transform: translateY(0%);
  opacity: 1;
}

.latam-section.is-revealed .latam-watermark {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

@media (max-width: 640px) {
  .latam-section {
    padding-block: clamp(4.5rem, 12vw, 6rem);
  }

  .latam-headline-1,
  .latam-headline-2 {
    font-size: clamp(0.88rem, 4.2vw, 1.35rem);
  }

  .latam-watermark {
    font-size: clamp(4rem, 20vw, 7rem);
  }
}

/* ===================================================
   5. SECCIÓN MARCAS / ALIADOS
   Fondo studio exacto #f3f3f3 que se funde con la imagen,
   cero contenedores artificiales, cero sombras y textos con máscaras
=================================================== */
.marcas-section {
  background-color: #f3f3f3;
  padding-block: clamp(5rem, 9vw, 8rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.marcas-container {
  max-width: min(94vw, 1260px);
  margin-inline: auto;
}

.marcas-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.marcas-title-1,
.marcas-title-2 {
  font-family: var(--font-family-heading);
  font-size: clamp(1.6rem, 4.2vw, 3.75rem);
  font-weight: 800;
  color: #1a1e24;
  line-height: 1.2;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .marcas-title-1,
  .marcas-title-2 {
    font-size: clamp(1.15rem, 5.5vw, 1.65rem);
  }
}

.marcas-header .mask-line {
  display: block;
  overflow: hidden;
  padding-block: 0.04em;
  margin-bottom: 0.2rem;
}

.marcas-header .mask-inner {
  display: inline-block;
  transform: translateY(118%);
  opacity: 0;
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.85s ease;
  will-change: transform, opacity;
}

.marcas-section.is-revealed .mask-inner {
  transform: translateY(0%);
  opacity: 1;
}

/* Showcase de Marcas: Directo, sin tarjetas, sin bordes, sin sombras */
.marcas-showcase {
  max-width: 1180px;
  margin-inline: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s ease 0.25s, transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.25s;
}

.marcas-section.is-revealed .marcas-showcase {
  opacity: 1;
  transform: translateY(0);
}

.marcas-img {
  width: 100%;
  max-width: 1140px;
  height: auto;
  display: block;
  object-fit: contain;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* ===================================================
   6. CONTACTO Y CIERRE
   Fondo blanco, titulares rojos con máscaras,
   enlaces directos y botones sociales con animación elástica
=================================================== */
.contact-section {
  background-color: #ffffff;
  color: #111317;
  padding-block: clamp(6.5rem, 12vw, 10rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-container {
  max-width: min(96vw, 1220px);
  margin-inline: auto;
  padding-inline: 1rem;
}

.contact-header {
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.contact-title {
  font-family: var(--font-family-heading);
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.16;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.contact-subtitle {
  font-size: clamp(1.15rem, 1.8vw, 1.6rem);
  font-weight: 600;
  color: #2d3139;
  line-height: 1.4;
  margin-top: clamp(0.75rem, 1.5vw, 1.25rem);
}

/* Enlaces directos (Email | Teléfono) en una sola línea */
.contact-direct-mask {
  margin-bottom: clamp(3.5rem, 6.5vw, 5.5rem);
}

.contact-direct-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.6rem, 1.6vw, 1.25rem);
  flex-wrap: nowrap;
  white-space: nowrap;
  font-family: var(--font-family-heading);
  font-size: clamp(0.95rem, 2.2vw, 1.85rem);
  font-weight: 800;
  color: #111317;
  letter-spacing: -0.02em;
}

.contact-link {
  color: #111317;
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
  display: inline-block;
  position: relative;
}

.contact-link:hover {
  color: var(--color-primary);
  transform: translateY(-2px);
}

.contact-divider {
  color: #111317;
  font-weight: 400;
  opacity: 0.85;
}

/* Máscaras de animación */
.contact-section .mask-line {
  display: block;
  overflow: hidden;
  padding-block: 0.05em;
  margin-bottom: 0.2rem;
}

.contact-section .mask-inner {
  display: inline-block;
  transform: translateY(118%);
  opacity: 0;
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.85s ease;
  will-change: transform, opacity;
}

.contact-section.is-revealed .mask-inner {
  transform: translateY(0%);
  opacity: 1;
}

/* Fila de Botones Sociales */
.contact-social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.85rem, 1.8vw, 1.25rem);
}

/* Botón Circular */
.social-circle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.6px solid #111317;
  background-color: transparent;
  color: #111317;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  
  /* Estado inicial antes del reveal */
  opacity: 0;
  transform: scale(0) translateY(10px);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.4s ease,
              background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity, background-color, box-shadow;
}

/* Entrada escalonada elástica (Stagger) */
.contact-section.is-revealed .social-circle-btn {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.contact-section.is-revealed .social-fb { transition-delay: 0.45s; }
.contact-section.is-revealed .social-ig { transition-delay: 0.57s; }
.contact-section.is-revealed .social-yt { transition-delay: 0.69s; }
.contact-section.is-revealed .social-li { transition-delay: 0.81s; }

/* Efecto Hover Magnético y Pulso Rojo */
.social-circle-btn:hover {
  transform: translateY(-5px) scale(1.12);
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(221, 31, 40, 0.38);
}

.social-circle-btn:active {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 5px 12px rgba(221, 31, 40, 0.3);
}

.social-icon-svg {
  width: 20px;
  height: 20px;
  display: block;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-circle-btn:hover .social-icon-svg {
  transform: scale(1.1);
}

@media (max-width: 640px) {
  .contact-title {
    font-size: clamp(1.2rem, 5.4vw, 1.85rem);
  }

  .contact-direct-info {
    font-size: clamp(0.72rem, 3.4vw, 1.05rem);
    gap: 0.4rem;
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .contact-direct-mask {
    margin-bottom: clamp(2.5rem, 8vw, 3.5rem);
  }
}
