/* =============================================================
   Zory Garí — Más Vida con Salud
   1. Tokens
   ============================================================= */
:root {
  color-scheme: light;
  --bg:            oklch(97.5% 0.012 75);
  --bg-header:     oklch(99% 0.005 75);
  --bg-hero:       oklch(93% 0.025 40);
  --bg-panel:      oklch(95.5% 0.012 75);
  --paper:         oklch(99% 0.005 75);

  --rose:          oklch(83% 0.06 20);
  --rose-tint:     oklch(90% 0.05 20);
  --rose-deep:     oklch(65% 0.08 20);

  --aqua:          oklch(80% 0.07 175);
  --aqua-tint:     oklch(90% 0.03 175);
  --aqua-btn:      oklch(55% 0.07 175);
  --aqua-btn-hover:oklch(48% 0.08 175);
  --aqua-deep:     oklch(42% 0.07 175);

  --terracotta:    oklch(40% 0.05 60);
  --terracotta-dk: oklch(32% 0.05 60);
  --sand-tint:     oklch(93% 0.025 100);

  --footer-bg:     oklch(20% 0.015 60);
  --footer-line:   oklch(32% 0.015 60);
  --footer-text:   oklch(70% 0.015 60);
  --footer-text-2: oklch(85% 0.015 60);

  --ink:           oklch(24% 0.02 75);
  --ink-soft:      oklch(32% 0.02 75);
  --ink-mute:      oklch(48% 0.02 60);
  --ink-faint:     oklch(55% 0.02 60);
  --line:          oklch(90% 0.015 75);
  --line-soft:     oklch(93% 0.012 75);

  --sale:          oklch(58% 0.16 30);
  --star:          oklch(65% 0.1 55);

  --serif: "Lora", ui-serif, Georgia, serif;
  --sans:  "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --container: 1280px;
  --radius-card: 22px;
  --radius-pill: 999px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--serif); text-wrap: balance; line-height: 1.15; font-weight: 500; color: var(--ink); }
ul, ol { list-style: none; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--rose-tint); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--aqua-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .7rem 1.2rem; background: var(--ink); color: var(--paper);
  border-radius: 8px; font-weight: 500; font-size: .9rem;
  transition: top .25s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.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;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--aqua-deep); margin-bottom: 14px; font-weight: 500;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rose-deep); flex-shrink: 0; }

[data-reveal] {
  opacity: 0; transform: translateY(32px);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   4. Typography
   ============================================================= */
h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
.section-kicker {
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--aqua-deep); margin-bottom: 14px; font-weight: 500;
}
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head p { font-size: 16px; line-height: 1.7; color: var(--ink-mute); margin-top: 16px; }
.lede { font-size: 17px; line-height: 1.75; color: var(--ink-soft); }

/* =============================================================
   5. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radius-pill); padding: 15px 30px; font-size: 15px; font-weight: 500;
  font-family: var(--sans); cursor: pointer; white-space: nowrap;
  transition: transform .35s var(--ease-soft), background .25s var(--ease-out), box-shadow .35s var(--ease-soft), color .2s;
  border: 1.5px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); transition-duration: .1s; }
.btn-primary { background: var(--terracotta); color: var(--paper); }
.btn-primary:hover { background: var(--terracotta-dk); box-shadow: 0 18px 32px -16px oklch(40% 0.05 60 / 0.5); }
.btn-outline { background: transparent; border-color: oklch(55% 0.03 60); color: var(--ink-soft); }
.btn-outline:hover { background: var(--paper); }
.btn-aqua { background: var(--aqua-btn); color: var(--paper); }
.btn-aqua:hover { background: var(--aqua-btn-hover); box-shadow: 0 18px 32px -16px oklch(50% 0.07 175 / 0.45); }
.btn-light { background: var(--paper); color: var(--terracotta-dk); }
.btn-light:hover { background: var(--sand-tint); }
.btn-rose { background: var(--rose-deep); color: var(--paper); }
.btn-rose:hover { background: oklch(58% 0.09 20); box-shadow: 0 18px 32px -16px oklch(65% 0.08 20 / 0.5); }
.btn-sm { padding: 9px 18px; font-size: 12.5px; border-radius: var(--radius-pill); }
.btn-block { width: 100%; }

/* =============================================================
   6. Header / Nav
   ============================================================= */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; background: var(--bg-header);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
}
.brand { display: flex; align-items: center; gap: 8px; min-width: 0; flex-shrink: 1; }
.brand svg { flex-shrink: 0; }
.brand-text { font-family: var(--serif); line-height: 1; min-width: 0; overflow: hidden; }
.brand-name { font-weight: 600; font-size: 19px; white-space: nowrap; }
.brand-sub {
  font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-mute); font-family: var(--sans); margin-top: 5px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 420px) {
  .brand-sub { display: none; }
}
.main-nav {
  display: none; align-items: center; gap: 30px; font-size: 15px; color: var(--ink-soft);
}
.main-nav a { position: relative; padding: 4px 0; white-space: nowrap; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease-out);
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.main-nav a[aria-current="page"] { color: var(--aqua-deep); }
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.icon-btn {
  display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-soft);
  padding: 8px; border-radius: var(--radius-pill); transition: color .2s;
}
.icon-btn:hover { color: var(--aqua-deep); }
.header-social { display: none; align-items: center; gap: 4px; }
.hamburger {
  display: flex; flex-direction: column; gap: 5px; padding: 10px; z-index: 101;
}
.hamburger span { width: 20px; height: 2px; background: var(--ink); transition: transform .3s, opacity .3s; }
.nav-mobile {
  position: fixed; inset: 0; z-index: 99; background: var(--bg-header);
  display: flex; flex-direction: column; padding: 100px 32px 40px;
  gap: 24px; font-family: var(--serif); font-size: 26px;
  clip-path: inset(0 0 100% 0); transition: clip-path .55s var(--ease-soft);
}
.nav-mobile[data-open="true"] { clip-path: inset(0); }
.nav-mobile a { color: var(--ink-soft); }
.nav-mobile-social { display: flex; gap: 24px; margin-top: auto; }
.nav-mobile-social a { color: var(--ink-mute); transition: color .2s; }
.nav-mobile-social a:hover { color: var(--aqua-deep); }

