/* =========================================================================
   Alcohólicos Anónimos Chiclayo — Sistema de diseño v2
   Paleta: azul A.A. profundo + dorado cálido sobre crema.
   Tipografías: Lora (títulos) + Inter (texto).
   ========================================================================= */

:root {
  /* Color */
  --c-primary: #1d4e9b;
  --c-primary-dark: #143a76;
  --c-primary-deep: #0b2347;
  --c-primary-ink: #071731;
  --c-primary-soft: #e9f1fd;
  --c-primary-tint: #f4f8fe;
  --c-gold: #e0a52c;
  --c-gold-dark: #b9821a;
  --c-gold-soft: #fdf5e2;
  --c-wa: #128c4a;
  --c-wa-dark: #0d6e39;
  --c-wa-bright: #25d366;
  --c-ink: #14213a;
  --c-ink-soft: #22334e;
  --c-muted: #586880;
  --c-cream: #fbf9f5;
  --c-white: #ffffff;
  --c-sky: #eff5fd;
  --c-border: rgba(20, 33, 58, 0.09);
  --c-border-strong: rgba(20, 33, 58, 0.16);

  /* Sombras */
  --sh-xs: 0 1px 2px rgba(11, 35, 71, 0.05);
  --sh-sm: 0 3px 10px rgba(11, 35, 71, 0.06);
  --sh-md: 0 12px 30px rgba(11, 35, 71, 0.09);
  --sh-lg: 0 26px 60px rgba(11, 35, 71, 0.14);
  --sh-gold: 0 12px 30px rgba(224, 165, 44, 0.26);
  --sh-wa: 0 12px 28px rgba(18, 140, 74, 0.26);

  /* Tipografía */
  --font-head: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Métricas */
  --container: 1180px;
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --header-h: 76px;
  --t: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 26px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--c-ink);
  background: var(--c-cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
iframe {
  max-width: 100%;
  display: block;
}

img {
  height: auto;
}

a {
  color: var(--c-primary);
  text-decoration: none;
  transition: color var(--t);
}

a:hover {
  color: var(--c-primary-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.16;
  color: var(--c-ink);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.65rem, 3.3vw, 2.5rem);
}

h3 {
  font-size: clamp(1.14rem, 1.9vw, 1.4rem);
}

h4 {
  font-size: 1.05rem;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0 0 1rem 1.25rem;
}

li {
  margin-bottom: 0.5rem;
}

strong {
  font-weight: 600;
  color: var(--c-ink);
}

::selection {
  background: rgba(224, 165, 44, 0.32);
}

:focus-visible {
  outline: 3px solid var(--c-gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.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;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -70px;
  z-index: 200;
  background: var(--c-primary);
  color: #fff;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top var(--t);
}

.skip-link:focus {
  top: 16px;
  color: #fff;
}

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}

.container-narrow {
  max-width: 800px;
}

.section {
  padding: 92px 0;
  position: relative;
}

.section-sm {
  padding: 58px 0;
}

.section-alt {
  background: var(--c-white);
}

.section-sky {
  background: linear-gradient(180deg, var(--c-sky) 0%, var(--c-cream) 100%);
}

.section-tint {
  background: var(--c-primary-tint);
}

.section-deep {
  background: var(--c-primary-deep);
  color: rgba(255, 255, 255, 0.86);
}

.section-deep h2,
.section-deep h3,
.section-deep h4 {
  color: #fff;
}

.section-header {
  max-width: 740px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-header.left {
  margin-left: 0;
  text-align: left;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-primary);
  background: var(--c-primary-soft);
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

.section-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-gold);
}

.section-title {
  margin-bottom: 18px;
}

.section-sub {
  font-size: 1.07rem;
  color: var(--c-muted);
}

.section-header.left .section-sub {
  max-width: 640px;
}

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

.mt-32 {
  margin-top: 32px;
}

.mt-24 {
  margin-top: 24px;
}

/* Divisor decorativo entre secciones */
.section-divider {
  line-height: 0;
  margin-bottom: -1px;
}

.section-divider svg {
  width: 100%;
  height: 56px;
}

.section-divider.from-cream {
  background: var(--c-cream);
}

.section-divider.from-cream path {
  fill: var(--c-white);
}

.section-divider.from-white {
  background: var(--c-white);
}

.section-divider.from-white path {
  fill: var(--c-cream);
}

.section-divider.from-sky {
  background: var(--c-sky);
}

.section-divider.from-sky path {
  fill: var(--c-white);
}

