/*Art2Fly IBE  | www.art2fly.com | Copyright 2026 --*/
/*--------- Reservas paso0 --------------------*/

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

/* ------- ocultar precios dentro del datepicker modal -------*/
#calendarModal .calendar-day-rate {
    display: none;
}

/* -------- Base reset -------- */

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

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Open Sans", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
  background: #0b0b0f;
}

/* -------- Top bar / header (marca + banner promocional) --------*/

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
}

/* Ocultar la franja que no corresponde (clase .hidden la aplica el script) */
.site-header > .topbar.hidden {
  display: none !important;
}

/* Barra oscura: Art2Fly / Booking Demo */
.topbar--brand {
  backdrop-filter: blur(18px);
  background: rgba(10, 10, 15, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Barra promocional: contraste alto, tonos otoño / acento amarillo del sitio (#f8cc46) */
.topbar--promo {
  background: linear-gradient(105deg, #7c776e 0%, #b7b0a1 100%);
  font-family: 'Open Sans';
  font-size: clamp(0.62rem, 2.1vw, 0.8rem);
  line-height: 1.4;
  font-weight: lighter;
  margin: 0 auto;
  text-wrap-style: balance;
}

.topbar-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #f9fafb;
}

.topbar-inner--promo {
  justify-content: center;
  text-align: center;
  padding: 0.65rem 1rem 0.75rem;
  color: #fffaf5;
}

/* Texto del banner (#banner_promocional): legible sobre degradado naranja */

.topbar span {
  display: inline-block;
  margin: 0 0.12rem;
  padding: 0 2px;
  font-weight: 600;
  font-size: .8em;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: .05em;
  text-wrap-style: balance;
}

.topbar span.descuento {
  color: #0f172a;
  background: #f8cc46;
}
.topbar span.codigo {
  color: #0f172a;
}

.topbar .small {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.8em;
  font-weight: normal;
  line-height: 1.3;
  opacity: 0.95;
  color: rgba(255, 250, 245, 0.92);
  background: transparent;
  text-transform: none;
  letter-spacing: .01em;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-main {
  font-size: 0.95rem;
  font-weight: 600;
  /* letter-spacing: 0.18em; */
  /* text-transform: uppercase; */
}

.logo-sub {
  font-size: 0.8rem;
  opacity: 0.8;
}

.topbar-right {
  display: inline-flex;
  gap: 0.25rem;
}

.lang-btn {
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #e5e7eb;
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  opacity: 0.7;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.lang-btn.lang-active {
  background: rgba(249, 250, 251, 0.1);
  opacity: 1;
}

/* -------- Layout -------- */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ----Footer---- */

.site-footer-mini {
  flex-shrink: 0;
  width: 100%;
  background: #030306;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.5rem 1rem max(0.5rem, env(safe-area-inset-bottom));
}

.site-footer-mini-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.2rem 0.8rem;
}

.site-footer-mini-powered-by {
  font-size: 0.52rem;
  line-height: 1.25;
  color: #cbd5e1;
  letter-spacing: 0.03em;
  text-transform: lowercase;
  opacity: 0.9;
  white-space: nowrap;
  margin-right: -0.12rem;
}

.site-footer-mini-logo {
  display: block;
  height: 12px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
  opacity: 0.95;
}

.site-footer-mini-powered-by + .site-footer-mini-logo {
  margin-left: -0.14rem;
}

.site-footer-mini-copy {
  margin: 0;
  font-size: 0.52rem;
  line-height: 1.25;
  color: #cbd5e1;
  letter-spacing: 0.03em;
  opacity: 0.9;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  white-space: nowrap;
  margin-left: 0.4rem;
}

.site-footer-mini-copy-icon {
  font-size: 0.85rem;
  color: #e5e7eb;
  line-height: 1;
}

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem 4rem;
  background: radial-gradient(circle at top, #1f2937 0, #020617 60%);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 1040px;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: heroSliderFade 24s infinite;
}

.hero-slider img:nth-child(1) {
  animation-delay: 0s;
}

.hero-slider img:nth-child(2) {
  animation-delay: 6s;
}

.hero-slider img:nth-child(3) {
  animation-delay: 12s;
}

.hero-slider img:nth-child(4) {
  animation-delay: 18s;
}

@keyframes heroSliderFade {
  0% { opacity: 0; }
  4% { opacity: 1; }
  25% { opacity: 1; }
  29% { opacity: 0; }
  100% { opacity: 0; }
}

/* -------- Hero text -------- */

.hero-text h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(3rem, 3vw, 3.6rem);
  color: #f9fafb;
  letter-spacing: 0.01em;
  font-weight: 700;
  text-shadow: 0px 0px 4px #00000038;
}

.hero-text p {
  margin: 0;
  color: white;
  font-size: 1.2rem;
  line-height: 1.4;
  max-width: 22rem;
  font-weight: normal;
}

/* -------- Booking widget -------- */

.booking-widget {
  max-width: 450px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  background: #0000008f;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 0.5rem;
  padding: 1.5rem 2rem;
  color: #f9fafb;
  box-shadow: 10px 10px 15px rgb(0 0 0 / 53%);
  border: none;
  container-type: inline-size;
  container-name: booking-widget;
}

/* Dentro de la caja: ancho del widget <330px → una columna (no depende del viewport) */
@container booking-widget (max-width: 329px) {
  .field-group-party-row {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Por si las fechas pasan a dos columnas en el futuro */
  .field-group-dates {
    grid-template-columns: minmax(0, 1fr);
  }
}

.booking-fields {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.booking-hotel {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.booking-hotel-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.booking-hotel-img {
  max-height: 60px;
  width: 150px;
  display: block;
}

.booking-hotel-name {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111827;
}

/* Field groups */

.field-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
}

.field-group-dates {
  grid-template-columns: minmax(0, 1fr);
  align-items: flex-end;
}

.field-group-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  display: none;
}

/* Pasajeros: dos por fila según el ancho de .booking-widget (container); <330px → una columna */
.field-group.field-group-party {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.field-group-party-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}

/* Fields */

.field {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.field label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04rem;
  color: white;
}
.field label span {
  font-size: 0.6rem;
  letter-spacing: normal;
  color: #dcc5a0;
  text-transform: none;
  display: inline-block;
  margin-left: 5px;
}

.field input[type="text"],
.field select {
  border-radius: 0.2rem;
  border: none;
  background: white;
  font-weight: lighter;
  color: #444;
  font-size: .9rem;
  padding: 0.65rem 0.75rem;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease,
    box-shadow 0.15s ease;
  font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

.field input[type="text"]::placeholder {
  color: #999;
}

/* Promo code input: always uppercase */
#promoCode {
  text-transform: uppercase;
}

#promoCode::placeholder {
  text-transform: none;
}

.field input[type="text"]:focus,
.field select:focus {
  border-color: #facc15;
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.6);
}

/* Contadores adultos / niños: +/- dentro del input */
.field .counter {
  position: relative;
  display: block;
  width: 100%;
}

.field .counter-input {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
  font-weight: 600;
  padding-left: 2rem !important;
  padding-right: 2rem !important;
}

.field .counter-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 1.65rem;
  height: 1.65rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #888;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}

.field .counter-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.field .counter-btn[data-action="decrease"] {
  left: 0.35rem;
}

.field .counter-btn[data-action="increase"] {
  right: 0.35rem;
}

/* Date input specific */

.date-input {
  cursor: pointer;
}
.oculto {
    display:none;
}
/* Summary */

.summary-item {
  border-radius: 0.9rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.summary-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #9ca3af;
}

.summary-value {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Footer */

.booking-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.75rem;
  margin-top: 1.2rem;
  flex-wrap: nowrap;
}

.booking-note {
  font-size: 0.75rem;
  color: #9ca3af;
  text-align: center;
  text-wrap-style: balance;
}

/* Buttons */

.btn-primary,
.btn-secondary,
.btn-ghost {
  border-radius: .25rem;
  padding: 1.25rem;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #827966, #968d78);
  color: #ffffff;
  border: none;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.12);
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease,
    filter 0.15s ease, transform 0.1s ease;
  width: 100%;
  text-wrap-style: balance;
  text-wrap-mode: wrap;
  line-height: 1.25;
}

/* Mismo aspecto que el botón antes de invertir (base + brillo al pasar el ratón) */
.btn-primary:hover {
  filter: brightness(1.3);
}

/* Igual que el estado base invertido, sin el "pressed" oscuro anterior */
.btn-primary:active {
  background: #ffffff;
  color: #673426;
  border: none;
  filter: none;
  transform: none;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.12);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.92);
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.9);
  padding-inline: 1.1rem;
}