@media (min-width: 960px) {
  .site-header { padding: 18px 40px; }
  .main-nav { display: flex; }
  .hamburger { display: none; }
  .header-actions { gap: 16px; }
  .header-social { display: flex; gap: 6px; }
}
@media (min-width: 1280px) { .site-header { padding: 20px 56px; } }

/* =============================================================
   7. Hero
   ============================================================= */
.hero {
  padding: 56px 20px; background: var(--bg-hero);
}
.hero-inner {
  display: grid; gap: 40px; max-width: var(--container); margin-inline: auto;
}
.hero-copy { max-width: 560px; }
.hero-copy h1 { color: oklch(22% 0.02 60); margin-bottom: 22px; }
.hero-copy .lede { color: oklch(38% 0.02 60); margin-bottom: 32px; max-width: 480px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-figure {
  position: relative; width: 100%; aspect-ratio: 4/3; border-radius: 28px; overflow: hidden;
  background: linear-gradient(150deg, var(--rose) 0%, var(--aqua) 100%);
}
.hero-figure .placeholder-mark {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
@media (min-width: 960px) {
  .hero { padding: 90px 56px; }
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 28px; }
  .hero-figure { aspect-ratio: auto; height: 480px; }
}

/* Full-bleed video hero with overlaid text (Break Free) */
.hero-video {
  position: relative; overflow: hidden; display: flex; align-items: flex-end;
  min-height: 62vh; background: oklch(15% 0.02 60);
}
.hero-video::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, oklch(20% 0.02 60 / 0.1) 0%, oklch(12% 0.02 60 / 0.72) 100%);
}
.hero-video-media {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 100%; height: 56.25vw; min-height: 100%; min-width: 177.78vh;
  pointer-events: none;
}
.hero-video-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo-content { position: relative; z-index: 2; width: 100%; max-width: var(--container); margin-inline: auto; padding: 36px 20px; }
.hero-photo-eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: oklch(88% 0.04 175); margin-bottom: 14px;
}
.hero-photo-title {
  font-size: clamp(2rem, 7.5vw, 3.6rem); line-height: 1.1; text-transform: uppercase;
  color: oklch(99% 0.005 75); margin-bottom: 26px; max-width: 680px;
  text-shadow: 0 4px 28px oklch(10% 0.02 60 / 0.4);
}
@media (min-width: 960px) {
  .hero-video { min-height: 70vh; }
  .hero-photo-content { padding: 56px 56px 64px; }
}

/* =============================================================
   8. Sections generic
   ============================================================= */
.section { padding: 64px 20px; }
.section-narrow { max-width: 1280px; margin-inline: auto; }
.section-panel { background: var(--bg-panel); }
@media (min-width: 960px) { .section { padding: 100px 56px; } }

