/* ==========================
   VARIABLES Y TIPOGRAFÍAS
========================== */
:root {
  --primary-color: #D4AF37;;
  --secondary-color: #fff;
  --accent-color: #D4AF37;;
  --text-color: #6b4c3b;
  --font-heading: 'Parisienne', cursive;
  --font-body: 'Open Sans', sans-serif;
  --section-bg: #fff8f5;
  --section-alt-bg: #fdf8f2;
}

/* ==========================
   GLOBAL
========================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--text-color);
  line-height: 1.7;
  background-color: #fff;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  object-fit: cover;
}

/* ==========================
   NAV
========================== */

.nav-logo {
  font-family: "Parisienne", cursive;
  font-size: 1.8rem;
  color: var(--accent-color);
  text-decoration: none;
}

.navbar-nav .nav-link {
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color);
}

.navbar-toggler {
  border: none;
}


/* ==========================
   BOTONES
========================== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-radius: 25px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn:hover {
  background-color: var(--accent-color);
}

.btn.outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

/* ==========================
   BOTÓN FLOTANTE MÚSICA PROFESIONAL
========================== */
.btn-music {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  background-color: #D4AF37;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-music:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.btn-music img {
  width: 50%;
  height: 50%;
  object-fit: contain;
  filter: brightness(0) invert(1); /* Asegura que se vea sobre fondos claros */
}


/* ==========================
   HERO
========================== */
#hero {
  position: relative;
  text-align: center;
  color: #fff;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 50px;
  padding: 20px;
}

.hero-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 20px;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(70%);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  border-radius: 20px;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
}

.couple {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.hero-sub {
  font-size: 1.4rem;
  margin-bottom: 30px;
  color: #fdf5e6;
}

/* ==========================
   COUNTDOWN
========================== */
.countdown {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.countdown span {
  text-align: center;
  min-width: 60px;
}

.countdown strong {
  display: block;
  font-size: 2rem;
  color: #fff;
}

.countdown small {
  display: block;
  font-size: 0.9rem;
  color: #fdf5e6;
}

/* ==========================
   CUÁNDO Y DÓNDE
========================== */
#when-where {
  background-color: var(--section-alt-bg);
  padding: 50px 20px;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
  margin-bottom: 40px;
  text-align: center;
}

#when-where h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

#when-where p.lead {
  font-size: 1.2rem;
  color: #6b4c3b;
  margin-bottom: 10px;
}

/* ==========================
   ITINERARIO
========================== */
.itinerary {
  background-color: var(--section-bg);
  padding: 50px 20px;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
  margin-bottom: 40px;
  text-align: center;
}

.itinerary h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 30px;
}

.itinerary-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 500px;
}

.itinerary-list li {
  font-size: 1.1rem;
  font-weight: 600;
  color: #6b4c3b  ;
  margin-bottom: 12px;
  padding: 12px 20px;
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.itinerary-list li:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

/* ==========================
   MEDIA QUERIES - ITINERARIO / CUÁNDO Y DÓNDE
========================== */
@media (max-width: 768px) {
  #when-where, .itinerary { padding: 40px 15px; }
  .itinerary-list li { font-size: 1rem; padding: 10px 15px; }
}

@media (max-width: 480px) {
  #when-where h2, .itinerary h2 { font-size: 1.8rem; }
  #when-where p.lead, .itinerary-list li { font-size: 0.95rem; }
  .itinerary-list li { padding: 8px 12px; }
}


/* ==========================
   SECCIONES
========================== */
.section {
  padding: 60px 20px;
  margin: 30px 0;
  background-color: var(--section-bg);
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section.alt {
  background-color: var(--section-alt-bg);
}

.section:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
  font-family: var(--font-heading);
  color: var(--primary-color);
}

h3 {
  font-family: var(--font-heading);
  color: var(--accent-color);
  margin-top: 20px;
  font-size: 1.4rem;
}

.lead {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #6b4c3b;
}

/* ==========================
   HISTORIA
========================== */
.story-photos {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.story-photos img {
  width: 100%;
  max-width: 250px;
  aspect-ratio: 1 / 1;
  object-fit: cover;       /* asegura que la imagen cubra todo el recuadro */
  object-position: top;    /* enfoca la parte superior de la imagen */
  border-radius: 12px;     /* opcional: bordes redondeados */
}

.story-photos img.center-focus {
  object-position: center; /* enfoca el centro de la imagen */
}


/* ==========================
   DETALLES DEL EVENTO
========================== */
.event-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.event-card {
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  padding: 25px 20px;
  width: 100%;
  max-width: 300px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.event-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}


/* ==========================
   REGALOS / TRANSFERENCIAS
========================== */
.gift-cards {
  display: flex;
  justify-content: center; /* centra horizontalmente */
  align-items: center;     /* centra verticalmente si hay altura */
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.gift-card {
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  padding: 30px 25px;
  width: 100%;
  max-width: 350px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  margin: 0 auto; /* esto ayuda a centrar cada card individual si es necesario */
}

.gift-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  color: var(--primary-color);
}


/* ==========================
   MODAL
========================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: #fff;
  padding: 25px 20px;
  border-radius: 20px;
  width: 90%;
  max-width: 450px;
  text-align: center;
  position: relative;
  box-shadow: 0 12px 25px rgba(0,0,0,0.2);
  transform: scale(0.8);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal.show .modal-content {
  transform: scale(1);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #b38b5b;
}



/* ==========================
   SECCIÓN RSVP
========================== */
.rsvp-section {
  background: #fffafc;
  padding: 80px 20px;
  border-top: 2px solid #f3d1d1;
  border-bottom: 2px solid #f3d1d1;
  text-align: center;
}

.rsvp-section .section-title {
  font-family: "Parisienne", cursive;
  color: #c997a5;
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.rsvp-section .section-subtitle {
  color: #7a6f72;
  font-size: 1.1rem;
  margin-bottom: 40px;
}

/* ==========================
   FORMULARIO DE CONFIRMACIÓN
========================== */
.wedding-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 20px;
  padding: 40px 25px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wedding-form:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.wedding-form .form-group {
  margin-bottom: 20px;
  text-align: left;
}

.wedding-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--accent-color);
}

.wedding-form input,
.wedding-form select,
.wedding-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #f3e7db;
  border-radius: 12px;
  font-size: 1rem;
  color: #333;
  font-family: var(--font-body);
  transition: border-color 0.3s ease;
  outline: none;
}