.btn-secondary.small {
  padding: 0.6rem 0.9rem;
  font-size: 0.75rem;
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #e5e7eb;
}

/* -------- Results (fake engine output) -------- */

.results {
  max-width: 1040px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

/* Sin contenido: no ocupa espacio ni empuja el footer (evita franja/hueco raro abajo) */
.results:empty {
  display: none;
  margin: 0;
  padding: 0;
}

.results-card {
  background: #f9fafb;
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.3);
}

.results-title {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
}

.results-subtitle {
  margin: 0 0 0.8rem;
  font-size: 0.88rem;
  color: #4b5563;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem 1rem;
  font-size: 0.85rem;
}

.results-label {
  font-weight: 500;
  color: #374151;
}

.results-value {
  color: #111827;
}

/* -------- Modal calendar -------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.modal.hidden {
  opacity: 0;
  visibility: hidden;
}

.modal:not(.hidden) {
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
}

.modal-dialog {
  position: relative;
  max-width: 1000px;
  width: 100%;
  max-height: min(calc(100vh - 2rem), 100dvh);
  margin: 0 1rem;
  background: #0b1120;
  border-radius: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.8);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.9);
  color: #e5e7eb;
  padding: 1.5rem 2rem 1rem;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.7rem;
  text-transform: none;
  letter-spacing: 0.03em;
  font-weight: normal;
}

.modal-close {
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 1.4rem;
  cursor: pointer;
}

.modal-subheader {
  flex-shrink: 0;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: white;
  font-weight: lighter;
}

/* Calendar nav */

