:root {
  --bg: #05010b;
  --bg-soft: #11081c;
  --card: rgba(255, 255, 255, 0.06);
  --accent: #ff7bbf;
  --accent-soft: rgba(255, 123, 191, 0.25);
  --accent-2: #ffd26f;
  --text-main: #fef3ff;
  --text-soft: #c8b8ff;
  --border-soft: rgba(255, 255, 255, 0.18);
  --blur: 18px;
}

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1c0535 0, #05010b 50%);
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Fondos decorativos */
.bg-orbit,
.bg-hearts {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.bg-orbit::before,
.bg-orbit::after {
  content: "";
  position: absolute;
  width: 40rem;
  height: 40rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 123, 191, 0.3), transparent 70%);
  filter: blur(8px);
}

.bg-orbit::before {
  top: -10rem;
  left: -8rem;
}

.bg-orbit::after {
  bottom: -12rem;
  right: -10rem;
}

.bg-hearts::before {
  content: "♥ ♥ ♥";
  position: absolute;
  top: 10%;
  left: 10%;
  font-size: 2rem;
  opacity: 0.08;
  animation: floatHearts 14s linear infinite alternate;
}

.bg-hearts::after {
  content: "♥ ♥";
  position: absolute;
  bottom: 10%;
  right: 12%;
  font-size: 2.2rem;
  opacity: 0.08;
  animation: floatHearts 18s linear infinite alternate-reverse;
}

@keyframes floatHearts {
  0% { transform: translateY(0) translateX(0); }
  100% { transform: translateY(-40px) translateX(40px); }
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.2rem 7vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(5, 1, 11, 0.9), transparent);
}

.logo {
  font-weight: 600;
  letter-spacing: 0.01em;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--text-soft);
  text-decoration: none;
  position: relative;
  padding-bottom: 0.25rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  transition: width 0.25s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero */
.hero {
  padding: 8rem 8vw 5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  display: contents;
}

.hero-text {
  max-width: 580px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 123, 191, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-2);
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  margin: 1rem 0 0.6rem;
  line-height: 1.1;
}

.hero-subtitle {
  color: var(--text-soft);
  font-size: 0.98rem;
  max-width: 30rem;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero-note {
  font-size: 0.8rem;
  color: var(--text-soft);
  opacity: 0.8;
}

/* Botones */
.btn {
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.6rem;
  cursor: pointer;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1a081f;
  box-shadow: 0 12px 30px rgba(255, 123, 191, 0.4);
}

.btn.primary:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 16px 40px rgba(255, 123, 191, 0.6);
}

.btn.ghost {
  background: transparent;
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.btn.big {
  padding: 0.9rem 2.2rem;
  margin-top: 1.2rem;
}

.btn.small {
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem;
}

/* Hero card */
.hero-card {
  background: radial-gradient(circle at top left, rgba(255, 210, 111, 0.12), transparent 55%),
              radial-gradient(circle at bottom right, rgba(255, 123, 191, 0.18), transparent 55%),
              var(--card);
  border-radius: 1.5rem;
  padding: 1.4rem;
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(var(--blur));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.65);
}

.hero-photo {
  border-radius: 1.2rem;
  overflow: hidden;
  margin-bottom: 1rem;
}

.hero-photo img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 320px;
}

.hero-card-text {
  font-size: 0.9rem;
  color: var(--text-soft);
}

.hero-sign {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  opacity: 0.9;
}

/* Secciones generales */
.section {
  padding: 4.5rem 8vw;
}

.section.soft {
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.03), transparent 60%);
}

.section-header {
  max-width: 680px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-2);
  opacity: 0.85;
}

.section h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 2.8vw, 2.3rem);
  margin-top: 0.7rem;
  margin-bottom: 0.3rem;
}

.section-header p {
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* Timeline */
.timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  padding-left: 1.4rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  opacity: 0.7;
}

.timeline-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--accent);
  background: #05010b;
  margin-top: 0.3rem;
}

.timeline-content {
  background: var(--card);
  border-radius: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border-soft);
}

.timeline-content h3 {
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.timeline-date {
  font-size: 0.8rem;
  color: var(--accent-2);
  margin-bottom: 0.4rem;
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* Recuerdos */
.memories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.2rem;
  max-width: 900px;
  margin: 0 auto;
}

.memory-card {
  background: var(--card);
  border-radius: 1rem;
  padding: 1.1rem 1.1rem 1.2rem;
  border: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
}

.memory-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 123, 191, 0.2), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.memory-card:hover::after {
  opacity: 1;
}

.memory-number {
  font-size: 0.8rem;
  color: var(--accent-2);
  opacity: 0.9;
}

.memory-card h3 {
  font-size: 1rem;
  margin: 0.2rem 0 0.3rem;
}

.memory-card p {
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* Razones */
.reasons-list {
  max-width: 760px;
  margin: 0 auto;
  list-style-position: inside;
  display: grid;
  gap: 0.7rem;
  padding-left: 0;
}

.reasons-list li {
  background: var(--card);
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Quiz */
.quiz-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--card);
  padding: 1.6rem 1.6rem 1.3rem;
  border-radius: 1.2rem;
  border: 1px solid var(--border-soft);
}

.quiz-question {
  margin-bottom: 1rem;
}

.quiz-question p {
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}

.quiz-option {
  display: block;
  width: 100%;
  text-align: left;
  margin-bottom: 0.4rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-main);
  transition: background 0.18s ease, transform 0.08s ease, border-color 0.18s ease;
}

.quiz-option:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.quiz-option.correct {
  border-color: #21a764;
  background: rgba(50, 146, 37, 0.12);
}

.quiz-option.wrong {
  border-color: #ff4f7b;
  background: rgba(255, 79, 123, 0.12);
}

.quiz-result {
  font-size: 0.9rem;
  margin-top: 0.8rem;
  color: var(--text-soft);
}

/* Futuro */
.future-grid {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.future-item {
  background: var(--card);
  border-radius: 1rem;
  border: 1px solid var(--border-soft);
  padding: 1rem 1.1rem;
}

.future-item h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.future-item p {
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* Galería */
.gallery {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.9rem;
}

.gallery-item {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.3);
}

.gallery-item img {
  width: 100%;
  display: block;
  object-fit: cover;
  height: 100%;
  max-height: 230px;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

/* Mensaje final */
.final-section {
  padding-bottom: 5rem;
}

.final-card {
  max-width: 720px;
  margin: 0 auto;
  background: radial-gradient(circle at top, rgba(255, 210, 111, 0.09), transparent 55%),
              var(--card);
  padding: 2rem 1.8rem 2.3rem;
  border-radius: 1.5rem;
  border: 1px solid var(--border-soft);
  text-align: center;
}

.final-card h2 {
  margin-bottom: 0.8rem;
}

.final-card p {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin-bottom: 0.6rem;
}

.sorpresa {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.18);
}

.sorpresa-extra {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.hidden {
  display: none;
}

/* Footer */
.footer {
  padding: 1.6rem 8vw 2.2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-soft);
  opacity: 0.7;
}

/* Confeti canvas */
#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
}

/* Animaciones de aparición (reveal) */
.reveal {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsivo */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 7rem;
  }

  .hero-card {
    max-width: 420px;
    margin: 0 auto;
  }

  .nav-links {
    display: none; 
  }

  .section {
    padding-inline: 6vw;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-inline: 6vw;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .hero-card {
    padding: 1.1rem;
  }

  .final-card {
    padding-inline: 1.2rem;
  }
}
