/* ============================================================
   SENDASTRAL — Sitio público
   ============================================================ */

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center;
  padding-block: var(--sp-4);
  transition: background var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), padding var(--t-base) var(--ease);
}
.site-header.scrolled {
  background: rgba(250, 249, 247, .82);
  backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 var(--c-line);
  padding-block: var(--sp-3);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); }

.brand { display: inline-flex; align-items: baseline; gap: .5ch; font-family: var(--font-display); }
.brand-mark { font-size: 1.7rem; font-weight: 500; color: var(--c-purple); letter-spacing: .22em; text-transform: uppercase; }
.brand-mark .dot { color: var(--c-gold); }

.nav { display: flex; align-items: center; gap: var(--sp-6); }
.nav a { font-size: var(--fs-300); letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: var(--c-ink); position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px; background: var(--c-purple-soft); transition: width var(--t-base) var(--ease); }
.nav a:hover { color: var(--c-purple); }
.nav a:hover::after { width: 100%; }

.nav-cta {
  background: linear-gradient(135deg, var(--c-purple), var(--c-purple-soft));
  color: var(--c-warm-white) !important; padding: .6em 1.3em; border-radius: var(--r-pill);
  letter-spacing: .06em !important; box-shadow: var(--shadow-soft);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-base) var(--ease);
}
.nav-cta::after { display: none; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow), var(--shadow-soft); color: #fff !important; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--c-purple); margin: 5px 0; transition: transform var(--t-fast) var(--ease), opacity var(--t-fast); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    flex-direction: column; justify-content: center; gap: var(--sp-6);
    background: var(--c-purple-deep); padding: var(--sp-7);
    transform: translateX(100%); transition: transform var(--t-base) var(--ease);
  }
  .nav a { color: var(--c-text-invert); font-size: var(--fs-500); }
  body.nav-open .nav { transform: translateX(0); }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center;
  text-align: center; color: var(--c-text-invert); overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #3a3060 0%, var(--c-purple-deep) 55%, #221c39 100%);
}
.hero .starfield { position: absolute; inset: 0; z-index: 0; }
.hero-inner { position: relative; z-index: 2; padding: var(--sp-9) var(--sp-5); max-width: 880px; }

/* Título principal: el nombre del sitio, dorado y resaltante */
.hero-brand {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.8rem, 8.5vw, 5.6rem); line-height: 1;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-gold);
  text-shadow: 0 0 34px rgba(201,169,106,.4), 0 2px 12px rgba(0,0,0,.25);
  margin-bottom: var(--sp-5);
}
/* Frase bajo el título: blanca, más pequeña, en dos líneas */
.hero-sub {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.3rem, 3.2vw, 2.3rem); line-height: 1.3;
  color: var(--c-warm-white); letter-spacing: .01em;
  margin-bottom: var(--sp-6);
}
.hero-sub .accent { color: var(--c-gold); font-style: italic; }

.hero h1 { color: var(--c-warm-white); margin-bottom: var(--sp-4); }
.hero h1 .accent { color: var(--c-gold); font-style: italic; }
.hero .eyebrow { color: var(--c-silver); margin-bottom: var(--sp-5); }
.hero .lead { color: var(--c-silver); margin-inline: auto; max-width: 560px; margin-bottom: var(--sp-6); }
.hero-cta { display: flex; gap: var(--sp-4); justify-content: center; flex-wrap: wrap; }