/* ---------- Botones ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t),
    border-color var(--t);
}

.btn svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.99);
}

.btn-primary {
  background: linear-gradient(180deg, #2359ab 0%, var(--c-primary) 100%);
  color: #fff;
  box-shadow: 0 10px 26px rgba(29, 78, 155, 0.26);
}

.btn-primary:hover {
  background: linear-gradient(180deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  color: #fff;
  box-shadow: 0 16px 34px rgba(29, 78, 155, 0.34);
}

.btn-wa {
  background: linear-gradient(180deg, #16a057 0%, var(--c-wa) 100%);
  color: #fff;
  box-shadow: var(--sh-wa);
}

.btn-wa:hover {
  background: linear-gradient(180deg, var(--c-wa) 0%, var(--c-wa-dark) 100%);
  color: #fff;
  box-shadow: 0 16px 34px rgba(18, 140, 74, 0.34);
}

.btn-gold {
  background: linear-gradient(180deg, #eab543 0%, var(--c-gold) 100%);
  color: #33220a;
  box-shadow: var(--sh-gold);
}

.btn-gold:hover {
  background: linear-gradient(180deg, var(--c-gold) 0%, var(--c-gold-dark) 100%);
  color: #33220a;
}

.btn-outline {
  background: var(--c-white);
  border-color: var(--c-border-strong);
  color: var(--c-ink);
}

.btn-outline:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
  background: var(--c-primary-tint);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
  color: #fff;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.88rem;
}

.btn-sm svg {
  width: 16px;
  height: 16px;
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* Botón compacto del menú: solo el logo de WhatsApp en escritorio */
.btn-nav {
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  flex-shrink: 0;
}

.btn-nav svg {
  width: 22px;
  height: 22px;
}

.btn-nav-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-row.center {
  justify-content: center;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 245, 0.85);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--t), border-color var(--t), background var(--t);
}

.site-header.scrolled {
  box-shadow: var(--sh-sm);
  border-bottom-color: var(--c-border);
  background: rgba(251, 249, 245, 0.95);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  transition: transform var(--t);
}

.brand:hover .brand-mark {
  transform: rotate(-4deg) scale(1.04);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--c-ink);
}

.brand-sub {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--c-primary);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav > ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
}

.site-nav > ul > li {
  margin: 0;
  position: relative;
}

.site-nav a {
  display: block;
  padding: 10px 14px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--c-ink);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--c-primary);
  background: var(--c-primary-soft);
}

.site-nav a.active {
  color: var(--c-primary);
  background: var(--c-primary-soft);
  box-shadow: inset 0 0 0 1px rgba(29, 78, 155, 0.14);
}

.has-children > a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 8px;
  vertical-align: 2px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.55;
}

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 268px;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--sh-md);
  padding: 10px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--t), transform var(--t), visibility var(--t);
}

.dropdown::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.has-children:hover .dropdown,
.has-children:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li {
  margin: 0;
}

.dropdown a {
  padding: 10px 13px;
  font-size: 0.9rem;
  border-radius: var(--radius-xs);
}

.dropdown-header {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted);
  padding: 10px 13px 5px;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--c-border);
  background: var(--c-white);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--c-ink);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 76px 0 96px;
  background: linear-gradient(168deg, #eef5fd 0%, #f7f4ee 62%, var(--c-cream) 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}

.hero-bg .blob-1 {
  top: -180px;
  right: -120px;
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, rgba(224, 165, 44, 0.24) 0%, transparent 68%);
}

.hero-bg .blob-2 {
  bottom: -260px;
  left: -180px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(29, 78, 155, 0.16) 0%, transparent 68%);
}

.hero-bg .dots {
  position: absolute;
  top: 56px;
  left: -40px;
  width: 300px;
  height: 300px;
  opacity: 0.5;
  background-image: radial-gradient(rgba(29, 78, 155, 0.22) 1.6px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(circle at 30% 30%, #000 0%, transparent 68%);
  mask-image: radial-gradient(circle at 30% 30%, #000 0%, transparent 68%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--c-primary-dark);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--c-border);
  box-shadow: var(--sh-xs);
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}

.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-wa-bright);
  box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.18);
}

.hero-title {
  margin-bottom: 22px;
  color: var(--c-primary-ink);
}

.hero-title em {
  font-style: normal;
  color: var(--c-primary);
  position: relative;
  white-space: nowrap;
}

.hero-title em::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.16em;
  background: linear-gradient(90deg, rgba(224, 165, 44, 0.55), rgba(224, 165, 44, 0.15));
  border-radius: 3px;
  z-index: -1;
}

.hero-lead {
  font-size: 1.13rem;
  color: var(--c-muted);
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--c-ink-soft);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-pill);
  padding: 8px 15px;
  margin: 0;
  box-shadow: var(--sh-xs);
}

.chip svg {
  width: 15px;
  height: 15px;
  color: var(--c-wa);
  flex-shrink: 0;
}

/* Composición visual del hero */
.hero-showcase {
  position: relative;
}

.hero-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  background: var(--c-white);
  border: 6px solid var(--c-white);
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 3.1;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 8px);
}

.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(7, 23, 49, 0.34) 100%);
  pointer-events: none;
}

.status-card {
  position: absolute;
  top: 20px;
  left: -26px;
  display: flex;
  align-items: center;
  gap: 13px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--sh-md);
  padding: 14px 20px;
  max-width: 290px;
}

.status-dot {
  position: relative;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--c-wa-bright);
  flex-shrink: 0;
}

.status-dot::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.5);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.7);
    opacity: 1;
  }
  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}

