/* ==========================================================================
   PORTADA DE LOS NOVIOS - ESTILO EXACTO CON CORAZÓN ASTRONÓMICO
   Fondo Responsivo (portadapc.png / portadamovil.png), Tipografía Fina y Música
   ========================================================================== */

:root {
  /* Fondo Azul Noche Profundo */
  --bg-navy-solid: #010311;
  --bg-navy-dark: #040715;

  /* Paleta Champagne y Oro */
  --champagne-pure: #ffffff;
  --champagne-light: #f5ebd9;
  --champagne-main: #dfc89e;
  --champagne-warm: #d6bc8c;
  --champagne-muted: #bfa577;
  --champagne-border: rgba(223, 200, 158, 0.4);
  --gold-glow: rgba(223, 200, 158, 0.55);

  --text-white: #ffffff;
  --text-cream: #f4ebd9;
  --text-muted: rgba(230, 238, 255, 0.78);

  /* Fuentes */
  --font-cinzel: 'Cinzel', serif;
  --font-script: 'Great Vibes', cursive;
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Montserrat', sans-serif;
}

/* ==========================================================================
   SECCIÓN HERO / PORTADA (100vh de inicio en scroll)
   ========================================================================== */
.portada-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

/* Canvas de estrellas para la portada */
#portada-constellations-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

/* Fondo hero responsivo */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, 
      rgba(1, 3, 17, 0.75) 0%, 
      rgba(1, 3, 17, 0.40) 30%, 
      rgba(1, 3, 17, 0.10) 55%, 
      rgba(1, 3, 17, 0.80) 100%
  );
  pointer-events: none;
}

/* Gradiente de fusión suave entre la portada y las secciones inferiores */
.portada-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: clamp(140px, 32vh, 320px);
  background: linear-gradient(
    to bottom,
    rgba(1, 3, 17, 0) 0%,
    rgba(1, 3, 17, 0.35) 30%,
    rgba(1, 3, 17, 0.75) 65%,
    rgba(1, 3, 17, 0.96) 88%,
    #010311 100%
  );
  pointer-events: none;
  z-index: 3;
}

/* Contenedor central de la Portada */
.portada-main {
  position: relative;
  z-index: 4;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 20px 15px;
  text-align: center;
  animation: fadeInSlow 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Bloque central enmarcado en el corazón */
.canvas-heart-center-block {
  position: absolute;
  top: 28%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 880px;
  width: 92vw;
  pointer-events: auto;
}

/* Subtítulo: NUESTRA BODA */
.wedding-subtitle-canvas {
  font-family: var(--font-cinzel);
  font-size: clamp(0.58rem, 1.2vw, 0.78rem);
  font-weight: 400;
  letter-spacing: clamp(4px, 0.6vw, 8px);
  color: var(--champagne-warm);
  text-transform: uppercase;
  margin-bottom: clamp(4px, 0.8vh, 8px);
  opacity: 0.95;
  text-shadow: 0 0 12px rgba(223, 200, 158, 0.4);
}

.names-and-surnames-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Layout Centrado por Pareja: CHRISTIAN & NATALIA con sus apellidos centrados debajo */
.couple-columns-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.6rem, 1.8vw, 1.8rem);
  width: 100%;
  margin-bottom: clamp(10px, 1.6vh, 16px);
}

.person-name-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.person-first-name {
  font-family: var(--font-cinzel);
  font-size: clamp(1.6rem, 3.8vw, 3.2rem);
  font-weight: 400;
  letter-spacing: clamp(3px, 0.45vw, 6px);
  color: var(--champagne-pure);
  line-height: 1.15;
  white-space: nowrap;
  text-shadow: 
    0 0 30px rgba(200, 164, 93, 0.35),
    0 4px 18px rgba(1, 3, 17, 0.95);
  margin-bottom: clamp(2px, 0.4vh, 5px);
}

.person-surname {
  font-family: var(--font-serif);
  font-size: clamp(0.72rem, 1.5vw, 1.05rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 1.8px;
  color: var(--champagne-warm);
  white-space: nowrap;
  text-shadow: 0 2px 10px rgba(1, 3, 17, 0.9);
}

.ampersand-center-col {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: clamp(14px, 2.2vh, 22px);
}

.canvas-ampersand {
  font-family: var(--font-script);
  font-size: clamp(1.8rem, 3.8vw, 3.2rem);
  font-weight: 400;
  color: var(--champagne-main);
  line-height: 1;
  text-shadow: 0 0 14px rgba(245, 218, 155, 0.7);
}

/* Cápsula de Fecha */
.canvas-date-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(1, 3, 17, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(223, 200, 158, 0.35);
  padding: 6px 22px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.canvas-date {
  font-family: var(--font-cinzel);
  font-size: clamp(0.68rem, 1.2vw, 0.86rem);
  font-weight: 400;
  letter-spacing: 4px;
  color: var(--champagne-pure);
  text-indent: 2px;
}

/* Indicador de desplazamiento (DESLIZA PARA DESCUBRIR) */
.scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.88;
  animation: floatIndicator 2.5s ease-in-out infinite;
  user-select: none;
  text-decoration: none;
  cursor: pointer;
}

.scroll-text {
  font-family: var(--font-cinzel);
  font-size: clamp(0.55rem, 0.8vw, 0.65rem);
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--champagne-warm);
}

.scroll-arrow svg {
  stroke: var(--champagne-main);
}

/* Botón flotante de música estilo Vinilo Dorado */
.music-toggle-luxe {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1000;
  outline: none;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.music-toggle-luxe:hover {
  transform: scale(1.1);
}

.music-toggle-luxe:active {
  transform: scale(0.95);
}

.vinyl-disc {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, #101c38 0%, #060b18 70%, #03060f 100%);
  border: 1.5px solid var(--champagne-border);
  box-shadow: 
    0 4px 18px rgba(0, 0, 0, 0.6),
    0 0 14px rgba(223, 200, 158, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease;
}

.music-toggle-luxe.playing .vinyl-disc {
  border-color: var(--champagne-main);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(245, 218, 155, 0.55);
  animation: rotateVinyl 6s linear infinite;
}

.vinyl-center {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(223, 200, 158, 0.15);
  border: 1px solid var(--champagne-main);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--champagne-light);
}

.vinyl-center svg {
  stroke: var(--champagne-main);
}

@keyframes fadeInSlow {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatIndicator {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}

@keyframes rotateVinyl {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .canvas-heart-center-block {
    top: 25%;
  }

  .couple-columns-layout {
    gap: clamp(0.35rem, 1.4vw, 0.75rem);
  }

  .person-first-name {
    font-size: clamp(1.2rem, 4.8vw, 1.8rem);
    letter-spacing: 2px;
  }

  .person-surname {
    font-size: clamp(0.55rem, 2.5vw, 0.72rem);
    letter-spacing: 1px;
  }

  .canvas-ampersand {
    font-size: clamp(1.35rem, 4.8vw, 1.85rem);
  }

  .ampersand-center-col {
    padding-bottom: clamp(8px, 1.6vh, 14px);
  }

  .wedding-subtitle-canvas {
    font-size: 0.52rem;
    letter-spacing: 4px;
  }

  .canvas-date {
    font-size: 0.62rem;
    letter-spacing: 2.5px;
  }

  .music-toggle-luxe {
    bottom: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
  }
}