/* Story layout: photo + text side by side */
.story-layout { display: grid; gap: 32px; }
.story-figure {
  position: relative; width: 100%; aspect-ratio: 4/3; border-radius: 28px; overflow: hidden;
  background: linear-gradient(150deg, var(--rose) 0%, var(--aqua) 100%);
}
.story-copy .prose { margin-top: 20px; }
@media (min-width: 960px) {
  .story-layout { grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: 48px; }
  .story-figure { aspect-ratio: auto; height: 520px; }
}

/* Pillars (El Puente) */
.pillars { display: grid; gap: 24px; }
.pillar-card {
  background: var(--paper); border-radius: 24px; padding: 34px 28px;
  transition: transform .3s var(--ease-soft), box-shadow .3s var(--ease-soft);
}
.pillar-card.tint-aqua { background: oklch(98% 0.008 175); }
.pillar-card.tint-rose { background: oklch(98% 0.008 20); }
.pillar-card:hover { transform: translateY(-6px); box-shadow: 0 24px 44px -22px oklch(40% 0.05 60 / 0.3); }
.pillar-icon {
  width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.pillar-icon.aqua { background: oklch(90% 0.03 175); }
.pillar-icon.rose { background: oklch(90% 0.05 20); }
.pillar-card h3 { margin-bottom: 10px; }
.pillar-card p { font-size: 14.5px; line-height: 1.7; color: var(--ink-mute); }
@media (min-width: 780px) { .pillars { grid-template-columns: repeat(3, 1fr); } }

/* Pilares strip */
.pilares-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pilar-item { text-align: center; padding: 8px; }
.pilar-badge {
  width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.pilar-item span { font-size: 14px; font-weight: 500; }
@media (min-width: 640px) { .pilares-strip { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .pilares-strip { grid-template-columns: repeat(5, 1fr); } }

/* =============================================================
   9. Product cards & grids
   ============================================================= */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
@media (min-width: 1280px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 28px; } }

.product-card {
  background: var(--paper); border-radius: var(--radius-card); overflow: hidden;
  transition: box-shadow .35s var(--ease-soft), transform .35s var(--ease-soft);
  display: flex; flex-direction: column; position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -24px oklch(30% 0.02 60 / 0.35); }
.product-cover {
  width: 100%; aspect-ratio: 4/5; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; padding: 18px; text-align: center;
}
.product-cover .cover-title {
  font-family: var(--serif); font-weight: 600; color: white; font-size: 15px; line-height: 1.35;
  text-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.product-cover img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; padding: 9%;
  transition: transform .5s var(--ease-soft);
}
.product-card:hover .product-cover img { transform: scale(1.04); }
.product-cover .cover-badge {
  position: absolute; top: 10px; left: 10px; font-size: 10.5px; font-weight: 600; letter-spacing: .04em;
  background: rgba(255,255,255,.85); color: var(--ink); padding: 4px 10px; border-radius: var(--radius-pill);
}
.cover-cursos           { background: linear-gradient(155deg, oklch(70% 0.08 175), oklch(45% 0.07 175)); }
.cover-salud-fisica     { background: linear-gradient(155deg, oklch(78% 0.06 100), oklch(50% 0.07 60)); }
.cover-salud-emocional  { background: linear-gradient(155deg, oklch(83% 0.06 20), oklch(55% 0.09 20)); }
.cover-salud-espiritual { background: linear-gradient(155deg, oklch(75% 0.05 260), oklch(38% 0.05 270)); }
.cover-infantil         { background: linear-gradient(155deg, oklch(85% 0.05 60), oklch(70% 0.07 175)); }
.cover-outlet           { background: linear-gradient(155deg, oklch(75% 0.01 75), oklch(52% 0.01 75)); }
.badge-sale { background: var(--sale); color: white; }
.badge-outofstock { background: oklch(30% 0.02 60 / .85); color: white; }
.product-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card h3 { font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.product-tagline { font-size: 12.5px; color: var(--ink-mute); line-height: 1.5; flex: 1; }
.product-langs { font-size: 11px; color: var(--ink-faint); }
.product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; gap: 8px; }
.product-price { font-family: var(--serif); font-weight: 600; font-size: 17px; }
.product-price .was { font-family: var(--sans); font-weight: 400; font-size: 12px; color: var(--ink-faint); text-decoration: line-through; margin-right: 4px; }
.snipcart-add-item { background: var(--aqua-btn); border-radius: var(--radius-pill); padding: 8px 14px; color: white; font-size: 12px; transition: background .2s; flex-shrink: 0; }
.snipcart-add-item:hover { background: var(--aqua-btn-hover); }
.snipcart-add-item:disabled { background: oklch(80% 0.01 60); cursor: not-allowed; }

/* Category chips */
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.chip {
  padding: 9px 18px; border-radius: var(--radius-pill); font-size: 13.5px; background: var(--paper);
  border: 1px solid var(--line); color: var(--ink-soft); transition: all .2s;
}
.chip:hover { border-color: var(--aqua-deep); color: var(--aqua-deep); }
.chip[aria-current="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* =============================================================
   10. CTA banner
   ============================================================= */
.cta-banner {
  border-radius: 28px; overflow: hidden; background: var(--terracotta);
  display: grid; margin-inline: 20px;
}
.cta-banner-copy { padding: 48px 32px; color: oklch(97% 0.01 60); }
.cta-banner-copy .eyebrow { color: oklch(85% 0.05 20); }
.cta-banner-copy h2 { color: white; margin-bottom: 16px; }
.cta-banner-copy p { color: oklch(90% 0.015 60); margin-bottom: 28px; line-height: 1.7; max-width: 440px; }
.cta-banner-figure {
  min-height: 260px; background: linear-gradient(155deg, oklch(55% 0.07 175), oklch(40% 0.05 60));
  position: relative;
}
@media (min-width: 960px) {
  .cta-banner { grid-template-columns: 1fr 1fr; margin-inline: 56px; align-items: stretch; }
  .cta-banner-copy { padding: 72px 60px; }
  .cta-banner-figure { min-height: 100%; max-height: 520px; }
}
.btn-ghost-light {
  background: transparent; color: oklch(97% 0.01 60);
  border: 1px solid oklch(97% 0.01 60 / 0.45);
}
.btn-ghost-light:hover { background: oklch(97% 0.01 60 / 0.14); border-color: oklch(97% 0.01 60 / 0.75); }

/* Rutas de entrada (home) */
.rutas-grid { display: grid; gap: 20px; }
@media (min-width: 700px) { .rutas-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .rutas-grid { grid-template-columns: repeat(4, 1fr); } }
.ruta-card {
  display: flex; flex-direction: column; background: var(--paper);
  border-radius: 22px; padding: 30px 26px 26px; position: relative;
  border: 1px solid oklch(88% 0.01 75);
  transition: transform .3s var(--ease-soft), box-shadow .3s var(--ease-soft), border-color .3s var(--ease-soft);
}
.ruta-card:hover { transform: translateY(-6px); box-shadow: 0 26px 46px -24px oklch(40% 0.05 60 / 0.34); border-color: var(--aqua-deep); }
.ruta-num {
  font-family: var(--serif); font-size: 13px; font-weight: 600; letter-spacing: .1em;
  color: var(--aqua-deep); margin-bottom: 14px;
}
.ruta-card h3 { font-size: 17px; line-height: 1.3; margin-bottom: 10px; }
.ruta-card p { font-size: 14px; line-height: 1.65; color: var(--ink-mute); flex: 1; margin-bottom: 18px; }
.ruta-more { font-size: 13.5px; font-weight: 600; color: var(--aqua-deep); }
.ruta-card-featured { background: oklch(97% 0.014 175); border-color: var(--aqua-deep); }
.ruta-card-featured .ruta-num, .ruta-card-featured .ruta-more { color: var(--rose-deep); }

/* Cierre del home */
.cierre-card {
  background: oklch(97% 0.014 175); border-radius: 28px; padding: 52px 32px;
  text-align: center; max-width: 720px; margin-inline: auto;
}
.cierre-card p { color: var(--ink-soft); line-height: 1.75; margin: 16px auto 28px; max-width: 520px; }
.cierre-partner {
  margin-top: 34px; padding-top: 26px; border-top: 1px solid oklch(88% 0.02 175);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.cierre-partner span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.cierre-partner img { height: 38px; width: auto; }

/* Pilares en detalle (pagina del programa) */
.pilares-detalle { display: grid; gap: 26px; max-width: 820px; margin-inline: auto; }
.pilar-detalle { display: flex; gap: 22px; align-items: flex-start; }
.pilar-detalle-num {
  font-family: var(--serif); font-size: 26px; font-weight: 600;
  color: var(--aqua-deep); opacity: .45; line-height: 1; flex-shrink: 0; min-width: 44px;
}
.pilar-detalle h3 { font-size: 17px; margin-bottom: 8px; }
.pilar-detalle p { font-size: 14.5px; line-height: 1.7; color: var(--ink-mute); }

/* Materiales incluidos */
.recursos-grid { display: grid; gap: 22px; max-width: 940px; margin-inline: auto; }
@media (min-width: 700px) { .recursos-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 44px; } }
.recurso-item { display: flex; gap: 13px; align-items: flex-start; }
.recurso-check { flex-shrink: 0; margin-top: 3px; }
.recurso-item h4 { font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.recurso-item p { font-size: 13.5px; line-height: 1.6; color: var(--ink-mute); }

/* Preguntas frecuentes */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--paper); border-radius: 16px; padding: 4px 24px;
  transition: box-shadow .3s var(--ease-soft);
}
.faq-item[open] { box-shadow: 0 18px 36px -26px oklch(40% 0.05 60 / 0.35); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 30px 18px 0; position: relative;
  font-weight: 600; font-size: 15.5px; line-height: 1.45;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--aqua-deep); border-bottom: 2px solid var(--aqua-deep);
  transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease-soft);
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-item p { font-size: 14.5px; line-height: 1.75; color: var(--ink-mute); padding: 0 0 20px; }

/* Banner de consentimiento de cookies */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: var(--paper); border-top: 1px solid oklch(88% 0.012 60);
  box-shadow: 0 -12px 40px -18px oklch(30% 0.02 60 / 0.35);
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(110%); transition: transform .35s var(--ease-soft);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner-inner {
  max-width: 1100px; margin-inline: auto;
  display: flex; flex-direction: column; gap: 16px; align-items: flex-start;
}
.cookie-banner-text strong { display: block; font-size: 14.5px; margin-bottom: 4px; }
.cookie-banner-text p { font-size: 13px; line-height: 1.6; color: var(--ink-mute); }
.cookie-banner-text a { color: var(--aqua-deep); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; }
@media (min-width: 780px) {
  .cookie-banner-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; }
  .cookie-banner-actions { align-items: center; }
}