.status-card.is-closed .status-dot {
  background: var(--c-gold);
}

.status-card.is-closed .status-dot::before {
  border-color: rgba(224, 165, 44, 0.5);
}

.status-title {
  display: block;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.35;
}

.status-sub {
  display: block;
  font-size: 0.79rem;
  color: var(--c-muted);
  line-height: 1.4;
}

.hero-mini-card {
  position: absolute;
  bottom: -26px;
  right: -18px;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--sh-md);
  padding: 16px 20px;
  max-width: 268px;
}

.hero-mini-card .info-label {
  margin-bottom: 4px;
}

.hero-mini-card strong {
  display: block;
  font-size: 0.94rem;
  line-height: 1.4;
}

.hero-mini-card span:last-child {
  font-size: 0.82rem;
  color: var(--c-muted);
}

/* ---------- Franja de confianza ---------- */

.quickbar {
  position: relative;
  background: linear-gradient(135deg, var(--c-primary-ink) 0%, var(--c-primary-deep) 55%, #123a76 100%);
  color: rgba(255, 255, 255, 0.9);
  padding: 30px 0;
  overflow: hidden;
}

.quickbar::before {
  content: '';
  position: absolute;
  top: -120px;
  right: 8%;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 165, 44, 0.22) 0%, transparent 70%);
}

.quickbar-inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.quickbar-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  line-height: 1.45;
}

.quickbar-item + .quickbar-item {
  padding-left: 26px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.quickbar-item > svg {
  width: 22px;
  height: 22px;
  color: var(--c-gold);
  flex-shrink: 0;
}

.quickbar-item strong {
  display: block;
  color: #fff;
  font-size: 1rem;
}

.quickbar-item span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
}

.quickbar a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Tarjetas ---------- */

.grid {
  display: grid;
  gap: 26px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  position: relative;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--sh-xs);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  height: 100%;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-primary), rgba(29, 78, 155, 0));
  opacity: 0;
  transition: opacity var(--t);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-md);
  border-color: rgba(29, 78, 155, 0.2);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(150deg, var(--c-primary-soft) 0%, #dbe8fb 100%);
  color: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  box-shadow: inset 0 0 0 1px rgba(29, 78, 155, 0.1);
}

.card-icon svg {
  width: 25px;
  height: 25px;
}

.card-icon.gold {
  background: linear-gradient(150deg, var(--c-gold-soft) 0%, #fbe9c4 100%);
  color: var(--c-gold-dark);
  box-shadow: inset 0 0 0 1px rgba(224, 165, 44, 0.24);
}

.card h3 {
  margin-bottom: 11px;
}

.card p {
  color: var(--c-muted);
  font-size: 0.96rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  font-weight: 600;
  font-size: 0.92rem;
}

.card-link::after {
  content: '→';
  transition: transform var(--t);
}

.card-link:hover::after {
  transform: translateX(4px);
}

/* ---------- Línea de tiempo: tu primera visita ---------- */

.timeline {
  position: relative;
  list-style: none;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 25px;
  left: 26px;
  right: 26px;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    rgba(29, 78, 155, 0.3) 0 8px,
    transparent 8px 16px
  );
}

.timeline-step {
  position: relative;
  margin: 0;
}

.timeline-marker {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(150deg, #2359ab 0%, var(--c-primary) 100%);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(29, 78, 155, 0.3);
  margin-bottom: 20px;
}

.timeline-body {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 26px;
  height: calc(100% - 72px);
  box-shadow: var(--sh-xs);
  transition: transform var(--t), box-shadow var(--t);
}

.timeline-step:hover .timeline-body {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
}

.timeline-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--c-gold-soft);
  color: var(--c-gold-dark);
  margin-bottom: 16px;
}

.timeline-ico svg {
  width: 20px;
  height: 20px;
}

.timeline-body h3 {
  font-size: 1.08rem;
  margin-bottom: 9px;
}

.timeline-body p {
  font-size: 0.92rem;
  color: var(--c-muted);
}

/* ---------- Pasos ---------- */

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

.step {
  position: relative;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 24px 26px 24px 68px;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}

.step::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--c-primary), rgba(29, 78, 155, 0.15));
}

.step:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-sm);
  border-color: rgba(29, 78, 155, 0.2);
}

.step:hover::before {
  background: linear-gradient(180deg, var(--c-gold), rgba(224, 165, 44, 0.2));
}

.step-num {
  position: absolute;
  left: 22px;
  top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c-primary-soft);
  color: var(--c-primary);
  font-size: 0.88rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.step p {
  font-size: 0.94rem;
  color: var(--c-ink-soft);
  margin: 0;
  line-height: 1.6;
}

/* ---------- Promesas ---------- */

.promise-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  list-style: none;
  margin: 0;
}

.promise {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 18px 22px;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}

.promise:hover {
  border-color: rgba(224, 165, 44, 0.5);
  box-shadow: var(--sh-xs);
  transform: translateX(3px);
}

