/* ============================================
   FUERZA DEL ALMA — estilos compartidos
   Estilo: domoticatarragona.es/izan/
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

:root {
  --bg:          #fcfaf6; /* Blanco pergamino elegante */
  --bg-soft:     #f4eedf; /* Crema suave cálido */
  --bg-card:     rgba(255, 255, 255, 0.75);
  --bg-footer:   #1d2a3e; /* Azul medianoche de la tapa del libro */
  --gold:        #b8912a;
  --gold-hover:  #d4a93a;
  --gold-dim:    rgba(184, 145, 42, 0.20);
  --gold-glow:   rgba(184, 145, 42, 0.08);
  --accent:      #b8912a;
  --text:        #1d2a3e; /* Texto principal en azul medianoche del libro */
  --text-soft:   #384860; /* Gris azulado oscuro de alto contraste */
  --serif:       'Cinzel', Georgia, serif;
  --sans:        'Plus Jakarta Sans', system-ui, sans-serif;
  --max-w:       1100px;
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  scrollbar-color: var(--gold) var(--bg-soft);
  scrollbar-width: thin;
}

[data-theme="dark"] {
  --bg:          #111a25; /* Azul medianoche profundo (color de la tapa del libro) */
  --bg-soft:     #1a2533; /* Azul de tapa más suave */
  --bg-card:     rgba(26, 37, 52, 0.65);
  --bg-footer:   #0d141d; /* Azul medianoche muy oscuro */
  --gold:        #e3ba52; /* Letra dorada brillante de la tapa */
  --gold-hover:  #ffd573;
  --gold-dim:    rgba(227, 186, 82, 0.25);
  --gold-glow:   rgba(227, 186, 82, 0.12);
  --accent:      #e3ba52;
  --text:        #fcfaf6; /* Texto pergamino claro */
  --text-soft:   #8a9bb0; /* Subtexto gris azulado suave */
}

*  { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

::selection { background: var(--gold); color: #fff; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Transiciones globales de cambio de tema */
section, footer, .card, .price-card, .testimonio-card, nav, .stats-bar, .visto-en, blockquote, hr.divider, p, h1, h2, h3, .nav-links a {
  transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease, -webkit-backdrop-filter 0.4s ease;
}

h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
}

h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; color: var(--gold-hover); }

p { color: var(--text-soft); }
a { color: var(--gold); text-decoration: none; }
img { max-width: 100%; display: block; }

.container  { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
section     { padding: 90px 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--sans);
  font-weight: 500;
  margin-bottom: 1rem;
}

.divider {
  border: none;
  width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1.5rem 0;
}
.divider.center { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }

/* ── Barra de progreso de scroll ── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(to right, var(--gold), var(--accent));
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 200;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .scroll-progress {
      animation: grow-progress auto linear;
      animation-timeline: scroll();
    }
    @keyframes grow-progress {
      from { transform: scaleX(0); }
      to { transform: scaleX(1); }
    }
  }
}

/* ── Navegación ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(0px) saturate(100%);
  -webkit-backdrop-filter: blur(0px) saturate(100%);
  transition: background 0.4s, padding 0.4s, border-color 0.4s, backdrop-filter 0.4s, -webkit-backdrop-filter 0.4s;
}

nav.scrolled {
  background: rgba(252, 250, 246, 0.90);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  padding: 12px 0;
  border-bottom: 1px solid rgba(184, 145, 42, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; }

.nav-logo {
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  color: var(--text);
}
.nav-logo span { color: var(--gold); }

.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }

.nav-links a {
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--gold-hover); }
.nav-links a:hover::after { width: 100%; }

.nav-links .nav-cta {
  border: 1px solid var(--gold-dim);
  padding: 8px 20px;
  border-radius: 30px;
  color: var(--gold);
}
.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta:hover { background: var(--gold); color: var(--bg); }

.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.6rem; cursor: pointer; }

/* ── Contenedor y Botón de Modo Día/Noche ── */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text-soft);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s, background-color 0.3s, transform 0.3s;
}
.theme-toggle:hover {
  color: var(--gold);
  background-color: var(--gold-glow);
  transform: scale(1.1);
}
.theme-toggle svg {
  transition: transform 0.5s ease;
}
.theme-toggle:active svg {
  transform: rotate(45deg) scale(0.9);
}