/* Franja de cifras */
.section-stats { padding: 0 20px; margin: -28px auto 0; max-width: 1100px; position: relative; z-index: 2; }
.stats-strip {
  background: var(--paper); border-radius: 22px; padding: 30px 24px;
  box-shadow: 0 26px 50px -30px oklch(40% 0.05 60 / 0.4);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 16px;
}
@media (min-width: 820px) { .stats-strip { grid-template-columns: repeat(4, 1fr); padding: 36px 32px; } }
.stat-item { text-align: center; display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-family: var(--serif); font-size: 36px; font-weight: 600; color: var(--aqua-deep); line-height: 1; }
.stat-label { font-size: 12.5px; color: var(--ink-mute); line-height: 1.45; }

/* Pilares en lista completa */
.pilares-full { display: grid; gap: 18px; max-width: 820px; margin-inline: auto; }
.pilar-full {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--paper); border-radius: 20px; padding: 24px 26px;
  transition: transform .3s var(--ease-soft), box-shadow .3s var(--ease-soft);
}
.pilar-full:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -24px oklch(40% 0.05 60 / 0.32); }
.pilar-full .pilar-badge { flex-shrink: 0; margin: 0; }
.pilar-full h3 { font-size: 16.5px; margin-bottom: 6px; }
.pilar-full p { font-size: 14px; line-height: 1.6; color: var(--ink-mute); }

