@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/CormorantGaramond-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/CormorantGaramond-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/CormorantGaramond-MediumItalic.woff2') format('woff2');
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/CormorantGaramond-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins-Light.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  --gold: #c9a05c;
  --gold-soft: #a9895f;
  --cream: #f5f1e8;
  --dark: #15120f;
  --dark2: #1e1a15;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Poppins', -apple-system, sans-serif;
}

* { box-sizing: border-box; }

.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  z-index: 50;
  pointer-events: none;
}
.site-footer a {
  pointer-events: auto;
  opacity: 0.55;
  transition: opacity 0.3s ease;
}
.site-footer a:hover {
  opacity: 0.9;
}
.site-footer-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--dark);
  color: var(--cream);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

#app {
  position: relative;
  min-height: 100vh;
  width: 100%;
}

.screen {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 40px 20px 60px;
  text-align: center;
}

.screen.hidden { display: none; }

.stars-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1px 1px at 10% 20%, rgba(201,160,92,0.5), transparent),
    radial-gradient(1px 1px at 80% 15%, rgba(201,160,92,0.4), transparent),
    radial-gradient(1px 1px at 60% 70%, rgba(201,160,92,0.35), transparent),
    radial-gradient(1px 1px at 30% 85%, rgba(201,160,92,0.4), transparent),
    radial-gradient(1px 1px at 90% 60%, rgba(201,160,92,0.3), transparent),
    radial-gradient(1px 1px at 45% 40%, rgba(201,160,92,0.3), transparent);
  background-size: 100% 100%;
  pointer-events: none;
}

.content {
  position: relative;
  z-index: 1;
  max-width: 520px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.content-wide { max-width: 900px; }

.eyebrow {
  font-family: var(--font-sans);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--gold);
  margin: 0 0 18px;
}

h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 44px;
  line-height: 1.15;
  margin: 0 0 22px;
  color: var(--cream);
}

h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 30px;
  margin: 18px 0 6px;
  color: var(--cream);
}

.intro-text {
  font-size: 16px;
  line-height: 1.6;
  color: #d8cfc0;
  margin: 0 0 34px;
  font-weight: 300;
}
.intro-text.small { font-size: 14px; margin-bottom: 28px; }

.btn {
  font-family: var(--font-sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 13px;
  padding: 16px 40px;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--cream);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}
.btn:hover { background: var(--gold); color: var(--dark); }

.btn-primary { background: var(--gold); color: var(--dark); }
.btn-primary:hover { background: transparent; color: var(--cream); }

.btn-ghost { background: transparent; }

.btn-link {
  border: none;
  background: none;
  color: var(--gold-soft);
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  margin-top: 18px;
  text-decoration: underline;
}

.hidden { display: none !important; }

/* Breathing */
.breathe-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px solid var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  transition: transform 4s ease-in-out;
  transform: scale(0.75);
}
.breathe-circle.expand { transform: scale(1.15); }
.breathe-circle-inner {
  width: 60%;
  height: 60%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,160,92,0.55), rgba(201,160,92,0.05));
}
.breathe-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 24px;
  color: var(--cream);
  min-height: 34px;
  margin-bottom: 30px;
}

/* Deck */
.deck {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 10px;
  max-width: 820px;
  width: 100%;
  margin-top: 10px;
  box-sizing: border-box;
}
.deck-card {
  aspect-ratio: 816 / 1456;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.deck-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.deck-card:hover { transform: translateY(-6px) scale(1.03); box-shadow: 0 10px 24px rgba(201,160,92,0.25); }
.deck-card.fade-out { opacity: 0; transform: scale(0.85); pointer-events: none; }

/* Flip card */
.flip-card {
  width: 240px;
  max-width: 60vw;
  aspect-ratio: 816 / 1456;
  perspective: 1400px;
  margin: 0 auto 30px;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 1s cubic-bezier(.4,.2,.2,1);
  transform-style: preserve-3d;
}
.flip-card-inner.flipped { transform: rotateY(180deg); }
.flip-card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}
.flip-card-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.flip-card-front { transform: rotateY(180deg); }

.reveal-text { max-width: 480px; }
.keyword {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold);
  font-size: 18px;
  margin: 0 0 18px;
}
.message-label {
  font-family: var(--font-sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--gold-soft);
  margin: 0 0 10px;
}
.message {
  font-size: 16px;
  line-height: 1.7;
  color: #e6ddcc;
  font-weight: 300;
  margin: 0 0 22px;
}
.affirmation {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  color: var(--cream);
  border-top: 1px solid rgba(201,160,92,0.35);
  padding-top: 18px;
  margin: 0 0 26px;
}
.footnote {
  font-size: 12px;
  color: var(--gold-soft);
  letter-spacing: 0.05em;
  margin-top: 18px;
}
.reveal-actions { margin-top: 6px; }

.cta-course {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid rgba(201,160,92,0.25);
}
.cta-course-label {
  font-family: var(--font-sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 500;
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 4px;
  margin: 0 0 12px;
}
.cta-course-text {
  font-size: 14px;
  line-height: 1.6;
  color: #d8cfc0;
  font-weight: 300;
  margin: 0 0 18px;
}

.reveal-card {
  width: 220px;
  max-width: 55vw;
  margin: 0 auto 24px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}
.reveal-card img { width: 100%; display: block; }

@media (max-width: 700px) {
  .content-wide { max-width: 100%; width: 100%; }
  .deck {
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 34px; }
  .screen { padding: 40px 14px 60px; }
  .deck {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }
}

/* ---------- Vista de prueba: fondo blanco ---------- */
/* Se activa agregando ?theme=light en la URL, sin afectar la versión normal. */
body.theme-light {
  background: #faf7f0;
  color: #2a2118;
}
body.theme-light .stars-bg { display: none; }
body.theme-light h1,
body.theme-light h2 {
  color: #2a2118;
}
body.theme-light .intro-text {
  color: #4a4030;
}
body.theme-light .breathe-text {
  color: #2a2118;
}
body.theme-light .btn {
  color: #2a2118;
}
body.theme-light .btn:hover {
  color: #faf7f0;
}
body.theme-light .btn-primary {
  color: #2a2118;
}
body.theme-light .btn-primary:hover {
  color: #2a2118;
}
body.theme-light .message {
  color: #3a2f22;
}
body.theme-light .affirmation {
  color: #2a2118;
}
body.theme-light .cta-course-text {
  color: #4a4030;
}
body.theme-light .footnote,
body.theme-light .btn-link {
  color: var(--gold-soft);
}
body.theme-light .deck-card,
body.theme-light .flip-card-face,
body.theme-light .reveal-card {
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}