[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
.sun-icon { display: none; }
.moon-icon { display: block; }

/* ── Botones ── */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 40px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s;
  cursor: pointer; border: none;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #a67c1e 100%);
  color: #07080c;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-hover) 0%, var(--gold) 100%);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.45);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  background: transparent;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--gold);
  box-shadow: 0 0 15px var(--gold-glow);
}

.btn-whatsapp {
  background: #1faa53; color: #fff; font-weight: 600;
  display: inline-flex; align-items: center; gap: 10px;
  box-shadow: 0 4px 15px rgba(31, 170, 83, 0.3);
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(31, 170, 83, 0.4);
}

/* ── Reveal-zoom: contenedor de imágenes con hover ── */
.reveal-zoom {
  overflow: hidden;
  border-radius: inherit;
}

.reveal-zoom img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition:
    transform 0.6s var(--ease-out),
    filter 0.6s var(--ease-out),
    box-shadow 0.6s var(--ease-out);
  will-change: transform;
}

.reveal-zoom:hover img {
  transform: scale(1.04) translateY(-4px);
  filter: brightness(1.08) contrast(1.04);
  box-shadow: 0 30px 60px rgba(212, 175, 55, 0.15);
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 140px 0 80px;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 75% 40%, rgba(184, 145, 42, 0.08), transparent),
    radial-gradient(ellipse 50% 60% at 20% 80%, rgba(184, 145, 42, 0.05), transparent);
  pointer-events: none;
}

/* mesh gradients decorativos */
.hero .mesh-1, .mesh-1 {
  position: absolute; top: 8%; right: -8%;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
  filter: blur(80px); pointer-events: none;
}
.hero .mesh-2, .mesh-2 {
  position: absolute; bottom: 15%; left: -8%;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.04) 0%, transparent 70%);
  filter: blur(80px); pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px; align-items: center; position: relative;
}

.hero-tagline {
  font-family: var(--sans);
  font-style: italic; font-weight: 300;
  font-size: 1.2rem; color: var(--gold);
  margin: 1.2rem 0; letter-spacing: 0.04em;
}

.hero-text p.lead { font-size: 1.05rem; max-width: 480px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-photo { position: relative; }

.hero-photo .photo-frame {
  border-radius: 200px 200px 16px 16px;
  overflow: hidden;
  border: 1px solid var(--gold-dim);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
  aspect-ratio: 3 / 4;
}

/* ── Placeholder de fotos ── */
.ph {
  width: 100%; height: 100%; min-height: 240px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
  background: radial-gradient(circle at 50% 35%, rgba(212, 175, 55, 0.10), transparent 60%), var(--bg-soft);
  color: var(--text-soft); font-size: 0.8rem; letter-spacing: 0.05em;
  text-align: center; padding: 20px;
}
.ph svg { opacity: 0.4; }
.ph code {
  color: var(--gold); background: rgba(212, 175, 55, 0.1);
  padding: 2px 10px; border-radius: 6px; font-size: 0.76rem;
}

/* ── Glass cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.10);
  border-radius: 16px; padding: 36px 28px;
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.5s var(--ease-out),
    border-color 0.5s ease,
    box-shadow 0.5s ease;
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 175, 55, 0.40);
  box-shadow: 0 20px 40px rgba(212, 175, 55, 0.12);
}

.card .icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid var(--gold-dim);
  margin-bottom: 1.4rem; color: var(--gold);
}

.card h3 { margin-bottom: 0.7rem; font-size: 1.2rem; }
.card p { font-size: 0.95rem; }

/* ── Historia ── */
.story-grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: 60px; align-items: start;
}

.story-photo {
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--gold-dim);
  position: sticky; top: 100px; aspect-ratio: 4 / 5;
}

.story-text p { margin-bottom: 1.2rem; }