.wedding-form input:focus,
.wedding-form select:focus,
.wedding-form textarea:focus {
  border-color: var(--primary-color);
}

.wedding-form button {
  width: 100%;
  margin-top: 10px;
  font-size: 1.1rem;
  background-color: #D4AF37;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.wedding-form button:hover {
  background-color: #e89eb0;
  transform: translateY(-2px);
}

/* ==========================
   ESTILOS DEL TOAST
========================== */
.toast {
  visibility: hidden;
  min-width: 250px;
  background-color: #cfa97a;
  color: #fff;
  text-align: center;
  border-radius: 10px;
  padding: 16px;
  position: fixed;
  top: 20px;
  right: 20px;
  font-size: 1rem;
  font-weight: 500;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform: translateY(-20px);
}

.toast.show {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

/* ==========================
   BOTÓN CONFIRMAR
========================== */
.rsvp-buttons .btn-confirmar {
  background-color: #f3c1c9;
  color: #fff;
}

.rsvp-buttons .btn-confirmar:hover {
  background-color: #e89eb0;
  transform: translateY(-2px);
}


/* ==========================
   GALERÍA
========================== */
.carousel-item img {
  height: auto;
  max-height: 400px;
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* ==========================
   TRIVIA MODERNA
========================== */
.trivia-section {
  background: linear-gradient(135deg, #fdf6f0, #f2e1d9);
  text-align: center;
  padding: 80px 20px;
}

.trivia-section h2 {
  font-family: 'Parisienne', cursive;
  font-size: 2.5rem;
  color: #2c1b12;
  margin-bottom: 10px;
}

.trivia-section .lead {
  font-size: 1.1rem;
  color: #6b4c3b;
  margin-bottom: 40px;
}

.trivia-box {
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  padding: 40px 20px;
  max-width: 600px;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.trivia-box:hover {
  transform: scale(1.02);
}

.trivia-box .options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.trivia-box .opt {
  background-color: #D4AF37;;
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 12px 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.trivia-box .opt:hover {
  background-color: #b38b5b;
  transform: translateY(-2px);
}

.trivia-box .opt.correct {
  background-color: #4caf50;
}

.trivia-box .opt.incorrect {
  background-color: #e74c3c;
}

.trivia-box .result {
  margin-top: 25px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  transition: opacity 0.3s ease;
}

.hidden {
  display: none;
}

/* CARD DE VESTIMENTA */
.dresscode-card {
  max-width: 250px;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  padding: 25px 20px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dresscode-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.dress-emoji {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

/* CONTENIDO DEL MODAL PARA VESTIMENTA */
.dress-modal-content {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.dress-modal-content .dress-item {
  text-align: center;
  max-width: 150px;
}

.dress-modal-content .dress-item img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  margin-bottom: 8px;
}

.dress-modal-content .dress-item p {
  font-size: 0.95rem;
  color: #555;
}

/* Vestimenta dentro del modal */
.modal-content .dress-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 15px;
}

.modal-content .dress-item img {
  width: 80px; /* tamaño más pequeño */
  height: auto;
  margin-bottom: 10px;
  border-radius: 10px;
}

/* ==========================
   FOOTER
========================== */
.site-footer {
  text-align: center;
  padding: 30px 15px;
  font-size: 0.85rem;
}
.hecho:hover {
  color: var(--primary-color);
}



/* ==========================
   MEDIA QUERIES RESPONSIVE
========================== */
@media (max-width: 992px) {
  .hero-sub { font-size: 1.3rem; }
  .couple { font-size: 3rem; }
  .countdown strong { font-size: 1.8rem; }
  .event-card, .gift-card { max-width: 280px; }
  .story-photos img { max-width: 220px; }
}

@media (max-width: 768px) {
  .hero-sub { font-size: 1.1rem; }
  .couple { font-size: 2.5rem; }

  .countdown {
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
  }
  .countdown span {
    width: auto;
    min-width: 50px;
    text-align: center;
  }
  .countdown strong { font-size: 1.6rem; }
  .countdown small { font-size: 0.9rem; }

  .event-card, .gift-card { width: 90%; max-width: 100%; }
  .story-photos img { max-width: 180px; }
}


@media (max-width: 480px) {
  .couple { font-size: 2rem; }
  .hero-sub { font-size: 1rem; }
  .countdown strong { font-size: 1.4rem; }
  .countdown small { font-size: 0.8rem; }
  .event-card, .gift-card { padding: 20px 15px; }
  .rsvp-form input, .rsvp-form select, .rsvp-form textarea { font-size: 0.9rem; padding: 8px; }
  .rsvp-buttons { flex-direction: column; gap: 15px; }
  .rsvp-section .section-title { font-size: 2rem; }
  .rsvp-section .section-subtitle { font-size: 1rem; }
}

/* Historia y gallery ajustes */
.story-photos img { max-width: 250px; aspect-ratio: 1 / 1; }
.carousel-item img { max-height: 400px; object-fit: cover; border-radius: 12px; }

