/* ============================================================
   CUMPLE GABRIEL 60 · Estilos
   Paleta "Negro & Dorado" · Playfair Display + Montserrat
   ============================================================ */

/* ---- VARIABLES: cambiá colores y fuentes desde acá ---- */
:root {
  /* Colores */
  --color-fondo:   #0E0E0E; /* negro carbón */
  --color-texto:   #F5F0E6; /* blanco cálido */
  --color-acento:  #C9A24B; /* dorado */
  --color-detalle: #1E1E1E; /* gris grafito */
  --color-acento-suave: rgba(201, 162, 75, 0.15);
  --color-borde:   rgba(201, 162, 75, 0.35);

  /* Tipografías */
  --font-titulo: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-texto:  'Montserrat', system-ui, -apple-system, sans-serif;

  /* Layout */
  --ancho-max: 900px;
  --radio: 14px;
}

/* ---- RESET básico ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--color-fondo);
  color: var(--color-texto);
  font-family: var(--font-texto);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

/* ============================================================
   ANIMACIÓN DE APARICIÓN AL SCROLL (IntersectionObserver)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   TÍTULOS Y TEXTOS GENERALES DE SECCIÓN
   ============================================================ */
.section-title {
  font-family: var(--font-titulo);
  font-weight: 700;
  font-size: clamp(1.9rem, 6vw, 3rem);
  color: var(--color-acento);
  text-align: center;
  margin-bottom: 0.6em;
  letter-spacing: 0.5px;
}
.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: var(--color-acento);
  margin: 0.5em auto 0;
  opacity: 0.7;
}
.section-text {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 1.8em;
  font-size: 1.05rem;
  color: rgba(245, 240, 230, 0.82);
}

section, footer.closing {
  padding: 5rem 1.25rem;
  max-width: var(--ancho-max);
  margin: 0 auto;
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-texto);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.5px;
  padding: 0.9em 1.8em;
  border-radius: 100px;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn:active { transform: scale(0.97); }

.btn--gold {
  background: var(--color-acento);
  color: #1a1206;
}
.btn--gold:hover { background: #e0b968; transform: translateY(-2px); }

.btn--outline {
  background: transparent;
  color: var(--color-acento);
  border-color: var(--color-borde);
}
.btn--outline:hover {
  background: var(--color-acento-suave);
  transform: translateY(-2px);
}

/* Centrar botones que van solos en su sección */
.party, .rsvp, .insta, .playlist { text-align: center; }

/* ============================================================
   1) PORTADA / HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.25rem;
  max-width: none;
  overflow: hidden;
}
/* Fondo: foto de portada + degradé de respaldo (si la foto falta, igual se ve bien)
   ⚠️ REEMPLAZAR: poné tu imagen en img/portada.jpg (~1920x1080) */
.hero__bg {
  position: absolute;
  inset: 0;
  /* Color de respaldo por si la foto no carga (queda un degradé cálido) */
  background-color: #1a1206;
  /* Capa oscura semitransparente ARRIBA + la foto ABAJO.
     La foto se ve; el overlay asegura que el texto se lea.
     ⚠️ REEMPLAZAR la foto en img/portada.jpg (horizontal ~1920x1080 va ideal) */
  background-image:
    linear-gradient(180deg, rgba(14,14,14,0.35) 0%, rgba(14,14,14,0.60) 55%, var(--color-fondo) 100%),
    url('../img/portada.jpg');
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  z-index: 0;
}
.hero__content { position: relative; z-index: 1; }

.hero__eyebrow {
  font-family: var(--font-texto);
  font-weight: 300;
  font-size: clamp(0.95rem, 3.5vw, 1.25rem);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(245, 240, 230, 0.85);
  margin-bottom: 0.8em;
  line-height: 1.5;
}
.hero__name {
  font-family: var(--font-titulo);
  font-weight: 800;
  font-size: clamp(3rem, 14vw, 6rem);
  line-height: 1;
  letter-spacing: 1px;
}
.hero__age {
  font-family: var(--font-titulo);
  font-weight: 900;
  font-size: clamp(7rem, 32vw, 15rem);
  line-height: 0.9;
  color: var(--color-acento);
  text-shadow: 0 0 40px rgba(201, 162, 75, 0.35);
  margin: 0.05em 0 0.15em;
}
.hero__date {
  font-family: var(--font-texto);
  font-weight: 400;
  font-size: clamp(1rem, 4vw, 1.4rem);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-texto);
}