blockquote {
  font-family: var(--serif);
  font-style: italic; font-size: 1.4rem; line-height: 1.5;
  color: var(--gold-hover);
  border-left: 2px solid var(--gold);
  padding-left: 24px; margin: 2.5rem 0;
}

/* ── Libro ── */
.book-section { background: var(--bg-soft); position: relative; overflow: hidden; }

.book-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 70px; align-items: center; }

.book-cover {
  aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden;
  box-shadow: -20px 30px 60px rgba(0, 0, 0, 0.18);
  border: 1px solid var(--gold-dim);
  transform: rotate(-3deg);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s ease;
}
.book-cover:hover {
  transform: rotate(0deg) scale(1.02);
  box-shadow: -10px 40px 80px rgba(212, 175, 55, 0.20);
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; }

/* ── Teaser sala ── */
.sala-teaser {
  position: relative; border-radius: 24px; overflow: hidden;
  border: 1px solid var(--gold-dim); background: var(--bg-card);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.5s ease, border-color 0.5s ease;
}
.sala-teaser:hover { box-shadow: 0 20px 50px rgba(212, 175, 55, 0.10); border-color: var(--gold-dim); }

.sala-teaser-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.sala-teaser-photo { min-height: 360px; }
.sala-teaser-text { padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; }

/* ── Instagram ── */
.insta-section { background: var(--bg-soft); }
.insta-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  line-height: 1.45; max-width: 800px;
  margin: 0 auto 2rem; color: var(--text);
}

/* ── Footer ── */
footer {
  border-top: 1px solid rgba(212, 175, 55, 0.12);
  padding: 60px 0 30px; background: var(--bg-footer);
  color: rgba(255, 255, 255, 0.7);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid h4 { font-family: var(--serif); font-size: 1rem; color: var(--gold); margin-bottom: 1rem; font-weight: 400; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.6rem; }
.footer-grid a { color: rgba(255, 255, 255, 0.65); font-size: 0.9rem; transition: color 0.3s; }
.footer-grid a:hover { color: var(--gold-hover); }
.footer-bottom {
  text-align: center;
  font-size: 0.80rem;
  color: rgba(255, 255, 255, 0.45);
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── Botón volver arriba ── */
.back-top {
  position: fixed; bottom: 24px; left: 24px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(247, 243, 236, 0.92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  opacity: 0; transform: translateY(20px) scale(0.8);
  pointer-events: none;
  transition: opacity 0.4s, transform 0.4s;
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}
.back-top.visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.back-top:hover { transform: translateY(-4px) scale(1.05); color: var(--gold-hover); }
.back-top:hover .bt-flecha { animation: flecha-sube 0.6s ease infinite alternate; }
.back-top .bt-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.back-top .bt-fondo, .back-top .bt-progreso { fill: none; stroke-width: 2; }
.back-top .bt-fondo { stroke: rgba(212, 175, 55, 0.18); }
.back-top .bt-progreso { stroke: var(--gold); stroke-linecap: round; transition: stroke-dashoffset 0.15s linear; }
.back-top .bt-flecha { width: 22px; height: 22px; position: relative; }
@keyframes flecha-sube { from { transform: translateY(1px); } to { transform: translateY(-3px); } }

/* ── Partículas ── */
#particulas {
  position: fixed; inset: 0; z-index: 80;
  pointer-events: none;
  opacity: 0.45;
}
[data-theme="dark"] #particulas {
  mix-blend-mode: screen;
  opacity: 0.55;
}
[data-theme="dark"] .ve-logo {
  color: rgba(245, 237, 224, 0.25);
}
[data-theme="dark"] .nav-toggle {
  color: var(--text);
}
[data-theme="dark"] .back-top {
  background: rgba(26, 37, 52, 0.92);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
}
[data-theme="dark"] nav.scrolled {
  background: rgba(17, 26, 37, 0.85);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
}

/* ── Animaciones de scroll ── */
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(50px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-scale-in {
  from { opacity: 0; scale: 0.92; }
  to   { opacity: 1; scale: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Contadores de impacto ── */
.stats-bar {
  background: var(--bg-footer);
  border-top: 1px solid rgba(184, 145, 42, 0.15);
  border-bottom: 1px solid rgba(184, 145, 42, 0.15);
  padding: 56px 0;
}

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

.stat-item {
  text-align: center;
  padding: 0 24px;
  position: relative;
}

.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: rgba(212,175,55,0.18);
}

.stat-num {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  display: block;
}

.stat-suffix {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: var(--gold);
}

.stat-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 10px;
  font-weight: 500;
}

/* ── Franja "Visto en" ── */
.visto-en {
  padding: 40px 0;
  background: var(--bg);
  border-bottom: 1px solid rgba(212,175,55,0.08);
}

.visto-en-label {
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 28px;
  font-weight: 500;
}

.visto-en-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.ve-logo {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(148,163,184,0.45);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.3s;
  cursor: default;
}

.ve-logo:hover { color: var(--gold); }

/* ── Testimonios ── */
.testimonios-section { background: var(--bg-soft); }

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 3rem;
}

.testimonio-card {
  background: var(--bg-card);
  border: 1px solid rgba(212,175,55,0.10);
  border-radius: 16px;
  padding: 32px 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.5s var(--ease-out), border-color 0.5s;
}

.testimonio-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-dim);
}