.calendar-nav {
  flex-shrink: 0;
  margin-top: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.calendar-nav-btn {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: transparent;
  color: #e5e7eb;
  font-size: 0.9rem;
  padding: 0.25rem 0.7rem;
  cursor: pointer;
}

.calendar-nav-labels {
  display: flex;
  gap: 2.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.calendar-nav-labels span {
  color: #ffffff;
  padding: 0;
}

/* Calendar grid (scrollable so footer stays visible on mobile) */

.calendar-container {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.calendar-month {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 1rem;
  padding: 0.7rem 0.6rem 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.15rem;
  font-size: 0.72rem;
  text-align: center;
  color: #9ca3af;
  margin-bottom: 0.25rem;
}

.calendar-weekdays span {
  padding: 0.15rem 0;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.25rem;
}

/* Date cells */

.calendar-day {
  position: relative;
  border-radius: 0.2rem;
  padding: 0.3rem 0.25rem 0.35rem;
  font-size: .8rem;
  cursor: pointer;
  min-height: 62px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid #ffffff70;
  color: #e5e7eb;
}

.calendar-day-empty {
  visibility: hidden;
}

.calendar-day-number {
  font-weight: 500;
}

.calendar-day-rate {
  font-size: 0.65rem;
  color: #facc15;
  opacity: 0.65;
}

.in-range .calendar-day-rate {
  opacity: 1;
}

.calendar-day-rate span {
  display: block;
  color: #facc15;
  font-size: .8em;
}

.calendar-day.disabled {
  opacity: 0.25;
  cursor: default;
}

.calendar-day.out-of-season {
  opacity: 0.12;
}

.calendar-day.unavailable .calendar-day-number {
  text-decoration: line-through;
}

/* Range selection visuals */

.calendar-day.in-range {
  background: rgba(250, 204, 21, 0.12);
  border-color: rgba(250, 204, 21, 0.35);
}

.calendar-day.start,
.calendar-day.end {
  background: #facc15;
  color: #111827;
}

.calendar-day.start .calendar-day-rate,
.calendar-day.end .calendar-day-rate {
  color: #111827;
}

.calendar-day.start::before,
.calendar-day.end::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 2px solid #111827;
}

/* Footer (sticky at bottom, always visible on mobile) */

.modal-footer {
  flex-shrink: 0;
  margin-top: 0.8rem;
  padding: 0.8rem 0 1rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  background: #0b1120;
}

/* =============================================================================
   Date picker – colores (referencia: modal blanco, celdas con borde #e0e0e0,
   rango seleccionado taupé #9b897d y texto blanco en todo el rango)
   Alcance: solo #calendarModal (no afecta otros .modal si se añaden después).
   ============================================================================= */

#calendarModal {
  --dp-surface: #ffffff;
  --dp-surface-subtle: #f5f5f5;
  --dp-text: #1a1a1a;
  --dp-text-secondary: #5c5c5c;
  --dp-text-muted: #8a8a8a;
  --dp-border: #e0e0e0;
  --dp-range: #9b897d;
  --dp-range-hover: #8a7a6f;
  --dp-range-text: #ffffff;
  --dp-rate: #757575;
  --dp-backdrop: rgba(30, 30, 35, 0.5);
  --dp-close: #6b6b6b;
}

#calendarModal .modal-backdrop {
  background: var(--dp-backdrop);
}