.promise-num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(150deg, #f6d27a 0%, var(--c-gold) 100%);
  color: #3d2907;
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 1px;
  font-variant-numeric: tabular-nums;
}

/* ---------- Panel de información ---------- */

.info-panel {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--sh-sm);
}

.info-list {
  list-style: none;
  margin: 0;
}

.info-list li {
  display: flex;
  gap: 17px;
  padding: 20px 0;
  border-bottom: 1px solid var(--c-border);
  margin: 0;
}

.info-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.info-list li:first-child {
  padding-top: 0;
}

.info-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: linear-gradient(150deg, var(--c-primary-soft) 0%, #dbe8fb 100%);
  color: var(--c-primary);
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(29, 78, 155, 0.1);
}

.info-ico svg {
  width: 21px;
  height: 21px;
}

.info-label {
  display: block;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: 4px;
}

.info-value {
  display: block;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.5;
}

.info-note {
  display: block;
  font-size: 0.88rem;
  color: var(--c-muted);
  font-weight: 400;
}

.map-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--c-border);
  box-shadow: var(--sh-sm);
  background: var(--c-white);
  height: 100%;
  min-height: 400px;
  display: flex;
  flex-direction: column;
}

.map-wrap iframe {
  width: 100%;
  flex-grow: 1;
  min-height: 340px;
  border: 0;
}

/* ---------- Teléfonos ---------- */

.phones {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.phone-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--c-ink);
  transition: border-color var(--t), box-shadow var(--t), transform var(--t), color var(--t);
}

.phone-chip:hover {
  border-color: var(--c-wa);
  color: var(--c-wa-dark);
  box-shadow: var(--sh-sm);
  transform: translateY(-2px);
}

.phone-chip svg {
  width: 18px;
  height: 18px;
  color: var(--c-wa);
  flex-shrink: 0;
}

.phone-chip.primary {
  background: linear-gradient(180deg, #16a057 0%, var(--c-wa) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--sh-wa);
}

.phone-chip.primary svg {
  color: #fff;
}

.phone-chip.primary:hover {
  background: linear-gradient(180deg, var(--c-wa) 0%, var(--c-wa-dark) 100%);
  color: #fff;
}

.phone-stack {
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

/* ---------- Libros ---------- */

.book-card {
  display: flex;
  gap: 24px;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 28px;
  height: 100%;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}

.book-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-md);
  border-color: rgba(29, 78, 155, 0.18);
}

.book-cover {
  width: 98px;
  flex-shrink: 0;
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(11, 35, 71, 0.2);
  align-self: flex-start;
  background: var(--c-white);
}

.book-cover img {
  width: 100%;
}

.book-body h3 {
  font-size: 1.1rem;
  margin-bottom: 9px;
}

.book-body p {
  font-size: 0.92rem;
  color: var(--c-muted);
  margin-bottom: 15px;
}

/* ---------- Testimonios ---------- */

.carousel {
  position: relative;
  overflow: hidden;
  padding: 4px 0;
}

.carousel:focus-visible {
  outline: 3px solid var(--c-gold);
  outline-offset: 6px;
  border-radius: var(--radius);
}

.carousel-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonio {
  flex: 0 0 33.3333%;
  max-width: 33.3333%;
  padding: 0 13px;
  box-sizing: border-box;
}

.testimonio-inner {
  position: relative;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 34px;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--sh-xs);
  transition: transform var(--t), box-shadow var(--t);
}

.testimonio-inner:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
}

.testimonio-quote {
  font-family: var(--font-head);
  font-size: 3.4rem;
  line-height: 0.7;
  color: var(--c-gold);
  opacity: 0.55;
  margin-bottom: 10px;
}

.testimonio-text {
  font-size: 0.97rem;
  color: var(--c-ink-soft);
  font-style: italic;
  flex-grow: 1;
  margin-bottom: 24px;
  line-height: 1.7;
}

.testimonio-author {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-top: 20px;
  border-top: 1px solid var(--c-border);
}

.testimonio-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--c-primary-soft);
  color: var(--c-primary);
  flex-shrink: 0;
}

.testimonio-avatar svg {
  width: 21px;
  height: 21px;
}

.testimonio-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}

.testimonio-role {
  font-size: 0.78rem;
  color: var(--c-muted);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
}

.carousel-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--c-border-strong);
  background: var(--c-white);
  color: var(--c-ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
}

.carousel-arrow:hover {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
  transform: scale(1.06);
}

.carousel-arrow svg {
  width: 19px;
  height: 19px;
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--c-border-strong);
  cursor: pointer;
  transition: background var(--t), width var(--t);
}

.carousel-dots button.active {
  background: var(--c-primary);
  width: 28px;
  border-radius: var(--radius-pill);
}

/* ---------- FAQ ---------- */

.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--t), box-shadow var(--t);
}

.faq-item.open {
  border-color: rgba(29, 78, 155, 0.26);
  box-shadow: var(--sh-sm);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 21px 26px;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-ink);
  cursor: pointer;
  transition: color var(--t);
}

