/* ============================================================
   Motor de reservas — UI v2
   Sistema de diseño: tarjetas blancas, bordes suaves, radios
   generosos, tipografía Roboto, acento por hotel (--brand).
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --brand: #1a56db;
  --ink: #0f172a;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e2e8f0;
  --bg: #f6f7f9;
  --card: #ffffff;
  --ok: #059669;
  --ok-bg: #ecfdf5;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --warn-bg: #fefce8;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, .10);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, .16);
}
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Roboto', sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.55;
  font-size: 15px;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
button { font: inherit; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header con pasos ---------- */
.site-header {
  background: var(--card); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 60;
}
.site-header .container {
  display: flex; align-items: center; gap: 20px; min-height: 64px;
}
.brand { font-size: 19px; font-weight: 800; color: var(--brand); text-decoration: none; letter-spacing: -.02em; flex-shrink: 0; }
.brand-logo { height: 38px; width: auto; }

.steps { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.step { display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: 14px; font-weight: 600; white-space: nowrap; }
.step-num {
  width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center;
  background: #eef1f5; color: var(--muted); font-size: 13px; font-weight: 700;
}
.step.is-active { color: var(--ink); }
.step.is-active .step-num { background: var(--brand); color: #fff; }
.step.is-done .step-num { background: var(--ok-bg); color: var(--ok); }
.step-sep { width: 26px; height: 2px; background: var(--line); border-radius: 2px; margin: 0 6px; }
.header-meta { margin-left: auto; display: flex; gap: 14px; color: var(--muted); font-size: 13px; font-weight: 600; flex-shrink: 0; }
/* Selector de idioma: <details> nativo, funciona sin JavaScript. */
.lang-switch { position: relative; }
.lang-switch summary { list-style: none; cursor: pointer; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.lang-switch ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 150px; margin: 0; padding: 6px; list-style: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px -12px rgba(15,23,42,.35); }
.lang-switch a { display: block; padding: 7px 10px; border-radius: 6px; color: var(--ink, #0f172a); text-decoration: none; font-weight: 500; }
.lang-switch a:hover { background: #f1f5f9; }
.lang-switch a[aria-current] { color: var(--brand); font-weight: 700; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 40px 0 24px; }
.hero h1 { font-size: 30px; letter-spacing: -.02em; }
.hero p { color: var(--muted); margin-top: 6px; }
.hero-banner {
  background-size: cover; background-position: center;
  border-radius: var(--radius); margin: 20px 0 0; overflow: hidden; text-align: center;
}
.hero-banner .hero-inner {
  background: linear-gradient(rgba(2, 6, 23, .30), rgba(2, 6, 23, .55));
  padding: 84px 24px;
}
.hero-banner h1 { color: #fff; font-size: 38px; text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.hero-banner p { color: #e2e8f0; text-shadow: 0 1px 6px rgba(0,0,0,.45); }

/* ---------- Tarjetas / botones / campos ---------- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 10px; padding: 12px 20px;
  font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none;
  transition: filter .15s, transform .05s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 2px 8px color-mix(in srgb, var(--brand) 35%, transparent); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary { background: #eef1f5; color: var(--ink); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-lg { width: 100%; padding: 15px; font-size: 16px; border-radius: 12px; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .field-btn:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 30%, transparent); outline-offset: 1px;
}
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px; border: 1px solid #d3dae4; border-radius: 10px;
  font-size: 15px; background: #fff; color: var(--ink);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.alert { border-radius: 12px; padding: 12px 16px; margin: 0 0 16px; font-size: 14px; border: 1px solid; }
.alert-info { background: var(--warn-bg); border-color: #fde68a; color: #854d0e; }
.alert-error { background: var(--danger-bg); border-color: #fecaca; color: #991b1b; }
.alert-ok { background: var(--ok-bg); border-color: #a7f3d0; color: #065f46; }

/* ---------- Buscador ---------- */
.search-wrap { margin: 18px 0 32px; }
.search-widget {
  display: grid; grid-template-columns: 1.6fr .7fr .7fr auto; gap: 12px; align-items: end;
  padding: 18px; position: relative;
}
.hero-banner + .search-wrap .search-widget { margin-top: -34px; box-shadow: var(--shadow-md); }
.field-btn {
  width: 100%; text-align: left; padding: 12px 14px; border: 1px solid #d3dae4;
  border-radius: 10px; background: #fff; font-size: 15px; cursor: pointer;
  display: flex; align-items: center; gap: 10px; color: var(--ink);
}
.field-btn:hover { border-color: var(--brand); }
.field-btn svg { flex-shrink: 0; color: var(--muted); }
.field-btn .fb-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Calendario con precios ---------- */
.range-cal {
  position: absolute; z-index: 80; top: calc(100% + 8px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 18px 18px 12px;
}
.rc-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.rc-spacer { flex: 1; }
.rc-arrow {
  border: 1px solid var(--line); background: #fff; border-radius: 10px;
  width: 38px; height: 38px; font-size: 20px; cursor: pointer; color: var(--ink);
}
.rc-arrow:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.rc-arrow:disabled { opacity: .3; cursor: default; }
.rc-close {
  border: 1px solid var(--line); background: #fff; border-radius: 10px;
  width: 38px; height: 38px; font-size: 24px; line-height: 1; cursor: pointer; color: var(--muted);
}
.rc-close:hover { border-color: var(--danger); color: var(--danger); }
.rc-months { display: flex; gap: 28px; }
.rc-month { flex: 1; min-width: 0; }
.rc-title { text-align: center; font-weight: 800; font-size: 16px; margin-bottom: 10px; }
.rc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.rc-dow { text-align: center; font-size: 11.5px; font-weight: 700; color: var(--faint); padding: 6px 0; }
.rc-day {
  border: 1px solid transparent; background: none; border-radius: 10px;
  min-height: 52px; min-width: 0; padding: 6px 2px 5px; cursor: pointer; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
}
.rc-day .rc-n { font-size: 14.5px; font-weight: 600; line-height: 1.1; }
.rc-day .rc-p { font-size: 10.5px; color: var(--muted); line-height: 1.1; white-space: nowrap; }
.rc-day:hover:not(:disabled) { border-color: var(--brand); }
.rc-day:disabled { color: #cbd5e1; cursor: default; }
.rc-day:disabled .rc-p { visibility: hidden; }
.rc-day.rc-na { color: #cbd5e1; }
.rc-day.rc-na .rc-p { visibility: hidden; }
.rc-day.rc-in { background: color-mix(in srgb, var(--brand) 11%, #fff); border-radius: 0; }
.rc-day.rc-start, .rc-day.rc-end { background: var(--brand); }
.rc-day.rc-start .rc-n, .rc-day.rc-end .rc-n { color: #fff; font-weight: 800; }
.rc-day.rc-start .rc-p, .rc-day.rc-end .rc-p { color: rgba(255,255,255,.85); }
.rc-day.rc-start { border-radius: 10px 0 0 10px; }
.rc-day.rc-end { border-radius: 0 10px 10px 0; }
.rc-footer {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px;
}
.rc-note { color: var(--faint); font-size: 12px; max-width: 70%; }
.rc-clear { background: none; border: none; color: var(--brand); font-weight: 700; font-size: 13.5px; cursor: pointer; }

/* ---------- Barra resumen (resultados) ---------- */
.summary-bar {
  display: flex; align-items: stretch; gap: 0; padding: 6px;
  margin: 22px 0; overflow: hidden;
}
.sb-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 18px;
  text-decoration: none; color: var(--ink); border-radius: 10px; min-width: 0;
}
.sb-item:hover { background: #f1f5f9; }
.sb-item + .sb-item { border-left: 1px solid var(--line); border-radius: 0 10px 10px 0; }
.sb-item svg { color: var(--muted); flex-shrink: 0; }
.sb-label { display: block; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.sb-value { display: block; font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-cta {
  margin-left: auto; align-self: center; background: var(--brand); color: #fff;
  border-radius: 10px; width: 46px; height: 46px; display: grid; place-items: center; flex-shrink: 0;
  text-decoration: none;
}
.results-count { color: var(--muted); font-size: 14px; margin-bottom: 16px; }

/* ---------- Cards de habitación ---------- */
.rooms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin-bottom: 40px; }
.room-card { overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s; }
.room-card:hover { box-shadow: var(--shadow-md); }
.room-media { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #e2e8f0, #f1f5f9); overflow: hidden; }
.room-media img { width: 100%; height: 100%; object-fit: cover; }
.room-media .no-photo { position: absolute; inset: 0; display: grid; place-items: center; color: var(--faint); }
.photo-count {
  position: absolute; right: 10px; bottom: 10px; background: rgba(2, 6, 23, .70); color: #fff;
  font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 8px;
  display: inline-flex; align-items: center; gap: 5px;
}
.room-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.room-meta-row { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.room-meta-row svg { vertical-align: -3px; }
.scarcity { color: var(--danger); font-weight: 800; margin-left: auto; font-size: 13px; }
.room-title { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.room-desc summary { color: var(--brand); font-weight: 700; font-size: 13.5px; cursor: pointer; list-style: none; }
.room-desc summary::-webkit-details-marker { display: none; }
.room-desc p { color: var(--muted); font-size: 13.5px; margin-top: 6px; }

.rate-option { border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; display: flex; flex-direction: column; gap: 9px; }
.rate-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.rate-name { font-weight: 700; font-size: 14.5px; }
.rate-desc { color: var(--muted); font-size: 12.5px; }
.rate-policy { color: var(--ok); font-size: 12.5px; font-weight: 700; }
.rate-policy small { display: block; color: var(--muted); font-weight: 500; }
.rate-policy.is-strict { color: var(--text, #0f172a); }
.rate-buy { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.rate-price .price { font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.rate-price .price-sub { font-size: 11.5px; color: var(--muted); }
/* WOW-221: descuentos condicionales de la tarifa */
.rate-price .price-old { display: block; font-size: 13px; color: var(--muted); text-decoration: line-through; }
.rate-deals { display: flex; flex-wrap: wrap; gap: 6px; }
.rate-deal { background: rgba(22,163,74,.1); color: var(--ok); border-radius: 999px; padding: 3px 9px; font-size: 12px; font-weight: 700; }
.rate-hint { color: var(--brand); font-size: 12.5px; font-weight: 600; }
.rate-form { display: flex; align-items: flex-end; gap: 8px; }
.qty-label { display: flex; flex-direction: column; gap: 3px; font-size: 11px; font-weight: 700; color: var(--muted); }
.qty-label select { padding: 9px 6px; border: 1px solid #d3dae4; border-radius: 9px; font-size: 14px; background: #fff; }

/* ---------- Checkout ---------- */
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; margin: 22px 0 48px; }
.checkout-main { display: flex; flex-direction: column; gap: 18px; }
.panel { padding: 22px; }
.panel h2 { font-size: 17px; font-weight: 800; margin-bottom: 16px; }
.checkout-form .field, .checkout-form .field-row { margin-bottom: 14px; }
.payment-info {
  background: color-mix(in srgb, var(--brand) 7%, #fff);
  border: 1px solid color-mix(in srgb, var(--brand) 25%, #fff);
  border-radius: 12px; padding: 14px 16px; font-size: 14px;
}
.terms { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-top: 4px; }
.terms input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--brand); }

.aside-sticky { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; }
.sum-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.sum-dates .sd { background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.sum-dates .sd b { display: block; font-size: 14.5px; }
.sum-dates .sd span { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.sum-block { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; font-size: 14px; }
.sum-block h3 { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.sum-block .ok { color: var(--ok); font-weight: 700; }
.change-link { font-size: 13.5px; font-weight: 700; }
.price-lines { display: flex; flex-direction: column; gap: 7px; font-size: 14px; }
/* Una línea de precio se alinea igual esté donde esté: dentro del desglose o
   suelta debajo (subtotal, descuento, cargos automáticos, depósito). Cuando el
   estilo vivía sólo dentro de .price-lines, esas líneas sueltas salían como un
   párrafo corrido: "Limpieza final 45,00 EUR" en vez de concepto e importe a
   cada lado. */
.pl { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.pl span:first-child { color: var(--muted); }
.total-line {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 2px solid var(--ink); margin-top: 12px; padding-top: 12px;
}
.total-line strong { font-size: 22px; letter-spacing: -.01em; }
.ssl-note { text-align: center; color: var(--faint); font-size: 12px; margin-top: 10px; }
.days-breakdown { list-style: none; margin: 8px 0 0; font-size: 13px; }
.days-breakdown li { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px dashed var(--line); }
details.mini summary { color: var(--brand); font-weight: 700; font-size: 13px; cursor: pointer; }

/* ---------- Confirmación / portal ---------- */
.confirm-card { max-width: 620px; margin: 30px auto 48px; padding: 30px; }
.confirm-icon {
  width: 64px; height: 64px; border-radius: 999px; background: var(--ok-bg); color: var(--ok);
  display: grid; place-items: center; margin-bottom: 14px; font-size: 30px;
}
.confirm-card h1 { font-size: 26px; letter-spacing: -.02em; margin-bottom: 4px; }
.locator { margin: 12px 0; font-size: 15px; }
.confirm-card dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 14px 0; font-size: 14.5px; }
.confirm-card dt { color: var(--muted); }
.confirm-card dd { font-weight: 600; }
/* Un descuento se lee de un vistazo como lo que es: dinero que baja. */
dd.dd-descuento { color: #16a34a; }
.badge { font-size: 12px; font-weight: 800; padding: 3px 11px; border-radius: 999px; margin-left: 8px; }
.badge-active { background: var(--ok-bg); color: var(--ok); }
.badge-cancelled { background: var(--danger-bg); color: var(--danger); }
.hint { color: var(--muted); font-size: 13.5px; margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer { padding: 26px 0 34px; color: var(--faint); font-size: 13px; border-top: 1px solid var(--line); }
.site-footer a { color: var(--muted); }

/* ---------- Steppers de ocupación ---------- */
.stepper { display: inline-flex; align-items: stretch; border: 1px solid #d3dae4; border-radius: 10px; overflow: hidden; background: #fff; }
.stepper button {
  width: 38px; border: none; background: #f8fafc; color: var(--ink);
  font-size: 20px; line-height: 1; cursor: pointer;
}
.stepper button:hover { background: #eef1f5; color: var(--brand); }
.stepper button:disabled { color: #cbd5e1; cursor: default; background: #fff; }
.stepper input {
  width: 46px; border: none; border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  text-align: center; font-size: 15px; font-weight: 700; -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- Selección de habitaciones (barra Continuar) ---------- */
.select-hint { color: var(--muted); font-size: 13.5px; margin: -4px 0 16px; }
.rate-select { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rate-select .stepper button { width: 34px; font-size: 18px; }
.rate-select .stepper input { width: 40px; font-size: 14.5px; }
.selection-bar {
  position: sticky; bottom: 0; z-index: 40; margin: 24px -20px 0; padding: 14px 20px;
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(15,23,42,.08);
  display: flex; align-items: center; gap: 16px;
}
.selection-bar .sel-info { min-width: 0; }
.selection-bar .sel-count { font-size: 13px; color: var(--muted); font-weight: 700; }
.selection-bar .sel-total { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.selection-bar .btn { margin-left: auto; min-width: 190px; }
.selection-bar .btn:disabled { opacity: .45; cursor: default; box-shadow: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .aside-sticky { position: static; }
  .steps .step-label { display: none; }
  .steps .step.is-active .step-label { display: inline; }
}
@media (max-width: 720px) {
  body { font-size: 14.5px; overflow-x: hidden; }
  .site-header .container { gap: 10px; }
  .steps { min-width: 0; }
  .step-sep { width: 12px; margin: 0 2px; }
  .brand-logo { height: 30px; }
  .search-widget { grid-template-columns: 1fr 1fr; }
  .search-widget .field-dates, .search-widget .btn { grid-column: 1 / -1; }
  .hero-banner h1 { font-size: 27px; }
  .hero-banner .hero-inner { padding: 56px 18px; }
  .range-cal {
    position: fixed; inset: auto 0 0 0; top: 8vh; border-radius: 18px 18px 0 0;
    overflow-y: auto; max-height: 92vh; z-index: 100;
  }
  .rc-months { flex-direction: column; gap: 8px; }
  .rc-month + .rc-month { display: none; }   /* móvil: un mes */
  .rc-note { max-width: 100%; }
  .summary-bar { flex-wrap: wrap; }
  .sb-item + .sb-item { border-left: none; }
  .sb-cta { width: 100%; height: 44px; margin: 6px 4px 4px; }
  .header-meta > span { display: none; }   /* móvil: fuera la moneda, el idioma se queda */
  .rate-buy { flex-direction: column; align-items: stretch; }
  .rate-form { justify-content: space-between; }
  .rate-form .btn { flex: 1; }
}

/* ---------- Miniportal del huésped + check-in online ---------- */
.portal-login { max-width: 460px; }
.portal-form { margin-top: 18px; }
.portal-form .field { margin-bottom: 14px; }

/* Detalle de reserva (manage) */
.manage-card { max-width: 620px; }
.detail-h {
  font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); margin: 22px 0 4px; padding-top: 14px; border-top: 1px solid #eef1f5;
}
.manage-card dl { margin-top: 6px; }

/* CTA principal de check-in */
.cta-checkin { margin: 20px 0 0; text-align: center; }
.checkin-status {
  display: flex; align-items: center; gap: 12px; margin: 20px 0 0;
  padding: 14px 16px; border-radius: 14px; font-size: 14.5px;
}
.checkin-status .ci-icon {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
}
.checkin-status .ci-icon .ico { width: 17px; height: 17px; stroke-width: 2.4; }
.checkin-status.is-submitted { background: var(--warn-bg, #fef9c3); border: 1px solid #fde68a; }
.checkin-status.is-submitted .ci-icon { background: #d97706; }
.checkin-status.is-verified { background: var(--ok-bg); border: 1px solid #a7f3d0; }
.checkin-status.is-verified .ci-icon { background: var(--ok); }
.checkin-status .btn { margin-left: auto; flex-shrink: 0; }

/* Formulario de check-in online */
.checkin-card { max-width: 640px; }
.back-link { font-size: 13.5px; margin-bottom: 4px; }
.back-link a { text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.back-link .ico { width: 15px; height: 15px; }
.stay-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.stay-h .stay-dates { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: none; letter-spacing: 0; }
.guest-card {
  border: 1px solid #e5e9f0; border-radius: 16px; padding: 16px 16px 4px;
  margin: 16px 0; background: #fff;
}
.guest-card legend {
  font-weight: 800; font-size: 13px; padding: 2px 10px; color: var(--brand);
  background: color-mix(in srgb, var(--brand) 9%, #fff); border-radius: 999px;
}
.guest-card .field { margin-bottom: 12px; }
.guest-card .field .opt { font-weight: 500; color: var(--muted); text-transform: none; }
.checkin-consent { margin: 18px 0; }
.checkin-form .btn-lg { margin-top: 4px; }

/* ---------- Iconos SVG — no usamos emojis ---------- */
.ico, .ico-sm { display: inline-block; vertical-align: -0.15em; flex-shrink: 0; }
.ico { width: 1.15em; height: 1.15em; }
.ico-sm { width: 14px; height: 14px; }

/* ---------- Asistente por pasos del check-in ---------- */
/* El atributo [hidden] debe ganar a los display: flex/grid declarados más abajo. */
.wiz-step[hidden], .scan-modal[hidden], .scan-status[hidden],
.scan-shot img[hidden], .scan-shot-ph[hidden], [data-scan-error][hidden] { display: none !important; }

.wiz-head { margin: 18px 0 22px; }
.wiz-progress {
  position: relative; height: 4px; border-radius: 999px; background: #e8ecf2; overflow: hidden;
}
.wiz-progress-bar {
  position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 999px;
  background: var(--brand); transition: width .3s ease;
}
.wiz-dots {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 8px; list-style: none; margin: 14px 0 10px; padding: 0;
}
.wiz-dot { display: grid; place-items: center; }
.wiz-dot-num {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  font-size: 12.5px; font-weight: 800; background: #eef1f5; color: var(--muted);
  border: 2px solid transparent; transition: all .2s ease;
}
.wiz-dot.is-active .wiz-dot-num {
  background: #fff; color: var(--brand); border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent);
}
.wiz-dot.is-done .wiz-dot-num { background: var(--brand); color: #fff; }
.wiz-dot-num .ico-sm { stroke-width: 2.6; }
.wiz-label { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 0; text-align: center; }
.wiz-label strong { font-size: 15.5px; }
.wiz-count { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.wiz-step-title { font-size: 19px; letter-spacing: -.01em; margin: 0 0 4px; }
.wiz-stay {
  font-size: 12.5px; font-weight: 700; color: var(--muted);
  margin: 0 0 6px; text-transform: uppercase; letter-spacing: .03em;
}
.wiz-nav { display: flex; gap: 10px; margin-top: 20px; }
.wiz-nav .btn { flex: 1; padding: 14px; font-size: 15px; border-radius: 12px; }
.field.has-error input, .field.has-error select { border-color: var(--danger); background: var(--danger-bg); }
.terms.has-error { border-color: var(--danger); }
.step-error { margin: 12px 0; }
.field.just-filled input, .field.just-filled select {
  border-color: var(--ok); background: var(--ok-bg); transition: background .4s ease, border-color .4s ease;
}

/* Botón + modal de escaneo del DNI */
.btn-scan {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  margin: 14px 0 4px; padding: 13px; border-radius: 12px; font-size: 15px;
  background: color-mix(in srgb, var(--brand) 8%, #fff);
  color: var(--brand); border: 1.5px dashed color-mix(in srgb, var(--brand) 45%, #fff);
}
.btn-scan:hover { background: color-mix(in srgb, var(--brand) 13%, #fff); }
.btn-scan .ico { width: 19px; height: 19px; }
.scan-hint { margin: 0 0 16px; text-align: center; font-size: 12.5px; }
.scan-modal {
  position: fixed; inset: 0; z-index: 200; background: rgba(15, 23, 42, .55);
  display: flex; align-items: flex-end; justify-content: center; padding: 0;
}
.scan-dialog {
  background: #fff; width: 100%; max-width: 520px; border-radius: 18px 18px 0 0;
  max-height: 92vh; display: flex; flex-direction: column; overflow: hidden;
}
.scan-dialog-head, .scan-dialog-foot {
  display: flex; align-items: center; gap: 10px; padding: 14px 18px; flex-shrink: 0;
}
.scan-dialog-head { border-bottom: 1px solid #eef1f5; justify-content: space-between; }
.scan-dialog-foot { border-top: 1px solid #eef1f5; }
.scan-dialog-foot .btn { flex: 1; padding: 13px; border-radius: 12px; }
.scan-close {
  background: none; border: none; color: var(--muted); cursor: pointer;
  padding: 4px; display: grid; place-items: center; line-height: 0;
}
.scan-close .ico { width: 20px; height: 20px; }
.scan-body { padding: 16px 18px; overflow-y: auto; }
.scan-step-msg { margin: 0 0 14px; font-size: 14.5px; text-align: center; }
.scan-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.scan-shot {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; aspect-ratio: 1.5 / 1; padding: 10px; cursor: pointer; text-align: center;
  border: 1.5px dashed #cbd5e1; border-radius: 14px; background: #f8fafc; overflow: hidden;
}
.scan-shot.is-filled { border-style: solid; border-color: var(--ok); }
.scan-shot-label {
  position: absolute; top: 6px; left: 8px; z-index: 2; font-size: 10.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em; color: var(--muted);
  background: rgba(255, 255, 255, .85); padding: 2px 6px; border-radius: 6px;
}
.scan-shot-ph { font-size: 12px; color: var(--muted); padding: 0 6px; }
.scan-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan-status { display: flex; align-items: center; gap: 9px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.scan-spin {
  width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid #dbe2ea; border-top-color: var(--brand); animation: scan-spin .7s linear infinite;
}
@keyframes scan-spin { to { transform: rotate(360deg); } }
[data-scan-error] { margin: 14px 0 0; }

/* Paso final: revisión */
.review-list { margin: 16px 0; display: flex; flex-direction: column; gap: 10px; }
.review-item {
  display: flex; align-items: center; gap: 10px; justify-content: space-between;
  border: 1px solid #e5e9f0; border-radius: 14px; padding: 12px 14px;
}
.review-item-main { display: flex; align-items: center; gap: 11px; min-width: 0; }
.review-num {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand) 12%, #fff); color: var(--brand); font-size: 12.5px; font-weight: 800;
}
.review-name { font-weight: 600; font-size: 14.5px; }
.review-meta { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.review-edit {
  flex-shrink: 0; background: none; border: none; color: var(--brand);
  font-weight: 700; font-size: 13px; cursor: pointer; padding: 4px 6px;
}

/* Cargos de la reserva en el check-in: tasa turística y compañía (WOW-216) */
.checkin-charges { margin: 18px 0 2px; }
.checkin-charges dl { margin: 8px 0 6px; }
.checkin-charges dd .hint { display: block; font-weight: 400; font-size: 12.5px; }

@media (max-width: 560px) {
  /* Móvil: campos apilados para pulgares cómodos */
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .confirm-card, .manage-card, .checkin-card, .portal-login { padding: 22px 18px; margin: 16px auto 32px; }
  .checkin-status { flex-wrap: wrap; }
  .checkin-status .btn { margin-left: 0; width: 100%; }
  .wiz-dot-num { width: 24px; height: 24px; font-size: 11.5px; }
  .wiz-dots { gap: 6px; }
}
@media (min-width: 561px) {
  .scan-modal { align-items: center; padding: 20px; }
  .scan-dialog { border-radius: 18px; }
}

/* ============================================================
   Esquinas rectas (Motor → Apariencia → Esquinas)
   Para hoteles con una web de líneas rectas: todo pierde el radio
   (tarjetas, botones, campos, calendario, avisos, etiquetas...),
   también los estilos en línea de las vistas. Sólo quedan redondos
   los círculos de verdad —números de paso, iconos de estado, sellos,
   puntos y el spinner—, que cuadrados dejarían de leerse como tales.
   ============================================================ */
html[data-corners="square"] *:not(
  .step-num, .confirm-icon, .ci-icon, .wiz-dot-num, .scan-spin, .review-num,
  .loy-card-seal, .loy-stamp, .loy-reward-dot, [style*="border-radius:50%"]
),
html[data-corners="square"] *::before,
html[data-corners="square"] *::after {
  border-radius: 0 !important;
}

/* WOW-243: «Avísame si se libera» cuando no hay sitio. */
.waitlist-box { border: 1px solid var(--line, #e5e7eb); border-radius: 14px; padding: 18px 20px; margin: 0 0 20px; background: #fff; }
.waitlist-title { font-size: 17px; font-weight: 700; margin: 0 0 4px; }
.waitlist-help { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.waitlist-form { display: grid; gap: 12px; }
.waitlist-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.waitlist-consent input { margin-top: 3px; flex-shrink: 0; }
.waitlist-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.waitlist-form .btn { justify-self: start; }
@media (max-width: 560px) { .waitlist-form .field-row { grid-template-columns: 1fr; } .waitlist-form .btn { justify-self: stretch; } }
