/* ============================================================
   INTERWEB DESIGN SYSTEM
   Basado al 100% en las especificaciones extraídas de ejemplo.txt
   (Apple Product & Overview Design System)
   ============================================================ */

:root {
  /* Tipografía del sistema Apple */
  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Paleta de colores exacta de ejemplo.txt */
  --color-primary-dark: rgb(29, 29, 31);         /* #1d1d1f - Color principal de texto y estructuras oscuras */
  --color-text-88: rgba(0, 0, 0, 0.88);          /* Texto de alto contraste */
  --color-text-72: rgba(0, 0, 0, 0.72);          /* Texto secundario y enlaces */
  --color-text-56: rgba(0, 0, 0, 0.56);          /* Texto muted, notas y pie de página */
  
  --color-white: rgb(255, 255, 255);             /* Blanco puro */
  --color-bg-base: rgb(250, 250, 252);           /* #fafafc - Fondo del globalnav y secciones claras */
  --color-bg-alt: rgb(245, 245, 247);            /* #f5f5f7 - Fondo de sección estándar y tarjetas */
  --color-black: rgb(0, 0, 0);                   /* Negro base */

  /* Acentos y Botones de ejemplo.txt */
  --color-apple-blue: rgb(0, 113, 227);          /* #0071e3 - Botón primario */
  --color-apple-blue-hover: rgb(0, 119, 237);
  --color-apple-link: rgb(0, 102, 204);          /* #0066cc - Enlaces interactivos */

  /* Radios de borde exactos de ejemplo.txt */
  --radius-tile-rounded: 28px;                   /* Para tarjetas principales (card.tile.tile-rounded) */
  --radius-product: 20px;                        /* Para elementos de producto (product-wrap) */
  --radius-button: 980px;                        /* Para botones píldora (product-tile-button) */
  --radius-dropdown: 11px;                       /* Para selectores y dropdowns */
  --radius-badge: 8px;                           /* Para etiquetas compactas */

  /* Bordes y separadores exactos de ejemplo.txt */
  --border-subtle: rgba(0, 0, 0, 0.04);
  --border-divider: rgba(0, 0, 0, 0.16);
  --border-nav-dark: rgba(255, 255, 255, 0.16);
  --border-nav-light: rgba(0, 0, 0, 0.12);

  /* Dimensiones de contenedor exactas de ejemplo.txt */
  --width-nav: 1024px;
  --width-content: 1260px;
  --width-footer: 980px;
  --nav-height: 44px;

  /* Transiciones */
  --transition-nav: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-hero: all 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   Reset y configuración base
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Accesibilidad y SEO: Ocultar visualmente pero accesible para robots y lectores de pantalla */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  font-family: var(--font-family);
  background-color: var(--color-white);
  color: var(--color-primary-dark);
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--color-black);
  transition: background-color var(--transition-hero);
}

body.video-ended {
  background-color: var(--color-white);
}

/* ============================================================
   1. GLOBALNAV (44px, max-width: 1024px, blur) - ejemplo.txt
   ============================================================ */
.globalnav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 9999;
  background: rgba(29, 29, 31, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-nav-dark);
  transition: var(--transition-nav);
}

.globalnav-content {
  max-width: var(--width-nav);
  height: 100%;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.globalnav-brand {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--color-white);
  opacity: 0.92;
  white-space: nowrap;
  transition: color var(--transition-nav), opacity 0.3s ease;
}

.brand-icon {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  min-height: 18px;
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
  transition: stroke var(--transition-nav);
}

.brand-text {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
}

.globalnav-brand:hover {
  opacity: 1;
}

.globalnav-list {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
}

.globalnav-link {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color var(--transition-nav);
}

.globalnav-link:hover {
  color: var(--color-white);
}

/* Transición a modo claro tras el vídeo o scroll */
body.video-ended .globalnav,
body.scrolled .globalnav {
  background: rgba(250, 250, 252, 0.8);
  border-bottom: 1px solid var(--border-nav-light);
}

body.video-ended .globalnav-brand,
body.scrolled .globalnav-brand {
  color: var(--color-primary-dark);
}

body.video-ended .globalnav-link,
body.scrolled .globalnav-link {
  color: var(--color-text-72);
}

body.video-ended .globalnav-link:hover,
body.scrolled .globalnav-link:hover {
  color: var(--color-primary-dark);
}

/* ============================================================
   BOTÓN Y MENÚ FLOTANTE GLASMÓRFICO EN MÓVIL
   ============================================================ */