/* Beneficios */
.bene-grid { display: grid; gap: 22px; max-width: 900px; margin-inline: auto; }
@media (min-width: 700px) { .bene-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 40px; } }
.bene-item { display: flex; gap: 14px; align-items: flex-start; }
.bene-check { flex-shrink: 0; margin-top: 3px; }
.bene-item h4 { font-size: 15.5px; font-weight: 600; margin-bottom: 4px; }
.bene-item p { font-size: 14px; line-height: 1.6; color: var(--ink-mute); }

/* Variantes de story-layout */
.story-figure-contain {
  background: transparent; border-radius: 0; overflow: visible;
  aspect-ratio: auto; display: flex; align-items: center; justify-content: center;
}
.story-figure-contain img { width: 100%; max-width: 420px; height: auto; object-fit: contain; }
@media (min-width: 960px) {
  .story-figure-contain { height: auto; }
  .story-layout-reverse { grid-template-columns: 1.1fr 0.9fr; }
  .story-layout-reverse .story-copy { order: 1; }
  .story-layout-reverse .story-figure { order: 2; }
}

/* =============================================================
   11. Footer
   ============================================================= */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 56px 20px 32px; }
/* El contenido del pie se alinea con el del resto de la web:
   mismo ancho maximo (1280px) y mismo margen lateral que .section */
.footer-grid, .footer-bottom { max-width: 1280px; margin-inline: auto; }
.footer-grid { display: grid; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid var(--footer-line); }
.footer-brand p { font-size: 13.5px; line-height: 1.7; color: var(--footer-text); max-width: 320px; margin-top: 14px; }
.footer-col h4 { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--footer-text-2); margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; }
.footer-col a { color: var(--footer-text); transition: color .2s; }
.footer-col a:hover { color: var(--footer-text-2); }
/* "Preferencias de cookies" es un boton (reabre el banner), pero debe verse
   y comportarse como el resto de enlaces del pie. */