.testimonio-estrellas {
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 2px;
}

.testimonio-texto {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  flex: 1;
}

.testimonio-texto::before { content: '"'; }
.testimonio-texto::after  { content: '"'; }

.testimonio-autor {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid rgba(212,175,55,0.10);
  padding-top: 18px;
}

.testimonio-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dim), rgba(212,175,55,0.08));
  border: 1px solid var(--gold-dim);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--gold);
  flex-shrink: 0;
}

.testimonio-nombre {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text);
  display: block;
}

.testimonio-ciudad {
  font-size: 0.78rem;
  color: var(--text-soft);
}

@media (max-width: 860px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .stat-item + .stat-item::before { display: none; }
  .testimonios-grid { grid-template-columns: 1fr; }
  .visto-en-logos { gap: 28px; }
}

/* ── SALA ── */
.hero-sala { min-height: 80vh; padding-top: 140px; }

.gallery {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-top: 3rem;
}
.gallery-item {
  border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.12);
  aspect-ratio: 4 / 3;
}
.gallery-item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 3rem; }
.feature {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--bg-card); border: 1px solid rgba(212, 175, 55, 0.10);
  border-radius: 12px; padding: 22px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform 0.4s var(--ease-out), border-color 0.4s;
}
.feature:hover { transform: translateY(-4px); border-color: var(--gold-dim); }
.feature .f-icon { color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.feature strong { display: block; color: var(--text); margin-bottom: 4px; font-size: 0.95rem; }
.feature span { font-size: 0.88rem; color: var(--text-soft); }

.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 3rem; }
.price-card {
  background: var(--bg-card); border: 1px solid rgba(212, 175, 55, 0.10);
  border-radius: 16px; padding: 40px 32px; text-align: center;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(184, 145, 42, 0.08);
  transition: transform 0.5s var(--ease-out), border-color 0.5s, box-shadow 0.5s;
}
.price-card:hover { transform: translateY(-8px); border-color: rgba(212,175,55,0.4); box-shadow: 0 20px 40px rgba(212,175,55,0.12); }
.price-card.featured { border-color: var(--gold); position: relative; }
.price-card.featured::before {
  content: 'Más solicitado';
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--bg);
  font-size: 0.70rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 16px; border-radius: 20px;
}
.price-card h3 { margin-bottom: 0.5rem; }
.price-card .price { font-family: var(--serif); font-size: 2rem; color: var(--text); margin: 1rem 0; }
.price-card ul { list-style: none; text-align: left; margin: 1.5rem 0 2rem; }
.price-card li { font-size: 0.9rem; color: var(--text-soft); padding: 6px 0 6px 24px; position: relative; }
.price-card li::before { content: '✦'; color: var(--gold); position: absolute; left: 0; }

