/* Tipografía elegante/vintage y paleta suave */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Cormorant+Garamond:wght@300;400;600&family=Great+Vibes&display=swap');

:root {
  --bg: #faf6f1;
  --paper: #fffaf4;
  --ink: #3b3b3b;
  --rose: #b07a7a;
  --accent: #6b6b6b;
  --gold: #c3a871;
}

html,
body {
  height: 100%;
  font-weight: bold;
  font-size: 1.018em;
}

body {
  font-family: 'Cormorant Garamond', serif;
  background: var(--bg);
  color: var(--ink);
}

/* Hero */
.hero {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.35)),
    url('../img/hero.jpg') center/cover no-repeat;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  position: relative;
}

.hero .names {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2.8rem, 8vw, 6rem);
  letter-spacing: 1px;
}

.hero .date {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1rem, 3vw, 1.25rem);
  letter-spacing: .3rem;
  text-transform: uppercase;
}

/* Cards & sections */
.section {
  padding: 4rem 0;
}

.paper {
  background: var(--paper);
  border-radius: 1.25rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, .06);
  border: 1px solid rgba(195, 168, 113, .25);
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  letter-spacing: 1px;
  position: relative;
  margin-bottom: 1.5rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 2px;
  background: var(--gold);
  margin-top: .5rem;
}

/* Buttons */
.btn-rose {
  border: 1px solid var(--rose);
  color: var(--rose);
}

.btn-rose:hover {
  background: var(--rose);
  color: #fff;
}

/* Countdown */
.countdown {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.ct-box {
  min-width: 120px;
  padding: 1rem;
  border-radius: 1rem;
  background: #ffffffcc;
  color: #333;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, .05);
}

.ct-box h3 {
  font-size: 2rem;
  margin: 0;
  font-family: 'Playfair Display', serif;
}

.ct-box small {
  text-transform: uppercase;
  letter-spacing: .15rem;
}

/* Timeline (Historia) */
.timeline {
  border-left: 2px dashed var(--gold);
  padding-left: 1.5rem;
}

.timeline .item {
  margin-bottom: 1rem;
}

.timeline .item .when {
  font-weight: 600;
  color: var(--rose);
}

/* Gallery */
.gallery-grid {
  columns: 1;
  column-gap: .75rem;
}

@media(min-width: 576px) {
  .gallery-grid {
    columns: 2;
  }
}

@media(min-width: 992px) {
  .gallery-grid {
    columns: 3;
  }
}

.gallery-grid img {
  width: 100%;
  border-radius: .75rem;
  margin: 0 0 .75rem;
  display: inline-block;
  break-inside: avoid;
  border: 1px solid rgba(0, 0, 0, .05);
}

/* Footer */
footer {
  padding: 2rem 0;
  color: var(--accent);
}

/* Ajuste uniforme del carrusel */
.carousel-img {
  height: 350px;
  /* puedes ajustar el alto a tu gusto */
  object-fit: cover;
  /* mantiene proporciones y recorta lo necesario */
}

@media (max-width: 768px) {
  .carousel-img {
    height: 250px;
    /* más pequeño en móviles */
  }
}

#gallery-carousel .carousel-item img {
  width: 100%;           /* Ocupa todo el ancho del carrusel */
  max-height: 500px;     /* Altura máxima para que no se estire demasiado */
  object-fit: contain;   /* Mantiene la proporción de la imagen */
  border-radius: 8px;    /* Opcional: bordes redondeados */
}
#gallery-carousel .carousel-item img,
#gallery-carousel .carousel-item video {
  width: 100%;
  max-height: 500px;
  object-fit: contain; /* Mantiene la proporción sin deformar */
  border-radius: 8px;
}

/* ALERT ESTILO ELEGANTE */
.custom-alert {
  display: none;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid rgba(195, 168, 113, 0.3);
  box-shadow: 0 8px 25px rgba(0,0,0,.1);
  border-radius: 1rem;
  padding: 2rem;
  width: 300px;
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
}

.custom-alert h2 {
  margin: 0 0 1rem;
  color: var(--rose);
  font-family: 'Playfair Display', serif;
}

.custom-alert p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.custom-alert button {
  background: var(--rose);
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Playfair Display', serif;
}

.custom-alert button:hover {
  background: var(--gold);
}
