html, body { overflow-x: hidden; } 
img, video { max-width: 100%; height: auto; } 



/* === GENERALES === */ 
body { 
    font-family: 'Playfair Display', serif; 
    background-color: rgb(235,234,227); 
    color: #5a3e36; 
    margin: 0; 
    padding: 0; 
    text-align: center; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
} 

h2 { 
    color: rgb(176,1,2); 
    font-size: 2rem; 
    margin-bottom: 20px; 
    font-size: 40px; 
    font-weight: bold; 
    margin-top: 10px; 
} 

audio { display: none; } 

/* === HEADER === */ 
/* Estilos generales para el video y la imagen */ 
.hero-section { 
    width: 100%; 
    display: flex; 
    justify-content: center; 
    background-color: rgb(235, 233, 227); 
    /* Añado position: relative para que los elementos dentro se posicionen con respecto a este contenedor */ 
    position: relative; 
} 

.video-wrapper { 
    position: relative; 
    width: 100%; 
    height: 100vh; 
    overflow: hidden; 
} 

.video-background { 
    /* ... tus estilos de video, están bien */ 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transform: translate(-50%, -50%); 
    transition: transform 0.3s ease; 
    display: none; /* Ocultamos por defecto */ 
} 

/* Desktop → video */ 
.video-background.desktop { display: block; } 

/* Mobile → gif */ 
.video-background.mobile { object-fit: contain; } 

/* Overlay con countdown */ 
.overlay-content { 
    position: absolute; 
    bottom: 6%; 
    left: 50%; 
    transform: translateX(-50%); 
    display: flex; 
    justify-content: center; 
    z-index: 1; 
    text-align: center; 
    color: rgb(176,0,0); 
} 

/* === MEDIA QUERIES === */ 
/* Mobile: ocultamos video y mostramos gif */ 
@media (max-width: 768px) { 
    .video-background.desktop { display: none; } 
    .video-background.mobile { display: block; } 
} 

/* Opcional: mostrar solo el video correspondiente según pantalla */ 
.banner.desktop { display: block; } 
.banner.mobile { display: none; } 

@media (max-width: 1023px) { 
    .banner.desktop { display: none; } 
    .banner.mobile { display: block; } 
}

/* === Estilo base (para pantallas grandes) === */ 
#wedding-countdown { 
    display: flex; 
    flex-direction: row; 
    justify-content: center; 
    align-items: center; 
    gap: 5px; 
} 

.time-box { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    min-width: 30px; 
} 

.time-box span { 
    font-size: 30px; 
    font-weight: 600; 
    color: rgb(176,0,0); 
} 

.time-box small { 
    font-size: 12px; 
    font-weight: 400; 
    color: rgb(176,0,0); 
    margin-top: 5px; 
} 

.separator { 
    font-size: 24px; 
    margin: 0 8px; 
    color: rgb(176,0,0); 
} 

/* === Pantallas ≤670px === */ 
@media (max-width: 768px) { 
    .time-box span { font-size: 18px!important; } 
    .time-box small { font-size: 8px!important; } 
    .separator { font-size: 16px; margin: 0 4px!important; } 
    #wedding-countdown { gap: 4px!important; } 
    .time-box { min-width: 25px!important; } 
    .overlay-content { bottom: 20% !important;} 
} 

@media (max-width: 350px) { 
    .time-box span { font-size: 16px !important; } 
    .time-box small { font-size: 3px !important; } 
    .separator { font-size: 8px; margin: 0 4px !important; } 
    #wedding-countdown { gap: 0px !important; } 
    .time-box { min-width: 8px !important; } 
    .overlay-content { bottom: 22% !important; } 
} 

/* === GALERÍA === */ 
#gallery { 
    padding: 20px 20px; 
    font-family: Georgia, serif; 
    margin-bottom: 0; 
    background-color: rgb(176,0,0); 
} 

#gallery h2 { color: rgb(235,234,227); } 

.gallery-container { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 8px; 
    max-width: 85%; 
    margin: auto; 
    padding: 0 10px; 
} 

.gallery-image { 
    width: 100%; 
    border-radius: 8px; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); 
    transition: transform 0.3s ease-in-out; 
    cursor: pointer; 
} 

.gallery-image:hover { transform: scale(1.03); } 

@media (max-width: 1024px) { .gallery-container { grid-template-columns: repeat(3, 1fr); } } 

@media (max-width: 768px) {
  .gallery-container {
    grid-template-columns: repeat(1, 1fr);
  }

  #gallery {
    background-image: url("../Assets/nosotrosfotos.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 100vh; /* ocupa toda la pantalla */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* botón queda abajo */
    align-items: center;
    padding: 200px 10px; /* igual que #detalles / #vestimenta */
    margin: 0; /* igual que las otras secciones */
  }

  #gallery h2 {
    display: none;
  }
}


