/*
Theme Name: CFDI Facturas Landing
Theme URI: https://www.cfdifacturas.com/
Author: CFDI Facturas
Author URI: https://www.cfdifacturas.com/
Description: Landing page de venta de timbres fiscales CFDI 4.0. Página única en HTML5 + CSS3 Vanilla, sin dependencias, con pagos por Stripe Payment Links.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cfdi-landing
Tags: one-column, custom-menu, custom-logo, featured-images, translation-ready
*/

/* ============================================================
   CFDI Facturas — Design System
   HTML5 + CSS3 Vanilla · Mobile First · 0 dependencias
============================================================ */

:root {
  /* Marca */
  --navy: #1E2739;
  --navy-deep: #161E2C;
  --blue: #2B4BDB;
  --blue-dark: #1E39B4;
  --blue-soft: #EDF0FE;
  --ink: #2F3336;
  --bone: #F0EFEA;
  --white: #FFFFFF;
  --gray: #5C6470;
  --gray-light: #8A93A1;
  --line: #DFDED7;
  --line-dark: rgba(255, 255, 255, 0.12);

  /* Compatibilidad con policy.css */
  --color-primary: var(--navy);
  --color-text-dark: var(--ink);
  --color-text-light: var(--gray);
  --color-border: var(--line);
  --color-white: var(--white);
  --color-secondary-dark: var(--blue);

  /* Tipografía */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Espaciado */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 72px;
  --space-7: 104px;

  --shadow-sm: 0 2px 10px rgba(30, 39, 57, 0.06);
  --shadow-md: 0 12px 32px rgba(30, 39, 57, 0.12);
  --shadow-lg: 0 24px 60px rgba(30, 39, 57, 0.18);
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --header-h: 84px;
}

/* ============================================================
   RESET
============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}
.section { padding: var(--space-7) 0; }

/* ============================================================
   TIPOGRAFÍA — Suavizada para fluidez
============================================================ */
h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.45rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-transform: none;
}
h3 { font-size: 1.05rem; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; line-height: 1.35; }
h4 { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.85); }
p { color: var(--gray); line-height: 1.65; }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gray-light);
  margin-bottom: var(--space-2);
}
.eyebrow--blue { color: var(--blue); }
.eyebrow--light { color: rgba(255, 255, 255, 0.5); }

.section-heading {
  max-width: 640px;
  margin: 0 auto var(--space-6);
  text-align: center;
}
.section-heading p { margin-top: var(--space-2); font-size: 1rem; }

/* ============================================================
   BOTONES — suavizados
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border: 2px solid transparent;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn:active { transform: translateY(1px); }

.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--blue-dark); box-shadow: 0 10px 24px rgba(43, 75, 219, 0.28); }

.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: var(--navy-deep); box-shadow: var(--shadow-md); }

.btn--ghost { background: transparent; color: var(--ink); border-color: rgba(47, 51, 54, 0.22); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(47, 51, 54, 0.04); }

.btn--lg { padding: 16px 36px; font-size: 0.86rem; }
.btn--sm { padding: 11px 22px; font-size: 0.76rem; }
.btn--block { width: 100%; }

/* ============================================================
   HEADER — navy sólido, logo suelto, nav centrado
============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.header__logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; color: var(--white); }
.logo-mark { width: 52px; height: 52px; object-fit: contain; }
.logo-mark--sm { width: 40px; height: 40px; }

.nav { display: none; align-items: center; gap: clamp(20px, 3vw, 44px); }
.nav__link {
  position: relative;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(255, 255, 255, 0.92);
  padding: 6px 0;
  transition: color var(--transition);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--blue);
  transition: width var(--transition);
}
.nav__link:hover { color: var(--white); }
.nav__link:hover::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: var(--space-2); }
.header__actions .btn { display: none; }

.hamburger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; background: transparent; border: none; padding: 0;
}
.hamburger span {
  display: block; height: 2px; width: 26px; background: var(--white);
  margin: 0 auto; transition: transform var(--transition), opacity var(--transition);
}
.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav.is-open {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: absolute;
  top: var(--header-h); left: 0; right: 0;
  background: var(--navy);
  padding: var(--space-3);
  gap: var(--space-3);
  border-top: 1px solid var(--line-dark);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 1000px) {
  .nav { display: flex; }
  .header__actions .btn { display: inline-flex; }
  .hamburger { display: none; }
}

/* ============================================================
   HERO — fondo hueso, display masivo
============================================================ */
.hero {
  position: relative;
  background: var(--bone);
  padding: clamp(56px, 9vw, 104px) 0 0;
  overflow: hidden;
  border-bottom: 4px solid var(--ink);
}
.hero__rule {
  position: absolute;
  top: 12%; bottom: 22%;
  width: 1px;
  background: rgba(47, 51, 54, 0.16);
  display: none;
}
.hero__rule--left { left: 2.5%; }
.hero__rule--right { right: 2.5%; }
@media (min-width: 1000px) { .hero__rule { display: block; } }