#calendarModal .modal-dialog {
  background: var(--dp-surface);
  color: var(--dp-text);
  border: 1px solid var(--dp-border);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12), 0 0 1px rgba(0, 0, 0, 0.06);
}

#calendarModal .modal-header h2 {
  color: var(--dp-text);
}

#calendarModal .modal-close {
  color: var(--dp-close);
}

#calendarModal .modal-close:hover {
  color: var(--dp-text);
}

#calendarModal .modal-subheader {
  color: var(--dp-text-muted);
}

#calendarModal .calendar-nav-btn {
  background: var(--dp-surface);
  border: 1px solid var(--dp-border);
  color: var(--dp-text);
}

#calendarModal .calendar-nav-btn:hover {
  background: var(--dp-surface-subtle);
}

#calendarModal .calendar-nav-labels span {
  color: var(--dp-text);
  font-weight: 500;
}

#calendarModal .calendar-month {
  background: var(--dp-surface);
  border: 1px solid var(--dp-border);
}

#calendarModal .calendar-weekdays {
  color: var(--dp-text-muted);
}

#calendarModal .calendar-day {
  background: var(--dp-surface);
  border: 1px solid var(--dp-border);
  color: var(--dp-text);
}

#calendarModal .calendar-day:hover:not(.disabled):not(.calendar-day-empty) {
  background: var(--dp-surface-subtle);
}

#calendarModal .calendar-day-rate {
  color: var(--dp-rate);
  opacity: 1;
}

#calendarModal .in-range .calendar-day-rate {
  opacity: 1;
}

#calendarModal .calendar-day-rate span {
  color: inherit;
}

#calendarModal .calendar-day.disabled {
  color: var(--dp-text-muted);
}

#calendarModal .calendar-day.out-of-season {
  opacity: 0.12;
}

#calendarModal .calendar-day.unavailable .calendar-day-number {
  text-decoration: line-through;
}

/* Rango: misma taupé en medio, entrada y salida; texto y tarifas en blanco */
#calendarModal .calendar-day.in-range,
#calendarModal .calendar-day.start,
#calendarModal .calendar-day.end {
  background: var(--dp-range);
  border-color: var(--dp-range);
  color: var(--dp-range-text);
}