.mobile-menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  position: relative;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  color: var(--color-white);
  z-index: 1000;
}

body.video-ended .mobile-menu-toggle,
body.scrolled .mobile-menu-toggle {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--color-primary-dark);
}

.mobile-menu-toggle .menu-bar {
  width: 16px;
  height: 1.5px;
  background-color: currentColor;
  border-radius: 2px;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), opacity 0.2s ease;
}

.mobile-menu-toggle.is-active .menu-bar:nth-child(1) {
  transform: translateY(3.25px) rotate(45deg);
}

.mobile-menu-toggle.is-active .menu-bar:nth-child(2) {
  transform: translateY(-3.25px) rotate(-45deg);
}

.mobile-glass-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-glass-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.mobile-glass-menu {
  position: fixed;
  top: 56px;
  left: 16px;
  right: 16px;
  max-width: 480px;
  margin: 0 auto;
  z-index: 999;
  opacity: 0;
  transform: translateY(-12px) scale(0.96);
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.mobile-glass-menu.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  visibility: visible;
}

.mobile-glass-menu-inner {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(30px) saturate(190%);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.14), 0 4px 14px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.glass-buttons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.glass-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  color: var(--color-primary-dark);
  font-size: 14px;
  font-weight: 550;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.glass-btn:active {
  background: rgba(0, 113, 227, 0.08);
  color: var(--color-apple-blue);
  transform: scale(0.97);
}

.glass-menu-action {
  margin-top: 4px;
}

.glass-btn-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 980px;
  background: var(--color-apple-blue);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 113, 227, 0.25);
  transition: all 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.glass-btn-action:active {
  transform: scale(0.98);
  background: var(--color-apple-blue-hover);
}

/* ============================================================
   2. SECTION-HERO (Video + Fundido a blanco)
   ============================================================ */
.section-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-black);
  transition: background-color var(--transition-hero);
}

.section-hero.video-ended {
  background-color: var(--color-white);
}

.hero-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 1;
  transition: opacity 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-hero.video-ended .hero-video {
  opacity: 0;
}

.hero-scrim {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-white);
  opacity: 0;
  transition: opacity 1.8s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 2;
}

.section-hero.video-ended .hero-scrim {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 20px;
  user-select: none;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 1.8s cubic-bezier(0.22, 1, 0.36, 1), transform 1.8s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.section-hero.video-ended .hero-content {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-headline {
  font-size: clamp(3.2rem, 8vw, 6.8rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--color-primary-dark);
}

.hero-subcaption {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--color-text-56);
  margin-top: 14px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-56);
  opacity: 0;
  transition: opacity var(--transition-hero);
}

.section-hero.video-ended .scroll-cue {
  opacity: 0.8;
  animation: bounceSlow 2s infinite ease-in-out;
}

/* ============================================================
   3. ESTRUCTURA DE SECCIONES (padding: 112px 0px - ejemplo.txt)
   ============================================================ */
.section {
  width: 100%;
  padding: 112px 0px;
  position: relative;
  scroll-margin-top: 48px;
}

.background-light {
  background-color: var(--color-white);
}

.background-alt {
  background-color: var(--color-bg-alt);
}

.section-container {
  max-width: var(--width-content);
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  margin-bottom: 48px;
}

.section-header.text-center {
  text-align: center;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-apple-blue);
  display: block;
  margin-bottom: 12px;
}

.section-headline {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--color-primary-dark);
}

.section-headline .text-muted {
  color: var(--color-text-56);
}

.section-intro {
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--color-text-56);
  margin-top: 14px;
  max-width: 700px;
}

.section-header.text-center .section-intro {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   4. CARDS & TILES (border-radius: 28px - ejemplo.txt)
   ============================================================ */
.tile-rounded {
  border-radius: var(--radius-tile-rounded);
  background-color: var(--color-bg-alt);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tile-rounded:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.04);
}

/* Grid de propuesta de valor */
.tiles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.tile {
  padding: 56px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
}

.tile-hero-feature {
  grid-column: 1 / -1;
  background-color: rgb(240, 244, 250);
  border: 1px solid rgba(0, 113, 227, 0.16);
}

.tile-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-apple-blue);
  display: inline-block;
  margin-bottom: 12px;
}

.tile-title {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-primary-dark);
  margin-bottom: 10px;
}

.tile-desc {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--color-text-72);
  max-width: 580px;
}

