/* --- Variables --- */
:root {
  --color-bg: #0f0a0a;
  --color-surface: #1a1212;
  --color-surface-2: #251a1a;
  --color-accent: #c97b84;
  --color-accent-soft: #e8a4ab;
  --color-text: #f5eaea;
  --color-text-muted: #b8a4a4;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', sans-serif;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --transition: 0.35s ease;
}

/* --- Reset y base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- Pantalla de contraseña --- */
.password-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(201, 123, 132, 0.2) 0%, transparent 50%),
    var(--color-bg);
  padding: 1.5rem;
}

.password-screen.hidden {
  display: none;
}

.password-box {
  width: 100%;
  max-width: 320px;
  padding: 2rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(201, 123, 132, 0.2);
  text-align: center;
}

.password-hint {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--color-accent-soft);
  margin: 0 0 1.5rem;
}

.password-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.password-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-surface-2);
  border: 1px solid var(--color-text-muted);
  border-radius: var(--radius);
  outline: none;
}

.password-input:focus {
  border-color: var(--color-accent);
}

.password-input::placeholder {
  color: var(--color-text-muted);
}

.password-btn {
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-bg);
  background: var(--color-accent);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
}

.password-btn:hover {
  background: var(--color-accent-soft);
}

.password-error {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: #e88;
  min-height: 1.4em;
}

.main-content.hidden {
  display: none;
}

.main-content {
  display: block;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(201, 123, 132, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(232, 164, 171, 0.08) 0%, transparent 45%),
    var(--color-bg);
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-accent-soft);
  margin: 0 0 0.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 400;
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s forwards;
}

.hero-text {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin: 0 0 2rem;
  max-width: 320px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.6s forwards;
}

.hero-cta {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: transparent;
  border: 1px solid var(--color-accent);
  color: var(--color-accent-soft);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  border-radius: 999px;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  opacity: 0;
  animation: fadeUp 0.8s ease 0.8s forwards;
}

.hero-cta:hover {
  background: var(--color-accent);
  color: var(--color-bg);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  color: var(--color-text-muted);
  animation: bounce 2s ease-in-out infinite;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* --- Secciones genéricas --- */
.section {
  padding: 4rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 400;
  text-align: center;
  margin: 0 0 0.5rem;
  color: var(--color-text);
}

.section-desc {
  text-align: center;
  color: var(--color-text-muted);
  margin: 0 0 2rem;
  font-size: 0.95rem;
}

/* --- Historia / Timeline --- */
.historia {
  background: var(--color-surface);
}

.historia-texto {
  max-width: 640px;
  margin: 0 auto;
  margin-top: 1.5rem;
}

.historia-texto p {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.historia-texto p:last-child {
  margin-bottom: 0;
}

.timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--color-surface-2);
  margin-left: 0.5rem;
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
  position: absolute;
  left: -2rem;
  top: 0.25rem;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-surface);
}

.timeline-content h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--color-accent-soft);
}

.timeline-content p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* --- Aquí nos vimos por primera vez (mapa) --- */
.lugar {
  background: var(--color-bg);
}

.map-wrap {
  margin-top: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 450px;
}

@media (max-width: 640px) {
  .map-wrap iframe {
    height: 320px;
  }
}

/* --- Textos / Frases --- */
.textos {
  background: var(--color-bg);
}

.textos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.texto-card {
  margin: 0;
  padding: 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  border-left: 3px solid var(--color-accent);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.texto-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.texto-card p {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-text);
}

/* --- Galería --- */
.galeria {
  background: var(--color-surface);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
}

.gallery-item {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.gallery-item:hover {
  transform: scale(1.03);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.lightbox[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* --- Vídeo --- */
.video-section {
  background: var(--color-bg);
}

/* Carrusel de vídeos */
.video-carousel {
  position: relative;
  margin-top: 2rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.carousel-track-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow);
  position: relative;
}

.carousel-track {
  position: relative;
  width: 100%;
}

.carousel-slide {
  display: none;
  width: 100%;
}

.carousel-slide.active {
  display: block;
}

.carousel-slide video {
  width: 100%;
  display: block;
  max-height: 70vh;
  object-fit: contain;
  background: #000;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 1.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.carousel-prev { left: -56px; }
.carousel-next { right: -56px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--color-surface-2);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-dot:hover {
  background: var(--color-text-muted);
}

.carousel-dot.active {
  background: var(--color-accent);
  transform: scale(1.2);
}

@media (max-width: 700px) {
  .carousel-prev { left: 8px; }
  .carousel-next { right: 8px; }
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    background: rgba(0, 0, 0, 0.5);
  }
}

.video-placeholder {
  padding: 3rem 2rem;
  text-align: center;
  color: var(--color-text-muted);
}

.video-placeholder p:first-child {
  font-size: 1.2rem;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.video-hint {
  font-size: 0.9rem;
  max-width: 480px;
  margin: 0.5rem auto;
}

.video-hint code {
  background: var(--color-surface-2);
  padding: 0.2em 0.5em;
  border-radius: 4px;
  font-size: 0.85em;
}

/* --- Música --- */
.musica {
  background: var(--color-surface);
}

.music-player {
  margin-top: 2rem;
  padding: 2rem;
  background: var(--color-surface-2);
  border-radius: var(--radius);
  text-align: center;
}

.music-track {
  margin-bottom: 1.5rem;
}

.music-track:last-child {
  margin-bottom: 0;
}

.music-track .music-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  color: var(--color-accent-soft);
}

.youtube-wrap {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 1rem auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.youtube-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.music-info .music-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  color: var(--color-accent-soft);
}

.music-hint {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0 0 1rem;
}

.music-hint code {
  background: var(--color-bg);
  padding: 0.2em 0.5em;
  border-radius: 4px;
}

.audio-placeholder {
  padding: 1.5rem;
  background: var(--color-bg);
  border-radius: var(--radius);
  color: var(--color-text-muted);
}

.music-player audio {
  width: 100%;
  margin-top: 1rem;
  border-radius: 999px;
  height: 40px;
}

/* --- Regalo (Spa) --- */
.regalo {
  background: var(--color-surface);
}

.regalo-wrap {
  margin-top: 1.5rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

/* --- Footer --- */
.footer {
  padding: 3rem 1.5rem;
  text-align: center;
  background: var(--color-bg);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-heart {
  font-size: 2rem;
  margin: 0 0 0.5rem;
}

.footer p { margin: 0.25rem 0; }
.footer-date { font-size: 0.8rem; opacity: 0.8; }

/* --- Responsive --- */
/* Animación al hacer scroll */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 600px) {
  .section { padding: 3rem 1rem; }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  .textos-grid { grid-template-columns: 1fr; }
}