/* ---------- Flecha "Descubre más" ---------- */
.scroll-down-wrap { display: flex; justify-content: center; padding-top: var(--sp-7); }
.scroll-down-wrap.is-hero { padding: 0; }
.scroll-down {
  appearance: none; -webkit-appearance: none;
  background: transparent; border: 0; padding: 0; margin: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: .7rem;
  font-family: var(--font-body); color: var(--c-purple-soft);
}
.scroll-down-label { font-size: var(--fs-300); letter-spacing: .24em; text-transform: uppercase; font-weight: 600; }
.scroll-down .chev {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid var(--c-line); color: var(--c-purple); background: transparent;
  animation: bob 1.7s var(--ease) infinite;
  transition: background var(--t-base) var(--ease), color var(--t-base), border-color var(--t-base), transform var(--t-fast), box-shadow var(--t-base);
}
.scroll-down:hover .chev { background: var(--c-purple); color: #fff; border-color: var(--c-purple); box-shadow: var(--shadow-glow); }
@keyframes bob { 0%, 100% { transform: translateY(-4px); } 50% { transform: translateY(5px); } }

/* variante sobre el hero (fondo oscuro) — dorada, integrada al cielo */
.scroll-down--hero { position: absolute; bottom: var(--sp-6); left: 50%; transform: translateX(-50%); z-index: 3; }
.scroll-down--hero .scroll-down-label { color: var(--c-gold); }
.scroll-down--hero .chev {
  border-color: rgba(201,169,106,.55); color: var(--c-gold);
  background: rgba(46,39,73,.35); backdrop-filter: blur(2px);
  box-shadow: 0 0 22px -6px rgba(201,169,106,.55);
}
.scroll-down--hero:hover .chev { background: var(--c-gold); color: var(--c-purple-deep); border-color: var(--c-gold); }

@media (prefers-reduced-motion: reduce) { .scroll-down .chev { animation: none; } }

/* halo orbital decorativo */
.orbit { position: absolute; border: 1px solid rgba(184,188,196,.14); border-radius: 50%; z-index: 1; }
.orbit-1 { width: 520px; height: 520px; top: 50%; left: 50%; transform: translate(-50%,-50%); animation: spin 60s linear infinite; }
.orbit-2 { width: 760px; height: 760px; top: 50%; left: 50%; transform: translate(-50%,-50%); animation: spin 90s linear infinite reverse; }
.orbit::before { content: ""; position: absolute; top: -3px; left: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--c-gold); box-shadow: 0 0 12px var(--c-gold); }
@keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }

/* ---------- Secciones genéricas ---------- */
.section-head { max-width: 640px; margin-inline: auto; text-align: center; margin-bottom: var(--sp-8); }
.section-head .eyebrow { display: block; margin-bottom: var(--sp-3); }
.section-head p { color: var(--c-text-soft); margin-top: var(--sp-4); }

/* ---------- Cards (servicios / artículos) ---------- */
.card {
  background: var(--c-surface); border-radius: var(--r-lg); padding: var(--sp-6);
  border: 1px solid var(--c-line); box-shadow: var(--shadow-soft);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base);
  position: relative; overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(140px 140px at var(--mx,50%) var(--my,0%), var(--c-purple-glow), transparent 60%);
  opacity: 0; transition: opacity var(--t-base) var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: transparent; }
.card:hover::after { opacity: 1; }
.card .icon { width: 46px; height: 46px; color: var(--c-purple-soft); margin-bottom: var(--sp-4); }
.card h3 { margin-bottom: var(--sp-3); }
.card p { color: var(--c-text-soft); font-size: var(--fs-400); }
.card .card-link { margin-top: var(--sp-4); display: inline-flex; align-items: center; gap: .4ch; color: var(--c-purple); font-weight: 600; font-size: var(--fs-300); letter-spacing: .08em; text-transform: uppercase; }
.card .card-link svg { transition: transform var(--t-fast) var(--ease); }
.card:hover .card-link svg { transform: translateX(4px); }

/* ---------- Contenedor ancho (≈85% de la pantalla) ---------- */
.container-wide { width: 85%; max-width: 1700px; margin-inline: auto; padding-inline: var(--sp-4); }
@media (max-width: 760px) { .container-wide { width: auto; padding-inline: var(--sp-5); } }

/* ---------- Diapositivas de altura completa (lecturas + tienda) ---------- */
#descubrir.section, #tienda.section {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding-block: var(--sp-6);
}
#descubrir .section-head, #tienda .section-head { margin-bottom: var(--sp-5); }
#descubrir .section-head .eyebrow, #tienda .section-head .eyebrow { margin-bottom: var(--sp-2); }
#descubrir .section-head h2, #tienda .section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
#descubrir .section-head p, #tienda .section-head p { margin-top: var(--sp-3); }
#descubrir .scroll-down-wrap, #tienda .scroll-down-wrap { padding-top: var(--sp-5); }

/* etiqueta "Próximamente" de la tienda */
.soon-tag {
  display: inline-flex; align-items: center; gap: .45em; margin-top: auto; align-self: center;
  font-family: var(--font-body); font-weight: 600; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-purple-soft); background: var(--c-surface-2);
  border: 1px solid var(--c-line); padding: .5em 1.1em; border-radius: var(--r-pill);
}
.soon-tag svg { color: var(--c-gold); }

.discover-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
@media (max-width: 1080px) { .discover-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .discover-grid { grid-template-columns: 1fr; } }
@media (max-height: 760px) and (min-width: 1081px) { .discover-thumb { aspect-ratio: 16 / 10; } }