/* Índices para apilamiento sticky en móvil */
.tiles-grid .tile:nth-child(1) { --stack-index: 0; z-index: 1; }
.tiles-grid .tile:nth-child(2) { --stack-index: 1; z-index: 2; }
.tiles-grid .tile:nth-child(3) { --stack-index: 2; z-index: 3; }
.tiles-grid .tile:nth-child(4) { --stack-index: 3; z-index: 4; }
.tiles-grid .tile:nth-child(5) { --stack-index: 4; z-index: 5; }

/* ============================================================
   5. PRICING CARD DESTACADA CON IMAGEN
   ============================================================ */
.pricing-card-main {
  background-color: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.04);
  padding: 48px;
  max-width: 860px;
  margin: 0 auto;
}

.pricing-main-image-wrap {
  position: relative;
  width: 100%;
  height: 280px;
  border-radius: var(--radius-product);
  overflow: hidden;
  margin-bottom: 36px;
  background-color: #e5e5ea;
}

.pricing-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  position: relative;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.pricing-main-image.is-loaded {
  opacity: 1;
}

.pricing-main-header {
  text-align: center;
}

.pricing-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background-color: var(--color-apple-blue);
  color: var(--color-white);
  padding: 5px 16px;
  border-radius: var(--radius-button);
  margin-bottom: 18px;
}

.pricing-plan-name {
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--color-primary-dark);
}

.pricing-plan-desc {
  font-size: 1.05rem;
  color: var(--color-text-56);
  margin-top: 8px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-price-wrap {
  margin-top: 24px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.price-currency {
  font-size: 1.15rem;
  color: var(--color-text-56);
}

.price-value {
  font-size: 3.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-primary-dark);
}

.price-monthly {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-apple-blue);
}

.price-tax {
  font-size: 0.9rem;
  color: var(--color-text-56);
}

.pricing-divider {
  width: 100%;
  height: 1px;
  background-color: var(--border-divider);
  margin: 36px 0;
}

.pricing-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 36px;
  margin-bottom: 40px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--color-text-88);
  line-height: 1.45;
}

.check-icon {
  color: var(--color-apple-blue);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-action {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   6. BOTONES (padding: 11px 21px, radius: 980px - ejemplo.txt)
   ============================================================ */
.apple-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 400;
  border-radius: var(--radius-button);
  text-decoration: none;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: all 0.2s ease;
}

.apple-button-primary {
  background-color: var(--color-apple-blue);
  color: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0);
}

.apple-button-primary:hover {
  background-color: var(--color-apple-blue-hover);
  transform: translateY(-1px);
}

.apple-button-secondary {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--color-primary-dark);
  border: 1px solid rgba(0, 0, 0, 0);
}

.apple-button-secondary:hover {
  background-color: rgba(0, 0, 0, 0.09);
}

/* ============================================================
   7. MÓDULOS (Carrusel Horizontal Estilo Apple)
   ============================================================ */
.modules-carousel-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.modules-carousel {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* Alineación inicial desplazada 204px más a la izquierda */
  padding: 16px calc(max(24px, (100vw - 1260px) / 2)) 32px calc(max(24px, (100vw - 1260px) / 2) - 204px);
  scroll-padding-left: calc(max(24px, (100vw - 1260px) / 2) - 204px);
  width: 100%;
  box-sizing: border-box;
}

.modules-carousel::-webkit-scrollbar {
  display: none;
}

.carousel-bottom-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.carousel-dots {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--color-white);
  padding: 8px 16px;
  border-radius: var(--radius-button);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.18);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  display: block;
}

.carousel-dot:hover {
  background-color: rgba(0, 0, 0, 0.45);
  transform: scale(1.2);
}

.carousel-dot.active {
  background-color: var(--color-apple-blue);
  width: 24px;
  border-radius: 980px;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--color-primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 0;
}

.carousel-btn:hover:not(:disabled) {
  background-color: var(--color-white);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transform: scale(1.06);
  color: var(--color-apple-blue);
  border-color: rgba(0, 113, 227, 0.2);
}

.carousel-btn:active:not(:disabled) {
  transform: scale(0.96);
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
  box-shadow: none;
}

.module-card {
  flex: 0 0 360px !important;
  width: 360px !important;
  min-width: 360px !important;
  max-width: 360px !important;
  min-height: 480px;
  padding: 24px;
  background-color: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  scroll-snap-align: start;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between;
  box-sizing: border-box;
  transition: transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.module-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.07);
}

.module-media {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 20px;
  background-color: #e5e5ea;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.module-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  position: relative;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.module-img.is-loaded {
  opacity: 1;
}

.module-card:hover .module-img {
  transform: scale(1.05);
}

