*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:       #080810;
  --surface:  rgba(255,255,255,0.03);
  --border:   rgba(255,255,255,0.07);
  --rose:     #e8a598;
  --rose-dim: #c4897c;
  --rose-glow:rgba(232,165,152,0.12);
  --gold:     #d4b896;
  --text:     #d4c9bc;
  --muted:    #6a6058;
  --faint:    #2e2926;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── STARS ───────────────────────────────────────────────────── */
#stars {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
}
.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  animation: twinkle linear infinite;
}
@keyframes twinkle {
  0%,100% { opacity: 0.08; transform: scale(1); }
  50%      { opacity: 0.7;  transform: scale(1.5); }
}

/* ── FLOATING PETALS ─────────────────────────────────────────── */
.petal {
  position: fixed;
  font-size: 1rem;
  pointer-events: none;
  z-index: 0;
  animation: petalFall linear infinite;
  opacity: 0;
}
@keyframes petalFall {
  0%   { transform: translateY(-40px) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.35; }
  90%  { opacity: 0.2; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* ── NAV ─────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex; justify-content: center; gap: 2rem;
  background: linear-gradient(to bottom, rgba(8,8,16,0.9), transparent);
  backdrop-filter: blur(4px);
}
nav a {
  font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
  text-decoration: none; transition: color 0.2s;
}
nav a:hover { color: var(--rose); }

/* ── SECTIONS ────────────────────────────────────────────────── */
section {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 6rem 1.5rem 4rem;
}

/* ── HERO ────────────────────────────────────────────────────── */
#hero {
  text-align: center;
  gap: 0;
}

.badge {
  display: inline-block;
  background: rgba(255,255,255,0.04);
  border: 0.5px solid var(--border);
  border-radius: 999px;
  padding: 6px 20px;
  font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 2.5rem;
}

.name-line {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(3.5rem, 12vw, 7rem);
  font-weight: 400;
  color: var(--rose);
  line-height: 1;
  margin-bottom: 0.4rem;
  text-shadow: 0 0 80px rgba(232,165,152,0.3);
}

.name-sub {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--muted);
  margin-bottom: 2rem;
  letter-spacing: 0.04em;
}

.hero-phrase {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 400;
  line-height: 1.55;
  color: #b8a898;
  max-width: 500px;
  margin-bottom: 3rem;
}

/* ── RANT ────────────────────────────────────────────────────── */
.rant-box {
  max-width: 520px; width: 100%;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 20px;
  padding: 2rem 1.75rem;
  text-align: left;
  position: relative; overflow: hidden;
  margin-bottom: 2rem;
}
.rant-box::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--rose), transparent);
  opacity: 0.5;
}
.rant-label {
  font-size: 9px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--faint);
  margin-bottom: 1.25rem;
}
.rant-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.05rem; line-height: 2;
  color: #907870; min-height: 120px;
}
.rant-text .hl { color: #e8c4b8; font-weight: 700; font-style: normal; }
.rant-final {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; font-weight: 700; font-style: italic;
  color: var(--rose); line-height: 1.6;
  margin-top: 1.25rem; padding-top: 1.25rem;
  border-top: 0.5px solid rgba(232,165,152,0.15);
  opacity: 0; transition: opacity 1.2s ease;
}
.rant-final.show { opacity: 1; }

.house-quote {
  border: 0.5px solid rgba(232,165,152,0.2);
  border-radius: 16px; padding: 1.75rem;
  max-width: 480px; width: 100%;
  margin-bottom: 2rem;
  background: rgba(232,165,152,0.04);
  text-align: left; position: relative;
}
.house-quote::before {
  content: '"';
  font-family: 'Playfair Display', serif;
  font-size: 6rem; color: rgba(232,165,152,0.1);
  position: absolute; top: -14px; left: 14px; line-height: 1;
}
.house-quote p {
  font-family: 'Lora', serif;
  font-style: italic; font-size: 0.95rem;
  line-height: 2; color: #b8a898; position: relative; z-index: 1;
}
.house-quote .attribution {
  font-size: 0.68rem; color: var(--faint);
  margin-top: 0.75rem; letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* ── COUNTERS ────────────────────────────────────────────────── */
#counters { gap: 2rem; }

.counter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px; width: 100%; max-width: 700px;
}

.counter-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 20px; padding: 1.75rem;
  text-align: center; position: relative; overflow: hidden;
}
.counter-card.rose-glow { border-color: rgba(232,165,152,0.2); }
.counter-card.sad-glow  { border-color: rgba(100,120,180,0.2); }