details {
  background: var(--bg-card); border: 1px solid rgba(212,175,55,0.10);
  border-radius: 12px; margin-bottom: 12px; overflow: hidden;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
details summary {
  padding: 20px 24px; cursor: pointer; font-weight: 500; color: var(--text);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
details summary::after { content: '+'; color: var(--gold); font-size: 1.4rem; transition: transform 0.3s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 24px 20px; }

.map-wrap { border-radius: 16px; overflow: hidden; border: 1px solid var(--gold-dim); margin-top: 2rem; filter: grayscale(0.4); }
.map-wrap iframe { display: block; width: 100%; height: 420px; border: 0; }

.cta-final { text-align: center; background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(212,175,55,0.10), transparent), var(--bg-soft); }

/* ── WhatsApp flotante ── */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: #1faa53;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
  transition: transform 0.3s;
}
.wa-float:hover { transform: scale(1.1); }

/* ── Responsive ── */
@media (max-width: 860px) {
  .nav-links {
    display: none; position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(252, 250, 246, 0.97);
    backdrop-filter: blur(12px);
    flex-direction: column; padding: 24px; gap: 18px;
    border-bottom: 1px solid var(--gold-dim);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  }
  [data-theme="dark"] .nav-links {
    background: rgba(26, 37, 52, 0.97);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  .hero-grid, .story-grid, .book-grid, .sala-teaser-grid, .course-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 320px; margin: 0 auto; }
  .story-photo { position: static; max-width: 380px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery-item:first-child { grid-column: span 2; grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .sala-teaser-text { padding: 36px 28px; }
  .course-preview { max-width: 440px; margin: 0 auto; width: 100%; }
}

/* ── Sección de Curso Online ── */
.course-section {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.course-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 60px;
  align-items: center;
}
.course-preview {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--gold-dim);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}
.course-preview img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(29, 42, 62, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.3s;
}
.course-preview:hover .preview-overlay {
  background: rgba(29, 42, 62, 0.60);
}
.preview-overlay svg {
  color: var(--gold);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s var(--ease-out);
}
.course-preview:hover .preview-overlay svg {
  transform: scale(1.1);
}

.course-features {
  list-style: none;
  margin: 1.5rem 0 2rem;
}
.course-features li {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin-bottom: 0.8rem;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.course-features span {
  color: var(--gold);
  font-weight: bold;
}

.course-price-box {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  background: var(--bg-soft);
  padding: 12px 24px;
  border-radius: 8px;
  border: 1px solid var(--gold-dim);
  margin-bottom: 1.5rem;
}
.price-val {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.price-type {
  font-size: 0.82rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Modal de Bizum ── */
body.no-scroll {
  overflow: hidden;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 21, 30, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
  padding: 20px;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-card {
  background: var(--bg);
  border: 1px solid var(--gold-dim);
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  padding: 40px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  position: relative;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.4s var(--ease-out);
  overflow-y: auto;
  max-height: 90vh;
}
.modal-overlay.open .modal-card {
  transform: scale(1) translateY(0);
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--text-soft);
  cursor: pointer;
  transition: color 0.3s;
}
.modal-close:hover {
  color: var(--gold);
}
.modal-card h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;
  padding-right: 24px;
}
.modal-subtitle {
  font-size: 0.92rem;
  color: var(--text-soft);
  margin-bottom: 24px;
}

.bizum-instructions {
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--gold-dim);
  margin-bottom: 24px;
}
.bizum-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.bizum-step:last-child {
  margin-bottom: 0;
}
.step-num {
  background: var(--gold);
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.bizum-step p {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.5;
}
.bizum-step strong {
  color: var(--gold);
}
.bizum-phone {
  font-size: 1.4rem;
  font-family: var(--serif);
  color: var(--gold) !important;
  margin-top: 6px;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.80rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
}
.form-group input {
  background: var(--bg-soft);
  border: 1px solid var(--gold-dim);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.95rem;
  color: var(--text);
  font-family: var(--sans);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 10px var(--gold-glow);
}
.modal-submit {
  margin-top: 8px;
  width: 100%;
  justify-content: center;
  padding: 14px 20px;
  font-size: 0.95rem;
}
@media (max-width: 520px) {
  .modal-card {
    padding: 30px 20px;
  }
}

/* ── ÁREA PREMIUM (curso.html) ── */
.premium-container {
  padding-top: 140px;
  padding-bottom: 80px;
  min-height: calc(100vh - 100px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fondo decorativo con gradientes suaves (mallas) */
.premium-container .mesh-1 {
  position: absolute;
  top: 10%;
  left: 5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}
.premium-container .mesh-2 {
  position: absolute;
  bottom: 15%;
  right: 5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* Tarjeta de Acceso */
.login-card {
  max-width: 460px;
  width: 100%;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--gold-dim);
  border-radius: 20px;
  padding: 48px 40px;
  text-align: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s var(--ease-out), border-color 0.3s;
}

.login-card:hover {
  border-color: rgba(184, 145, 42, 0.4);
}

.login-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dim), rgba(184, 145, 42, 0.05));
  border: 1px solid var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin: 0 auto 28px;
}

.login-card h2 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.login-card-subtitle {
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.5;
  margin-bottom: 32px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-form .form-group input {
  text-align: center;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  padding: 14px 20px;
  font-family: var(--sans);
  text-transform: uppercase;
}

.login-form .form-group input::placeholder {
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.95rem;
}

.login-error-msg {
  background: rgba(220, 38, 38, 0.06);
  border: 1px solid rgba(220, 38, 38, 0.15);
  color: #dc2626;
  font-size: 0.88rem;
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 10px;
  line-height: 1.4;
}

/* Aplicación de Curso Principal */
.course-app {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
}

.course-header {
  margin-bottom: 36px;
  border-bottom: 1px solid rgba(184, 145, 42, 0.1);
  padding-bottom: 24px;
}

.course-header .eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 8px;
}

.course-header h2 {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 500;
}

.course-app-grid {
  display: grid;
  grid-template-columns: 1.7fr 1.3fr;
  gap: 32px;
  align-items: start;
}

.course-player-wrap {
  width: 100%;
}

.course-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--gold-dim);
  background: #000;
  box-shadow: 0 16px 48px rgba(0,0,0,0.15);
}

