/* =========================
   ESTILOS GENERALES
========================= */
* { box-sizing: border-box; }
body {
  font-family: 'Georgia', serif;
  background: #f8f4f0;
  margin: 0;
  padding: 20px;
  color: #444;
}
h1, h2 {
  font-family: 'Brush Script MT', cursive;
  color: #a61e4d;
  margin: 0 0 10px 0;
}
p { margin: 10px 0; }

/* =========================
   BOTONES UNIFICADOS (estilo boda)
   - Se aplican tanto por clase (.btn...) como a elementos existentes
========================= */

/* Base común para todos los botones relevantes */
.btn,
.opciones button,
.formulario button,
.btn-zip,
.controles-video button {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 25px; /* redondeado romántico */
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* Primario (rosa pastel): opciones y botón Enviar del formulario */
.btn-primary,
.opciones button,
.formulario button {
  background: #e6b8c7;
  color: #5a2a3c;
}
.btn-primary:hover,
.opciones button:hover,
.formulario button:hover {
  background: #d48fa8;
  color: #fff;
}

/* Secundario (suave): controles de vídeo */
.btn-secondary,
.controles-video button {
  background: #f3d9e0;
  color: #5a2a3c;
}
.btn-secondary:hover,
.controles-video button:hover {
  background: #e6b8c7;
  color: #fff;
}
.controles-video button:disabled {
  background: #ddd;
  color: #888;
  cursor: not-allowed;
  box-shadow: none;
}

/* Acento (vino elegante): enlaces destacados como Ver galería o Descargar */
.btn-accent,
.btn-zip {
  background: #a61e4d;
  color: #fff;
}
.btn-accent:hover,
.btn-zip:hover {
  background: #7d1635;
  color: #fff;
}

/* =========================
   LOGIN
========================= */
.login-body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}
.login-box {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  max-width: 400px;
  width: 100%;
}
.login-box input {
  padding: 10px;
  margin: 10px 0;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.login-box button { width: 100%; }
.error { color: red; }

/* =========================
   ENCABEZADO
========================= */
header {
  text-align: center;
  margin-bottom: 30px;
}
header h1 { font-size: 2em; }
header p { font-size: 1.1em; color: #555; }
.foto-novios {
  max-width: 220px;
  border-radius: 50%;
  border: 6px solid #e6b8c7;
  margin-bottom: 15px;
}

/* =========================
   FORMULARIO
========================= */
.formulario {
  margin: 0 auto 40px auto;
  max-width: 550px;
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  border: 2px solid #f3d9e0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.formulario input,
.formulario textarea {
  width: 100%;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1em;
  display: block;
}
.formulario textarea { min-height: 100px; resize: vertical; }
.formulario button { width: 100%; }
.acceso-galeria { text-align: center; margin: 30px 0; }

/* =========================
   OPCIONES DE ENVÍO
========================= */
.opciones {
  text-align: center;
  margin: 20px 0;
}
.opciones button { margin: 0 10px; }

/* =========================
   SECCIONES (fotos / video)
========================= */
.seccion { display: none; margin-top: 20px; }
.seccion label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #444;
}

/* =========================
   VISTA PREVIA DE VIDEO
========================= */
#preview {
  width: 100%;
  max-height: 240px;
  background: #000;
  border-radius: 8px;
  margin-top: 10px;
}

/* =========================
   CONTROLES DE VIDEO
========================= */
.controles-video { margin: 10px 0; text-align: center; }
.controles-video button { margin: 0 5px; }

/* =========================
   CONTADOR REGRESIVO
========================= */
#contador {
  font-size: 1.2em;
  font-weight: bold;
  color: #a61e4d;
  margin-top: 8px;
  text-align: center;
  transition: color 0.3s ease;
}
#contador.urgente {
  color: red;
  animation: parpadeo 1s infinite;
}
@keyframes parpadeo {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}

/* =========================
   GALERÍA
========================= */
.envio {
  background: #fff;
  margin: 20px auto;
  padding: 20px;
  border-radius: 12px;
  border: 2px solid #f3d9e0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  max-width: 800px;
}
.envio h2 { margin-top: 0; }
.archivos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.archivos img,
.archivos video {
  max-width: 180px;
  border-radius: 8px;
  cursor: pointer;
}
.fecha { font-size: 0.9em; color: #777; }
.descarga-global { text-align: center; margin: 40px 0; }

/* =========================
   UPLOAD CONFIRMACIÓN
========================= */
.upload-body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}
.mensaje-confirmacion {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  border: 2px solid #f3d9e0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
  max-width: 500px;
  width: 100%;
}
.mensaje-confirmacion h2 { color: #a61e4d; }

/* =========================
   MODAL GALERÍA
========================= */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}
.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
}
.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}
.close:hover { color: #f3d9e0; }

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
  .foto-novios { max-width: 180px; }
  header h1 { font-size: 1.8em; }
  header p { font-size: 1em; }
  .formulario { max-width: 90%; padding: 20px; }
}
@media (max-width: 600px) {
  body { padding: 10px; }
  .foto-novios { max-width: 140px; }
  header h1 { font-size: 1.5em; }
  header p { font-size: 0.95em; }
  .formulario { padding: 15px; border-radius: 8px; }
  .btn,
  .opciones button,
  .formulario button,
  .btn-zip,
  .controles-video button {
    font-size: 0.95em;
    padding: 10px 18px;
    border-radius: 22px;
  }
  .archivos img, .archivos video { max-width: 100%; }
}