.module-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.module-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.module-code {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-apple-blue);
  text-transform: uppercase;
}

.module-price {
  font-size: 13px;
  font-weight: 600;
  background-color: var(--color-bg-alt);
  padding: 5px 12px;
  border-radius: var(--radius-button);
  border: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--color-primary-dark);
}

.module-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-primary-dark);
  margin-bottom: 10px;
  line-height: 1.3;
}

.module-desc {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--color-text-72);
}

/* ============================================================
   8. PROCESO (3 Columnas en Desktop / Marquee continuo en Móvil)
   ============================================================ */
.process-marquee-wrapper {
  width: 100%;
  overflow: visible;
}

.process-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background-color: var(--color-white);
  padding: 40px 32px;
  border-radius: var(--radius-product);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
}

.step-card-clone {
  display: none !important;
}

.step-number {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-apple-blue);
  margin-bottom: 14px;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--color-primary-dark);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--color-text-56);
}

/* ============================================================
   9. PREGUNTAS FRECUENTES (FAQ Acordeón Estilo Apple)
   ============================================================ */
.section-faq {
  border-top: 1px solid var(--border-divider);
}

.faq-accordion-list {
  max-width: 840px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-divider);
}

.faq-item:first-child {
  border-top: 1px solid var(--border-divider);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--color-primary-dark);
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--color-apple-blue);
}

.faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--color-bg-alt);
  color: var(--color-primary-dark);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1), background-color 0.25s ease, color 0.25s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background-color: var(--color-apple-blue);
  color: var(--color-white);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.faq-answer-inner {
  padding-bottom: 24px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-text-72);
}

.faq-answer-inner p {
  margin: 0;
}

.faq-answer-inner strong {
  color: var(--color-primary-dark);
}

/* ============================================================
   10. BANNER CTA / CONTACTO
   ============================================================ */
.cta-banner {
  background: var(--color-bg-alt);
  padding: 72px 56px;
  text-align: center;
  border: 1px solid var(--border-subtle);
}

.cta-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--color-primary-dark);
  margin-bottom: 12px;
}

.cta-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-56);
  max-width: 600px;
  margin: 0 auto 36px;
}

.cta-contact-box {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 24px 36px;
  justify-content: center;
  background-color: var(--color-white);
  padding: 16px 32px;
  border-radius: var(--radius-button);
  border: 1px solid var(--border-subtle);
  margin-bottom: 36px;
  font-size: 0.92rem;
  color: var(--color-text-72);
}

.contact-detail a {
  color: var(--color-apple-link);
  text-decoration: none;
}

.contact-detail a:hover {
  text-decoration: underline;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   10. FOOTER (ac-gf-footer - max-width: 980px - ejemplo.txt)
   ============================================================ */
.ac-gf-footer {
  background-color: var(--color-bg-alt);
  border-top: 1px solid var(--border-divider);
  padding: 34px 0;
  font-size: 12px;
  color: var(--color-text-56);
}

.ac-gf-content {
  max-width: var(--width-footer);
  margin: 0 auto;
  padding: 0 22px;
}

.ac-gf-footer-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.ac-gf-links {
  display: flex;
  gap: 24px;
}

.ac-gf-link {
  color: var(--color-text-56);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ac-gf-link:hover {
  color: var(--color-primary-dark);
}

/* ============================================================
   11. SKELETON SHIMMER & ERROR FALLBACK (Estilo Apple)
   ============================================================ */
.skeleton-wrapper {
  position: relative;
  background-color: #e5e5ea;
  overflow: hidden;
}

.skeleton-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  animation: skeletonShimmer 1.8s infinite linear;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

@keyframes skeletonShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton-wrapper.is-loaded::before {
  opacity: 0;
  animation: none;
}

.skeleton-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--color-text-56);
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.skeleton-wrapper.is-loaded .skeleton-fallback {
  display: none;
}

.skeleton-fallback svg {
  opacity: 0.45;
  stroke: currentColor;
}

.skeleton-fallback span {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--color-text-56);
}

.skeleton-wrapper.is-error {
  background-color: var(--color-bg-alt);
}

.skeleton-wrapper.is-error::before {
  display: none;
}

.skeleton-wrapper.is-error .skeleton-fallback {
  display: flex;
  opacity: 1;
  z-index: 3;
}

/* ============================================================
   12. SCROLL REVEAL (Efecto de revelado progresivo estilo Apple)
   ============================================================ */