.counter-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, var(--glow-color, transparent) 0%, transparent 70%);
  opacity: 0.15; pointer-events: none;
}
.counter-card.rose-glow { --glow-color: #e8a598; }
.counter-card.sad-glow  { --glow-color: #7090d0; }

.counter-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.counter-title {
  font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 1rem;
}
.counter-digits {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 700; color: var(--rose);
  line-height: 1; margin-bottom: 0.5rem;
}
.counter-card.sad-glow .counter-digits { color: #8099cc; }
.counter-sub {
  font-size: 0.72rem; color: var(--faint);
  letter-spacing: 0.06em;
}
.counter-note {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.82rem; color: var(--muted);
  margin-top: 0.75rem; line-height: 1.7;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: var(--rose); margin-bottom: 0.5rem;
  text-align: center;
}
.section-sub {
  font-size: 0.78rem; color: var(--muted);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 2.5rem; text-align: center;
}

/* ── TIMELINE ────────────────────────────────────────────────── */
#momentos { gap: 2rem; }

.timeline {
  max-width: 560px; width: 100%;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute; left: 20px; top: 0; bottom: 0;
  width: 0.5px;
  background: linear-gradient(to bottom, transparent, rgba(232,165,152,0.3), transparent);
}
.tl-item {
  display: flex; gap: 1.5rem;
  margin-bottom: 2.5rem; position: relative;
  opacity: 0; transform: translateX(-20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.tl-item.visible { opacity: 1; transform: translateX(0); }
.tl-dot {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 0.5px solid rgba(232,165,152,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
  position: relative; z-index: 1;
}
.tl-content { padding-top: 0.4rem; }
.tl-date {
  font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--rose-dim);
  margin-bottom: 0.4rem;
}
.tl-title {
  font-family: 'Lora', serif;
  font-size: 1rem; color: var(--text);
  margin-bottom: 0.4rem;
}
.tl-desc {
  font-size: 0.8rem; color: var(--muted);
  line-height: 1.75;
}

/* ── ÁRBOL DE PAREJA ─────────────────────────────────────────── */
#arbol { gap: 2rem; }

.tree-container {
  max-width: 540px; width: 100%;
}
.tree-visual {
  text-align: center;
  font-size: 5rem; margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 30px rgba(100,180,100,0.2));
  animation: treeSway 4s ease-in-out infinite;
}
@keyframes treeSway {
  0%,100% { transform: rotate(-1deg); }
  50%      { transform: rotate(1deg); }
}
.tree-level {
  background: var(--surface);
  border: 0.5px solid rgba(100,200,100,0.1);
  border-radius: 16px; padding: 1rem 1.5rem;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 1rem;
}
.tree-level-icon { font-size: 1.4rem; flex-shrink: 0; }
.tree-level-info { flex: 1; }
.tree-level-name {
  font-size: 0.82rem; color: #90c090;
  font-weight: 500; margin-bottom: 0.2rem;
}
.tree-level-desc { font-size: 0.73rem; color: var(--muted); line-height: 1.6; }
.tree-progress-bar {
  height: 4px; background: rgba(255,255,255,0.05);
  border-radius: 999px; margin-top: 0.5rem; overflow: hidden;
}
.tree-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4a8a4a, #90c090);
  border-radius: 999px;
  transition: width 1.5s ease;
}

.quiz-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 16px; padding: 1.5rem;
  margin-top: 1rem;
}
.quiz-label {
  font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--faint);
  margin-bottom: 1rem;
}
.quiz-question {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1rem; color: var(--text);
  line-height: 1.75; margin-bottom: 1.25rem;
}
.quiz-options { display: flex; flex-direction: column; gap: 8px; }
.quiz-opt {
  background: transparent;
  border: 0.5px solid var(--border);
  border-radius: 10px; padding: 0.75rem 1rem;
  color: var(--muted); font-family: 'Inter', sans-serif;
  font-size: 0.82rem; cursor: pointer; text-align: left;
  transition: all 0.2s; display: flex; gap: 10px; align-items: center;
}
.quiz-opt:hover { background: rgba(255,255,255,0.04); color: var(--text); border-color: rgba(232,165,152,0.2); }
.quiz-opt.correct { background: rgba(100,200,100,0.08); border-color: rgba(100,200,100,0.3); color: #90c090; }
.quiz-opt.wrong   { background: rgba(200,80,80,0.06);  border-color: rgba(200,80,80,0.25);   color: #c09090; }
.quiz-feedback {
  font-family: 'Lora', serif; font-style: italic;
  font-size: 0.85rem; color: var(--muted);
  line-height: 1.75; margin-top: 1rem; padding-top: 1rem;
  border-top: 0.5px solid var(--border);
  display: none;
}
.quiz-feedback.show { display: block; }
.quiz-next {
  margin-top: 1rem; width: 100%;
  background: transparent;
  border: 0.5px solid rgba(232,165,152,0.2);
  border-radius: 10px; padding: 0.7rem;
  color: var(--rose-dim); font-family: 'Inter', sans-serif;
  font-size: 0.8rem; cursor: pointer; transition: all 0.2s;
  display: none;
}
.quiz-next.show { display: block; }
.quiz-next:hover { background: rgba(232,165,152,0.08); }

/* ── FOTOS ───────────────────────────────────────────────────── */
#fotos { gap: 2rem; }

.carousel-wrap {
  max-width: 560px; width: 100%;
  position: relative;
}
.carousel-track-outer {
  overflow: hidden;
  border-radius: 20px;
  border: 0.5px solid var(--border);
  position: relative;
}
.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.carousel-slide {
  min-width: 100%;
  aspect-ratio: 4/3;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #100d0c, #1a1210);
  overflow: hidden;
}

/* ──────────────────────────────────────────────────────────────
   FOTOS — INSTRUCCIONES PARA JESUS:
   
   Hay 6 slides (slide-1 a slide-6).
   Para agregar una foto real:
     1. Sube la imagen a /var/www/amoe/fotos/foto1.jpg
     2. En el slide correspondiente, cambia:
            background: linear-gradient(...)
        por:
            background: url('fotos/foto1.jpg') center/cover no-repeat;
     3. Y borra el contenido .slide-placeholder de ese slide.
   
   También puedes agregar más slides copiando el bloque
   <div class="carousel-slide" id="slide-X">...</div>
   y actualizando el total en JS (variable TOTAL_SLIDES = 6)
────────────────────────────────────────────────────────────── */

.slide-placeholder {
  text-align: center; pointer-events: none;
}
.slide-placeholder .ph-icon { font-size: 3rem; margin-bottom: 0.75rem; opacity: 0.3; }
.slide-placeholder .ph-num {
  font-family: 'Playfair Display', serif;
  font-style: italic; font-size: 0.9rem;
  color: var(--muted);
}
.slide-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 2rem 1.5rem 1.25rem;
  background: linear-gradient(to top, rgba(8,8,16,0.85), transparent);
  font-family: 'Lora', serif; font-style: italic;
  font-size: 0.88rem; color: var(--text); line-height: 1.6;
}
.carousel-ctrl {
  display: flex; justify-content: center;
  align-items: center; gap: 1rem; margin-top: 1rem;
}
.c-btn {
  width: 38px; height: 38px;
  background: var(--surface); border: 0.5px solid var(--border);
  border-radius: 50%; color: var(--muted);
  font-size: 1rem; cursor: pointer;
  transition: all 0.2s; display: flex; align-items: center; justify-content: center;
}
.c-btn:hover { border-color: rgba(232,165,152,0.3); color: var(--rose); }
.c-dots { display: flex; gap: 6px; }
.c-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--border); transition: background 0.2s, width 0.2s;
  cursor: pointer;
}
.c-dot.active { background: var(--rose); width: 16px; border-radius: 999px; }

