/* ==========================================================================
   SRAWEB · Promoción para negocios
   Hoja de estilos principal — paleta cálida y sofisticada
   (azul marino de marca + dorado + arena/marfil)
   Tipografías: Poppins (títulos) · Inter (textos)
   --------------------------------------------------------------------------
   Índice
   01. Tokens (variables)         07. Proyectos (marquee)
   02. Reset y base               08. Selector de solución
   03. Utilidades y layout        09. Pasos · Reseñas · Confianza · FAQ
   04. Botones y badges           10. Cierre, footer y elementos fijos
   05. Header, hero y promoción   11. Responsive y accesibilidad
   06. Planes
   ========================================================================== */


/* ==========================================================================
   01. TOKENS — cambiá acá los colores, fuentes y espaciados de todo el sitio
   ========================================================================== */
:root{
  /* --- Paleta de marca --- */
  --navy:        #1E293B;   /* texto y estructura (azul marino del logo) */
  --navy-deep:   #16202F;   /* fondos oscuros (footer) */
  --navy-soft:   #334155;   /* hover sobre navy */
  --gold:        #C59B27;   /* acento dorado del logo */
  --gold-dark:   #A8811C;   /* hover del dorado */
  --gold-soft:   #F3EAD3;   /* fondo de badges y chips dorados */

  /* --- Neutros cálidos --- */
  --sand:        #F7F4EF;   /* arena suave: fondo de secciones */
  --sand-deep:   #EFE9E0;   /* arena más marcada: bloques */
  --white:       #FFFFFF;
  --ink-soft:    #6B6459;   /* texto de párrafo (gris cálido) */
  --line:        #E4DCD1;   /* bordes suaves */
  --success:     #D97706;   /* check de listados cambiado a tono dorado/ámbar corporativo */
  --whatsapp:    #25D366;   /* verde oficial de WhatsApp */
  --star:        #E9A72C;   /* estrellas de las reseñas */

  /* --- Gradientes --- */
  --grad-navy:   linear-gradient(135deg, #24344F 0%, #17202E 100%);
  --grad-gold:   linear-gradient(120deg, #D9B550 0%, #C59B27 55%, #A8811C 100%);
  --grad-soft:   linear-gradient(165deg, #FBF9F6 0%, #F7F4EF 45%, #FFFFFF 100%);
  --grad-border: linear-gradient(140deg, rgba(197,155,39,.75), rgba(197,155,39,0) 65%);

  /* --- Tipografía --- */
  --font-display: "Poppins", system-ui, -apple-system, sans-serif;  /* títulos */
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;    /* textos corregido a Inter para mayor nitidez */

  --fs-h1: clamp(2.2rem, 4.8vw, 3.6rem);
  --fs-h2: clamp(1.8rem, 3.6vw, 2.7rem);
  --fs-h3: 1.2rem;
  --fs-body: 1rem;
  --fs-small: .875rem;

  /* --- Espaciado y formas --- */
  --wrap: 1180px;
  --space-section: clamp(64px, 8vw, 120px);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* --- Sombras (cálidas, no grises) --- */
  --shadow-sm: 0 6px 20px rgba(48, 38, 22, .06);
  --shadow-md: 0 20px 50px rgba(48, 38, 22, .10);
  --shadow-navy: 0 16px 36px rgba(30, 41, 59, .26);
  --shadow-gold: 0 16px 34px rgba(197, 155, 39, .30);

  /* --- Transiciones y animaciones --- */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --t-fast: .2s var(--ease);
  --t-base: .35s var(--ease);
  --marquee-speed: 46s;     /* velocidad del carrusel de proyectos */
}


/* ==========================================================================
   02. RESET Y BASE
   ========================================================================== */
*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body{
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--ink-soft);
  background: var(--white);
  overflow-x: hidden;
}

/* Títulos → Poppins */
h1, h2, h3, h4, h5, h6{
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.18;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1{ font-size: var(--fs-h1); }
h2{ font-size: var(--fs-h2); }
h3{ font-size: var(--fs-h3); font-weight: 600; }

/* Los <em> dentro de títulos se usan como remate dorado (sin cursiva) */
h1 em, h2 em{ font-style: normal; color: var(--gold); }

/* Textos → Inter */
p, li, small, figcaption, label, input, button, a{ font-family: var(--font-body); }

p{ margin: 0 0 1rem; }
img{ max-width: 100%; height: auto; display: block; }
a{ color: var(--navy); text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
button{ font: inherit; }


/* ==========================================================================
   03. UTILIDADES Y LAYOUT
   ========================================================================== */
.wrap{ width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

.section{ padding-block: var(--space-section); }

/* Encabezado de sección reutilizable */
.section-intro{ max-width: 640px; margin-bottom: 56px; }
.section-intro.center{ margin-inline: auto; text-align: center; }
.section-intro p{ font-size: 1.05rem; }

/* Enlace de salto (solo visible al navegar con teclado) */
.skip{
  position: absolute; left: -9999px; top: 12px; z-index: 999;
  background: var(--navy); color: #fff; padding: 12px 20px; border-radius: var(--radius-pill);
}
.skip:focus{ left: 20px; }


/* ==========================================================================
   04. BOTONES Y BADGES
   ========================================================================== */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: .95rem; line-height: 1;
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-base), background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.btn:hover{ transform: translateY(-2px); }
.btn-sm{ padding: 12px 22px; font-size: .875rem; }

/* Primario: azul marino de marca */
.btn-primary{ background: var(--navy); color: #fff; box-shadow: var(--shadow-navy); }
.btn-primary:hover{ background: var(--navy-soft); }

/* Dorado: para el cierre sobre fondo oscuro */
.btn-gold{ background: var(--grad-gold); color: #fff; box-shadow: var(--shadow-gold); }
.btn-gold:hover{ background: var(--gold-dark); }

/* Outline: planes secundarios */
.btn-outline{ background: #fff; color: var(--navy); border-color: var(--line); }
.btn-outline:hover{ border-color: var(--gold); color: var(--gold-dark); box-shadow: var(--shadow-sm); }

/* Ghost: contorno tenue */
.btn-ghost{ background: rgba(255,255,255,.7); color: var(--navy); border-color: var(--line); }
.btn-ghost:hover{ border-color: var(--gold); color: var(--gold-dark); }
.btn-ghost.light{ background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost.light:hover{ background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.7); }

/* Badge tipo píldora */
.badge{
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px; margin-bottom: 20px;
  background: var(--gold-soft); color: var(--gold-dark);
  border: 1px solid rgba(197,155,39,.28);
  border-radius: var(--radius-pill);
  font-size: .8rem; font-weight: 500; letter-spacing: .01em;
}
.badge-strong{
  background: var(--navy); color: #fff;
  padding: 4px 14px; border-radius: var(--radius-pill); font-weight: 600; font-size: .74rem;
}
.badge-light{ background: rgba(255,255,255,.12); color: #F4E9CE; border-color: rgba(255,255,255,.22); }


/* ==========================================================================
   05. HEADER, HERO Y PROMOCIÓN
   ========================================================================== */
.topbar{
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.topbar.is-stuck{ border-color: var(--line); box-shadow: var(--shadow-sm); }

/* Header organizado con Flexbox para evitar que el logo colapse */
.head-inner{ 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 15px; 
  padding-block: 12px; 
  max-width: var(--wrap);
  margin-inline: auto;
  width: 100%;
}

/* --- Marca (logotipo en imagen) --- */
.brand{ display: inline-flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand-logo{ width: auto; height: 38px; display: block; }
.brand-claim{
  font-size: .72rem; color: var(--ink-soft); letter-spacing: .04em;
  padding-left: 14px; border-left: 1px solid var(--line);
}

/* --- Temporizador central alargado (Horizontal) en el Header --- */
.promo-header-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--sand);
  border: 1px solid rgba(197, 155, 39, 0.4);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  flex-grow: 0;
  flex-shrink: 1;
}

.promo-bar-text {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}

.promo-header-bar .countdown {
  display: flex;
  align-items: center;
  gap: 4px;
}

.promo-header-bar .cd-unit {
  display: flex;
  align-items: baseline;
  gap: 2px;
  padding: 2px 5px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.promo-header-bar .cd-unit b {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
}

.promo-header-bar .cd-unit small {
  font-size: 0.55rem;
  color: var(--ink-soft);
}

.promo-header-bar .cd-sep {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: bold;
}

/* Ajuste del botón derecho del header */
.header-cta {
  flex-shrink: 0;
}

/* --- Hero --- */
.hero{ position: relative; padding-block: clamp(48px, 6vw, 88px) clamp(60px, 8vw, 110px); background: var(--grad-soft); overflow: hidden; }

.blob{ position: absolute; border-radius: 50%; pointer-events: none; }
.blob-1{ width: 640px; height: 640px; right: -200px; top: -180px; background: radial-gradient(circle at 35% 35%, rgba(197,155,39,.16), rgba(197,155,39,0) 65%); }
.blob-2{ width: 480px; height: 480px; left: -220px; bottom: -200px; background: radial-gradient(circle at 60% 40%, rgba(30,41,59,.10), rgba(30,41,59,0) 68%); }

.hero-grid{ position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-copy{ max-width: 620px; }
.lead{ font-size: 1.08rem; max-width: 52ch; }
.hero-actions{ display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 22px; }
.hero-note{ font-size: var(--fs-small); }

/* Visual del hero */
.hero-visual{ position: relative; }
.hero-img{ width: 100%; max-width: 560px; margin-inline: auto; filter: drop-shadow(0 26px 42px rgba(48,38,22,.18)); }
.hero-img.img-missing{ display: none; }
.hero-fallback{ display: none; position: relative; min-height: 380px; }
.hero-img.img-missing + .hero-fallback{ display: block; }

.mock-desktop{
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 14px; overflow: hidden;
}
.mock-browser{ display: flex; align-items: center; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: .7rem; }
.mock-browser i{ width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.mock-browser span{ margin-left: 10px; }
.mock-hero{ padding: 26px 20px 20px; background: var(--sand); border-radius: var(--radius-md); margin-top: 14px; }
.mock-hero span{ font-size: .62rem; letter-spacing: .12em; color: var(--gold-dark); font-weight: 600; }
.mock-hero b{ display: block; font-family: var(--font-display); font-size: 1.4rem; color: var(--navy); margin: 8px 0 14px; line-height: 1.2; }
.mock-hero em{ font-style: normal; color: var(--gold); }
.mock-button{ display: inline-block; background: var(--navy); color: #fff; font-size: .72rem; font-weight: 600; padding: 9px 16px; border-radius: var(--radius-pill); }
.mock-products{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.mock-products div{ height: 58px; border-radius: var(--radius-sm); background: linear-gradient(140deg, var(--sand-deep), #FBF9F6); }

.mock-phone{
  position: absolute; right: -10px; bottom: -34px; width: 170px; padding: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow-md);
}
.phone-notch{ width: 46px; height: 5px; border-radius: 4px; background: var(--line); margin: 0 auto 12px; }
.phone-mini-header{ height: 10px; width: 60%; border-radius: 4px; background: var(--gold-soft); margin-bottom: 10px; }
.phone-image{ height: 74px; border-radius: var(--radius-sm); background: var(--grad-navy); margin-bottom: 12px; }
.phone-line{ height: 8px; border-radius: 4px; background: var(--sand-deep); margin-bottom: 7px; }
.phone-line.short{ width: 60%; }
.phone-btn{ height: 26px; border-radius: var(--radius-pill); background: var(--gold); margin-top: 12px; }

.floating-chip{
  position: absolute; left: 0; bottom: 18px;
  background: #fff; color: var(--navy); font-size: .78rem; font-weight: 500;
  padding: 10px 18px; border-radius: var(--radius-pill); box-shadow: var(--shadow-md);
}

.quick-nav{ background: var(--navy); color: rgba(255,255,255,.82); }
.quick-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-block: 26px; font-size: .92rem; }
.quick-grid span{ display: flex; align-items: center; gap: 12px; }
.quick-grid b{ font-family: var(--font-display); color: var(--gold); font-size: 1.05rem; }
/* ==========================================================================
   06. PLANES (Alineados al estilo SRAWEB de referencia)
   ========================================================================== */
.plans{ background: var(--white); }

.plan-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: start; }

.plan-card{
  position: relative; display: flex; flex-direction: column;
  padding: 36px 30px 32px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.plan-card::before{
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: var(--grad-border); opacity: 0; transition: opacity var(--t-base);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; padding: 1px; pointer-events: none;
}
.plan-card:hover{ transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; }
.plan-card:hover::before{ opacity: 1; }

.plan-icon{
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 22px;
  background: var(--sand); color: var(--gold-dark); border: 1px solid var(--line); border-radius: 15px;
}
.plan-icon svg{ width: 26px; height: 26px; }

.plan-tag{ font-size: .78rem; font-weight: 500; color: var(--gold-dark); margin-bottom: 8px; letter-spacing: .02em; }
.plan-desc{ font-size: .95rem; min-height: 3.2em; }

.plan-price{ margin: 22px 0; padding: 20px 0; border-block: 1px solid var(--line); }
.plan-price small{ display: block; font-size: .78rem; color: var(--ink-soft); }
.plan-price strong{ font-family: var(--font-display); font-size: 2.25rem; font-weight: 700; color: var(--navy); letter-spacing: -.03em; }
.plan-price span{ display: block; font-size: .78rem; color: var(--ink-soft); }

.plan-list{ display: grid; gap: 12px; margin-bottom: 28px; font-size: .93rem; }
.plan-list li{ display: flex; gap: 10px; align-items: flex-start; color: var(--navy); }

/* Check adaptado al estilo de tildes anaranjadas/doradas de SRAWEB */
.plan-list li::before{
  content: "✔"; flex: none; width: 18px; height: 18px; margin-top: 1px;
  color: var(--success); font-weight: bold; font-size: 0.95rem;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Botones estandarizados para tarjetas de planes con color corporativo */
.plan-card .btn,
.plan-card .btn-primary,
.plan-card .btn-outline{
  display: inline-flex; align-items: center; justify-content: center; width: 100%;
  padding: 14px 22px; border-radius: var(--radius-pill); font-weight: 600;
  background: var(--grad-gold); color: #fff; border: none; box-shadow: var(--shadow-sm);
  transition: background-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.plan-card .btn:hover{ background: var(--gold-dark); transform: translateY(-2px); box-shadow: var(--shadow-gold); }

.plan-detail{ display: block; margin-top: 16px; text-align: center; font-size: .85rem; font-weight: 600; color: var(--gold-dark); }
.plan-detail:hover{ text-decoration: underline; }

/* Plan destacado (columna central) */
.plan-featured{
  background: linear-gradient(180deg, var(--sand) 0%, #FFFFFF 45%);
  border-color: rgba(197,155,39,.4);
  box-shadow: var(--shadow-md);
}
.featured-label{
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  white-space: nowrap; background: var(--grad-gold); color: #fff;
  font-size: .72rem; font-weight: 600; padding: 7px 18px; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-gold);
}
.plan-featured .plan-icon{ background: var(--grad-navy); color: var(--gold); border-color: transparent; }

.legal-note{ margin-top: 34px; font-size: .78rem; line-height: 1.65; max-width: 900px; }



/* ==========================================================================
   07. PROYECTOS · Cuadrícula de 4 columnas con scroll interno y botón central
   ========================================================================== */
.projects { 
  background: var(--sand); 
}

/* Cuadrícula estricta de hasta 4 columnas en escritorios */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 30px;
}

/* Tarjeta contenedora estilo mockup */
.template-card {
  position: relative;
  display: block;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.template-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

/* Contenedor de la pantalla (fuerza la proporción vertical y oculta el exceso de imagen) */
.template-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5; /* Formato vertical limpio */
  overflow: hidden;
  background: var(--sand-deep);
}

/* La imagen larga que se deslizará al hacer hover */
.template-screen img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top;
  /* Transición suave para desplazar la imagen hacia abajo al poner el mouse */
  transition: object-position 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Al poner el cursor, la imagen se desliza internamente mostrando el sitio completo */
.template-card:hover .template-screen img {
  object-position: bottom;
}

/* Capa de degradado mínimo y botón central */
.template-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.25); /* Degradado oscuro muy sutil */
  backdrop-filter: blur(1px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--t-base);
}

/* Aparece el degradado y el botón al pasar el mouse */
.template-card:hover .template-overlay {
  opacity: 1;
}

/* Estilo del botón flotante en el centro */
.preview-btn {
  background: #ffffff;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transform: translateY(8px);
  transition: transform var(--t-base), background-color var(--t-fast), color var(--t-fast);
}

.template-card:hover .preview-btn {
  transform: translateY(0);
}

.preview-btn:hover {
  background: var(--navy);
  color: #fff;
}

/* Adaptabilidad responsive para pantallas medianas y celulares */
@media (max-width: 1200px) {
  .templates-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablets */
  }
}

@media (max-width: 720px) {
  .templates-grid {
    grid-template-columns: 1fr; /* 1 columna en celulares */
  }
}
/* ==========================================================================
   08. SELECTOR DE SOLUCIÓN
   ========================================================================== */
.chooser{ background: var(--white); }
.chooser-grid{ display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.chooser-img{ width: 100%; max-width: 420px; margin-top: 28px; filter: drop-shadow(0 20px 36px rgba(48,38,22,.14)); }

.choice-panel{ background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.choice-heading{ font-family: var(--font-display); font-weight: 600; color: var(--navy); font-size: 1.1rem; margin-bottom: 18px; }
.choice-list{ display: grid; gap: 12px; }

.choice{
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  width: 100%; text-align: left; padding: 16px 18px;
  background: var(--sand); border: 1px solid var(--line); border-radius: var(--radius-md);
  color: var(--navy); font-size: .93rem; font-weight: 500; cursor: pointer;
  transition: border-color var(--t-fast), background-color var(--t-fast), transform var(--t-fast);
}
.choice:hover{ border-color: var(--gold); transform: translateX(3px); }
/* .is-active la agrega promo.js a la opción elegida */
.choice.is-active{ background: var(--gold-soft); border-color: var(--gold); }
.choice-num{ font-family: var(--font-display); font-weight: 600; color: var(--gold-dark); }

.recommendation{ margin-top: 22px; padding: 24px; background: var(--grad-navy); border-radius: var(--radius-md); color: rgba(255,255,255,.85); }
.recommend-label{ font-size: .78rem; color: var(--gold); }
.recommendation strong{ display: block; font-family: var(--font-display); font-size: 1.4rem; color: #fff; margin: 4px 0 8px; }
.recommendation p{ font-size: .85rem; opacity: .85; }
.recommendation .btn{ background: var(--grad-gold); color: #fff; box-shadow: none; }
.recommendation .btn:hover{ background: var(--gold-dark); }


/* ==========================================================================
   09. PASOS · RESEÑAS · CONFIANZA · FAQ
   ========================================================================== */
.steps{ background: var(--sand); }
.steps-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step{
  padding: 34px 28px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); transition: box-shadow var(--t-base), transform var(--t-base);
}
.step:hover{ transform: translateY(-6px); box-shadow: var(--shadow-md); }
.steps-grid .step:nth-child(2){ transform: translateY(26px); }
.steps-grid .step:nth-child(2):hover{ transform: translateY(20px); }
.step-tag{ display: inline-block; margin-bottom: 14px; padding: 6px 14px; background: var(--sand); color: var(--gold-dark); border: 1px solid var(--line); border-radius: var(--radius-pill); font-size: .74rem; font-weight: 600; }
.step p{ margin: 0; font-size: .94rem; }

/* --- Reseñas --- */
.reviews{ background: var(--white); }
.reviews-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card{
  padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); transition: transform var(--t-base), box-shadow var(--t-base);
}
.review-card:hover{ transform: translateY(-5px); box-shadow: var(--shadow-md); }
.review-head{ display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin-bottom: 14px; }
.review-avatar{
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--sand); color: var(--gold-dark); font-weight: 600;
}
.review-name{ display: block; font-family: var(--font-display); font-size: .95rem; font-weight: 600; color: var(--navy); }
.review-date{ font-size: .78rem; color: var(--ink-soft); }
.review-source{ display: grid; place-items: center; }

.stars{ display: flex; gap: 3px; margin-bottom: 12px; font-size: 1rem; line-height: 1; color: var(--star); }
.stars .star-off{ color: var(--line); }
.review-text{ margin: 0; font-size: .92rem; }
.reviews-foot{ margin: 34px 0 0; text-align: center; }

/* --- Confianza --- */
.trust{ background: var(--sand); }
.trust-box{
  display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center;
  padding: clamp(28px, 4vw, 52px);
  background: var(--grad-navy); border-radius: var(--radius-lg); color: rgba(255,255,255,.82);
  box-shadow: var(--shadow-navy);
}
.trust-media img{ width: 100%; max-width: 340px; margin-inline: auto; filter: drop-shadow(0 18px 30px rgba(0,0,0,.35)); }
.trust-box h2{ color: #fff; }
.trust-box h2 em{ color: var(--gold); }
.text-link{ color: var(--gold); font-weight: 600; border-bottom: 1px solid rgba(197,155,39,.5); padding-bottom: 2px; }
.text-link:hover{ border-color: var(--gold); }
.text-link.dark{ color: var(--gold-dark); }

/* --- FAQ --- */
.faq{ background: var(--white); }
.faq-wrap{ display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.faq-img{ width: 100%; max-width: 380px; margin-top: 24px; filter: drop-shadow(0 20px 36px rgba(48,38,22,.14)); }
.faqs{ display: grid; gap: 14px; }
.faqs details{
  background: var(--sand); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 4px 22px; transition: border-color var(--t-fast), box-shadow var(--t-base), background-color var(--t-fast);
}
.faqs details[open]{ border-color: rgba(197,155,39,.45); box-shadow: var(--shadow-sm); background: #fff; }
.faqs summary{
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; color: var(--navy); font-size: 1rem;
}
.faqs summary::-webkit-details-marker{ display: none; }
.faqs summary::after{ content: "+"; color: var(--gold-dark); font-size: 1.4rem; line-height: 1; transition: transform var(--t-base); }
.faqs details[open] summary::after{ transform: rotate(45deg); }
.faqs p{ margin: 0; padding-bottom: 20px; font-size: .94rem; }


/* ==========================================================================
   10. CIERRE, FOOTER Y ELEMENTOS FIJOS
   ========================================================================== */
.final{ background: var(--navy); color: rgba(255,255,255,.78); text-align: center; }
.final-inner{ max-width: 720px; margin-inline: auto; }
.final h2{ color: #fff; }
.final h2 em{ color: var(--gold); }
.final-actions{ display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 30px 0 18px; }
.final-small{ font-size: var(--fs-small); opacity: .62; margin: 0; }

.footer{ background: var(--navy-deep); color: rgba(255,255,255,.6); padding-block: 40px; }
.footer-inner{ display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.foot-brand img{ height: 38px; width: auto; filter: brightness(0) invert(1); opacity: .92; }
.footer-links{ display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a{ color: rgba(255,255,255,.7); font-size: .9rem; }
.footer-links a:hover{ color: var(--gold); }
.footer small{ font-size: .8rem; }

.sticky-mobile{ display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.95); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.sticky-mobile a{ display: block; text-align: center; background: var(--navy); color: #fff; font-weight: 600; padding: 14px; border-radius: var(--radius-pill); }

.wa-float{
  position: fixed; right: 20px; bottom: 24px; z-index: 75;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px 14px 16px;
  background: var(--whatsapp); color: #fff; font-weight: 600; font-size: .9rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 14px 30px rgba(37, 211, 102, .35);
  transition: transform var(--t-fast), box-shadow var(--t-base);
}
.wa-float:hover{ transform: translateY(-3px); box-shadow: 0 18px 38px rgba(37, 211, 102, .45); }
.wa-float svg{ flex: none; }
.wa-float::before{
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, .5);
  animation: wa-pulse 3s var(--ease) infinite;
}
@keyframes wa-pulse{
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  70%  { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

.setup-alert{ position: fixed; left: 16px; bottom: 16px; z-index: 80; max-width: 320px; background: var(--navy); color: #fff; font-size: .82rem; padding: 14px 18px; border-radius: var(--radius-md); box-shadow: var(--shadow-md); }

.to-top{
  position: fixed; right: 20px; bottom: 88px; z-index: 70;
  width: 46px; height: 46px; border: 0; border-radius: 14px;
  background: var(--grad-gold); color: #fff; font-size: 1.1rem; cursor: pointer;
  box-shadow: var(--shadow-gold);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity var(--t-base), transform var(--t-base), visibility var(--t-base);
}
.to-top.is-visible{ opacity: 1; visibility: visible; transform: none; }


/* ==========================================================================
   11. RESPONSIVE Y ACCESIBILIDAD
   ========================================================================== */
@media (max-width: 1024px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-visual{ max-width: 520px; margin-inline: auto; }
  .promo-band{ max-width: 100%; }
  .chooser-grid,
  .faq-wrap{ grid-template-columns: 1fr; }
  .chooser-img, .faq-img{ margin-inline: auto; }
  .plan-grid,
  .steps-grid,
  .reviews-grid{ grid-template-columns: repeat(2, 1fr); }
  .steps-grid .step:nth-child(2){ transform: none; }
  .steps-grid .step:nth-child(2):hover{ transform: translateY(-6px); }
  .trust-box{ grid-template-columns: 1fr; text-align: center; }
  .trust-media img{ max-width: 280px; }
}

@media (max-width: 720px){
  .header-cta{ display: none; }
  .brand-claim{ display: none; }
  .brand-logo{ height: 36px; }
  .quick-grid{ grid-template-columns: 1fr; gap: 12px; }
  .plan-grid,
  .steps-grid,
  .reviews-grid{ grid-template-columns: 1fr; }
  .plan-desc{ min-height: 0; }
  .featured-label{ position: static; transform: none; display: inline-block; margin-bottom: 16px; }
  .floating-chip{ display: none; }
  .cd-unit{ min-width: 52px; }
  .projects-foot{ flex-direction: column; align-items: flex-start; }
  
  /* Limpieza de elementos flotantes antiguos en móviles muy chicos */
  .to-top{ bottom: 20px; }
  body{ padding-bottom: 0; }
  .footer-inner{ flex-direction: column; align-items: flex-start; }
}

a:focus-visible,
button:focus-visible,
summary:focus-visible{ outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .marquee-track{ animation: none; transform: none; }
  .marquee{ overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}

/* --- Ajustes definitivos para móviles (Header, Contador y Botones) --- */
@media (max-width: 768px) {
  /* Estructura del header centrada para que no se desborde */
  .head-inner {
    padding-inline: 16px;
    box-sizing: border-box;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  /* Temporizador adaptado en columna para evitar que los segundos salgan de la pantalla */
  .promo-header-bar {
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
    flex-direction: column;
    gap: 6px;
    padding: 8px 12px;
    border-radius: var(--radius-md);
  }

  .promo-bar-text {
    font-size: 0.75rem;
    white-space: normal;
    text-align: center;
  }

  .promo-header-bar .countdown {
    justify-content: center;
  }

  /* Oculta la barra inferior estirada para eliminar espacios vacíos feos */
  .sticky-mobile {
    display: none !important;
  }

  /* Mantiene únicamente el botón flotante circular de WhatsApp cómodo y visible */
  .wa-float {
    bottom: 20px;
    right: 20px;
    padding: 12px 18px;
    z-index: 99;
  }

  .wa-float-text {
    display: inline;
  }

  /* Elimina márgenes inferiores sobrantes en la vista de celular */
  body, html {
    overflow-x: hidden;
  }
  
  .footer, .section:last-of-type {
    padding-bottom: 30px !important;
    margin-bottom: 0 !important;
  }
}