.hero__inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3) clamp(48px, 7vw, 80px);
  text-align: center;
}
.hero__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 0.92;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__title-a {
  font-size: clamp(3.1rem, 12.4vw, 8.6rem);
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.hero__title-b {
  font-size: clamp(3.5rem, 15.2vw, 10.4rem);
  font-weight: 900;
  color: var(--blue);
  letter-spacing: -0.03em;
}
.hero__subtitle {
  margin: var(--space-4) auto 0;
  max-width: 560px;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 500;
  color: var(--gray);
  line-height: 1.6;
}
.hero__cta {
  margin-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
}

/* Ticker — banda azul sólida */
.ticker {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  background: var(--blue);
  overflow: hidden;
  padding: 12px 0;
}
.ticker__track {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: max-content;
  animation: ticker 34s linear infinite;
}
.ticker__track span {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--white);
  white-space: nowrap;
}
.ticker__dot { width: 4px; height: 4px; background: var(--white); border-radius: 50%; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* ============================================================
   GRID + CARDS
============================================================ */
.grid { display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--4, .grid--3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* Ritmo de fondos entre secciones */
.value-props {
  background: var(--navy);
  border-bottom: 4px solid var(--ink);
}
.value-props h2 { color: var(--white); }
.value-props .section-heading p { color: rgba(255, 255, 255, 0.72); }
.value-props .eyebrow { color: rgba(255, 255, 255, 0.55); }
.value-props .card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.16);
}
.value-props .card::before { background: var(--blue); }
.value-props .card:hover { border-color: var(--blue); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35); }
.value-props .card h3 { color: var(--white); }
.value-props .card p { color: rgba(255, 255, 255, 0.72); }
.value-props .card__index { color: rgba(255, 255, 255, 0.16); }
.value-props .card:hover .card__index { color: var(--blue); }
.how {
  background: var(--white);
  border-bottom: 4px solid var(--ink);
}
.faq {
  background: var(--white);
  border-bottom: 4px solid var(--ink);
}

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: var(--space-4) var(--space-3) var(--space-3);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 3px;
  background: var(--blue);
  transition: width var(--transition);
  border-radius: 10px 10px 0 0;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card:hover::before { width: 100%; }

.card__index {
  position: absolute;
  top: 14px; right: 16px;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--line);
  transition: color var(--transition);
}
.card:hover .card__index { color: var(--blue-soft); }

.card__icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-soft);
  color: var(--blue);
  border-radius: 10px;
  margin-bottom: var(--space-3);
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.92rem; }

/* ============================================================
   DEMO
============================================================ */
.demo {
  background: var(--bone);
  border-bottom: 4px solid var(--ink);
}
.demo__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: center;
}
@media (min-width: 1000px) {
  .demo__inner { grid-template-columns: 1fr 1.05fr; gap: var(--space-6); }
}
.demo__content h2 { margin-bottom: var(--space-3); }
.demo__content > p { font-size: 1.02rem; }
.demo__cta { margin-top: var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-2); }

.check-list { margin-top: var(--space-3); }
.check-list li {
  position: relative;
  padding: 7px 0 7px 30px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink);
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 13px;
  width: 16px; height: 16px;
  background: var(--blue);
  clip-path: polygon(14% 46%, 0 60%, 40% 100%, 100% 22%, 86% 8%, 38% 70%);
}

/* Mockup del sistema */
.mockup {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mockup__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 11px 14px;
  background: #F7F7F4;
  border-bottom: 1px solid var(--line);
}
.mockup__dot { width: 9px; height: 9px; border-radius: 50%; background: #D6D5CE; }
.mockup__url {
  margin-left: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gray-light);
}
.mockup__body { display: grid; grid-template-columns: 54px 1fr; min-height: 300px; }
.mockup__side {
  background: var(--navy);
  padding: 16px 0;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.mockup__navitem { width: 24px; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.18); }
.mockup__navitem.is-active { background: var(--blue); width: 30px; }