.faq-question:hover {
  color: var(--c-primary);
}

.faq-question::after {
  content: '';
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  border-right: 2px solid var(--c-primary);
  border-bottom: 2px solid var(--c-primary);
  transform: rotate(45deg) translateY(-3px);
  transition: transform var(--t);
}

.faq-item.open .faq-question::after {
  transform: rotate(225deg) translateY(-2px);
}

.faq-answer {
  display: none;
  padding: 0 26px 24px;
  color: var(--c-muted);
  font-size: 0.96rem;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ---------- Avisos ---------- */

.callout {
  background: var(--c-gold-soft);
  border: 1px solid rgba(224, 165, 44, 0.36);
  border-radius: var(--radius);
  padding: 26px 30px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.callout svg {
  width: 26px;
  height: 26px;
  color: var(--c-gold-dark);
  flex-shrink: 0;
  margin-top: 2px;
}

.callout p {
  color: #4a3608;
  font-size: 0.96rem;
}

.callout a {
  color: var(--c-primary-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.callout-blue {
  background: var(--c-primary-soft);
  border-color: rgba(29, 78, 155, 0.22);
}

.callout-blue svg {
  color: var(--c-primary);
}

.callout-blue p {
  color: var(--c-primary-deep);
}

.anonymous-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--c-muted);
}

.anonymous-note svg {
  width: 17px;
  height: 17px;
  color: var(--c-primary);
  flex-shrink: 0;
}

/* ---------- Blog ---------- */

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 50px;
  align-items: start;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.card-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-md);
  border-color: rgba(29, 78, 155, 0.18);
}

.blog-card-image {
  display: block;
  overflow: hidden;
  background: var(--c-primary-soft);
}

.blog-card-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.blog-card-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.8rem;
  color: var(--c-muted);
  margin-bottom: 13px;
}

.blog-card-cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--c-primary);
  background: var(--c-primary-soft);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

.blog-card h3 {
  font-size: 1.17rem;
  margin-bottom: 11px;
}

.blog-card h3 a {
  color: var(--c-ink);
}

.blog-card h3 a:hover {
  color: var(--c-primary);
}

.blog-card-excerpt {
  font-size: 0.93rem;
  color: var(--c-muted);
  flex-grow: 1;
  margin-bottom: 20px;
}

.blog-card-foot {
  margin-top: auto;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 0.9rem;
}

.link-arrow::after {
  content: '→';
  transition: transform var(--t);
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

.blog-hero {
  position: relative;
  background: linear-gradient(168deg, #eef5fd 0%, var(--c-cream) 100%);
  padding: 74px 0 60px;
  text-align: center;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: -160px;
  right: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 165, 44, 0.2) 0%, transparent 70%);
}

.blog-hero > .container {
  position: relative;
}

.blog-hero h1 {
  margin-bottom: 16px;
  color: var(--c-primary-ink);
}

.blog-hero p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--c-muted);
  font-size: 1.07rem;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: calc(var(--header-h) + 26px);
}

.sidebar-widget {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--sh-xs);
}

.sidebar-widget h3 {
  font-size: 1.05rem;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--c-border);
}

.sidebar-list {
  list-style: none;
  margin: 0;
}

.sidebar-list li {
  margin-bottom: 12px;
}

.sidebar-list li:last-child {
  margin-bottom: 0;
}

.sidebar-list a {
  font-size: 0.92rem;
  color: var(--c-ink);
  display: block;
  line-height: 1.5;
}

.sidebar-list a:hover {
  color: var(--c-primary);
}

.sidebar-cta {
  background: linear-gradient(150deg, var(--c-primary-deep) 0%, var(--c-primary) 100%);
  color: rgba(255, 255, 255, 0.84);
  border: 0;
}

.sidebar-cta h3 {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.16);
}

.sidebar-cta p {
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* ---------- Artículo ---------- */

.page-hero {
  position: relative;
  background: linear-gradient(168deg, #eef5fd 0%, var(--c-cream) 100%);
  padding: 66px 0 58px;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -180px;
  right: -100px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 165, 44, 0.18) 0%, transparent 70%);
}

.page-hero > .container {
  position: relative;
}

.page-hero h1 {
  margin-bottom: 18px;
  color: var(--c-primary-ink);
}

.page-hero .lead {
  font-size: 1.12rem;
  color: var(--c-muted);
  max-width: 700px;
}

.page-hero.center {
  text-align: center;
}

.page-hero.center .lead {
  margin: 0 auto;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
  color: var(--c-muted);
  margin-bottom: 20px;
}

.breadcrumbs a {
  color: var(--c-muted);
}

.breadcrumbs a:hover {
  color: var(--c-primary);
}

.breadcrumbs span.sep {
  opacity: 0.45;
}

.post-header {
  margin-bottom: 30px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
  color: var(--c-muted);
  margin-bottom: 18px;
}

.post-cover {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
  box-shadow: var(--sh-md);
}

.post-body {
  font-size: 1.05rem;
  color: var(--c-ink-soft);
}

.post-body > * + * {
  margin-top: 1.2rem;
}