.footer-link-btn {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: var(--footer-text); transition: color .2s;
  text-align: inherit;
}
.footer-link-btn:hover { color: var(--footer-text-2); }
.footer-bottom { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; font-size: 12.5px; align-items: center; text-align: center; }
.footer-bottom .social { display: flex; gap: 18px; }
.footer-credits { font-size: 11.5px; color: var(--footer-line); }
.footer-credits a { color: var(--footer-text); }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  /* Mismo margen lateral que .section para que el pie alinee con la web */
  .site-footer { padding: 72px 56px 40px; }
  /* 3 columnas iguales, cada una rematada en su sitio para que el bloque
     ocupe exactamente el mismo ancho que la linea de abajo:
       marca      -> pegada al extremo izquierdo
       Break Free -> centrada en el medio del pie
       Legal      -> pegada al extremo derecho
     Asi la primera y la ultima coinciden con los extremos de la linea, igual
     que hacen el "© 2026" y "WhatsApp" en la fila inferior. */
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 64px; }
  .footer-col-mid { text-align: center; }
  .footer-col-end { text-align: right; }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* =============================================================
   12. Forms
   ============================================================= */
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-field label { font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.form-field input, .form-field textarea, .form-field select {
  padding: 13px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper);
  font-size: 15px; transition: border-color .2s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--aqua-deep); }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 12.5px; color: var(--ink-faint); margin-top: 10px; }
.form-success {
  display: none; background: var(--aqua-tint); border-radius: 16px; padding: 20px 22px; margin-top: 18px;
  font-size: 14.5px; color: var(--aqua-deep);
}
.form-success.is-visible { display: block; }
/* Aviso cuando el envio falla. Se crea desde main.js y solo aparece si tiene
   texto, para no dejar un hueco vacio bajo el boton. */
.form-error {
  font-size: 14px; line-height: 1.6; color: var(--sale);
  background: oklch(95% 0.03 30); border-radius: 14px;
  padding: 14px 16px; margin-top: 16px;
}
.form-error:empty { display: none; }
.form-check { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--ink-mute); margin: 4px 0 22px; }
.form-check input { margin-top: 3px; flex-shrink: 0; }
.form-check a { color: var(--aqua-deep); text-decoration: underline; }
/* Variante compacta de casilla de consentimiento (para formularios estrechos) */
.form-check-sm { font-size: 11.5px; line-height: 1.5; margin: 10px 0 0; width: 100%; }

/* Agenda tu Visita: intro + photo + form, 3 columns */
.agenda-section { background: var(--bg-panel); }
.agenda-grid { display: grid; gap: 32px; }
.agenda-intro { background: var(--paper); padding: 40px 32px; border-radius: 20px; }
.agenda-intro h2 { margin-bottom: 16px; }
.agenda-intro p { color: var(--ink-mute); line-height: 1.6; }
.agenda-photo { position: relative; border-radius: 20px; overflow: hidden; min-height: 320px; }
.agenda-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.agenda-form-card { background: var(--paper); padding: 40px 32px; border-radius: 20px; border: 1px solid var(--line); }
.agenda-form-card h3 {
  font-size: 15px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 24px;
}
@media (min-width: 992px) {
  .agenda-grid { grid-template-columns: 0.85fr 0.75fr 1fr; align-items: stretch; }
  .agenda-photo { margin: 0 -28px; z-index: 2; box-shadow: 0 20px 50px -20px oklch(20% 0.02 60 / 0.35); }
  .agenda-intro, .agenda-form-card { display: flex; flex-direction: column; justify-content: center; }
}

/* =============================================================
   13. Page hero (interior pages)
   ============================================================= */
.page-hero { padding: 56px 20px 40px; background: var(--bg-hero); text-align: center; }
.page-hero .section-kicker { justify-content: center; display: inline-flex; }
.page-hero h1 { max-width: 720px; margin-inline: auto; }
.page-hero p { max-width: 560px; margin: 16px auto 0; color: oklch(38% 0.02 60); }
.breadcrumb { font-size: 12.5px; color: var(--ink-faint); margin-bottom: 16px; }
.breadcrumb a { color: var(--ink-mute); }
@media (min-width: 960px) { .page-hero { padding: 72px 56px 48px; } }

