/* ═══════════════════════════════════════════════════════════
   formulario.css — diseño alineado con unidades-nuevo.css
   ═══════════════════════════════════════════════════════════ */

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

:root {
  --olive:  #6B7D5C;
  --dark:   #2F3E2F;
  --cream:  #F5F3EF;
  --ink:    #1E2B1E;
  --border: rgba(47,62,47,.12);
  --radius: 18px;
  --shadow: 0 4px 28px rgba(47,62,47,.10);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(rgba(245,243,239,0.85), rgba(245,243,239,0.85)),
              url('iconos/casitas.png') center / 400px auto repeat;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* ── HEADER ──────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dark);
  padding: 0 48px;
  height: 96px;
  display: flex;
  align-items: center;
  border-bottom: none;
  backdrop-filter: none;
}

.barra-menu {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 80px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.titulo-header {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0;
}

.volver { flex-shrink: 0; }

.boton-volver {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  transition: color .2s, border-color .2s;
  border: 1.5px solid rgba(255,255,255,.35);
  border-radius: 999px;
  padding: 12px 28px;
}
.boton-volver:hover { color: #fff; border-color: rgba(255,255,255,.7); }

/* ── LAYOUT ──────────────────────────────────────────────── */
.fondo-blur {
  max-width: 1160px;
  margin: 40px auto;
  padding: 0 24px 80px;
}

.container--grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 920px) {
  .container--grid { grid-template-columns: 1fr; }
}

/* ── CARDS ───────────────────────────────────────────────── */
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
}

/* ── FORMULARIO ──────────────────────────────────────────── */
.formulario-reserva h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 28px;
}

.formulario-reserva label {
  display: block;
  font-size: .73rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #999;
  margin-bottom: 7px;
  margin-top: 18px;
}
.formulario-reserva label:first-of-type { margin-top: 0; }

.formulario-reserva input[type="text"],
.formulario-reserva input[type="email"],
.formulario-reserva textarea {
  width: 100%;
  height: 50px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0 16px;
  font-size: .92rem;
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: var(--ink);
  transition: border-color .2s;
}
.formulario-reserva input:focus,
.formulario-reserva textarea:focus { outline: none; border-color: var(--olive); }
.formulario-reserva textarea {
  height: auto;
  min-height: 112px;
  padding: 14px 16px;
  resize: vertical;
}

/* ── TELÉFONO ─────────────────────────────────────────────── */
.telefono-row {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 10px;
}
#telefonoPais, #telefonoNumero {
  height: 50px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0 14px;
  font-size: .92rem;
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: var(--ink);
}
#telefonoPais:focus, #telefonoNumero:focus { outline: none; border-color: var(--olive); }
@media (max-width: 500px) { .telefono-row { grid-template-columns: 1fr; } }

/* ── CUPÓN ────────────────────────────────────────────────── */
.cupon-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}
#cuponDescuento {
  flex: 1;
  height: 50px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0 16px;
  font-size: .92rem;
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: var(--ink);
}
#aplicarCupon {
  height: 50px;
  padding: 0 22px;
  border: 1.5px solid var(--olive);
  border-radius: 12px;
  background: #fff;
  color: var(--olive);
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
#aplicarCupon:hover { background: var(--olive); color: #fff; }

/* ── TÉRMINOS ─────────────────────────────────────────────── */
.terminos {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 14px 16px;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 12px;
}
.terminos input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--olive);
}
.terminos label {
  font-size: .88rem;
  font-weight: 400;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  margin: 0;
  cursor: pointer;
}
.terminos a { color: var(--olive); text-decoration: underline; }
.terminos a:hover { text-decoration: none; }

/* ── AVISO ────────────────────────────────────────────────── */
.aviso-contacto {
  font-size: .82rem;
  color: #666;
  background: var(--cream);
  padding: 10px 14px;
  border-radius: 10px;
  text-align: center;
  margin-top: 14px;
  margin-bottom: 18px;
}

/* ── BOTÓN SUBMIT ─────────────────────────────────────────── */
#botonReservar {
  width: 100%;
  height: 54px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  background: var(--olive);
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .04em;
  transition: background .2s;
}
#botonReservar:hover { background: #556349; }
#botonReservar:disabled { background: #c5c9be; cursor: not-allowed; }

/* ── RESUMEN ──────────────────────────────────────────────── */
.resumen-reserva { align-self: start; }

.resumen-reserva h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 20px;
}

.info-reserva img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 16px;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.info-reserva h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
}

.info-reserva p {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: .88rem;
  color: #555;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.info-reserva p:last-of-type { border-bottom: none; }

.info-reserva strong {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

#precioReserva, #seniaReserva,
#fechasReserva, #huespedesReserva {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  text-align: right;
  margin-left: auto;
}

#precioReserva.tachado {
  text-decoration: line-through;
  color: #b03030;
  font-size: .85rem;
  font-weight: 500;
}
.precio-descuento {
  font-weight: 700;
  color: var(--olive);
  font-variant-numeric: tabular-nums;
}

#descuentoLabel { font-size: .82rem; color: #888; margin: 6px 0 10px; }

.price-stack { display: none !important; }

/* ── PAGO INFO ────────────────────────────────────────────── */
.hh-pago-nota {
  margin-top: 18px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--cream);
  padding: 16px 18px;
  font-size: .82rem;
  line-height: 1.55;
}
.hh-pago-nota b { color: var(--olive); }
.hh-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: .88rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.hh-title svg { width: 18px; height: 18px; flex-shrink: 0; }
.hh-pago-nota ul { margin: 4px 0 0 16px; padding: 0; }
.hh-pago-nota li { margin: 5px 0; }
.hh-small { margin-top: 10px; font-size: .76rem; color: #888; }

/* ── MODAL ────────────────────────────────────────────────── */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,.5);
  justify-content: center;
  align-items: center;
}
.modal-contenido {
  background: #fff;
  border-radius: var(--radius);
  max-width: 680px;
  width: 92%;
  max-height: 82vh;
  overflow-y: auto;
  padding: 36px;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
}
.modal-contenido h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 16px;
}
.modal-contenido h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .95rem;
  color: var(--olive);
  margin: 16px 0 6px;
}
.modal-contenido p { font-size: .88rem; color: #444; margin: 6px 0; line-height: 1.6; }
.cerrar {
  float: right;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: #aaa;
}
.cerrar:hover { color: var(--ink); }

/* ── WHATSAPP ─────────────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.22);
  z-index: 9999;
  transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 28px; height: 28px; }

/* ── MOBILE ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .header { padding: 0 16px; }
  .titulo-header { font-size: .8rem; }
  .fondo-blur { margin: 20px auto; padding: 0 12px 60px; }
  .card { padding: 20px; }
  .cupon-row { flex-direction: column; align-items: stretch; }
  #aplicarCupon { width: 100%; }
}