.mockup__main { padding: var(--space-3); display: flex; flex-direction: column; gap: var(--space-3); }
.mockup__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mockup__stat { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.mockup__stat-label {
  display: block; font-size: 0.62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray-light);
}
.mockup__stat-value {
  display: block; margin-top: 4px;
  font-size: 1.4rem; font-weight: 800; color: var(--ink);
}
.mockup__stat:first-child .mockup__stat-value { color: var(--blue); }

.mockup__chart { display: flex; align-items: flex-end; gap: 8px; height: 96px; }
.mockup__chart span {
  flex: 1;
  background: var(--blue-soft);
  border-radius: 4px;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.mockup__chart span:nth-child(6) { background: var(--blue); }
.mockup.is-visible .mockup__chart span { transform: scaleY(1); }
.mockup.is-visible .mockup__chart span:nth-child(1) { transition-delay: 0.15s; }
.mockup.is-visible .mockup__chart span:nth-child(2) { transition-delay: 0.22s; }
.mockup.is-visible .mockup__chart span:nth-child(3) { transition-delay: 0.29s; }
.mockup.is-visible .mockup__chart span:nth-child(4) { transition-delay: 0.36s; }
.mockup.is-visible .mockup__chart span:nth-child(5) { transition-delay: 0.43s; }
.mockup.is-visible .mockup__chart span:nth-child(6) { transition-delay: 0.5s; }
.mockup.is-visible .mockup__chart span:nth-child(7) { transition-delay: 0.57s; }

.mockup__rows { display: flex; flex-direction: column; gap: 8px; }
.mockup__rows span { height: 8px; background: #F1F0EB; border-radius: 4px; }
.mockup__rows span:nth-child(2) { width: 82%; }
.mockup__rows span:nth-child(3) { width: 64%; }

/* ============================================================
   CÓMO FUNCIONA
============================================================ */
.steps { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step {
  position: relative;
  border-top: 3px solid var(--navy);
  padding: var(--space-4) var(--space-3) var(--space-3) 0;
  transition: border-color var(--transition);
}
.step:hover { border-color: var(--blue); }
.step__ghost {
  display: block;
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  color: var(--line);
  margin-bottom: var(--space-2);
  transition: color var(--transition);
}
.step:hover .step__ghost { color: var(--blue); }
.step h3 { margin-bottom: 8px; font-size: 1.15rem; }
.step p { font-size: 0.94rem; }

/* ============================================================
   PRICING
============================================================ */
.pricing {
  background: var(--bone);
  border-bottom: 4px solid var(--ink);
}
.price-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: var(--space-4) var(--space-3);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.price-card__title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray);
}
.price-card__price {
  margin-top: var(--space-2);
  font-size: clamp(2.2rem, 4.6vw, 2.9rem);
  font-weight: 900;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.price-card__price span {
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray-light);
  letter-spacing: 0;
}
.price-card__ideal {
  margin-top: var(--space-2);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray);
}
.price-card__features { margin: var(--space-3) 0; flex: 1; }
.price-card__features li {
  position: relative;
  padding: 7px 0 7px 24px;
  font-size: 0.86rem;
  color: var(--gray);
}
.price-card__features li::before {
  content: '';
  position: absolute;
  left: 0; top: 13px;
  width: 13px; height: 13px;
  background: var(--blue);
  clip-path: polygon(14% 46%, 0 60%, 40% 100%, 100% 22%, 86% 8%, 38% 70%);
}

.price-card--featured {
  border: 2px solid var(--blue);
  box-shadow: var(--shadow-md);
}
.price-card--dark { background: var(--navy); border-color: var(--navy); }
.price-card--dark .price-card__title { color: rgba(255,255,255,0.55); }
.price-card--dark .price-card__price { color: var(--white); }
.price-card--dark .price-card__price span,
.price-card--dark .price-card__ideal,
.price-card--dark .price-card__features li { color: rgba(255,255,255,0.7); }

.price-card__badge {
  position: absolute;
  top: 0; left: 0;
  background: var(--blue);
  color: var(--white);
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 7px 14px;
  border-radius: 12px 12px 0 0;
}
.price-card__badge--accent { background: var(--white); color: var(--navy); }
.price-card--featured, .price-card--dark { padding-top: calc(var(--space-4) + 14px); }