/* Legal / long-form content */
.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { margin-top: 40px; margin-bottom: 14px; font-size: 1.3rem; scroll-margin-top: 90px; }
.prose h3 { margin-top: 28px; margin-bottom: 10px; font-size: 1.06rem; color: var(--ink); }
.prose p, .prose li { color: var(--ink-soft); line-height: 1.75; margin-bottom: 14px; }
.prose ul { list-style: disc; padding-left: 22px; }
.prose ul li { list-style: disc; }
/* Enlaces dentro del texto. Se excluyen los botones (.btn): al ser un enlace
   con clase, esta regla les ganaba en especificidad y les pintaba el texto de
   verde oscuro y subrayado en vez de blanco. */
.prose a:not(.btn) { color: var(--aqua-deep); text-decoration: underline; text-underline-offset: 3px; }
.prose a:not(.btn):hover { color: var(--terracotta); }

/* Article furniture: meta, resumen, indice, CTA, aviso y ficha de autora */
.article-meta {
  font-size: 13px; color: var(--ink-faint); margin-top: 14px;
  padding-bottom: 18px; border-bottom: 1px solid var(--line-soft);
}
.article-meta a { color: var(--ink-mute); text-decoration: underline; text-underline-offset: 2px; }

.key-points {
  background: var(--aqua-tint); border-radius: 18px;
  padding: 24px 26px; margin: 32px 0;
}
.key-points h2 {
  font-size: 13px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--aqua-deep); margin-bottom: 14px; font-family: var(--sans); font-weight: 600;
}
.key-points ul { list-style: disc; padding-left: 20px; margin: 0; }
.key-points li {
  list-style: disc; color: var(--ink-soft); font-size: 14.5px;
  line-height: 1.65; margin-bottom: 9px;
}
.key-points li:last-child { margin-bottom: 0; }

.article-toc {
  border: 1px solid var(--line); border-radius: 18px;
  padding: 22px 26px; margin: 32px 0;
}
.article-toc-title {
  font-size: 12px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 600; margin-bottom: 12px;
}
.article-toc ol { list-style: decimal; padding-left: 20px; margin: 0; }
.article-toc li { color: var(--ink-faint); font-size: 14px; margin-bottom: 7px; }
.article-toc a { color: var(--ink-soft); }
.article-toc a:hover { color: var(--aqua-deep); text-decoration: underline; }

.article-cta {
  background: var(--bg-hero); border-radius: var(--radius-card);
  padding: 34px 30px; margin: 44px 0;
}
.article-cta h2 { font-size: 1.35rem; }
.article-cta p { color: var(--ink-soft); line-height: 1.7; margin-bottom: 14px; font-size: 15px; }
.article-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.article-faq { margin: 44px 0; }
.article-faq h2 { font-size: 1.35rem; margin-bottom: 20px; }

.article-disclaimer {
  font-size: 12.5px; color: var(--ink-faint); line-height: 1.65;
  border-left: 3px solid var(--line); padding-left: 14px; margin: 32px 0;
}