#calendarModal .calendar-day.in-range:hover:not(.disabled),
#calendarModal .calendar-day.start:hover:not(.disabled),
#calendarModal .calendar-day.end:hover:not(.disabled) {
  background: var(--dp-range-hover);
  border-color: var(--dp-range-hover);
}

#calendarModal .calendar-day.start .calendar-day-rate,
#calendarModal .calendar-day.end .calendar-day-rate,
#calendarModal .calendar-day.in-range .calendar-day-rate {
  color: var(--dp-range-text);
}

#calendarModal .calendar-day.start::before,
#calendarModal .calendar-day.end::before {
  display: none;
}

#calendarModal .modal-footer {
  background: var(--dp-surface);
  border-top: 1px solid var(--dp-border);
}

#calendarModal .modal-footer .btn-primary,
#calendarModal .modal-footer .btn-ghost {
  width: auto;
  flex: 0 0 auto;
}

#calendarModal .modal-footer .btn-ghost {
  color: var(--dp-text-secondary);
  border-color: var(--dp-border);
}

#calendarModal .modal-footer .btn-ghost:hover {
  background: var(--dp-surface-subtle);
  color: var(--dp-text);
}

/* -------- Responsive -------- */

/* Desktop (≥901px): sin scroll de página; el hero cabe en la ventana; la caja de compras
 * no supera la altura útil (si el formulario es muy alto, scroll solo dentro de la caja).
 * Importante: el header está FUERA de main.page; si .page = 100dvh, header + page > viewport
 * y overflow:hidden recorta el pie (logo powered by). Body en columna: header + main flex 1. */