.post-body h2 {
  font-size: 1.65rem;
  margin-top: 2.8rem;
  margin-bottom: 1rem;
  color: var(--c-primary-ink);
}

.post-body h3 {
  font-size: 1.26rem;
  margin-top: 2.1rem;
  margin-bottom: 0.85rem;
}

.post-body ul,
.post-body ol {
  padding-left: 1.35rem;
  margin-left: 0;
}

.post-body li {
  margin-bottom: 0.6rem;
}

.post-body blockquote {
  border-left: 4px solid var(--c-gold);
  background: var(--c-gold-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 22px 28px;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-style: italic;
  color: #4a3608;
  margin: 2rem 0;
}

.post-body blockquote p:last-child {
  margin-bottom: 0;
}

.post-body a {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.post-body hr {
  border: 0;
  border-top: 1px solid var(--c-border);
  margin: 2.5rem 0;
}

.post-body img {
  border-radius: var(--radius);
  margin: 2rem 0;
  box-shadow: var(--sh-sm);
}

.post-body code {
  background: var(--c-sky);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.post-body pre {
  background: var(--c-primary-deep);
  color: #e8f0fc;
  padding: 22px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
}

.post-body pre code {
  background: none;
  color: inherit;
  padding: 0;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid var(--c-border);
}

.post-tags a {
  font-size: 0.84rem;
  color: var(--c-muted);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  padding: 7px 15px;
  border-radius: var(--radius-pill);
}

.post-tags a:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
}

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 42px;
  padding-top: 30px;
  border-top: 1px solid var(--c-border);
}

.post-nav span {
  flex: 1;
}

.post-nav .next {
  text-align: right;
  margin-left: auto;
}

.post-nav .btn {
  max-width: 100%;
  white-space: normal;
}

.post-nav .next.btn {
  text-align: right;
}

/* ---------- Prosa ---------- */

.prose {
  font-size: 1.04rem;
  color: var(--c-ink-soft);
}

.prose > * + * {
  margin-top: 1.2rem;
}

.prose h2 {
  font-size: 1.7rem;
  margin-top: 3.1rem;
  margin-bottom: 1rem;
  color: var(--c-primary-ink);
}

.prose h3 {
  font-size: 1.26rem;
  margin-top: 2.2rem;
  margin-bottom: 0.8rem;
}

.prose ul,
.prose ol {
  padding-left: 1.35rem;
  margin-left: 0;
}

.prose li {
  margin-bottom: 0.55rem;
}

.prose blockquote {
  border-left: 4px solid var(--c-gold);
  background: var(--c-gold-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 24px 30px;
  font-family: var(--font-head);
  font-size: 1.12rem;
  font-style: italic;
  color: #4a3608;
  margin: 2rem 0;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--c-border);
  margin: 2.5rem 0;
}

.prose .lead {
  font-size: 1.13rem;
  color: var(--c-muted);
}

/* ---------- CTA final ---------- */

.cta-band {
  position: relative;
  background: linear-gradient(135deg, var(--c-primary-ink) 0%, var(--c-primary-deep) 48%, #123a76 100%);
  color: rgba(255, 255, 255, 0.86);
  padding: 84px 0;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  top: -170px;
  right: -90px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 165, 44, 0.22) 0%, transparent 68%);
}

.cta-band::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: radial-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 120%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 120%, #000 0%, transparent 72%);
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 740px;
  margin: 0 auto;
}

.cta-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffe6ae;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 22px;
}

.cta-kicker svg {
  width: 16px;
  height: 16px;
}

.cta-inner h2 {
  color: #fff;
  margin-bottom: 18px;
}

.cta-inner p {
  font-size: 1.09rem;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.82);
}

.cta-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 26px !important;
  margin-bottom: 0 !important;
  font-size: 0.88rem !important;
  color: rgba(255, 255, 255, 0.62) !important;
}

.cta-note svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--c-primary-ink);
  color: rgba(255, 255, 255, 0.66);
  padding-top: 72px;
  font-size: 0.93rem;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr 1fr 1.25fr;
  gap: 46px;
  padding-bottom: 56px;
}

.footer-brand .brand {
  margin-bottom: 20px;
}

.footer-brand .brand-name {
  color: #fff;
}

.footer-brand .brand-sub {
  color: var(--c-gold);
}

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.75;
}

.footer-col h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
}

.footer-col li {
  margin-bottom: 11px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-contact {
  list-style: none;
  margin: 0;
}

.footer-contact li {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
  align-items: flex-start;
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  color: var(--c-gold);
  flex-shrink: 0;
  margin-top: 4px;
}

.footer-contact a,
.footer-contact span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
  line-height: 1.6;
}

.footer-contact a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-inner p {
  margin: 0;
}

.footer-note {
  max-width: 620px;
  font-size: 0.81rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.46);
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

details.footer-col {
  display: block;
}

/* ---------- WhatsApp flotante ---------- */

.wa-float-wrap {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 12px;
}