/* === DETALLES / VESTIMENTA === */ 
#detalles, #vestimenta { 
    padding: 50px 20px; 
    width: 100%; 
    margin: 0% 0%; 
    background-color: rgb(180,0,0); 
    padding-bottom: 100px; 
    margin-bottom: 1%; 
    margin-top: 1%; 
} 



/* Fondo especial para mobile */ 
@media (max-width: 768px) { 
    #detalles { 
        background-image: url('../Assets/dondeycuando3.png'); 
        background-size: contain; 
        background-repeat: no-repeat; 
        background-position: center top; 
        width: 90%; 
        min-height: 100vh; 
        display: flex; 
        justify-content: center; 
        align-items: center; 
    } 
} 

/* Por defecto, no se muestra en móviles */ 
.detalles-desktop { display: none; } 
@media (min-width: 768px) { .detalles-desktop { display: block; } } 

#detalles p { color: rgb(235,234,227); } 
#detalles img { color: transparent; width : 30%; height: auto; display: block; margin: 0 auto;  } /* filter: invert(100%); */ 

#vestimenta img {
  display: block;      /* hace que la imagen se comporte como bloque */
  margin: 0 auto;      /* centra horizontalmente */
  color: transparent;  
  filter: invert(0%);
}



.detalles-left, .botones { text-align: center; } 
.detalles-left img { width: 100%; max-width: 300px; height: auto; margin: 0 auto; } 
.cuando, .vestimenta { font-size: 40px; font-weight: bold; margin-top: 10px; } 
.detalle-text, #vestimenta p { font-size: 20px; margin-top: 5px; color: rgb(235,234,227); } 
#vestimenta h2 { color: rgb(235,234,227); } 

/* === BOTONES === */ 
.btn { 
    background-color: rgb(235,234,227); 
    color: rgb(176,1,2); 
    border: none; 
    padding: 10px 20px; 
    font-size: 16px; 
    cursor: pointer; 
    border-radius: 5px; 
    text-decoration: none; 
    display: inline-block; 
    transition: background-color 0.3s; 
} 
.btn:hover { background-color: rgb(205,198,231); } 
.botones { display: flex; justify-content: center; gap: 10px; margin-top: 3%; } 

@media (max-width: 1023px) { 
    .botones { 
        margin-bottom: 5%; 
        margin-top: 8%;
        flex-direction: column; 
        gap: 8px; 

    } 
} 

.video-container { position: relative; width: 100vw; height: auto; } 
.banner { max-width: 100%; height: auto; display: block; } 

/* Botón sobre el video */ 
.rsvp-button { 
    position: absolute; 
    top: 66%; 
    left: 69.8%; 
    transform: translate(-50%, -50%); 
    background-color: rgb(176,1,2); 
    color: white; 
    border: none; 
    padding: 10px 20px; 
    font-size: 20px; 
    cursor: pointer; 
    border-radius: 5px; 
    z-index: 10; 
} 
.rsvp-button:hover { background-color: rgb(159, 18, 48); } 

.video-background.desktop { display: block; } 
.video-background.mobile { display: none; } 

@media (max-width: 768px) { 
    .video-background.desktop { display: none; } 
    .video-background.mobile { display: block; } 
}

/* Ajustes para móvil */ 
@media (max-width: 768px) { 
    .rsvp-button { 
        top: 39%; 
        left: 50%; 
        transform: translate(-50%, -50%); 
        font-size: 18px; 
        padding: 8px 16px; 
    } 
} 

/* Botón de cerrar visible siempre */ 
/* Modal ocupa toda la pantalla */
#formularioModal {
  position: fixed;
  top: 0;
  left: 0;
   /* Ajusta estas líneas: */
  width: 100%; /* Ocupa el 90% del ancho de la pantalla */
  height: 100vh;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

/* Contenido del modal ocupa casi todo el espacio */
#formularioModal .modal-content {
  width: 80%;
  max-width: 600px; /* opcional, para no exceder pantallas muy grandes */
  max-height: 95vh;;
  padding: 15px;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  position: relative;
  /* Agrega este margen para centrarlo horizontalmente */
  margin: 5% auto;
  overflow-y: auto;
}