/* Indicador de scroll */
.scroll-hint {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: var(--color-acento);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  animation: bob 2s ease-in-out infinite;
}
.scroll-hint span {
  display: block;
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--color-acento), transparent);
  margin-bottom: 4px;
}
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   2) CONTADOR REGRESIVO
   ============================================================ */
.countdown { text-align: center; padding-top: 3.5rem; padding-bottom: 3.5rem; }
.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  max-width: 480px;
  margin: 0 auto;
}
.countdown__box {
  background: var(--color-detalle);
  border: 1px solid var(--color-borde);
  border-radius: var(--radio);
  padding: 1.1rem 0.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.countdown__num {
  font-family: var(--font-titulo);
  font-weight: 700;
  font-size: clamp(1.8rem, 9vw, 2.8rem);
  color: var(--color-acento);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(245, 240, 230, 0.7);
  margin-top: 0.4em;
}
.countdown__today {
  font-family: var(--font-titulo);
  font-weight: 700;
  font-size: clamp(2rem, 9vw, 3.2rem);
  color: var(--color-acento);
}

/* ============================================================
   3) FIESTA
   ============================================================ */
.party__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem auto 2.2rem;
  max-width: 620px;
}
.party__card {
  background: var(--color-detalle);
  border: 1px solid rgba(201, 162, 75, 0.18);
  border-radius: var(--radio);
  padding: 1.8rem 1rem;
  text-align: center;
  color: var(--color-acento);
}
.party__card h3 {
  font-family: var(--font-titulo);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0.6em 0 0.3em;
}
.party__card p {
  font-family: var(--font-texto);
  font-weight: 300;
  color: rgba(245, 240, 230, 0.85);
  font-size: 0.98rem;
}
.party__card strong { color: var(--color-texto); font-weight: 500; }

/* ============================================================
   4) GALERÍA + LIGHTBOX
   ============================================================ */
/* ---- CARRUSEL cuadrado (swipe + flechas + autoplay) ---- */
.carousel {
  position: relative;
  max-width: 440px;
  margin: 1.5rem auto 0;
}
.carousel__track {
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;          /* oculta la barra en Firefox */
  padding: 4px;
  border-radius: 16px;
}
.carousel__track::-webkit-scrollbar { display: none; } /* oculta en Chrome/Safari */

.carousel__slide {
  position: relative;
  flex: 0 0 100%;                 /* una foto cuadrada por vista */
  aspect-ratio: 1 / 1;
  scroll-snap-align: center;
  border: none;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, #23200f, #16130a);
}
.carousel__slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  -webkit-user-drag: none;
  user-select: none;
}
/* Placeholder numerado (queda debajo de la foto; si la foto falta, se ve esto) */
.gallery__ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-titulo);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-borde);
  border: 1px dashed var(--color-borde);
  border-radius: 14px;
  z-index: 0;
}

/* Flechas */
.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--color-borde);
  background: rgba(20, 18, 10, 0.75);
  backdrop-filter: blur(4px);
  color: var(--color-acento);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.carousel__arrow:hover { background: var(--color-acento); color: #1a1206; }
.carousel__arrow--prev { left: -6px; }
.carousel__arrow--next { right: -6px; }

/* Puntos indicadores */
.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1rem;
}
.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(201, 162, 75, 0.3);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.carousel__dot.is-active {
  background: var(--color-acento);
  transform: scale(1.35);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
}
.lightbox[hidden] { display: none; }
.lightbox__img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: 0 10px 60px rgba(0,0,0,0.6);
}
.lightbox__close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: rgba(0,0,0,0.4);
  border: none;
  color: var(--color-texto);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox__close:hover { color: var(--color-acento); }