.wa-tooltip {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-pill);
  padding: 11px 20px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--c-ink);
  box-shadow: var(--sh-md);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity var(--t), transform var(--t);
  pointer-events: none;
}

.wa-float-wrap:hover .wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.wa-float {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(160deg, #3ee07a 0%, var(--c-wa-bright) 45%, #1fb457 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.42);
  transition: transform var(--t), box-shadow var(--t);
}

.wa-float::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.45);
  animation: pulse 2.8s ease-out infinite;
}

.wa-float:hover {
  color: #fff;
  transform: scale(1.07);
  box-shadow: 0 18px 38px rgba(37, 211, 102, 0.5);
}

.wa-float svg {
  width: 32px;
  height: 32px;
}

.wa-badge-dot {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--c-gold);
  border: 2.5px solid #fff;
}

/* ---------- Barra de acción móvil ---------- */

.mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--c-border);
  box-shadow: 0 -6px 24px rgba(11, 35, 71, 0.08);
}

.mobile-bar .btn {
  flex: 1;
  min-width: 0;
  padding: 14px 12px;
  font-size: 0.92rem;
}

/* ---------- Índice «En esta página» ---------- */

.toc {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-gold);
  border-radius: var(--radius-sm);
  padding: 22px 26px;
  margin: 0 0 36px;
}

.toc-title {
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: 14px;
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  counter-reset: toc;
}

.toc li {
  margin: 0;
  counter-increment: toc;
}

.toc a {
  display: flex;
  gap: 10px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--c-ink-soft);
  line-height: 1.5;
}

.toc a::before {
  content: counter(toc) '.';
  color: var(--c-muted);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  min-width: 18px;
}

.toc a:hover,
.toc a.active {
  color: var(--c-primary);
}

.toc a.active {
  font-weight: 600;
}

/* ---------- Autoevaluación interactiva ---------- */

.check-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--sh-md);
}

.check-head {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.check-head h3 {
  font-size: 1.12rem;
  margin-bottom: 4px;
}

.check-sub {
  font-size: 0.87rem;
  color: var(--c-muted);
  margin: 0;
}

.check-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--c-primary-soft);
  color: var(--c-primary);
  flex-shrink: 0;
}

.check-badge svg {
  width: 21px;
  height: 21px;
}

.check-list {
  list-style: none;
  margin: 0;
  display: grid;
  gap: 8px;
}

.check-list li {
  margin: 0;
}

.check {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--t), border-color var(--t);
}

.check:hover {
  background: var(--c-primary-tint);
  border-color: var(--c-border);
}

.check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.check-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 2px solid var(--c-border-strong);
  background: var(--c-white);
  flex-shrink: 0;
  margin-top: 2px;
  transition: background var(--t), border-color var(--t);
}

.check-box svg {
  width: 14px;
  height: 14px;
  color: #fff;
  opacity: 0;
  transition: opacity var(--t);
}

.check input:checked + .check-box {
  background: var(--c-wa);
  border-color: var(--c-wa);
}

.check input:checked + .check-box svg {
  opacity: 1;
}

.check input:focus-visible + .check-box {
  outline: 3px solid var(--c-gold);
  outline-offset: 2px;
}

.check-text {
  font-size: 0.94rem;
  line-height: 1.55;
}

.check input:checked ~ .check-text {
  font-weight: 500;
  color: var(--c-ink);
}

.check-result {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: var(--c-sky);
  border: 1px solid var(--c-border);
  transition: background var(--t), border-color var(--t);
}

.check-result[data-state='some'] {
  background: var(--c-gold-soft);
  border-color: rgba(224, 165, 44, 0.36);
}

.check-result[data-state='many'] {
  background: rgba(18, 140, 74, 0.08);
  border-color: rgba(18, 140, 74, 0.3);
}

.check-msg {
  font-size: 0.94rem;
  margin-bottom: 8px;
}

.check-count {
  font-size: 0.82rem;
  color: var(--c-muted);
  margin: 0;
}

.check-count strong {
  color: var(--c-primary);
}

.check-card .btn-row {
  margin-top: 20px;
}

.check-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.79rem;
  color: var(--c-muted);
  margin: 16px 0 0;
}

.check-note svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--c-primary);
}

/* ---------- Tarjetas compactas apiladas ---------- */

.stack {
  display: grid;
  gap: 16px;
}

.mini-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--sh-xs);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}

.mini-card:hover {
  transform: translateX(3px);
  box-shadow: var(--sh-sm);
  border-color: rgba(29, 78, 155, 0.2);
}

.mini-card .card-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  margin-bottom: 0;
}

.mini-card .card-icon svg {
  width: 21px;
  height: 21px;
}

.mini-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.mini-card p {
  font-size: 0.92rem;
  color: var(--c-muted);
  margin: 0;
}

/* ---------- Volver arriba ---------- */

.to-top {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 89;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  color: var(--c-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--t), transform var(--t), visibility var(--t), background var(--t), color var(--t);
}

.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
}

.to-top-ico {
  width: 18px;
  height: 18px;
  transform: rotate(90deg);
}