@media (max-width: 768px) {
    #formularioModal .modal-content {
        /* Aquí puedes mantener el 100% para móviles si lo prefieres */
        width: 80%;
        height: 100%;

    }

    #formularioModal .close {
      font-size: 25px;
      top: 10px;
      right: 15px;
      position: absolute; 
      top: 10px; 
      right: 15px; 
      font-size: 30px; 
      color: rgb(176,0,0); /* Este es el color actual, que es blanco */
      font-weight: bold; 
      cursor: pointer; 
      z-index: 10001; 
      transition: color 0.3s ease; 
    }
}





/* === REGALOS === */ 
#regalos {
    width: 100%;
    height: auto; /* mejor dejar que se ajuste al contenido */
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    padding: 50px 20px; /* igual que #detalles / #vestimenta */
    margin: 5% 0; /* igual que las otras secciones */
}

.regalos-container {
    background: transparent;
    text-align: center;
    max-width: 600px;
    width: 100%;
}

#regalos h2 {
    background-color: transparent;
    margin-bottom: 20px; /* separa del párrafo */
    font-size: 40px; 
    font-weight: bold; 
    margin-top: 10px; 
}

#regalos p {
    background-color: transparent;
    margin-top: 0;
    font-size: 1rem; /* opcional */
    font-size: 20px; 
    margin-top: 5px; 
    color: rgb(176,0,0); 
}


.boton-link { 
    background-color: rgb(176,1,2); 
    color: rgba(255, 255, 255, 0.8); 
    border: none; 
    margin-top: 02%; 
    padding: 10px 20px; 
    font-size: 20px; 
    cursor: pointer; 
    border-radius: 5px; 
    text-decoration: none; 
    display: inline-block; 
} 
.boton-link:hover { background-color: rgb(159, 18, 48); } 


/* === SEPARADOR === */ 
#separador { margin: 5px 0; text-align: center; } 
.separador { max-width: 100%; height: auto; display: block; margin: 0 auto; } 

/* Estilos modal */
.modal {
  display: none; /* oculto por defecto */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.modal-contenido {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 12px;
  width: 80%;
  max-width: 500px;
  text-align: center;
}

.cerrar {
  float: right;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
}

.modal-contenido p {
  font-size: 20px;
  margin: 8px 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* AUDIO */ 
#audio-controls { 
    position: fixed; 
    top: 20px; 
    right: 20px; 
    background: rgba(255, 255, 255, 0.85); 
    border-radius: 30px; 
    box-shadow: 0 2px 6px rgba(0,0,0,0.15); 
    padding: 5px 10px; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    z-index: 10000; 
		height: 29.5px;
} 

#audio-controls button { 
    background: transparent; 
    border: none; 
    font-size: 24px; 
    color: #b00102; 
    cursor: pointer; 
    outline: none; 
    transition: color 0.3s ease; 
    width: 40px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
} 
#audio-controls button:hover { color: #7a0000; } 

#volumeControl { 
    width: 100px; 
    cursor: pointer; 
    -webkit-appearance: none; 
    appearance: none; 
    background: #ddd; 
    height: 6px; 
    border-radius: 3px; 
} 

#volumeControl::-webkit-slider-thumb { 
    -webkit-appearance: none; 
    width: 16px; 
    height: 16px; 
    background: #b00102; 
    border-radius: 50%; 
    cursor: pointer; 
    box-shadow: 0 0 2px rgba(0,0,0,0.3); 
    transition: background 0.3s ease; 
} 
#volumeControl::-webkit-slider-thumb:hover { background: #7a0000; } 
#volumeControl::-moz-range-thumb { width: 16px; height: 16px; background: #b00102; border-radius: 50%; cursor: pointer; box-shadow: 0 0 2px rgba(0,0,0,0.3); transition: background 0.3s ease; } 

