
/* ════════════════════════════════
   FRONT.CSS — impre.mx v1.0
   Sistema de diseño: Cloud/Ink/Sky
   ════════════════════════════════ */

/* ── Sección helpers ── */
.section--light { background: var(--color-bg); }

.section-head { margin-bottom: 3rem; }
.section-head--center { text-align: center; }
.section-head--center .section-lead { margin-inline: auto; }

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: var(--font-weight-600);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.section-head h2 {
  font-family: var(--font-title);
  font-weight: var(--font-weight-900);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  margin: 0;
}

.section-lead {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--color-ink);
  max-width: 48rem;
  margin-top: 0.85rem;
  line-height: 1.7;
}

/* ── HERO ── */
.hero {
  padding: 5rem 0 4rem;
  background: var(--color-bg);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.08;
  color: var(--color-ink);
  margin-bottom: 1.25rem;
  font-family: var(--font-title);
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--color-ink);
  max-width: 42rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__media {
  position: relative;
}

.hero__img {
  width: 100%;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card-hover);
  object-fit: cover;
  aspect-ratio: 4/3;
}

.hero__badge {
  position: absolute;
  bottom: -1.25rem;
  left: -1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card-hover);
  padding: 0.85rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero__badge-num {
  font-family: var(--font-title);
  font-weight: var(--font-weight-900);
  font-size: 1.5rem;
  color: var(--color-ink);
}

.hero__badge-label {
  font-size: 0.78rem;
  color: var(--color-ink);
}

@media (min-width: 768px) {
  .hero__inner {
    grid-template-columns: 1fr 1fr;
  }
  .hero {
    padding: 6rem 0 5rem;
  }
}

/* ── CÓMO FUNCIONA ── */
.how { padding: 5rem 0; }

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

.step {
  text-align: center;
  /* Liquid glass — usa el RGB exacto de --color-cloud (#FAFAFB)
     con baja opacidad para que el ground se filtre sin virar a blanco */
  background: rgba(250, 250, 251, 0.55);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-radius: var(--radius-card);
  padding: 2rem 1.5rem;
  border: 1px solid rgba(250, 250, 251, 0.90);
  border-bottom-color: rgba(229, 229, 231, 0.50);  /* --color-stone al 50% */
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.70) inset,
    0 2px 4px rgba(26, 26, 27, 0.03),
    0 8px 24px rgba(26, 26, 27, 0.05),
    0 20px 48px rgba(26, 26, 27, 0.03);
  transition: var(--transition);
}

.step:hover {
  background: rgba(250, 250, 251, 0.75);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.80) inset,
    0 4px 8px rgba(26, 26, 27, 0.04),
    0 12px 32px rgba(26, 26, 27, 0.07),
    0 28px 56px rgba(26, 26, 27, 0.04);
  transform: translateY(-3px);
}

.step__icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(114, 150, 212, 0.10);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.75rem;
}

.step__title {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-family: var(--font-body);
  font-weight: var(--font-weight-600);
  color: var(--color-ink);
  margin-bottom: 0.5rem;
}

.step__text {
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  color: var(--color-ink);
  max-width: 22rem;
  margin-inline: auto;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

/* ── SPLIT (subhero) ── */
.split { padding: 5rem 0; }

.split__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.split__content h2 {
  font-family: var(--font-title);
  font-weight: var(--font-weight-900);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.split__list {
  margin: 0 0 2rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.split__list li {
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  color: var(--color-ink);
  line-height: 1.6;
}

.split__img {
  width: 100%;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card-hover);
  object-fit: cover;
}

@media (min-width: 768px) {
  .split__inner { grid-template-columns: 1fr 1fr; }
  .split__inner > *:last-child { order: 1; }
  .split__inner > *:first-child { order: 2; }
}

/* ── FORTALEZAS ── */
.features { padding: 5rem 0; }

.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1.75rem;
  transition: var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(114, 150, 212, 0.30);
}

.feature-card__icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
}

.feature-card__icon img {
  width: 2.5rem;
  height: 2.5rem;
}

.feature-card__title {
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  font-family: var(--font-body);
  font-weight: var(--font-weight-600);
  color: var(--color-ink);
  margin-bottom: 0.5rem;
}