/* ============================================================
   6) DRESS CODE
   ============================================================ */
.dress { text-align: center; }
.dress__icon { color: var(--color-acento); margin: 0.5rem auto 1rem; }
.dress__text {
  font-family: var(--font-titulo);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.3rem, 5vw, 1.9rem);
  line-height: 1.5;
  max-width: 560px;
  margin: 0 auto;
  color: var(--color-texto);
}

/* ============================================================
   9) CIERRE
   ============================================================ */
.closing {
  text-align: center;
  border-top: 1px solid rgba(201, 162, 75, 0.15);
  margin-top: 2rem;
}
.closing__age {
  font-family: var(--font-titulo);
  font-weight: 900;
  font-size: clamp(4rem, 20vw, 8rem);
  color: var(--color-acento);
  opacity: 0.25;
  line-height: 1;
}
.closing__text {
  font-family: var(--font-titulo);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(1.4rem, 5.5vw, 2.1rem);
  margin: 0.3em 0 1em;
}
.closing__sign {
  font-family: var(--font-texto);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--color-acento);
}

/* ============================================================
   BOTÓN FLOTANTE DE MÚSICA
   ============================================================ */
.music-toggle {
  position: fixed;
  bottom: 1.2rem;
  right: 1.2rem;
  z-index: 900;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1.5px solid var(--color-borde);
  background: rgba(20, 18, 10, 0.85);
  backdrop-filter: blur(6px);
  color: var(--color-acento);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transition: transform 0.2s ease, background 0.2s ease;
}
.music-toggle:hover { transform: scale(1.08); }
.music-toggle .icon-pause { display: none; }
/* Cuando suena, mostramos pausa y ocultamos play */
.music-toggle.is-playing .icon-play { display: none; }
.music-toggle.is-playing .icon-pause { display: block; }
.music-toggle.is-playing {
  background: var(--color-acento);
  color: #1a1206;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,162,75,0.4); }
  50%      { box-shadow: 0 0 0 10px rgba(201,162,75,0); }
}

/* ============================================================
   ANIMACIÓN DE ÍCONOS
   - Botones: zoom al pasar el mouse / al tocar
   - Íconos decorativos: latido (zoom) suave y constante
   ============================================================ */
.btn svg {
  transition: transform 0.3s ease;
}
.btn:hover svg { transform: scale(1.2); }
.btn:active svg { transform: scale(0.9); }

/* Íconos decorativos con latido (zoom) constante y escalonado */
.dress__icon,
.party__card svg,
.insta .btn svg,
.playlist .btn svg {
  animation: latido-icono 2.8s ease-in-out infinite;
}
.party__card:nth-child(2) svg { animation-delay: 0.4s; }
.dress__icon { animation-duration: 3.2s; }

@keyframes latido-icono {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.14); }
}

/* Respetar preferencia de "reducir movimiento": sin latido constante */
@media (prefers-reduced-motion: reduce) {
  .dress__icon,
  .party__card svg,
  .insta .btn svg,
  .playlist .btn svg { animation: none; }
}

/* ============================================================
   RESPONSIVE — mobile-first ya aplicado; ajustes para 360px y desktop
   ============================================================ */
@media (max-width: 380px) {
  section, footer.closing { padding-left: 1rem; padding-right: 1rem; }
  .countdown__grid { gap: 0.4rem; }
  .countdown__box { padding: 0.9rem 0.2rem; }
  .party__card { padding: 1.4rem 0.6rem; }
}

@media (min-width: 700px) {
  .carousel { max-width: 480px; }
}