.reveal-item {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-item.revealed {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Animaciones & Responsive
   ============================================================ */
@keyframes bounceSlow {
  0%, 100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, -6px);
  }
}

@media (max-width: 1024px) {
  .section {
    padding: 80px 0px;
  }
}

@media (max-width: 768px) {
  .globalnav-content {
    padding: 0 16px;
  }

  .globalnav-list {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex !important;
  }

  .section {
    padding: 64px 0;
  }

  /* Sticky Stacking Cards en móvil para las 5 tarjetas de valor */
  .tiles-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    padding-bottom: 32px;
  }

  .tiles-grid .tile {
    position: -webkit-sticky;
    position: sticky;
    top: calc(56px + var(--stack-index, 0) * 14px);
    background-color: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.07);
    padding: 34px 22px;
    min-height: auto;
    transform: none !important;
  }

  .tiles-grid .tile.tile-hero-feature {
    background-color: rgb(240, 244, 250);
    border: 1px solid rgba(0, 113, 227, 0.18);
  }

  .tiles-grid .tile.reveal-item {
    transform: none !important;
    opacity: 1 !important;
  }

  /* Movimiento continuo (Infinite Marquee) de los 3 pasos en móvil */
  .process-marquee-wrapper {
    overflow: hidden;
    width: calc(100% + 48px);
    margin-left: -24px;
    margin-right: -24px;
    padding: 12px 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  }

  .process-steps-grid {
    display: flex !important;
    width: max-content !important;
    flex-wrap: nowrap !important;
    gap: 16px !important;
    animation: processMarquee 18s linear infinite !important;
    will-change: transform;
    padding: 4px 16px;
  }

  .step-card-clone {
    display: flex !important;
  }

  .step-card {
    flex: 0 0 280px !important;
    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
    padding: 30px 24px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    transform: none !important;
    opacity: 1 !important;
  }

  @keyframes processMarquee {
    0% {
      transform: translateX(calc(50vw - 140px - 16px));
    }
    100% {
      transform: translateX(calc(50vw - 140px - 16px - 50% - 8px));
    }
  }

  .pricing-features-grid {
    grid-template-columns: 1fr;
  }

  .modules-carousel {
    gap: 16px;
    padding: 8px 20px 24px calc(20px + clamp(40px, 20vw, 200px));
  }

  .carousel-bottom-bar {
    margin-top: 20px;
    gap: 12px;
  }

  .carousel-dots {
    padding: 6px 12px;
    gap: 6px;
  }

  .carousel-btn {
    width: 38px;
    height: 38px;
  }

  .module-card {
    flex: 0 0 295px !important;
    width: 295px !important;
    min-width: 295px !important;
    max-width: 295px !important;
    min-height: 420px;
    padding: 20px;
  }

  .module-media {
    height: 180px;
    border-radius: 14px;
    margin-bottom: 16px;
  }

  .pricing-card-main {
    padding: 24px 16px;
  }

  .pricing-main-image-wrap {
    height: 200px;
  }

  .cta-banner {
    padding: 44px 20px;
  }

  .cta-contact-box {
    border-radius: var(--radius-product);
    flex-direction: column;
    gap: 12px;
    padding: 20px;
  }
}

@media (min-width: 769px) {
  .mobile-menu-toggle,
  .mobile-glass-overlay,
  .mobile-glass-menu {
    display: none !important;
  }
}

/* ============================================================
   COOKIE BANNER ESTILO APPLE (GLASSDESIGN / RGPD)
   ============================================================ */
.apple-cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  width: calc(100% - 40px);
  max-width: 760px;
  z-index: 10000;
  background: rgba(29, 29, 31, 0.88);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  padding: 20px 24px;
  color: var(--color-white);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  opacity: 0;
  pointer-events: none;
}

.apple-cookie-banner.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.apple-cookie-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.apple-cookie-text strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #fff;
}

.apple-cookie-text p {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.76);
  margin: 0;
}

.apple-cookie-text a {
  color: #2997ff;
  text-decoration: underline;
}

.apple-cookie-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.apple-cookie-btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 980px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.apple-cookie-btn-primary {
  background: var(--color-apple-blue);
  color: #fff;
}

.apple-cookie-btn-primary:hover {
  background: var(--color-apple-blue-hover);
  transform: scale(1.02);
}

.apple-cookie-btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.apple-cookie-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 640px) {
  .apple-cookie-content {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
  .apple-cookie-actions {
    justify-content: stretch;
  }
  .apple-cookie-btn {
    flex: 1;
    text-align: center;
    padding: 10px 14px;
  }
}