.feature-card__text {
  font-size: clamp(0.875rem, 1.1vw, 0.95rem);
  color: var(--color-ink);
  line-height: 1.65;
}

@media (min-width: 640px)  { .features__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features__grid { grid-template-columns: repeat(3, 1fr); } }

/* ── CTA BAND ── */
.cta-band {
  background: var(--color-stone);
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
  border-radius: var(--radius-card);
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px circle at 80% 50%, rgba(255,255,255,0.08), transparent 60%),
    radial-gradient(400px circle at 10% 80%, rgba(26,26,27,0.08), transparent 50%);
  pointer-events: none;
}

.cta-band__inner {
  position: relative;
  text-align: center;
  max-width: 42rem;
}

.cta-band__title {
  font-family: var(--font-title);
  font-weight: var(--font-weight-900);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  letter-spacing: -0.02em;
  color: var(--color-ink);
  margin-bottom: 1rem;
}

.cta-band__text {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--color-ink);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.btn--cta-band {
  background: var(--color-accent);
  color: var(--color-cloud);
  font-family: var(--font-body);
  font-weight: var(--font-weight-600);
  border-radius: var(--radius-btn);
  padding: 0.9rem 2.5rem;
  font-size: 1rem;
  border: none;
  box-shadow: var(--shadow-card-hover);
  transition: var(--transition);
}

.btn--cta-band:hover {
  background: var(--color-ink);
  color: var(--color-cloud);
  transform: translateY(-2px);
}

/* ════════════════════════
   SITE HEADER
   ════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-ink);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  height: 5rem;
  gap: 0;
}

.site-header__brand {
  flex-shrink: 0;
  margin-right: 2rem;
}

.site-header__brand img {
  height: 36px;
  width: auto;
}

.site-header__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: rgba(255,255,255,0.80);
  cursor: pointer;
  padding: 0.25rem;
  position: relative;
  z-index: 1000;
}

@media (min-width: 768px) {
  .site-header__toggle { display: none; }
}

.site-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
  }
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex: 1;
  justify-content: center;
}

.site-nav__link {
  font-family: var(--font-body);
  font-weight: var(--font-weight-600);
  font-size: 0.9rem;
  color: var(--color-muted);
  transition: var(--transition);
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--color-accent);
}

.site-nav__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.site-nav__cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-btn);
  color: var(--color-muted);
  font-size: 1.25rem;
  transition: var(--transition);
}

.site-nav__cart:hover { color: var(--color-accent); }

.site-nav__badge {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: var(--font-weight-600);
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-nav__cta {
  font-size: 0.875rem;
  padding: 0.6rem 1.25rem;
}

/* ════════════════════════
   SITE FOOTER
   ════════════════════════ */
.site-footer {
  background: var(--color-ink);
  color: var(--color-text-inverse);
  margin-top: 0;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 3.5rem 0;
}

@media (min-width: 768px) {
  .site-footer__inner {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.site-footer__brand img { filter: brightness(0) invert(1); }

.site-footer__tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  margin-top: 0.75rem;
}

.site-footer__nav-title {
  font-family: var(--font-body);
  font-weight: var(--font-weight-600);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.40);
  margin-bottom: 1rem;
}

.site-footer__link {
  display: block;
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

.site-footer__link:hover { color: #fff; }

.site-footer__info {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 1.25rem;
}

.site-footer__social {
  display: flex;
  gap: 0.75rem;
}

.site-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-btn);
  background: rgba(255,255,255,0.08);
  color: var(--color-muted);
  font-size: 1.1rem;
  transition: var(--transition);
}

.site-footer__social-link:hover {
  background: var(--color-accent);
  color: #fff;
}

.site-footer__copy {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 0;
}

.site-footer__copy p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  text-align: center;
}

/* WhatsApp flotante */
.wp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.40);
  transition: var(--transition);
}

.wp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.50);
  color: #fff;
}

/* ── Fix botón secundario sobre fondo claro ── */
.btn--secondary {
  color: var(--color-ink);
}
.btn--secondary:hover {
  background: var(--color-stone);
  border-color: var(--color-sky);
  color: var(--color-ink);
}