#audio-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: rgba(0, 0, 0, 0.85); display: flex; align-items: center; justify-content: center; z-index: 9999; } 
.overlay-content button { font-size: 24px; padding: 16px 32px; border: none; border-radius: 8px; background-color: #fff; color: #b00102; font-family: 'Playfair Display', serif; cursor: pointer; transition: all 0.3s ease; } 
.overlay-content button:hover { background-color: #b00102; color: white; } 

/* MODAL RSVP */ 
.modal { display: none; position: center; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0, 0, 0, 0.7); } 
.modal-content { background-color: #fff; margin: 5% auto; padding: 30px; max-width: 750px; width: 90%; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.3); position: relative; } 
.close { position: absolute; top: 10px; right: 15px; font-size: 30px; color: #b00102;  font-weight: bold; cursor: pointer; z-index: 10001; transition: color 0.3s ease; } 
.close:hover { color: #0d1e64; } 

/* Por defecto, se muestra en desktop */
#asistencia .desktop { display: block; width: 100%; }


@media (max-width: 768px) { 
    #asistencia .desktop { display: none; /* Ocultamos video de desktop */ } 
    #asistencia .mobile { display: block; /* Mostramos video de mobile */ } 
}


@media (max-width: 768px) {
  /* Ocultamos textos */
  .desktop-text { display: none; }

  /* Fondo único */
  #regalos {
    background-image: url('../Assets/Dress\ Code\ y\ Regalos.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 100vh; /* ocupa toda la pantalla */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* botón queda abajo */
    align-items: center;
    padding: 100px 20px; /* igual que #detalles / #vestimenta */
    margin: 0; /* igual que las otras secciones */
  }


  /* Quitamos fondo en regalos */
  #vestimenta {
    background: none;
    min-height: auto;
  }

  /* Movemos el botón de regalos dentro del fondo */
  #regalos .regalos-container {
    background: none;
    padding: 0;
  }
}

/* Por defecto en desktop */
.desktop-img { 
  display: block; 
}

/* Mobile: ocultar la imagen */
@media (max-width: 768px) {
  .desktop-img {
    display: none;
  }
}

@media (max-width: 768px) {
  #vestimenta {
    display: none;
  }
}


@media (max-width: 768px) {
  #regalos {
    height: auto;          /* anula el 300px de desktop */
    min-height: 100vh;     /* ocupa toda la pantalla */
    padding-bottom: 100px; /* ajustá este valor para la altura del botón */
  }

  #regalos .regalos-container {
    background: none;
    padding: 0;
  }
}

@media (max-width: 768px) {
  #regalos {
    position: relative;
    height: 100vh; /* ocupa pantalla completa */
  }

  #regalos .boton-link {
    position: absolute;
    bottom: 3%;       /* ← controla distancia desde abajo */
    left: 50%;
    transform: translateX(-50%);
  }

  #regalos .regalos-container {
    background: none;
    padding: 0;
  }
}



/* ESTILO FORMS EN LA WEB */

/*
.rsvp-form {
  margin-top: 20px;
}

.rsvp-header {
  text-align: center;
  margin-bottom: 30px;
}

.rsvp-header h2 {
  color: #b00102;
  font-size: 24px;
  margin-bottom: 10px;
}

.rsvp-header p {
  color: #5a3e36;
  font-size: 16px;
  margin: 0;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #5a3e36;
  font-weight: bold;
  font-size: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  font-family: "Playfair Display", serif;
  color: #5a3e36;
  background-color: #fff;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #b00102;
  box-shadow: 0 0 0 3px rgba(176, 1, 2, 0.1);
}

.form-group input[required]:invalid {
  border-color: #ff6b6b;
}

.form-group textarea {
  resize: vertical;
  min-height: 60px;
}

.form-actions {
  text-align: center;
  margin-top: 30px;
}

.btn-submit {
  background-color: #b00102;
  color: #fff;
  border: none;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: "Playfair Display", serif;
}

.btn-submit:hover {
  background-color: #9a0101;
}

.btn-submit:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}
*/


/* Contenedor del formulario */
/* === FORMULARIO RSVP === */
#Contacto {
    padding: 60px 20px;

    font-family: 'Arial', sans-serif;
}

#Contacto h2 {
    text-align: center;
    font-size: 2rem;
    color: #a30000;
    margin-bottom: 40px;
}

.rsvp-form {
    max-width: 500px; /* un poco más estrecho para que se vea centrado */
    margin: 0 auto;
    padding: 30px 25px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}


.rsvp-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    transition: color 0.3s ease;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box; /* asegura padding interno */
    
}


.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #a30000;
    box-shadow: 0 0 8px rgba(163,0,0,0.2);
    outline: none;
}

textarea {
    resize: none;
}

/* Botones centrados y espaciados */
.form-actions {
    display: flex;
    justify-content: center; /* centramos botones */
    gap: 15px;
    margin-top: 25px;
}

.btn-submit,
.btn-reset {
    padding: 12px 25px;
    min-width: 120px; /* igual tamaño mínimo */
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit {
    background: #a30000;
    color: #fff;
}

.btn-submit:hover {
    background: #ff4d4d;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(163,0,0,0.3);
}

.btn-reset {
    background: #f0f0f0;
    color: #333;
}

.btn-reset:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}


.form-success {
    text-align: center;
    padding: 30px;
    margin-top: 20px;
    background: #e6ffe6;
    border: 2px solid #00a300;
    border-radius: 12px;
    color: #007700;
    font-weight: 600;
    font-size: 1.2rem;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .rsvp-form {
        padding: 25px 20px;
    }
    
    #Contacto h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .btn-submit, .btn-reset {
        width: 48%;
        padding: 12px 0;
    }
}