/* ---------- Animaciones ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1), transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-d1 {
  transition-delay: 0.1s;
}

.reveal-d2 {
  transition-delay: 0.2s;
}

.reveal-d3 {
  transition-delay: 0.3s;
}

/* ---------- 404 ---------- */

.error-page {
  min-height: 58vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 88px 22px;
}

.error-page .code {
  font-family: var(--font-head);
  font-size: clamp(4.5rem, 15vw, 8.5rem);
  font-weight: 600;
  line-height: 1;
  color: var(--c-primary);
  opacity: 0.2;
}

.error-page h1 {
  margin: 14px 0 16px;
}

.error-page p {
  color: var(--c-muted);
  max-width: 500px;
  margin-bottom: 30px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .blog-layout {
    grid-template-columns: minmax(0, 1fr) 296px;
    gap: 36px;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 36px;
  }

  .footer-col:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1024px) {
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline::before {
    display: none;
  }
}

@media (max-width: 980px) {
  :root {
    --header-h: 68px;
  }

  .hero {
    padding: 54px 0 72px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .hero-media,
  .hero-showcase {
    max-width: 540px;
  }

  .status-card {
    left: 0;
    top: 14px;
  }

  .hero-mini-card {
    right: 0;
    bottom: -22px;
  }

  .quickbar-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .quickbar-item + .quickbar-item {
    padding-left: 0;
    padding-top: 18px;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .section {
    padding: 68px 0;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid,
  .card-grid.cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    order: 2;
  }

  .testimonio {
    flex-basis: 50%;
    max-width: 50%;
  }

  .hero-title em {
    white-space: normal;
  }

  /* Navegación móvil */
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--c-white);
    border-bottom: 1px solid var(--c-border);
    box-shadow: var(--sh-md);
    padding: 16px 18px 28px;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t), transform var(--t), visibility var(--t);
  }

  .site-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  body.nav-open {
    overflow: hidden;
  }

  .site-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
  }

  .site-nav > ul > li {
    width: 100%;
  }

  .site-nav a {
    padding: 14px;
    font-size: 0.98rem;
    border-radius: var(--radius-sm);
  }

  .nav-toggle {
    display: flex;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--c-border);
    border-radius: 0;
    margin: 2px 0 8px 16px;
    padding: 4px 0 4px 10px;
    min-width: 0;
    display: none;
  }

  .has-children.open .dropdown {
    display: block;
  }

  .has-children:hover .dropdown {
    display: none;
  }

  .has-children.open:hover .dropdown {
    display: block;
  }

  .site-nav .btn {
    margin-top: 16px;
    width: 100%;
  }

  .btn-nav {
    width: 100%;
    height: auto;
    border-radius: var(--radius-pill);
    padding: 14px 20px;
  }

  .btn-nav-label {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }

  .cta-band {
    padding: 64px 0;
  }
}

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

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

  .grid-2,
  .grid-3,
  .grid-4,
  .steps-grid,
  .card-grid,
  .card-grid.cols-3,
  .promise-list,
  .timeline {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 42px 0 64px;
  }

  .hero-lead {
    font-size: 1.05rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .info-panel {
    padding: 28px 22px;
  }

  .book-card {
    flex-direction: column;
    gap: 20px;
  }

  .book-cover {
    width: 112px;
  }

  .testimonio {
    flex-basis: 100%;
    max-width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .callout {
    flex-direction: column;
    gap: 12px;
    padding: 22px;
  }

  .btn-row .btn {
    width: 100%;
  }

  .post-nav {
    flex-direction: column;
  }

  .post-nav .next {
    text-align: left;
  }

  .post-nav .next.btn {
    text-align: left;
  }

  .wa-tooltip {
    display: none;
  }

  .wa-float-wrap {
    right: 16px;
    bottom: 86px;
  }

  .wa-float {
    width: 54px;
    height: 54px;
  }

  .wa-float::before {
    display: none;
  }

  .wa-float svg {
    width: 28px;
    height: 28px;
  }

  .mobile-bar {
    display: flex;
  }

  body {
    padding-bottom: 82px;
  }

  .check-card {
    padding: 22px;
  }

  .toc {
    padding: 18px 20px;
    margin-bottom: 28px;
  }

  .to-top {
    display: none;
  }

  .mini-card {
    padding: 20px;
    gap: 15px;
  }

  .brand-sub {
    display: none;
  }

  .timeline-marker {
    box-shadow: 0 8px 18px rgba(29, 78, 155, 0.26);
  }
}

@media (max-width: 420px) {
  .container {
    padding: 0 16px;
  }

  .card,
  .info-panel,
  .sidebar-widget,
  .timeline-body {
    padding: 22px;
  }

  .status-card,
  .hero-mini-card {
    position: static;
    max-width: 100%;
    margin-top: 14px;
  }

  .hero-photo {
    border-width: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .wa-float-wrap,
  .mobile-bar,
  .cta-band,
  .carousel-controls {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
    padding-bottom: 0;
  }
}