/* ============================================================
   B2B
============================================================ */
.b2b {
  position: relative;
  background: var(--navy);
  padding: var(--space-7) 0;
  overflow: hidden;
  border-bottom: 4px solid var(--ink);
}
.b2b::before {
  content: '';
  position: absolute;
  top: -40%; left: 50%;
  width: 720px; height: 720px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(43, 75, 219, 0.38) 0%, transparent 62%);
  pointer-events: none;
}
.b2b__inner { position: relative; max-width: 760px; margin: 0 auto; text-align: center; }
.b2b h2 { color: var(--white); }
.b2b p { margin-top: var(--space-3); color: rgba(255,255,255,0.72); font-size: 1.03rem; }
.b2b .btn { margin-top: var(--space-4); }

/* ============================================================
   FAQ
============================================================ */
.accordion { max-width: 780px; margin: 0 auto; }
.accordion__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.accordion__item.is-open {
  border-color: var(--blue);
  box-shadow: var(--shadow-sm);
}
.accordion__trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
  background: transparent; border: none;
  padding: 20px 22px;
  text-align: left;
  font-size: 0.98rem; font-weight: 600; color: var(--ink);
  transition: color var(--transition);
}
.accordion__trigger:hover { color: var(--blue); }

.accordion__sign { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.accordion__sign::before, .accordion__sign::after {
  content: '';
  position: absolute; top: 50%; left: 0;
  width: 16px; height: 2px;
  background: var(--blue);
  transition: transform var(--transition);
}
.accordion__sign::after { transform: rotate(90deg); }
.accordion__trigger[aria-expanded="true"] .accordion__sign::after { transform: rotate(0deg); }

.accordion__panel { max-height: 0; overflow: hidden; transition: max-height 0.3s cubic-bezier(0.5, 0, 0, 1); }
.accordion__panel p {
  padding: 0 22px 20px;
  font-size: 0.94rem;
  max-width: 92%;
  line-height: 1.65;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s cubic-bezier(0.5, 0, 0, 1), transform 0.3s cubic-bezier(0.5, 0, 0, 1);
}
.accordion__item.is-open .accordion__panel p { opacity: 1; transform: none; }

.faq__contact {
  max-width: 780px;
  margin: var(--space-4) auto 0;
  text-align: center;
  font-size: 0.95rem;
}
.faq__contact a { color: var(--blue); font-weight: 700; }
.faq__contact a:hover { text-decoration: underline; }

/* ============================================================
   FOOTER
============================================================ */
.footer { background: var(--navy); color: rgba(255,255,255,0.72); }
.footer__inner {
  display: grid; grid-template-columns: 1fr; gap: var(--space-4);
  padding: var(--space-6) 0 var(--space-5);
}
@media (min-width: 900px) { .footer__inner { grid-template-columns: 2fr 1fr 1fr; } }

.footer__wordmark {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--white);
}
.footer__col > p { margin-top: var(--space-3); font-size: 0.88rem; color: rgba(255,255,255,0.6); line-height: 1.6; }
.footer__col h4 { color: var(--white); margin-bottom: var(--space-3); }
.footer__col ul li { margin-bottom: 10px; font-size: 0.88rem; color: rgba(255,255,255,0.6); }
.footer__col ul li a { color: rgba(255,255,255,0.72); transition: color var(--transition); }
.footer__col ul li a:hover { color: var(--blue); }

.footer__bottom { border-top: 1px solid var(--line-dark); padding: var(--space-3) 0; }
.footer__bottom p { font-size: 0.76rem; color: rgba(255,255,255,0.42); text-align: center; }

/* ============================================================
   SCROLL REVEAL + ENTRADA DEL HERO
============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
.hero__title { animation: hero-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero__subtitle { animation: hero-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both; }
.hero__cta { animation: hero-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero__title, .hero__subtitle, .hero__cta { animation: none; }
  .mockup__chart span { transform: none; transition: none; }
  .accordion__panel, .accordion__panel p { transition: none; }
}

/* ============================================================
   AJUSTES ESPECÍFICOS DE WORDPRESS
============================================================ */
/* Barra de administración WP: el header sticky no debe quedar detrás */
body.admin-bar .header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .header { top: 46px; } }

/* Páginas genéricas (fallback), p. ej. páginas de política sin template */
.page-generic { max-width: 760px; padding: var(--space-6) 0 var(--space-7); }
.page-generic h1 {
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--space-3);
}
.page-generic p { margin-bottom: var(--space-2); font-size: 0.95rem; }
.page-generic a { color: var(--blue); font-weight: 600; }
.page-generic a:hover { text-decoration: underline; }
