/* =========================================================
   Baipor Group · Páginas interiores (19-oct-2026)
   Privacidad, tratamiento de datos, FAQ, alquiler, avisos tras
   una solicitud o un pago y redirecciones. Va después de site.css
   y usa sus variables (colores, fuentes, --gut, --hdr).
   ========================================================= */

.pg { background: var(--paper-2); }

/* ---------- cabecera de página (como la del presupuesto) ---------- */
.pg-hero { background: var(--navy-950); color: #fff; padding: clamp(32px, 5vw, 64px) 0 clamp(56px, 7vw, 104px); position: relative; overflow: hidden; }
.pg-hero::after { content: ""; position: absolute; right: -6vw; bottom: -12vw; width: 46vw; max-width: 660px; aspect-ratio: 100 / 76; background: rgba(255, 255, 255, .05); -webkit-mask: var(--arw) center / contain no-repeat; mask: var(--arw) center / contain no-repeat; pointer-events: none; }
.pg-hero-in { position: relative; z-index: 1; display: grid; gap: 18px; }
.pg-hero .kicker { display: flex; align-items: center; gap: 12px; margin-top: 10px; color: #fff; }
.pg-hero .kicker::before { content: ""; width: 28px; height: 2px; background: var(--red); flex: none; }
.pg-title { font-family: var(--fd); font-weight: 400; text-transform: uppercase; line-height: .9; letter-spacing: .004em; font-size: clamp(40px, 8.6vw, 116px); text-wrap: balance; overflow-wrap: break-word; }
html[lang="de"] .pg-title { font-size: clamp(34px, 7.6vw, 108px); }
.pg-hero .lead { color: var(--txt-d); max-width: 60ch; }
.pg-hero .actions { margin-top: 6px; }
.pg-meta { font-size: 13px; letter-spacing: .06em; color: var(--txt-d); }

/* ---------- cuerpo ---------- */
.pg-body { padding: clamp(40px, 6vw, 96px) 0 clamp(72px, 9vw, 140px); }
.pg-h2 { font-family: var(--fd); font-weight: 400; text-transform: uppercase; line-height: .95; font-size: clamp(30px, 3.4vw, 52px); color: var(--navy); margin-bottom: clamp(24px, 3vw, 40px); text-wrap: balance; }

/* textos legales: índice + texto */
.pg-doc { display: grid; gap: 32px; }
@media (min-width: 1024px) {
  .pg-doc { grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 72px; align-items: start; }
  .pg-toc { position: sticky; top: calc(var(--hdr) + 24px); }
}
.pg-toc { background: var(--paper); border: 1px solid var(--line); padding: 20px 24px; }
.pg-toc h2 { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.pg-toc a { display: block; padding: 7px 0; font-size: 14.5px; line-height: 1.4; color: var(--navy); text-decoration: none; }
.pg-toc a:hover { text-decoration: underline; }

.prose { max-width: 72ch; min-width: 0; color: var(--ink-2); }
.prose-wide { max-width: 1040px; }
.prose > section + section { margin-top: clamp(40px, 4.4vw, 64px); }
.prose section { scroll-margin-top: calc(var(--hdr) + 16px); }
.prose h2 { font-family: var(--fd); font-weight: 400; text-transform: uppercase; line-height: 1; font-size: clamp(26px, 2.6vw, 38px); color: var(--navy); margin-bottom: 16px; text-wrap: balance; }
.prose p + p, .prose p + ul, .prose ul + p, .prose p + .pg-card { margin-top: 12px; }
.prose ul { display: grid; gap: 8px; margin-top: 12px; }
.prose ul li { position: relative; padding-left: 24px; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .8em; width: 10px; height: 2px; background: var(--red); }
.prose a { color: var(--navy); font-weight: 500; overflow-wrap: anywhere; }
.pg-card { background: var(--paper); border-left: 3px solid var(--red); padding: 18px 22px; display: grid; gap: 2px; color: var(--ink); }
.pg-card b { font-weight: 600; }
.pg-mail { font-weight: 500; }
.pg-see { margin-top: clamp(40px, 4.4vw, 64px); padding-top: 24px; border-top: 1px solid var(--line-2); }

/* tablas (en el móvil, una tarjeta por fila) */
.pg-table { width: 100%; border-collapse: collapse; background: var(--paper); font-size: 14.5px; line-height: 1.5; }
.pg-table th, .pg-table td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.pg-table thead th { background: var(--navy); color: #fff; font-weight: 500; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.pg-table td:first-child { color: var(--ink); font-weight: 500; }
@media (max-width: 759px) {
  .pg-table { background: transparent; }
  .pg-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
  .pg-table tbody, .pg-table tr, .pg-table td { display: block; width: 100%; }
  .pg-table tr { background: var(--paper); border: 1px solid var(--line); padding: 6px 0; }
  .pg-table tr + tr { margin-top: 12px; }
  .pg-table td { border: 0; padding: 8px 18px; display: grid; gap: 2px; }
  .pg-table td::before { content: attr(data-label); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
}

/* FAQ (el acordeón .qa es el de la portada) */
.pg-faq { max-width: 960px; }
.pg-faq-more { margin-top: 28px; }

/* ---------- alquiler: una ficha por vehículo ---------- */
.fleet { display: grid; gap: 20px; }
@media (min-width: 760px) { .fleet { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; } }
.vc { background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.vc-media { aspect-ratio: 4 / 3; background: #fff; overflow: hidden; border-bottom: 1px solid var(--line); }
.vc-media img { width: 100%; height: 100%; object-fit: cover; }
.vc-media--none { display: grid; place-items: center; background: var(--navy-50); position: relative; }
.vc-media--none::before { content: ""; position: absolute; inset: 22% 26%; background: var(--navy-100); -webkit-mask: var(--arw) center / contain no-repeat; mask: var(--arw) center / contain no-repeat; }
.vc-media--none span { position: relative; font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); background: var(--navy-50); padding: 6px 12px; }
.vc-body { flex: 1; display: flex; flex-direction: column; gap: 20px; padding: clamp(20px, 2.6vw, 34px); }
.vc-head { display: grid; gap: 14px; }
.vc-name { font-family: var(--fd); font-weight: 400; text-transform: uppercase; line-height: .86; letter-spacing: .004em; font-size: clamp(48px, 5.2vw, 76px); color: var(--navy); overflow-wrap: break-word; }
.vc-model { margin-top: 10px; font-size: 17px; font-weight: 500; color: var(--ink-2); }
.vc-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; line-height: 1; padding-top: 14px; border-top: 1px solid var(--line); }
.vc-from { font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.vc-amt { font-family: var(--fd); font-size: clamp(52px, 5vw, 72px); line-height: .9; color: var(--red); font-variant-numeric: tabular-nums lining-nums; }
.vc-unit { font-size: 17px; font-weight: 600; color: var(--navy); }
.vc-feat { display: flex; flex-wrap: wrap; gap: 8px; }
.vc-feat li { font-size: 13px; line-height: 1.3; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); }
.vc-act { margin-top: auto; width: 100%; }
.vc-act svg { width: 22px; height: 22px; }
.fleet-note { margin-top: clamp(28px, 3vw, 40px); display: grid; gap: 6px; max-width: 72ch; font-size: 14.5px; color: var(--ink-3); }
.fleet-note p { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; }

/* ---------- avisos (solicitud recibida, pago) y redirecciones ---------- */
.pg-status { padding: clamp(48px, 8vw, 128px) 0; }
.pg-status-card { max-width: 760px; margin-inline: auto; background: var(--paper); border: 1px solid var(--line); padding: clamp(28px, 5vw, 64px); display: grid; justify-items: center; gap: 20px; text-align: center; }
.pg-status-ic { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: #e7f6ee; color: #1f9d63; }
.pg-status-ic svg { width: 40px; height: 40px; }
.pg-status-ic--warn { background: #fbf1dd; color: #b5730a; }
.pg-status-t { font-family: var(--fd); font-weight: 400; text-transform: uppercase; line-height: .92; letter-spacing: .004em; font-size: clamp(38px, 5.6vw, 76px); color: var(--navy); text-wrap: balance; overflow-wrap: break-word; max-width: 100%; }
.pg-sub { font-size: clamp(17px, 1.4vw, 20px); font-weight: 300; color: var(--ink-2); }
.pg-box { width: 100%; background: var(--paper-2); padding: 20px 22px; color: var(--ink); }
.pg-svc { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.pg-svc-l { font-size: 13px; color: var(--ink-3); }
.pg-svc-v { font-weight: 600; font-size: 17px; color: var(--navy); }
.pg-status .actions { justify-content: center; }
@media (max-width: 479px) { .pg-status .actions .btn { width: 100%; } }

/* ---------- alquiler: calculadora del precio en la ficha de cada vehículo (Iván, Doc «WEB Cambios y errores», 20-oct-2026) ----------
   Botón «Calcula tu precio» (lo pone alquiler.js) y diálogo con días o fechas, países, seguro y el precio desglosado. */
.vc-calc-b { margin-top: auto; width: 100%; }
.vc-calc-b + .vc-act { margin-top: -8px; }
.vc-calc-b svg { width: 20px; height: 20px; }
.vc-calc-wa svg { color: #1fae53; }
.vc-calc-wa:hover svg { color: currentColor; }

.rc-dlg { width: min(640px, calc(100% - 24px)); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow: auto; overscroll-behavior: contain; }
.rc-k { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.rc-name { margin-top: 8px; font-family: var(--fd); font-weight: 400; text-transform: uppercase; line-height: .88; font-size: clamp(40px, 7vw, 64px); color: var(--navy); overflow-wrap: anywhere; }
.rc-model { margin-top: 6px; font-weight: 500; color: var(--ink-2); }
.rc-body { margin-top: 24px; display: grid; gap: 24px; }
.rc-sec { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 8px; }
.rc-h { padding: 0; margin-bottom: 4px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.rc-days { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rc-step { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; background: #fff; font-size: 22px; line-height: 1; color: var(--navy); transition: background-color .2s, color .2s; }
.rc-step:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.rc-n { width: 76px; height: 46px; border: 1px solid var(--line-2); border-radius: 2px; text-align: center; font: 600 20px/1 var(--ft); color: var(--navy); font-variant-numeric: tabular-nums; }
.rc-n:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(17, 23, 80, .14); }
.rc-dw { margin-left: 4px; font-weight: 500; color: var(--ink-2); }
.rc-sub { margin-top: 8px; font-size: 13.5px; color: var(--ink-3); }
.rc-dates { display: grid; gap: 0 12px; }
@media (min-width: 480px) { .rc-dates { grid-template-columns: 1fr 1fr; } }
.rc-dates .f { margin-bottom: 8px; }
.rc-opt { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); background: #fff; font-size: 14.5px; cursor: pointer; transition: border-color .2s, background-color .2s; }
.rc-opt input { width: 20px; height: 20px; margin: 0; accent-color: var(--navy); }
.rc-opt:hover { border-color: var(--navy-300); }
.rc-opt:has(input:checked) { border-color: var(--navy); background: var(--navy-50); }
.rc-opt.is-fixed, .rc-opt.is-fixed:has(input:checked) { cursor: default; background: var(--paper-2); border-color: var(--line); }
.rc-opt-t { font-weight: 500; color: var(--ink); line-height: 1.35; }
.rc-opt-p { font-size: 13px; color: var(--ink-3); text-align: right; }
.rc-van { margin-top: 2px; }
.rc-res { display: grid; gap: 12px; padding-top: 6px; border-top: 2px solid var(--navy); }
.rc-dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rc-dl dt { font-size: 14.5px; color: var(--ink-2); }
.rc-dl dt span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-3); }
.rc-dl dd { margin: 0; font-weight: 600; color: var(--navy); white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
.rc-dl .rc-total { border-bottom: 0; padding-top: 14px; align-items: center; }
.rc-total dt { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); }
.rc-total dd { font-family: var(--fd); font-weight: 400; font-size: clamp(40px, 7vw, 56px); line-height: .9; color: var(--red); white-space: normal; text-align: right; }
.rc-note { padding: 10px 12px; background: #fbf1dd; border-left: 3px solid #d98a04; font-size: 13.5px; line-height: 1.5; color: var(--ink); }
.rc-wa { width: 100%; }
.rc-wa svg { width: 22px; height: 22px; }
.rc-wait, .rc-fail { color: var(--ink-2); }
.rc-fail + .rc-wa { margin-top: 4px; }
/* disponibilidad del ERP bajo las fechas: libre · ocupado · un agente la confirma · comprobando */
.rc-av { padding: 10px 12px; border-left: 3px solid var(--line-2); background: var(--paper-2); font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.rc-av.is-libre { border-left-color: #1f9d63; background: #e7f6ee; color: #135f3c; font-weight: 500; }
.rc-av.is-ocupado { border-left-color: var(--red); background: #fdecec; color: #8f1414; font-weight: 500; }
.rc-av.is-comprobando { color: var(--ink-3); }
.rc-busy { margin-top: -2px; }
.rc-dlg .rc-dates .f input.is-busy[type="date"] { border-color: var(--red); box-shadow: 0 0 0 3px rgba(223, 32, 32, .12); }
.rc-bar { position: sticky; bottom: 0; z-index: 2; display: flex; align-items: baseline; gap: 10px; margin: 18px calc(-1 * clamp(24px, 4vw, 44px)) calc(-1 * clamp(24px, 4vw, 44px)); padding: 14px clamp(24px, 4vw, 44px); background: var(--navy); color: #fff; }
.rc-bar-l { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.rc-bar-d { font-size: 13px; color: var(--txt-d); }
.rc-bar-v { margin-left: auto; font-family: var(--fd); font-weight: 400; font-size: 30px; line-height: 1; white-space: nowrap; }