/* ── CANCIONES ───────────────────────────────────────────────── */
#canciones { gap: 2rem; }

.playlist-wrap {
  max-width: 540px; width: 100%;
  display: flex; flex-direction: column; gap: 10px;
}

/* ──────────────────────────────────────────────────────────────
   CANCIONES — INSTRUCCIONES PARA JESUS:
   
   Cada canción es un .song-card en el HTML de abajo.
   Para cambiar una canción:
     - Cambia el texto del .song-title (nombre)
     - Cambia el texto del .song-artist (artista)
     - Cambia el .song-from ("ella me mandó" / "yo pienso en ella")
     - Para el link de Spotify: en el botón .song-link,
       reemplaza href="#" con el link real de Spotify:
       href="https://open.spotify.com/track/..."
   
   Para agregar más canciones, copia un bloque .song-card completo.
────────────────────────────────────────────────────────────── */

.song-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 14px; padding: 1rem 1.25rem;
  display: flex; align-items: center; gap: 1rem;
  transition: background 0.2s, border-color 0.2s;
}
.song-card:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(232,165,152,0.2);
}
.song-num {
  font-family: 'Playfair Display', serif;
  font-style: italic; font-size: 1.2rem;
  color: var(--faint); min-width: 24px;
  text-align: center;
}
.song-art {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1a1210, #2a1e1a);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.song-info { flex: 1; min-width: 0; }
.song-title {
  font-size: 0.88rem; color: var(--text);
  font-weight: 500; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.song-artist { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }
.song-from {
  font-size: 0.65rem; letter-spacing: 0.08em;
  text-transform: uppercase; margin-top: 4px;
}
.song-from.from-ella { color: #c090a0; }
.song-from.from-me   { color: #90a0c0; }
.song-link {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(30,215,96,0.1);
  border: 0.5px solid rgba(30,215,96,0.2);
  display: flex; align-items: center; justify-content: center;
  color: #1ed760; font-size: 0.85rem;
  text-decoration: none; flex-shrink: 0;
  transition: all 0.2s;
}
.song-link:hover { background: rgba(30,215,96,0.2); }

/* ── OPCIONES ────────────────────────────────────────────────── */
#opciones { gap: 2rem; }

.options-wrap { max-width: 480px; width: 100%; }
.opt-label {
  font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 1.25rem;
  font-family: 'Playfair Display', serif; font-style: italic;
  font-size: 1.1rem; text-transform: none; letter-spacing: 0;
  color: var(--text);
}
.opt-btn {
  width: 100%;
  background: transparent;
  border: 0.5px solid var(--border);
  border-radius: 12px; padding: 0.9rem 1.2rem;
  color: var(--muted); font-family: 'Inter', sans-serif;
  font-size: 0.85rem; cursor: pointer; text-align: left;
  margin-bottom: 9px;
  transition: all 0.2s;
  display: flex; align-items: center; gap: 12px;
}
.opt-btn:hover { background: rgba(255,255,255,0.04); color: var(--text); border-color: rgba(232,165,152,0.25); }
.opt-btn.selected { background: var(--rose-glow); border-color: rgba(232,165,152,0.35); color: #e8c4b8; }
.resp-box {
  background: rgba(232,165,152,0.06);
  border: 0.5px solid rgba(232,165,152,0.18);
  border-radius: 12px; padding: 1.1rem 1.4rem;
  margin-top: 0.5rem;
  font-family: 'Lora', serif; font-style: italic;
  font-size: 0.9rem; color: #c9b8a8; line-height: 1.9;
  animation: fadeUp 0.5s ease; display: none;
}
.resp-box.show { display: block; }

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 1.5rem; }
.cta {
  background: var(--rose); color: #1a0f0a;
  border: none; border-radius: 999px;
  padding: 13px 32px; font-size: 0.85rem; font-weight: 500;
  cursor: pointer; font-family: 'Inter', sans-serif;
  transition: opacity 0.2s, transform 0.1s;
}
.cta:hover { opacity: 0.88; }
.cta:active { transform: scale(0.97); }
.ghost-btn {
  background: transparent;
  border: 0.5px solid var(--border);
  color: var(--muted); border-radius: 999px;
  padding: 12px 22px; font-size: 0.82rem;
  cursor: pointer; font-family: 'Inter', sans-serif;
  transition: all 0.2s;
}
.ghost-btn:hover { background: rgba(255,255,255,0.04); color: var(--text); }

/* ── FOOTER ──────────────────────────────────────────────────── */
footer {
  position: relative; z-index: 1;
  text-align: center; padding: 3rem 1.5rem;
}
footer p {
  font-family: 'Playfair Display', serif;
  font-style: italic; font-size: 1rem;
  color: var(--faint);
}

/* ── FLOATIES ────────────────────────────────────────────────── */
.heart-float {
  position: fixed; font-size: 1.4rem;
  pointer-events: none; z-index: 999;
  animation: floatUp 2.2s ease-out forwards;
}
@keyframes floatUp {
  0%   { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-240px) scale(0.1); opacity: 0; }
}

/* ── ANIMATIONS ──────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 480px) {
  nav { gap: 1rem; }
  nav a { font-size: 0.65rem; }
  .counter-grid { grid-template-columns: 1fr; }
}