* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  height: 100%;
}

body {
  font-family: 'Georgia', serif;
}

/* ── Secciones (bloques) ── */
.seccion {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* ════════════════════════════
   BLOQUE 1: Portada
════════════════════════════ */
.hero {
  background-image: url('/images/foto-boda.jpg');
  background-size: cover;
  background-position: center;
  background-color: #2c1a0e;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 2.5rem 1.5rem 2rem;
  width: 100%;
}

.nombres {
  font-size: 1rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #f5e6c8;
  margin-bottom: 0.4rem;
}

.titulo {
  font-size: 2.6rem;
  font-weight: normal;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
  line-height: 1.1;
}

.fecha-texto {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: #f5e6c8;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

/* Cuenta atrás */
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.bloque {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
}

.numero {
  font-size: 2.4rem;
  font-weight: bold;
  line-height: 1;
  color: #fff;
}

.etiqueta {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #f5e6c8;
  margin-top: 0.3rem;
}

.separador {
  font-size: 2rem;
  font-weight: bold;
  color: #f5e6c8;
  align-self: flex-start;
  padding-top: 0.05em;
}

.celebracion {
  font-size: 1.5rem;
  color: #f5e6c8;
  letter-spacing: 0.1em;
}

/* Flecha scroll */
.scroll-hint {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: #f5e6c8;
  font-size: 1.5rem;
  animation: rebote 1.5s infinite;
  opacity: 0.8;
}

@keyframes rebote {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* ════════════════════════════
   BLOQUE 2: Información
════════════════════════════ */
.info {
  background-image: url('/images/foto-info.jpg');
  background-size: cover;
  background-position: center;
  background-color: #1a1209;
  align-items: flex-start;
  overflow-y: auto;
}

.overlay--oscuro {
  background: rgba(0, 0, 0, 0.62);
}

/* Móvil: columna única */
.info-layout {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  width: 100%;
  padding: 1.8rem 1.2rem 1.5rem;
}

.info-content {
  width: 100%;
  text-align: center;
  color: #fff;
}

.info-titulo {
  font-size: 1.8rem;
  font-weight: normal;
  letter-spacing: 0.1em;
  color: #f5e6c8;
  margin-bottom: 0.5rem;
}

.linea-decorativa {
  width: 60px;
  height: 1px;
  background: #f5e6c8;
  margin: 0 auto 1.2rem;
  opacity: 0.7;
}

/* Grid ceremonia + banquete */
.info-grid {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.info-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(245, 230, 200, 0.3);
  border-radius: 8px;
  padding: 0.9rem 1.2rem;
  flex: 1;
  max-width: 160px;
}

.info-card h3 {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f5e6c8;
  margin-bottom: 0.4rem;
  font-weight: normal;
}

.info-icono {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.info-hora {
  font-size: 1.4rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 0.2rem;
}

.info-lugar {
  font-size: 0.75rem;
  color: #f5e6c8;
  font-style: italic;
}

/* Autobuses */
.bus-seccion {
  width: 100%;
}

.bus-seccion h3 {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f5e6c8;
  font-weight: normal;
  margin-bottom: 0.7rem;
}

.bus-grid {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.bus-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(245, 230, 200, 0.2);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  flex: 1;
  min-width: 90px;
  max-width: 130px;
}

.bus-ciudad {
  font-size: 0.75rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 0.2rem;
}

.bus-hora {
  font-size: 1rem;
  font-weight: bold;
  color: #f5e6c8;
  margin-bottom: 0.1rem;
}

.bus-lugar {
  font-size: 0.65rem;
  color: rgba(245, 230, 200, 0.75);
  font-style: italic;
}

/* Mapa */
.mapa-columna {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(245, 230, 200, 0.3);
  flex-shrink: 0;
}

.mapa-embed {
  width: 100%;
  height: 100%;
  border: none;
}

/* ════════════════════════════
   BLOQUE 3: Formulario
════════════════════════════ */
.formulario {
  background-image: url('/images/foto-formulario.jpg');
  background-size: cover;
  background-position: center;
  background-color: #0d0d0d;
  align-items: flex-start;
  overflow-y: auto;
}

.form-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 2rem 1.2rem 2rem;
  width: 100%;
  max-width: 640px;
}

.form-subtitulo {
  font-size: 0.82rem;
  color: rgba(245, 230, 200, 0.8);
  margin-bottom: 1.4rem;
  letter-spacing: 0.04em;
}

.form-subtitulo strong {
  color: #f5e6c8;
}

/* Móvil: nombre y apellidos en columna */
.form-fila {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-grupo {
  display: flex;
  flex-direction: column;
  text-align: left;
  margin-bottom: 1rem;
  flex: 1;
}

.form-grupo label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f5e6c8;
  margin-bottom: 0.35rem;
}

.form-grupo input[type="text"],
.form-grupo select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(245, 230, 200, 0.35);
  border-radius: 6px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  min-height: 48px;
  -webkit-appearance: none;
}

.form-grupo input[type="text"]::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form-grupo input[type="text"]:focus,
.form-grupo select:focus {
  border-color: #f5e6c8;
}

.form-grupo select option {
  background: #1a1209;
  color: #fff;
}

/* Checkboxes */
.checkboxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 0.8rem;
  margin-bottom: 0.7rem;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #fff;
  cursor: pointer;
  letter-spacing: normal;
  text-transform: none;
  padding: 0.3rem 0;
  min-height: 36px;
}

.check-item input[type="checkbox"] {
  accent-color: #f5e6c8;
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

#otras-intolerancias {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(245, 230, 200, 0.35);
  border-radius: 6px;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.7rem 0.9rem;
  outline: none;
  width: 100%;
  min-height: 48px;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

#otras-intolerancias::placeholder { color: rgba(255, 255, 255, 0.35); }
#otras-intolerancias:focus { border-color: #f5e6c8; }

/* Botón */
.btn-enviar {
  margin-top: 1.2rem;
  background: transparent;
  border: 1px solid #f5e6c8;
  color: #f5e6c8;
  font-family: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  width: 100%;
  min-height: 52px;
}

.btn-enviar:active {
  background: #f5e6c8;
  color: #1a1209;
}

/* Mensaje confirmación / error */
.form-mensaje {
  margin-top: 0.8rem;
  font-size: 0.88rem;
  min-height: 1.4em;
}

.form-mensaje.ok  { color: #a8e6a3; }
.form-mensaje.err { color: #f4a7a7; }

/* ════════════════════════════
   DESKTOP (≥ 768px)
════════════════════════════ */
@media (min-width: 768px) {

  /* Bloque 1 */
  .nombres   { font-size: 1.4rem; letter-spacing: 0.3em; }
  .titulo    { font-size: clamp(2.5rem, 6vw, 5rem); }
  .fecha-texto { font-size: 1.2rem; letter-spacing: 0.2em; margin-bottom: 3rem; }
  .content   { padding: 3rem 2rem 2rem; }
  .bloque    { min-width: 80px; }
  .numero    { font-size: clamp(2.5rem, 5vw, 4rem); }
  .etiqueta  { font-size: 0.75rem; }
  .separador { font-size: clamp(2rem, 4vw, 3rem); }

  /* Bloque 2: dos columnas */
  .info { align-items: center; overflow-y: hidden; }

  .info-layout {
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
    max-width: 1100px;
    padding: 2rem;
  }

  .info-content { flex: 1; }

  .info-titulo   { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.8rem; }
  .linea-decorativa { margin-bottom: 2rem; }

  .info-grid     { gap: 2rem; margin-bottom: 2rem; }
  .info-card     { padding: 1.5rem 2rem; max-width: none; }
  .info-card h3  { font-size: 0.85rem; }
  .info-icono    { font-size: 1.6rem; }
  .info-hora     { font-size: 1.8rem; }
  .info-lugar    { font-size: 0.9rem; }

  .bus-seccion h3 { font-size: 0.85rem; margin-bottom: 1rem; }
  .bus-card       { padding: 1rem 1.4rem; max-width: none; }
  .bus-ciudad     { font-size: 0.95rem; }
  .bus-hora       { font-size: 1.3rem; }
  .bus-lugar      { font-size: 0.8rem; }

  .mapa-columna {
    flex: 1;
    height: 70vh;
    max-height: 500px;
  }

  /* Bloque 3 */
  .form-content  { padding: 2.5rem 2rem; }
  .form-subtitulo { font-size: 0.9rem; margin-bottom: 2rem; }
  .form-fila     { flex-direction: row; gap: 1rem; }
  .checkboxes    { grid-template-columns: repeat(3, auto); }
  .btn-enviar    { width: auto; }

  .btn-enviar:hover {
    background: #f5e6c8;
    color: #1a1209;
  }
}