@media (min-width: 901px) {
  html {
    height: 100%;
  }

  body {
    height: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .site-header {
    flex-shrink: 0;
  }

  .page {
    flex: 1 1 0%;
    min-height: 0;
    height: auto;
    max-height: none;
    overflow: hidden;
  }

  .hero {
    flex: 1 1 0%;
    min-height: 0;
    padding: clamp(0.75rem, 2vh, 1.75rem) 1rem;
    align-items: stretch;
  }

  .hero-inner {
    height: 100%;
    max-height: 100%;
    min-height: 0;
    grid-template-rows: minmax(0, 1fr);
    align-items: stretch;
    overflow: hidden;
  }

  .hero-inner > .booking-widget,
  .hero-inner > .hero-text {
    min-height: 0;
  }

  .booking-widget {
    max-height: 100%;
    min-height: 0;
    align-self: center;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .hero-text {
    min-height: 0;
    overflow: auto;
    align-self: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero-text h1 {
    font-size: clamp(3rem, 2.8vw, 3rem);
  }
}

@media (max-width: 900px) {
  /* Móvil/tablet: scroll normal; el banner no queda fijo al hacer scroll */
  html,
  body {
    height: auto;
    max-height: none;
    overflow: auto;
  }

  body {
    display: block;
  }

  .page {
    flex: none;
    min-height: 100vh;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .site-header {
    position: relative;
    top: auto;
  }

  .hero {
    min-height: 0;
    overflow: hidden;
    align-items: center;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    justify-items: center;
    margin-left: auto;
    margin-right: auto;
    gap: 2rem;
    height: auto;
    max-height: none;
    overflow: visible;
    align-items: stretch;
  }

  /* Caja de compras: centrada; max-width heredado de regla base (450px) */
  .booking-widget {
    max-height: none;
    overflow: visible;
  }

  /* Texto hero (columna derecha en desktop): centrado respecto al viewport */
  .hero-text {
    text-align: center;
    width: 100%;
    max-width: min(36rem, 100%);
    margin-left: auto;
    margin-right: auto;
    overflow: visible;
    display: block;
  }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
    max-width: 32rem;
  }
}

@media (max-width: 720px) {
  .topbar-inner--promo {
    padding: 0.55rem 0.75rem 0.65rem;
  }

  #banner_promocional {
    font-size: 0.8rem;
  }

  #banner_promocional .small {
  }

  .calendar-container {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .calendar-nav-labels {
    gap: 0.8rem;
    font-size: 0.8rem;
  }

  .field-group,
  .field-group-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-group-dates {
    grid-template-columns: minmax(0, 1fr);
  }

  .booking-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary {
    width: 100%;
  }

  .site-footer-mini-inner {
    gap: 0.15rem 0.5rem;
  }

  .site-footer-mini-powered-by,
  .site-footer-mini-copy {
    font-size: 0.52rem;
    letter-spacing: 0.02em;
  }

  .site-footer-mini-copy-icon {
    font-size: 0.75rem;
  }

  .site-footer-mini-logo {
    height: 11px;
    max-width: 100px;
  }

  .site-footer-mini-powered-by {
    margin-right: -0.14rem;
  }

  .site-footer-mini-copy {
    margin-left: 0.3rem;
  }

  /* Mobile: el select de alojamientos debe verse armónico con el resto */
  .booking-widget .field select[name="RESORT"],
  .booking-widget .field select#alojamiento {
    font-size: 1.05rem;
    min-height: 46px;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
}

/* Calendar responsive: tablets and small phones – dialog anchored to bottom so footer is always visible */
@media (max-width: 600px) {
  .modal {
    align-items: stretch;
    justify-content: flex-end;
    padding: 0;
  }

  .modal-dialog {
    margin: 0;
    width: 100%;
    max-width: 100%;
    padding: 1rem 1rem 0;
    max-height: min(92vh, 92dvh);
    height: min(92vh, 92dvh);
    border-radius: 1.25rem 1.25rem 0 0;
  }

  .modal-header h2 {
    font-size: 1.25rem;
  }

  .modal-subheader {
    font-size: 0.75rem;
  }

  .calendar-nav {
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.6rem;
  }

  .calendar-nav-labels {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 1rem;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
  }

  .calendar-container {
    margin-top: 0.6rem;
    gap: 0.75rem;
  }

  .calendar-month {
    padding: 0.5rem 0.4rem 0.5rem;
  }

  .calendar-weekdays {
    font-size: 0.6rem;
    gap: 0.1rem;
    margin-bottom: 0.15rem;
  }

  .calendar-grid {
    gap: 0.15rem;
  }

  .calendar-day {
    min-height: 44px;
    padding: 0.2rem 0.15rem 0.25rem;
    font-size: 0.7rem;
  }

  .calendar-day-rate {
    font-size: 0.55rem;
  }

  .modal-footer {
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  }

  .modal-footer .btn-ghost,
  .modal-footer .btn-primary {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .modal-dialog {
    margin: 0;
    padding: 0.75rem 0.75rem 0;
    max-height: min(94vh, 94dvh);
    height: min(94vh, 94dvh);
  }

  .modal-header {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .modal-header h2 {
    font-size: 1.1rem;
  }

  .calendar-nav-btn {
    padding: 0.2rem 0.5rem;
    font-size: 0.85rem;
  }

  .calendar-nav-labels {
    font-size: 0.7rem;
    gap: 0.5rem;
  }

  .calendar-day {
    min-height: 38px;
    font-size: 0.65rem;
  }

  .calendar-day-rate {
    font-size: 0.5rem;
  }
}

/* Very small screens: compact calendar */
@media (max-width: 360px) {
  .modal-dialog {
    margin: 0 0.35rem;
    padding: 0.5rem 0.5rem 0;
  }

  .modal-header h2 {
    font-size: 1rem;
  }

  .calendar-weekdays span {
    font-size: 0.55rem;
  }

  .calendar-day {
    min-height: 34px;
    font-size: 0.6rem;
    padding: 0.15rem 0.1rem 0.2rem;
  }

  .calendar-day-rate {
    font-size: 0.45rem;
  }
}