.author-box {
  display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap;
  background: var(--bg-panel); border-radius: 18px; padding: 24px 26px; margin-top: 36px;
}
.author-box img {
  width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.author-box > div { flex: 1; min-width: 220px; }
.author-box-name { font-family: var(--serif); font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.author-box p { font-size: 14px; color: var(--ink-mute); line-height: 1.7; }
.author-box a { color: var(--aqua-deep); font-weight: 600; }

/* =============================================================
   14. Testimonials
   ============================================================= */
.testimonial-grid { display: grid; gap: 20px; }
.testimonial-card { background: var(--paper); border-radius: 20px; padding: 28px 26px; }
.testimonial-card p { font-size: 14.5px; line-height: 1.7; color: var(--ink-soft); margin-bottom: 16px; }
.testimonial-name { font-size: 13.5px; font-weight: 600; }
.testimonial-loc { font-size: 12px; color: var(--ink-faint); }
@media (min-width: 780px) {
  /* auto-fit: se adapta al numero real de testimonios y los centra */
  .testimonial-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    max-width: 1000px; margin-inline: auto;
  }
}

/* =============================================================
   15. Placeholder art (hero / avatar / covers)
   ============================================================= */
.avatar-placeholder {
  width: 120px; height: 120px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(150deg, var(--rose) 0%, var(--aqua) 100%);
  display: flex; align-items: center; justify-content: center;
  color: white; font-family: var(--serif); font-size: 40px; font-weight: 600;
}
.mentoria-figure {
  border-radius: 28px; overflow: hidden; aspect-ratio: 4/3;
  background: linear-gradient(160deg, var(--aqua) 0%, var(--terracotta) 100%);
  position: relative;
}

/* =============================================================
   16. Booking / mentoria
   ============================================================= */
.mentoria-grid { display: grid; gap: 40px; align-items: center; }
.mentoria-perks { display: grid; gap: 16px; margin: 28px 0; }
.mentoria-perk { display: flex; gap: 14px; align-items: flex-start; }
.mentoria-perk-icon {
  width: 38px; height: 38px; border-radius: 50%; background: var(--aqua-tint); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.mentoria-perk h4 { font-family: var(--sans); font-size: 14.5px; font-weight: 600; margin-bottom: 3px; }
.mentoria-perk p { font-size: 13.5px; color: var(--ink-mute); }
.calendly-frame {
  border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--paper);
  min-height: 620px;
}
@media (min-width: 960px) { .mentoria-grid { grid-template-columns: 1fr 1fr; } }

/* =============================================================
   17. Intebooks affiliate
   ============================================================= */
.intebooks-code {
  display: inline-block; background: var(--paper); border: 1px dashed var(--aqua-deep);
  padding: 8px 18px; border-radius: var(--radius-pill); font-family: var(--serif); font-weight: 600;
  color: var(--aqua-deep); margin: 14px 0 0; letter-spacing: .04em;
}
.intebooks-video { max-width: 860px; margin: 0 auto; }
.intebooks-stack { position: relative; width: 100%; min-height: 320px; }
.intebooks-stack img {
  position: absolute; width: 44%; aspect-ratio: 2/3; object-fit: cover; border-radius: 12px;
  border: 4px solid var(--paper); box-shadow: 0 20px 40px -16px oklch(20% 0.02 60 / 0.35);
}
.intebooks-stack img:nth-child(1) { top: 4%; left: 2%; transform: rotate(-8deg); z-index: 1; }
.intebooks-stack img:nth-child(2) { top: 9%; left: 28%; transform: rotate(3deg); z-index: 3; }
.intebooks-stack img:nth-child(3) { top: 30%; left: 54%; transform: rotate(-5deg); z-index: 2; }
.intebooks-stack img:nth-child(4) { top: 34%; left: 12%; transform: rotate(8deg); z-index: 1; }
@media (min-width: 960px) { .intebooks-stack { min-height: 480px; } }

/* =============================================================
   17b. Author bio (Sobre Mí)
   ============================================================= */
/* Sobre mi: foto "tipo periodico" con el texto envolviendola.
   En movil la foto va arriba, a ancho completo, y el texto debajo. */
.author-prose { max-width: 900px; }
.author-prose::after { content: ""; display: block; clear: both; }
.author-figure { margin: 0 0 24px; }
.author-photo { width: 100%; border-radius: 24px; object-fit: cover; aspect-ratio: 4/5; display: block; }
.author-figure figcaption {
  font-size: 12.5px; line-height: 1.5; color: var(--ink-faint);
  margin-top: 10px; padding-left: 2px;
}
.author-actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

@media (min-width: 780px) {
  /* La foto flota a la izquierda y los parrafos la rodean. */
  .author-figure { float: left; width: 380px; margin: 6px 36px 22px 0; }
  /* Los titulos, la lista y los botones nunca se colocan al lado de la foto:
     los marcadores de la lista se solaparian con ella y los titulos quedarian
     partidos en una columna demasiado estrecha. */
  .author-prose h2,
  .author-prose ul,
  .author-actions { clear: left; }
}

/* =============================================================
   17c. Blog
   ============================================================= */
.blog-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.blog-card {
  background: var(--paper); border-radius: var(--radius-card); overflow: hidden;
  transition: transform .35s var(--ease-soft), box-shadow .35s var(--ease-soft);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -24px oklch(30% 0.02 60 / .35); }
.blog-card-img { display: block; aspect-ratio: 16/10; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-soft); }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 20px 22px 24px; }
.blog-card-cats { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--aqua-deep); margin-bottom: 8px; font-weight: 600; }
.blog-card h3 { font-size: 17px; margin-bottom: 10px; line-height: 1.35; }
.blog-card h3 a { transition: color .2s; }
.blog-card h3 a:hover { color: var(--aqua-deep); }
.blog-card p { font-size: 13.5px; color: var(--ink-mute); line-height: 1.6; margin-bottom: 14px; }
.blog-card-more { font-size: 13px; font-weight: 600; color: var(--aqua-deep); }

/* =============================================================
   18. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .avatar-placeholder, .mentoria-figure { animation: none; }
}

/* =============================================================
   19. Print
   ============================================================= */
@media print {
  .site-header, .site-footer, .snipcart-add-item { display: none; }
}