.discover-card { padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.discover-thumb {
  display: block; aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--c-purple-deep);
}
.discover-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.discover-card:hover .discover-thumb img { transform: scale(1.06); }
.discover-fallback { width: 100%; height: 100%; display: grid; place-items: center; color: var(--c-gold); }
.discover-body { padding: var(--sp-5); display: flex; flex-direction: column; flex: 1; }
.discover-body h3 { font-size: var(--fs-600); margin-bottom: var(--sp-2); }
.discover-body p { color: var(--c-text-soft); font-size: var(--fs-400); }
.discover-body .btn-mystic { margin-top: auto; align-self: center; }

/* ---------- Botón esotérico ---------- */
.btn-mystic {
  display: inline-flex; align-items: center; gap: .45em;
  font-family: var(--font-body); font-weight: 600; font-size: .72rem;
  letter-spacing: .09em; text-transform: uppercase;
  padding: .42em 1.2em; border-radius: var(--r-pill);
  color: var(--c-purple); background: transparent;
  border: 1px solid var(--c-silver);
  position: relative; overflow: hidden; cursor: pointer;
  transition: color var(--t-base) var(--ease), border-color var(--t-base), box-shadow var(--t-slow) var(--ease), transform var(--t-fast) var(--ease);
}
.btn-mystic::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg, var(--c-purple-deep), var(--c-purple-soft));
  opacity: 0; transition: opacity var(--t-base) var(--ease);
}
.btn-mystic span { position: relative; z-index: 1; }
.btn-mystic svg { position: relative; z-index: 1; color: var(--c-gold); transition: transform var(--t-base) var(--ease); }
.btn-mystic:hover { color: #fff; border-color: var(--c-purple-soft); box-shadow: var(--shadow-glow), var(--shadow-soft); transform: translateY(-2px); }
.btn-mystic:hover::before { opacity: 1; }
.btn-mystic:hover svg { transform: rotate(-14deg) scale(1.12); }

/* ---------- Banda morada (cita / CTA) ---------- */
.band {
  background: linear-gradient(135deg, var(--c-purple-deep), var(--c-purple));
  color: var(--c-text-invert); border-radius: var(--r-lg); padding: var(--sp-8);
  text-align: center; position: relative; overflow: hidden;
}
.band h2 { color: var(--c-warm-white); }
.band p { color: var(--c-silver); max-width: 560px; margin: var(--sp-4) auto var(--sp-6); }
.band .glow { position: absolute; width: 380px; height: 380px; border-radius: 50%; background: var(--c-purple-glow); filter: blur(60px); top: -120px; right: -80px; }

/* ---------- Artículos (blog) ---------- */
.post-card { display: flex; flex-direction: column; }
.post-card .thumb { aspect-ratio: 16/10; border-radius: var(--r-md); overflow: hidden; margin-bottom: var(--sp-4); background: var(--c-surface-2); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.post-card:hover .thumb img { transform: scale(1.06); }
.post-meta { font-size: var(--fs-300); color: var(--c-purple-soft); letter-spacing: .1em; text-transform: uppercase; margin-bottom: var(--sp-2); }

/* ---------- Artículo individual ---------- */
.article { padding-top: 140px; }
.article-header { text-align: center; margin-bottom: var(--sp-7); }
.article-cover { aspect-ratio: 21/9; border-radius: var(--r-lg); overflow: hidden; margin-bottom: var(--sp-7); box-shadow: var(--shadow-card); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.prose { font-size: var(--fs-500); line-height: 1.85; color: var(--c-ink); }
.prose > * + * { margin-top: var(--sp-5); }
.prose h2, .prose h3 { margin-top: var(--sp-7); }
.prose img { border-radius: var(--r-md); margin-block: var(--sp-5); }
.prose blockquote { border-left: 3px solid var(--c-gold); padding-left: var(--sp-5); font-family: var(--font-display); font-size: var(--fs-600); font-style: italic; color: var(--c-purple); }
.prose a { color: var(--c-purple-soft); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer (4ª y última diapositiva) ---------- */
.site-footer {
  position: relative; overflow: hidden;
  min-height: 100svh; display: flex; flex-direction: column;
  text-align: center; color: var(--c-silver);
  background: radial-gradient(120% 90% at 50% 100%, #3a3060 0%, var(--c-purple-deep) 55%, #201a35 100%);
}
.site-footer .starfield { position: absolute; inset: 0; z-index: 0; }
.footer-inner {
  position: relative; z-index: 2; flex: 1; width: 100%;
  display: grid; place-content: center; padding: var(--sp-8) var(--sp-5);
}
.footer-cols {
  width: 86%; max-width: 1220px; margin-inline: auto; text-align: left;
  display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: var(--sp-6) var(--sp-8); align-items: stretch;
}
/* divisores verticales solo en escritorio */
@media (min-width: 901px) {
  .footer-cols { gap: 0; }
  .footer-col + .footer-col { margin-left: var(--sp-8); padding-left: var(--sp-8); border-left: 1px solid rgba(184,188,196,.2); }
}
@media (max-width: 900px) { .footer-cols { grid-template-columns: 1fr 1fr; width: 90%; gap: var(--sp-7) var(--sp-6); } }
@media (max-width: 560px) { .footer-cols { grid-template-columns: 1fr; text-align: center; gap: var(--sp-6); } }
.site-footer a:hover { color: var(--c-warm-white); }

.footer-col { display: flex; flex-direction: column; gap: var(--sp-2); }
@media (max-width: 560px) { .footer-col { align-items: center; } }
.footer-col h4 { color: var(--c-warm-white); font-family: var(--font-body); font-size: var(--fs-300); letter-spacing: .2em; text-transform: uppercase; font-weight: 600; margin-bottom: var(--sp-2); }
.footer-col a { color: var(--c-silver); font-size: var(--fs-400); width: fit-content; }
@media (max-width: 560px) { .footer-col a { width: auto; } }

.footer-brand { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: .2em; text-transform: uppercase; color: var(--c-warm-white); }
.footer-brand .dot { color: var(--c-gold); }
.footer-tag { color: var(--c-silver); max-width: 40ch; margin: var(--sp-2) 0 var(--sp-3); }

.footer-col-cta p { color: var(--c-silver); font-size: var(--fs-400); margin-bottom: var(--sp-2); max-width: 30ch; }
.footer-cta { align-self: flex-start; margin-top: var(--sp-3); padding: .55em 1.5em; font-size: var(--fs-400); white-space: nowrap; }
.footer-cta svg { width: 22px; height: 22px; }
@media (max-width: 560px) { .footer-cta { align-self: center; } .footer-col-cta p { max-width: none; } }
.footer-contact { display: inline-flex; align-items: center; gap: .5em; color: var(--c-silver); font-size: var(--fs-300); margin-top: var(--sp-3); }
.footer-contact:hover { color: var(--c-warm-white); }

/* "Síguenos en nuestras redes sociales" (debajo de las columnas) */
.footer-follow {
  margin-top: var(--sp-7); padding-top: var(--sp-6); border-top: 1px solid rgba(184,188,196,.18);
  width: 86%; max-width: 1220px; margin-inline: auto;
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-4); text-align: center;
}
.footer-follow-label { font-family: var(--font-display); font-size: var(--fs-600); color: var(--c-warm-white); letter-spacing: .03em; }
.social { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.social a { width: 46px; height: 46px; display: grid; place-items: center; color: var(--c-silver); border: 1px solid rgba(184,188,196,.3); border-radius: 50%; transition: color var(--t-fast) var(--ease), background var(--t-fast), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-base); }
.social a:hover { color: #fff; background: var(--c-purple-soft); border-color: var(--c-purple-soft); transform: translateY(-3px); box-shadow: var(--shadow-glow); }

/* segundo footer (barra de copyright, ancho completo, fondo oscuro) */
.footer-bottom { position: relative; z-index: 3; width: 100%; background: #140f22; padding: var(--sp-4) var(--sp-5); }
.footer-bottom-inner { max-width: var(--container); margin-inline: auto; display: flex; justify-content: space-between; align-items: center; gap: .4rem var(--sp-5); flex-wrap: wrap; font-size: var(--fs-300); color: rgba(255,255,255,.9); }
.footer-bottom-inner p { margin: 0; }
.footer-bottom a { color: var(--c-gold); font-weight: 600; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) { .footer-bottom-inner { justify-content: center; text-align: center; } }

/* ---------- Botones flotantes de navegación ---------- */
.slide-nav {
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 95;
  display: flex; flex-direction: column; gap: .6rem;
  opacity: 0; visibility: hidden; transition: opacity var(--t-base) var(--ease), visibility var(--t-base);
}
.slide-nav.show { opacity: 1; visibility: visible; }
.slide-nav button {
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--c-line); background: rgba(250,249,247,.86); backdrop-filter: blur(8px);
  color: var(--c-purple); display: grid; place-items: center; box-shadow: var(--shadow-soft);
  transition: background var(--t-fast) var(--ease), color var(--t-fast), transform var(--t-fast), box-shadow var(--t-base);
}
.slide-nav button:hover { background: var(--c-purple); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-glow), var(--shadow-soft); }
@media (max-width: 600px) { .slide-nav { right: 12px; } .slide-nav button { width: 42px; height: 42px; } }

/* ---------- Agendar lectura (formulario público) ---------- */
.panel-pub {
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg);
  padding: var(--sp-6); margin-bottom: var(--sp-5); box-shadow: var(--shadow-soft);
}
.panel-pub legend, fieldset.panel-pub > legend {
  font-family: var(--font-display); font-size: var(--fs-600); color: var(--c-purple);
  display: flex; align-items: center; gap: .6rem; padding: 0; margin-bottom: var(--sp-4);
}
fieldset.panel-pub { border: 1px solid var(--c-line); }
.step-n {
  width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(135deg, var(--c-purple), var(--c-purple-soft)); color: #fff;
  font-family: var(--font-body); font-size: var(--fs-400); font-weight: 600;
}
.bk-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
@media (max-width: 600px) { .bk-row { grid-template-columns: 1fr; } }

.booking-form .field { margin-bottom: var(--sp-4); }
.booking-form label { display: block; font-weight: 600; margin-bottom: .4rem; color: var(--c-ink); }
.booking-form .input, .booking-form .textarea {
  width: 100%; font-family: var(--font-body); font-size: var(--fs-400); color: var(--c-ink);
  padding: .75rem .9rem; border: 1px solid var(--c-silver); border-radius: var(--r-sm); background: #fff;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.booking-form .input:focus, .booking-form .textarea:focus { outline: none; border-color: var(--c-purple-soft); box-shadow: 0 0 0 3px var(--c-purple-glow); }
.booking-form .textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
.booking-form .hint { font-size: var(--fs-300); color: var(--c-text-soft); margin-top: .3rem; }
.input.has-err { border-color: #c66; }
.field-err { color: #b23b4a; font-size: var(--fs-300); margin-top: .35rem; font-weight: 500; }

/* selección de lectura */
.reading-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
@media (max-width: 600px) { .reading-grid { grid-template-columns: 1fr; } }
.reading-opt, .pay-opt { cursor: pointer; display: block; }
.reading-opt input, .pay-opt input { position: absolute; opacity: 0; pointer-events: none; }
.reading-card, .pay-card {
  display: flex; flex-direction: column; gap: .25rem; padding: var(--sp-4);
  border: 1.5px solid var(--c-line); border-radius: var(--r-md); background: var(--c-surface-2);
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.reading-opt:hover .reading-card, .pay-opt:hover .pay-card { border-color: var(--c-purple-soft); transform: translateY(-2px); }
.reading-opt input:checked + .reading-card,
.pay-opt input:checked + .pay-card {
  border-color: var(--c-purple); background: #fff;
  box-shadow: 0 0 0 3px var(--c-purple-glow), var(--shadow-soft);
}
.reading-opt input:focus-visible + .reading-card,
.pay-opt input:focus-visible + .pay-card { outline: 2px solid var(--c-purple-soft); outline-offset: 2px; }
.reading-title, .pay-title { font-weight: 600; color: var(--c-purple); display: flex; align-items: center; gap: .4rem; }
.reading-price { font-family: var(--font-display); font-size: var(--fs-600); color: var(--c-gold); font-weight: 600; }
.pay-desc { font-size: var(--fs-300); color: var(--c-text-soft); }

.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
@media (max-width: 600px) { .pay-grid { grid-template-columns: 1fr; } }

/* video */
.video-wrap { position: relative; aspect-ratio: 16/9; border-radius: var(--r-lg); overflow: hidden; margin-bottom: var(--sp-6); box-shadow: var(--shadow-card); background: var(--c-purple-deep); }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* caja de datos de pago */
.pay-box { background: var(--c-surface-2); border: 1px dashed var(--c-silver); border-radius: var(--r-md); padding: var(--sp-5); margin-top: var(--sp-4); line-height: 1.9; font-size: var(--fs-400); }

/* ---------- Sin encabezado fijo (menú oculto) ---------- */
.no-header .page-hero { padding-top: var(--sp-8); }
.no-header .article { padding-top: var(--sp-8); }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding: 160px 0 var(--sp-7); text-align: center; background: radial-gradient(100% 100% at 50% 0%, #efecf6 0%, var(--c-warm-white) 70%); }
.page-hero .eyebrow { display: block; margin-bottom: var(--sp-3); }

/* ============================================================
   RESPONSIVIDAD GLOBAL — móvil y pantallas pequeñas
   ============================================================ */
@media (max-width: 900px) {
  /* Las diapositivas con mucho contenido fluyen (no se cortan al centrar) */
  #descubrir.section, #tienda.section { min-height: 0; display: block; padding-block: var(--sp-7); }
  .site-footer { min-height: 0; }
  .footer-inner { display: block; padding-block: var(--sp-7); }
}

@media (max-width: 560px) {
  .hero-brand { font-size: clamp(2.4rem, 13vw, 3.4rem); }
  .hero-sub { font-size: clamp(1.15rem, 5vw, 1.5rem); }
  .hero-inner { padding-inline: var(--sp-4); }
  .section { padding-block: var(--sp-7); }
  .page-hero { padding-top: var(--sp-7); }
  .band { padding: var(--sp-6) var(--sp-5); }
  .footer-brand { font-size: clamp(1.6rem, 7vw, 2rem); }
  /* botones flotantes no estorban */
  .slide-nav { right: 10px; }
}

/* Evitar desbordes horizontales en cualquier pantalla */
@media (max-width: 420px) {
  .container, .container-wide, .footer-cols { width: auto; padding-inline: var(--sp-4); }
  .btn { padding-inline: 1.3em; }
}

/* ============================================================
   POPUP de reserva (4 pasos)
   ============================================================ */
.bk-modal {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 1rem;
  opacity: 0; visibility: hidden; transition: opacity var(--t-base) var(--ease), visibility var(--t-base);
}
.bk-modal.is-open { opacity: 1; visibility: visible; }
.bk-modal-overlay { position: absolute; inset: 0; background: rgba(20,15,34,.62); backdrop-filter: blur(4px); }
.bk-modal-dialog {
  position: relative; z-index: 1; width: min(94vw, 640px); max-height: 92vh; overflow-y: auto;
  background: var(--c-warm-white); border-radius: var(--r-lg); box-shadow: var(--shadow-card);
  transform: translateY(16px) scale(.98); transition: transform var(--t-base) var(--ease);
}
.bk-modal.is-open .bk-modal-dialog { transform: none; }

.bk-head {
  position: relative; padding: var(--sp-6) var(--sp-6) var(--sp-5);
  background: radial-gradient(120% 120% at 50% 0%, #3a3060, var(--c-purple-deep));
  color: #fff; border-radius: var(--r-lg) var(--r-lg) 0 0; text-align: center;
}
.bk-head-title { color: #fff; margin-top: .35rem; }
.bk-modal-close {
  position: absolute; top: .8rem; right: 1rem; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer; font-size: 1.5rem; line-height: 1;
  transition: background var(--t-fast);
}
.bk-modal-close:hover { background: rgba(255,255,255,.25); }
.bk-progress { display: flex; gap: .5rem; justify-content: center; margin-top: var(--sp-4); }
.bk-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.28); transition: background var(--t-base), transform var(--t-base); }
.bk-dot.is-active { background: var(--c-gold); transform: scale(1.25); }
.bk-dot.is-done { background: var(--c-silver); }

.bk-form { padding: var(--sp-6); }
.bk-step { display: none; }
.bk-step.is-active { display: block; animation: bkfade .4s var(--ease); }
@keyframes bkfade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.bk-step-title { color: var(--c-purple); font-size: var(--fs-700); margin-bottom: var(--sp-4); text-align: center; }
.bk-form .field { margin-bottom: var(--sp-4); }
.bk-form label { display: block; font-weight: 600; margin-bottom: .35rem; color: var(--c-ink); font-size: var(--fs-400); }
.bk-form .input, .bk-form .textarea {
  width: 100%; font-family: var(--font-body); font-size: var(--fs-400); color: var(--c-ink);
  padding: .7rem .85rem; border: 1px solid var(--c-silver); border-radius: var(--r-sm); background: #fff;
}
.bk-form .input:focus, .bk-form .textarea:focus { outline: none; border-color: var(--c-purple-soft); box-shadow: 0 0 0 3px var(--c-purple-glow); }
.bk-form .textarea { min-height: 84px; resize: vertical; }
.bk-intro { color: var(--c-text-soft); text-align: center; margin-top: var(--sp-4); }
.bk-novideo { text-align: center; color: var(--c-purple-soft); padding: var(--sp-6) 0; }
.bk-novideo svg { margin: 0 auto var(--sp-3); }
.bk-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: var(--sp-5); }
.bk-nav .btn { white-space: nowrap; }

/* confirmación dentro del popup */
.bk-done { text-align: center; }
.bk-done-mark { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto var(--sp-4); background: linear-gradient(135deg, var(--c-purple), var(--c-purple-soft)); color: var(--c-gold); }
.bk-done h3 { color: var(--c-purple); }
.bk-done .divider { margin-block: var(--sp-5); }
.bk-done h4 { color: var(--c-purple); display: flex; align-items: center; gap: .5rem; justify-content: center; margin-bottom: var(--sp-3); }
.bk-done .pay-box { text-align: left; }

@media (max-width: 540px) {
  .bk-form, .bk-head { padding-inline: var(--sp-4); }
  .bk-nav { flex-direction: column-reverse; }
  .bk-nav .btn { width: 100%; justify-content: center; }
  .bk-nav span { display: none; }
}

/* Paso 4: detalle de pago dinámico */
.bk-pay-detail { margin-top: var(--sp-5); text-align: center; }
.bk-pay-detail .pay-box { text-align: left; }
.bk-pay-detail .muted { margin-bottom: var(--sp-3); }

/* Paso 5: WhatsApp comprobante */
.bk-wa { text-align: center; padding: var(--sp-4) 0; }
.bk-wa-ic { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; background: rgba(37,211,102,.14); color: #25D366; margin: 0 auto var(--sp-3); }
.bk-wa p { color: var(--c-text-soft); margin-bottom: var(--sp-5); max-width: 38ch; margin-inline: auto; }
.btn-wa { background: #25D366; color: #fff; box-shadow: var(--shadow-soft); }
.btn-wa:hover { background: #1eb858; color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-glow), var(--shadow-soft); }
.btn-wa svg { fill: currentColor; }

/* ============================================================
   TIENDA
   ============================================================ */
/* carrito flotante */
.cart-fab { position: fixed; right: 18px; bottom: 18px; z-index: 96; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--c-purple), var(--c-purple-soft)); color: #fff; box-shadow: var(--shadow-card); transition: transform var(--t-fast) var(--ease), box-shadow var(--t-base); }
.cart-fab:hover { transform: translateY(-3px); color: #fff; box-shadow: var(--shadow-glow), var(--shadow-card); }
.cart-fab-n { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: var(--c-gold); color: var(--c-purple-deep); font-size: var(--fs-300); font-weight: 700; display: grid; place-items: center; }

/* layout catálogo */
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: var(--sp-6); align-items: start; }
.shop-side-inner { position: sticky; top: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-5); }
.shop-filter-toggle { display: none; }
.shop-search { display: flex; gap: .5rem; }
.shop-search .input { flex: 1; }
.shop-filter-block h4 { font-size: var(--fs-300); text-transform: uppercase; letter-spacing: .12em; color: var(--c-purple-soft); margin-bottom: var(--sp-3); }
.shop-cat { display: flex; justify-content: space-between; align-items: center; padding: .5rem .7rem; border-radius: var(--r-sm); color: var(--c-ink); font-size: var(--fs-400); transition: background var(--t-fast), color var(--t-fast); }
.shop-cat:hover { background: var(--c-surface-2); color: var(--c-purple); }
.shop-cat.is-active { background: var(--c-purple); color: #fff; }
.shop-cat-n { font-size: var(--fs-300); opacity: .7; }
.shop-price { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.shop-price .input { width: 80px; }
.shop-cols { display: flex; gap: .4rem; }
.shop-col { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--c-line); border-radius: var(--r-sm); font-weight: 600; color: var(--c-purple); }
.shop-col.is-active { background: var(--c-purple); color: #fff; border-color: var(--c-purple); }
.shop-count { margin-bottom: var(--sp-4); }

/* grid de productos */
.product-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: var(--sp-5); }
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 760px)  { .product-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 460px)  { .product-grid { grid-template-columns: 1fr !important; } }
.product-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; transition: transform var(--t-base) var(--ease), box-shadow var(--t-base); }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.product-thumb { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--c-surface-2); display: block; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.product-card:hover .product-thumb img { transform: scale(1.06); }
.product-noimg { width: 100%; height: 100%; display: grid; place-items: center; color: var(--c-silver); }
.product-badge { position: absolute; top: .7rem; left: .7rem; z-index: 2; background: var(--c-gold); color: var(--c-purple-deep); font-weight: 700; font-size: var(--fs-300); padding: .25em .7em; border-radius: var(--r-pill); }
.product-body { padding: var(--sp-4); display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.product-body h3 { font-size: var(--fs-500); }
.product-ex { color: var(--c-text-soft); font-size: var(--fs-300); }
.product-price { display: flex; align-items: baseline; gap: .5rem; margin-top: auto; }
.price-old { color: var(--c-text-soft); text-decoration: line-through; font-size: var(--fs-400); }
.price-now { color: var(--c-purple); font-weight: 700; font-size: var(--fs-600); font-family: var(--font-display); }
.product-add { margin-top: .4rem; align-self: flex-start; }

/* página de producto */
.product-detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--sp-7); align-items: start; }
@media (max-width: 860px) { .product-detail { grid-template-columns: 1fr; } }
.pd-main { position: relative; aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; background: var(--c-surface-2); box-shadow: var(--shadow-soft); }
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: .6rem; margin-top: .8rem; flex-wrap: wrap; }
.pd-thumb { width: 74px; height: 74px; border-radius: var(--r-md); overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--c-surface-2); }
.pd-thumb.is-active { border-color: var(--c-purple); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-info h1 { font-size: var(--fs-800); margin: .3rem 0 var(--sp-3); }
.pd-price { display: flex; align-items: baseline; gap: .6rem; margin-bottom: var(--sp-4); }
.pd-price .price-now { font-size: var(--fs-800); }
.badge-sale { background: var(--c-gold); color: var(--c-purple-deep); font-weight: 700; font-size: var(--fs-300); padding: .2em .7em; border-radius: var(--r-pill); }
.pd-ex { color: var(--c-text-soft); margin-bottom: var(--sp-5); }
.pd-qty { max-width: 130px; margin-bottom: var(--sp-4); }
.pd-qty .input { padding: .6rem .8rem; }
.pd-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* carrito */
.cart-list { display: flex; flex-direction: column; gap: .5rem; }
.cart-row { display: grid; grid-template-columns: 64px 1fr 90px 90px 30px; align-items: center; gap: var(--sp-4); padding: var(--sp-3); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); }
.cart-thumb { width: 64px; height: 64px; border-radius: var(--r-sm); overflow: hidden; background: var(--c-surface-2); display: grid; place-items: center; color: var(--c-silver); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-name { font-weight: 600; color: var(--c-purple); display: block; }
.cart-qty .input { width: 70px; padding: .45rem .5rem; text-align: center; }
.cart-line { font-weight: 600; text-align: right; }
.cart-del { color: var(--c-text-soft); font-size: 1.5rem; line-height: 1; text-align: center; }
.cart-del:hover { color: #b23b4a; }
.cart-foot { margin-top: var(--sp-5); padding: var(--sp-5); background: var(--c-surface-2); border-radius: var(--r-md); }
.cart-total { display: flex; justify-content: space-between; font-size: var(--fs-600); font-family: var(--font-display); color: var(--c-purple); margin-bottom: .3rem; }
.cart-cta { display: flex; gap: .75rem; justify-content: space-between; flex-wrap: wrap; margin-top: var(--sp-4); }
@media (max-width: 600px) { .cart-row { grid-template-columns: 54px 1fr 70px; row-gap: .5rem; } .cart-line, .cart-del { grid-column: 2 / 4; text-align: right; } }

/* checkout */
.checkout-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--sp-6); align-items: start; }
@media (max-width: 820px) { .checkout-cols { grid-template-columns: 1fr; } }
.checkout-summary .panel-pub { position: sticky; top: var(--sp-5); }
.checkout-form h3 { color: var(--c-purple); margin-bottom: var(--sp-4); }
.sum-items { margin-bottom: var(--sp-3); }
.sum-row { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; color: var(--c-text-soft); font-size: var(--fs-400); }
.sum-row.sum-total { border-top: 1px solid var(--c-line); margin-top: .4rem; padding-top: .7rem; color: var(--c-purple); font-weight: 700; font-size: var(--fs-600); font-family: var(--font-display); }

/* sidebar tienda en móvil */
@media (max-width: 860px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-filter-toggle { display: inline-flex; align-items: center; gap: .5rem; }
  .shop-side-inner { position: static; display: none; padding: var(--sp-5); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); margin-top: var(--sp-3); }
  .shop-side.is-open .shop-side-inner { display: flex; }
}
