/* Yoga Facial con Aceites Esenciales — /clase
   Hoja de estilos autocontenida y con nombre único para no chocar
   con el CSS que ya pueda existir en yogafacialejercicios.com */

:root {
  --bg: #E9E8DB;
  --surface: #F6F4EA;
  --ink: #23291F;
  --ink-soft: #4B5544;
  --leaf: #33422C;
  --leaf-dark: #232E1D;
  --clay: #A85C32;
  --clay-dark: #7C4020;
  --gold: #C9A15A;
  --live-dot: #8FBF6B;
  --line: rgba(35, 41, 31, 0.12);
  --shadow: 0 10px 26px -16px rgba(35, 41, 31, 0.55);

  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Karla", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: var(--leaf-dark);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow: hidden; /* el scroll vive adentro del panel, no en la página */
}

img { max-width: 100%; }

a { color: inherit; }

h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6rem;
  color: var(--ink);
}

h1 { font-size: clamp(1.5rem, 4.5vw, 1.9rem); }
h2 { font-size: clamp(1.25rem, 3.6vw, 1.55rem); }

p { line-height: 1.6; margin: 0 0 1rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

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

/* ---------- Estructura general: mitad superior / mitad inferior ---------- */

.stage {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
}

.stage__video {
  flex: 0 0 50%;
  min-height: 0;
  background: #14140F;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-frame {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.stage__panel {
  flex: 1 1 50%;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

/* ---------- Barra superior del panel ---------- */

.panel__bar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 1.25rem;
  background: var(--leaf);
  color: #FBFAF4;
  box-shadow: var(--shadow);
}

.panel__bar .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--live-dot);
  flex: 0 0 auto;
}

@media (prefers-reduced-motion: no-preference) {
  .panel__bar .dot { animation: pulse 2.6s ease-in-out infinite; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.panel__bar-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.panel__bar-text strong {
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel__bar-text span {
  font-size: 0.8rem;
  color: rgba(251, 250, 244, 0.75);
}

/* ---------- Cuerpo del panel ---------- */

.panel__body {
  flex: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
}

.stage-msg__list {
  margin: 0 0 0.25rem;
  padding-left: 1.15rem;
  color: var(--ink-soft);
}

.stage-msg__list li { margin-bottom: 0.4rem; }

/* ---------- Bloques que se revelan con el video ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  margin-top: 1.75rem;
}

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

@media (prefers-reduced-motion: no-preference) {
  .reveal { transition: opacity 0.65s ease, transform 0.65s ease; }
}

.cta-card, .testimonios {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.cta-card p, .testimonios > p { color: var(--ink-soft); }

.cta-card__note {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
}

.cta-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(168, 92, 50, 0.12);
  color: var(--clay-dark);
  border: 1px solid rgba(168, 92, 50, 0.35);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  margin: 0 0 0.9rem;
}

/* ---------- Aviso flotante de inscripciones ---------- */

.signup-toast {
  position: fixed;
  right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  max-width: min(300px, calc(100vw - 28px));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.7rem 2.1rem 0.7rem 0.85rem;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(130%);
  pointer-events: none;
}

.signup-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (prefers-reduced-motion: no-preference) {
  .signup-toast { transition: opacity 0.45s ease, transform 0.45s ease; }
}

.signup-toast__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live-dot);
  flex: 0 0 auto;
}

.signup-toast__text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  font-size: 0.85rem;
  min-width: 0;
}

.signup-toast__text strong {
  font-weight: 700;
  color: var(--ink);
}

.signup-toast__text span {
  color: var(--ink-soft);
}

.signup-toast__close {
  position: absolute;
  top: 2px;
  right: 6px;
  border: none;
  background: none;
  color: var(--ink-soft);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  padding: 6px;
}

.signup-toast__close:hover { color: var(--ink); }

/* ---------- Botón ---------- */

.btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--clay), var(--clay-dark));
  color: #FBFAF4;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 26px -12px rgba(124, 64, 32, 0.65);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

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

.testimonios h2 { margin-bottom: 0.35rem; }

.testimonios__intro {
  margin-bottom: 1.1rem;
}

.testimonios__scroller {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 0 -1.5rem 1.35rem;
  padding: 0.2rem 1.5rem 0.6rem;
}

.testimonios__scroller figure {
  flex: 0 0 auto;
  scroll-snap-align: start;
  margin: 0;
  height: 300px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
}

.testimonios__scroller img {
  height: 100%;
  width: auto;
  display: block;
}

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

@media (min-width: 720px) {
  .btn { width: auto; padding-inline: 2.5rem; }
  .testimonios__scroller figure { height: 360px; }
}

@media (max-width: 380px) {
  .panel__body { padding: 1.4rem 1rem 2.5rem; }
  .testimonios__scroller figure { height: 250px; }
}