.course-player iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Playlist / Barra Lateral */
.course-playlist-wrap {
  background: var(--bg-card);
  border: 1px solid var(--gold-dim);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.04);
}

.course-playlist-wrap h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(184, 145, 42, 0.10);
  padding-bottom: 14px;
}

.course-playlist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 6px;
}

/* Scrollbar personalizado para la playlist */
.course-playlist::-webkit-scrollbar {
  width: 5px;
}
.course-playlist::-webkit-scrollbar-track {
  background: transparent;
}
.course-playlist::-webkit-scrollbar-thumb {
  background: var(--gold-dim);
  border-radius: 10px;
}
.course-playlist::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* Elementos de la playlist */
.playlist-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(184, 145, 42, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s var(--ease-out);
  width: 100%;
}

[data-theme="dark"] .playlist-item {
  background: rgba(26, 37, 52, 0.3);
}

.playlist-item:hover {
  background: var(--bg-soft);
  border-color: var(--gold-dim);
  transform: translateX(4px);
}

.playlist-item.active {
  background: var(--gold-glow);
  border-color: var(--gold);
  box-shadow: 0 4px 12px rgba(184, 145, 42, 0.08);
}

.playlist-item-num {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold);
  background: var(--bg-soft);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--gold-dim);
  transition: all 0.3s;
}

.playlist-item.active .playlist-item-num {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}

.playlist-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.playlist-item-title {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  transition: color 0.3s;
}

.playlist-item.active .playlist-item-title {
  color: var(--gold);
}

.playlist-item-duration {
  font-size: 0.78rem;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Responsividad para pantallas pequeñas */
@media (max-width: 960px) {
  .course-app-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .course-playlist {
    max-height: 400px;
  }
}

@media (max-width: 520px) {
  .login-card {
    padding: 36px 24px;
  }
  
  .login-card h2 {
    font-size: 1.6rem;
  }
  
  .course-header h2 {
    font-size: 1.8rem;
  }
}