/* Anti-FOUC eliminado — GSAP gestiona opacity */

/* Anti-FOUC eliminado — GSAP gestiona opacity */

/* ── Colores explícitos faltantes ── */

/* Split section — texto sobre fondo blanco */
.split__content h2 { color: var(--color-ink); }
.split__content p  { color: var(--color-ink); }

/* How section */
.how h2 { color: var(--color-ink); }
.how .section-lead { color: var(--color-ink); }

/* Features section */
.features h2 { color: var(--color-ink); }
.features .section-lead { color: var(--color-ink); }

/* Nav sobre fondo oscuro — links deben ser blancos */
.site-nav__link {
  color: rgba(255,255,255,0.75) !important;
}
.site-nav__link:hover,
.site-nav__link.is-active {
  color: #ffffff !important;
}
.site-nav__cart {
  color: rgba(255,255,255,0.75) !important;
}

/* Footer sobre fondo oscuro — texto debe ser blanco/claro */
.site-footer__link {
  color: rgba(255,255,255,0.65) !important;
}
.site-footer__info {
  color: rgba(255,255,255,0.65) !important;
}
.site-footer__social-link {
  color: rgba(255,255,255,0.65) !important;
}

/* ── CINTILLO PROMOCIONALES ── */
.promo-band {
  background-color: var(--color-sky);
  border-radius: var(--radius-card-lg);
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 3.5rem);
  overflow: hidden;
}

.promo-band__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  width: 100%;
  text-align: center;
}

/* Anula margin-bottom del section-head global */
.promo-band .section-head {
  margin-bottom: 0;
  width: 100%;
  text-align: center;
}

.promo-band__title {
  font-family: var(--font-title);
  font-weight: var(--font-weight-900);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.15;
  width: 100%;
  text-align: center;
  margin: 0;
}

.promo-band__lead {
  font-family: var(--font-body);
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
  width: 100%;
  max-width: 52ch;
  text-align: center;
  margin: 0.5rem auto 0;
}

/* ── Logos strip ── */
.promo-band__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  width: 100%;
}

.promo-band__logos img {
  height: clamp(24px, 3.5vw, 40px);
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  transition: var(--transition);
  display: block;
}

.promo-band__logos img:hover {
  opacity: 1;
}

/* ── Pill badge ── */
.promo-band__pill {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.promo-band__pill span {
  display: inline-flex;
  align-items: center;
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-pill);
  padding: 0.45rem 1.75rem;
  font-family: var(--font-body);
  font-weight: var(--font-weight-600);
  font-size: clamp(0.85rem, 1.3vw, 1rem);
  color: var(--color-text-inverse);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* ── Footnote ── */
.promo-band__footnote {
  font-family: var(--font-body);
  font-size: clamp(0.8rem, 1.2vw, 0.9rem);
  color: rgba(255, 255, 255, 0.72);
  max-width: 54ch;
  margin: 0 auto;
  line-height: 1.6;
  text-align: center;
  width: 100%;
}

.promo-band .section-head h2 {
  color: #ffffff !important;
}

/* ── Mobile ── */
@media (max-width: 479px) {
  .promo-band__logos {
    gap: 1.25rem 2rem;
  }
  .promo-band__logos img {
    height: 22px;
    max-width: 90px;
  }
  .promo-band__pill span {
    white-space: normal;
    text-align: center;
  }
}

/* ════════════════════════
   MOBILE NAV OVERLAY
   ════════════════════════ */
.site-nav.is-open {
  display: flex !important;
  flex-direction: column;
  position: fixed;
  inset: 0;
  background: #1A1A1B;
  z-index: 99999;
  padding: 5rem 2rem 2rem;
  gap: 1.5rem;
  animation: navFadeIn 0.25s ease;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.site-nav.is-open .site-nav__links {
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.site-nav.is-open .site-nav__link {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.85) !important;
}

.site-nav.is-open .site-nav__link:hover,
.site-nav.is-open .site-nav__link.is-active {
  color: #FFFFFF !important;
}

.site-nav.is-open .site-nav__cart {
  color: rgba(255,255,255,0.85) !important;
}

@keyframes navFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.site-header__toggle {
  position: relative;
  z-index: 999999;
}

