/* ======================= */
/* IMPORTACIÓN DE FUENTES */
/* ======================= */
@import url('https://fonts.cdnfonts.com/css/octagon-display-t');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* ======================= */
/* CONFIGURACIÓN GENERAL */
/* ======================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; background-color: #000; color: #fff; line-height: 1.6; }
.text-center { text-align: center; }

/* ======================= */
/* HEADER Y CUENTA REGRESIVA */
/* ======================= */
header { 
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('img/header.jpg'); 
  background-size: cover; 
  background-position: center 30%; 
  height: 100vh; 
  display: flex; 
  flex-direction: column;
  justify-content: center; 
  align-items: center; 
  text-align: center;
}

.header-content {
  width: 100%;
  transition: transform 0.2s ease-out;
}

header h1 { font-family: 'Octagon Display T', sans-serif; font-weight: normal; font-size: clamp(3rem, 10vw, 4.5rem); line-height: 1.2; letter-spacing: 3px; color: white; text-shadow: none; }
.countdown { display: flex; justify-content: center; gap: 15px; margin-top: 30px; }
.circle { border: 2px solid #fff; border-radius: 50%; width: 90px; height: 90px; display: flex; flex-direction: column; justify-content: center; align-items: center; background-color: rgba(0, 0, 0, 0.3); backdrop-filter: blur(5px); }
.circle span { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 1.8rem; }
.circle small { font-size: 0.7rem; text-transform: uppercase; }

/* ======================= */
/* SECCIONES Y TÍTULOS */
/* ======================= */
.section-title { font-family: 'Poppins', sans-serif; font-size: 2.2rem; font-weight: 600; margin-bottom: 40px; letter-spacing: 3px; text-transform: uppercase; }
.black-section { background-color: #000; padding: 100px 20px; }
.names { margin: 25px 0; }
.names span { display: block; font-family: 'Octagon Display T', sans-serif; font-weight: normal; font-size: 2.8rem; line-height: 1.2; letter-spacing: 2px; margin: 10px 0; }
.date-quote { font-size: 1.1rem; color: #ccc; }

/* ======================= */
/* GALERÍA DE FOTOS */
/* ======================= */
#gallery-section { background-color: #111; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 15px; width: 90%; max-width: 1200px; margin: 0 auto; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.gallery-grid img:hover { transform: scale(1.05); box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1); }

/* ======================= */
/* INFO */
/* ======================= */
.info-section { background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('img/parallax-info.jpg'); background-attachment: fixed; background-size: cover; background-position: center; padding: 100px 20px; color: white; text-align: center; }
.info-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; max-width: 1100px; margin: 0 auto; }
.info-box { background-color: rgba(0, 0, 0, 0.5); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 15px; padding: 30px; width: 300px; min-height: 150px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.info-box h3 { font-family: 'Poppins', sans-serif; font-size: 1rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; margin-top: 15px; color: #ddd; }
.info-box p { font-size: 1.2rem; font-weight: bold; }
.icon-container { text-align: center; }
.icon-container i { font-size: 45px; color: #fff; }

/* ======================= */
/* MAPA */
/* ======================= */
#location-section .map-container {
  max-width: 800px;
  margin: 40px auto 0 auto;
  border-radius: 15px;
  overflow: hidden;
  border: 3px solid #333;
}

/* ======================= */
/* RESTO DE SECCIONES */
/* ======================= */
.gift-section { background-color: #111; padding: 80px 20px; text-align: center; }
.gift-section p { margin-bottom: 30px; color: #ccc; font-size: 1.1rem; }
.form-section { background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('img/form-bg.jpg'); background-size: cover; background-position: center; padding: 100px 20px; text-align: center; }
.form-section p { margin-bottom: 30px; color: #ddd; }
#rsvp-form { max-width: 500px; margin: 0 auto; }
#rsvp-form input, #rsvp-form select { display: block; width: 100%; margin: 15px auto; padding: 15px; font-size: 1rem; font-family: 'Poppins', sans-serif; background-color: rgba(255, 255, 255, 0.9); border: 1px solid #ccc; border-radius: 5px; color: #333; }
.checkbox-label { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 20px 0; cursor: pointer; }
.checkbox-label input[type="checkbox"] { width: auto; margin: 0; }
#form-status { margin-top: 20px; font-size: 1rem; font-weight: bold; }
.cta-button { margin-top: 20px; background: #fff; color: black; border: none; padding: 15px 30px; font-size: 1rem; font-weight: bold; font-family: 'Poppins', sans-serif; cursor: pointer; border-radius: 5px; text-decoration: none; transition: background-color 0.3s, color 0.3s; }
.cta-button:hover { background: #ccc; }
.final-msg { padding: 80px 20px; background-color: #000; text-align: center; font-size: 1rem; }
.final-msg footer { margin-top: 40px; color: #888; font-size: 0.9rem; }
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }


/* =================================================================== */
/* AJUSTE PARA PANTALLAS GRANDES (ESCRITORIO) */
/* =================================================================== */
@media (min-width: 768px) {
  header {
    /* Le damos más altura al tope máximo para que la imagen sea más grande en escritorio */
    max-height: 950px;
  }
}