/* ============================================================
   Emérita Campers — estilos
   Paleta tomada del logotipo: azules mediterráneos + naranja de atardecer extremeño
   ============================================================ */
:root {
  --navy: #0b3a78;
  --navy-deep: #072a58;
  --blue: #2a8be0;
  --sky: #eaf4ff;
  --sun: #f29b38;
  --sun-deep: #d97a12;
  --cream: #fffaf2;
  --ink: #16243a;
  --muted: #5b6b82;
  --line: #d9e4f2;
  --white: #fff;

  --free: #e3f5e8;
  --free-ink: #1f7a3b;
  --booked: #e0403f;
  --booked-ink: #a02828;

  --radius: 18px;
  --shadow: 0 10px 30px rgba(11, 58, 120, .12);
  --font-display: "Archivo Black", "Arial Black", sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Permanent Marker", "Comic Sans MS", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; color: var(--navy); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

.kicker {
  font-weight: 800; text-transform: uppercase; letter-spacing: .14em;
  font-size: .8rem; color: var(--sun-deep); margin-bottom: .6em;
}
.kicker--light { color: #ffd08a; }

.marker { font-family: var(--font-hand); color: var(--sun); font-weight: 400; letter-spacing: 0; }
.marker--light { color: #ffd08a; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.5em; border-radius: 999px; border: 2px solid var(--sun);
  background: var(--sun); color: var(--navy-deep); font: 800 1rem var(--font-body);
  text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s;
  box-shadow: 0 6px 16px rgba(242, 155, 56, .35);
}
.btn:hover { transform: translateY(-2px); background: #ffab4d; }
.btn--small { padding: .55em 1.1em; font-size: .92rem; box-shadow: none; }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.8); box-shadow: none; }
.btn--ghost:hover { background: rgba(255,255,255,.15); }
.btn--ghost-dark { background: transparent; color: var(--navy); border-color: var(--line); box-shadow: none; }
.btn--ghost-dark:hover { background: var(--sky); }
.btn--block { width: 100%; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; box-shadow: none; }

.link { font-weight: 800; color: var(--navy); text-decoration: none; background: none; border: 0; cursor: pointer; font-family: inherit; font-size: 1rem; padding: 0; }
.link:hover { color: var(--blue); }
.link--muted { color: var(--muted); font-size: .9rem; font-weight: 700; margin-top: .8em; }

/* ---------- Cabecera ---------- */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .25s, box-shadow .25s;
}
.topbar.is-solid { background: rgba(255,255,255,.96); box-shadow: 0 2px 18px rgba(11,58,120,.1); backdrop-filter: blur(8px); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: .6em; text-decoration: none; color: var(--white); font-family: var(--font-display); font-size: 1.15rem; }
.brand img { width: 46px; height: 46px; border-radius: 50%; background: #fff; object-fit: cover; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.brand em { font-family: var(--font-hand); font-style: normal; color: #ffd08a; font-weight: 400; }
.topbar.is-solid .brand { color: var(--navy); }
.topbar.is-solid .brand em { color: var(--blue); }

.nav { display: flex; align-items: center; gap: 1.6em; }
.nav a:not(.btn) { color: var(--white); text-decoration: none; font-weight: 800; }
.topbar.is-solid .nav a:not(.btn) { color: var(--navy); }
.nav a:not(.btn):hover { color: var(--sun); }

.menu-btn { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 3px; border-radius: 2px; background: var(--white); margin: 4px 0; transition: .2s; }
.topbar.is-solid .menu-btn span { background: var(--navy); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(100svh, 920px); display: flex; align-items: center; color: var(--white); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: 65% center; transform: scale(1.03); }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(7,42,88,.92) 0%, rgba(7,42,88,.72) 42%, rgba(7,42,88,.1) 80%);
}
.hero__content { position: relative; padding: 120px 0 80px; max-width: 1180px; }
.hero__content > * { max-width: 640px; }
.hero h1 { color: var(--white); }
.hero .kicker { color: #ffd08a; }
.hero__lead { font-size: 1.2rem; opacity: .95; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8em; margin: 1.6em 0 2em; }
.hero__chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6em; }
.hero__chips li { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); padding: .35em .9em; border-radius: 999px; font-weight: 700; font-size: .92rem; backdrop-filter: blur(4px); }

/* ---------- Slogan ---------- */
.slogan {
  background: var(--navy);
  background-image: radial-gradient(circle at 85% 20%, rgba(42,139,224,.55), transparent 50%), radial-gradient(circle at 10% 110%, rgba(242,155,56,.35), transparent 45%);
  color: var(--white); text-align: center; padding: clamp(64px, 9vw, 110px) 0;
}
.slogan__inner { max-width: 900px; }
.slogan__quote { width: 48px; color: var(--sun); margin: 0 auto 1rem; }
.slogan blockquote { margin: 0; }
.slogan blockquote p { font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 700; opacity: .9; }
.slogan .slogan__big { font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.7rem); line-height: 1.2; opacity: 1; }
.slogan .slogan__big .marker { font-size: 1.1em; }
.slogan__note { font-size: .95rem; opacity: .75; max-width: 520px; margin: 1.5em auto 0; }

/* ---------- Secciones ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--tint { background: var(--sky); }
.section__head { max-width: 680px; margin-bottom: 2.5rem; }
.section__head p:last-child { color: var(--muted); font-size: 1.08rem; }

/* ---------- Vehículos ---------- */
.vehicle {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  margin-bottom: clamp(48px, 7vw, 88px);
}
.vehicle--reverse .vehicle__media { order: 2; }
.vehicle__media { border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--sky); }
.vehicle__pitch { color: var(--muted); font-size: 1.05rem; }
.tag { display: inline-block; background: var(--sky); color: var(--blue); font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; padding: .35em .9em; border-radius: 999px; margin-bottom: .8em; }
.tag--warm { background: #ffecd6; color: var(--sun-deep); }

.specs { list-style: none; padding: 0; margin: 1.4em 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .6em; }
.specs li { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: .7em .5em; text-align: center; }
.specs b { display: block; font-family: var(--font-display); color: var(--navy); font-size: 1.05rem; font-weight: 400; }
.specs span { font-size: .78rem; color: var(--muted); line-height: 1.2; display: block; }

.features { list-style: none; padding: 0; margin: 0 0 1.6em; display: grid; grid-template-columns: 1fr 1fr; gap: .45em 1.2em; }
.features li { padding-left: 1.6em; position: relative; font-weight: 600; font-size: .96rem; }
.features li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--white); background: var(--blue); width: 1.2em; height: 1.2em; border-radius: 50%; font-size: .8em; display: grid; place-items: center; margin-top: .35em; }
.vehicle__cta { display: flex; align-items: center; gap: 1.4em; flex-wrap: wrap; }

/* Galería */
.gallery { position: relative; width: 100%; height: 100%; }
.gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.gallery img.is-active { opacity: 1; }
.gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.9); color: var(--navy); font-size: 1.6rem; line-height: 1; display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.gallery__nav--prev { left: 12px; }
.gallery__nav--next { right: 12px; }
.gallery__dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.gallery__dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.55); cursor: pointer; }
.gallery__dots button.is-active { background: var(--white); transform: scale(1.3); }

.caravan-art, .caravan-art svg { width: 100%; height: 100%; display: block; }
.caravan-art svg { object-fit: cover; }

.perks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1em; }
.perks li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2em; display: flex; flex-direction: column; gap: .2em; }
.perks span { font-size: 1.6rem; }
.perks b { color: var(--navy); }
.perks small { color: var(--muted); font-size: .9rem; }

/* ---------- Rutas ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5em; margin-bottom: 1.8rem; }
.chip { border: 2px solid var(--line); background: var(--white); color: var(--navy); font: 800 .92rem var(--font-body); padding: .5em 1.1em; border-radius: 999px; cursor: pointer; transition: .15s; }
.chip:hover { border-color: var(--blue); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }

.routes { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.4em; }
.route { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 16px rgba(11,58,120,.08); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.route:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.route.is-hidden { display: none; }
.route__top { height: 120px; position: relative; display: flex; align-items: flex-end; justify-content: space-between; padding: 14px 16px; }
.route__top--jerte { background: linear-gradient(135deg, #ffd1dc, #e56b8a 60%, #8c2f4b); }
.route__top--vera { background: linear-gradient(135deg, #bfe9e0, #3aa58f 60%, #1d5f58); }
.route__top--hurdes { background: linear-gradient(135deg, #cfe3b5, #6f9a4a 60%, #3c5a28); }
.route__top--monfrague { background: linear-gradient(135deg, #ffe0b2, #c98a3c 60%, #6d4518); }
.route__top--marvao { background: linear-gradient(135deg, #d8e6ff, #5f86c9 60%, #2b4a86); }
.route__top--monsaraz { background: linear-gradient(135deg, #3b3f8f, #1b1f55 60%, #0b0d2b); }
.route__top--monsanto { background: linear-gradient(135deg, #e6e1d6, #a39580 60%, #5c513f); }
.route__days { background: var(--white); color: var(--navy); font-weight: 800; font-size: .85rem; padding: .25em .8em; border-radius: 999px; }
.route__emoji { font-size: 2.6rem; line-height: 1; filter: drop-shadow(0 3px 6px rgba(0,0,0,.25)); }
.route__emoji--big { font-size: 2.6rem; display: block; margin-bottom: .3em; }
.route__body { padding: 1.2em 1.3em 1.4em; display: flex; flex-direction: column; flex: 1; }
.route__body h3 { margin-bottom: .2em; }
.route__meta { font-size: .85rem; font-weight: 700; color: var(--blue); }
.route__body > p:not(.route__meta) { font-size: .95rem; color: var(--muted); }
.route__tags { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: .4em; }
.route__tags li { font-size: .78rem; font-weight: 700; background: var(--sky); color: var(--navy); padding: .2em .7em; border-radius: 999px; }
.route--custom { background: var(--navy); color: var(--white); justify-content: center; }
.route--custom h3 { color: var(--white); }
.route--custom .route__body > p { color: rgba(255,255,255,.85); }
.route--custom .btn { align-self: flex-start; margin-top: auto; }

/* ---------- Reservas ---------- */
.booking { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.6em; align-items: start; }
.booking__cal, .booking__side { background: var(--white); border-radius: 24px; box-shadow: var(--shadow); padding: clamp(16px, 3vw, 28px); }
.booking__side { position: sticky; top: 90px; }

.vehicle-switch { display: inline-flex; background: var(--sky); border-radius: 999px; padding: 4px; margin-bottom: 1.2em; max-width: 100%; }
.vehicle-switch button { border: 0; background: transparent; padding: .55em 1.2em; border-radius: 999px; font: 800 .92rem var(--font-body); color: var(--navy); cursor: pointer; }
.vehicle-switch button.is-active { background: var(--navy); color: var(--white); }

.cal-vehicle { font-family: var(--font-display); color: var(--navy); font-size: 1.1rem; margin: 0 0 1em; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .8em; }
.cal-nav { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line); background: var(--white); color: var(--navy); font-size: 1.4rem; cursor: pointer; display: grid; place-items: center; line-height: 1; }
.cal-nav:hover:not(:disabled) { border-color: var(--blue); }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-months { display: flex; flex: 1; justify-content: space-around; font-family: var(--font-display); color: var(--navy); font-size: 1.1rem; }

.cal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2em; }
.cal-week, .cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-week span { text-align: center; font-size: .75rem; font-weight: 800; color: var(--muted); padding-bottom: .4em; text-transform: uppercase; }
.cal-day {
  aspect-ratio: 1; border: 0; border-radius: 10px; font: 700 .92rem var(--font-body);
  display: grid; place-items: center; padding: 0;
  background: var(--free); color: var(--free-ink); position: relative; transition: transform .1s, background .1s;
}
button.cal-day { cursor: pointer; }
button.cal-day:hover { transform: scale(1.08); z-index: 1; }
.cal-day--empty { background: transparent; }
.cal-day--past { background: #f1f3f6; color: #b2bac6; }
.cal-day--booked { background: var(--booked); color: var(--white); }
.cal-day--today { box-shadow: inset 0 0 0 2px var(--navy); }
.cal-day--changed::after { content: ""; position: absolute; top: 4px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--sun); }
.cal-day--range-start { box-shadow: inset 0 0 0 3px var(--blue); }

.legend { list-style: none; padding: 0; margin: 1.4em 0 0; display: flex; flex-wrap: wrap; gap: .6em 1.4em; font-size: .88rem; color: var(--muted); font-weight: 700; }
.legend li { display: flex; align-items: center; gap: .45em; }
.dot { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.dot--free { background: var(--free); border: 1px solid #b8e2c4; }
.dot--booked { background: var(--booked); }
.dot--changed { background: var(--sun); border-radius: 50%; width: 8px; height: 8px; }
.cal-error { margin: 1em 0 0; padding: .8em 1em; border-radius: 12px; background: #fdecec; color: var(--booked-ink); font-weight: 700; font-size: .92rem; }

.booking__side h3 { margin-bottom: .8em; }
.steps { margin: 0 0 1.4em; padding-left: 1.2em; color: var(--muted); font-size: .95rem; }
.steps li { margin-bottom: .6em; }
.steps b { color: var(--navy); }
.booking__side .btn { margin-bottom: .6em; font-size: .95rem; }
.booking__small { font-size: .8rem; color: var(--muted); margin: .6em 0 0; }

/* ---------- Contacto ---------- */
.contact { position: relative; color: var(--white); padding: clamp(72px, 10vw, 120px) 0; overflow: hidden; }
.contact__bg { position: absolute; inset: 0; background-size: cover; background-position: center 60%; }
.contact__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,42,88,.95), rgba(7,42,88,.75)); }
.contact__inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.contact h2 { color: var(--white); }
.contact p { opacity: .9; font-size: 1.08rem; }
.contact__cards { display: flex; flex-direction: column; gap: .8em; }
.contact-card {
  display: flex; align-items: center; gap: 1em; padding: 1em 1.2em; border-radius: var(--radius);
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); color: var(--white); text-decoration: none;
  backdrop-filter: blur(6px); transition: background .15s, transform .15s;
}
.contact-card:hover { background: rgba(255,255,255,.2); transform: translateX(4px); }
.contact-card__icon { font-size: 1.6rem; width: 52px; height: 52px; border-radius: 50%; background: var(--white); display: grid; place-items: center; flex-shrink: 0; }
.contact-card small { display: block; opacity: .75; font-weight: 700; }
.contact-card b { font-size: 1.1rem; word-break: break-word; }
.contact__where { font-size: .95rem !important; margin: .4em 0 0; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.75); padding: 2.4em 0; font-size: .92rem; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.4em; }
.footer__brand { display: flex; align-items: center; gap: .8em; }
.footer__brand img { width: 52px; height: 52px; border-radius: 50%; background: #fff; }
.footer__brand p { margin: 0; color: var(--white); font-weight: 800; line-height: 1.3; }
.footer__brand small { color: rgba(255,255,255,.6); font-weight: 600; }
.footer__nav { display: flex; gap: 1.4em; flex-wrap: wrap; }
.footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.footer a:hover { color: var(--sun); }
.footer__legal { margin: 0; }

/* ---------- Aviso flotante ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 150%); z-index: 100;
  background: var(--navy); color: var(--white); padding: .8em 1.3em; border-radius: 999px; font-weight: 700;
  box-shadow: var(--shadow); transition: transform .3s, visibility .3s; max-width: calc(100% - 32px); text-align: center;
  visibility: hidden;
}
.toast { transform: translate(-50%, calc(100% + 40px)); bottom: 96px; }
.toast.is-visible { transform: translate(-50%, 0); visibility: visible; }

/* ---------- Página del gestor ---------- */
body.gestor { background: var(--sky); padding-bottom: 90px; }
.gestor__top { background: var(--white); box-shadow: 0 2px 14px rgba(11,58,120,.08); }
.gestor__top-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1em; }
.brand--dark { color: var(--navy); }
.brand--dark em { color: var(--blue); }
.gestor__main { padding: 2em 0; }
.gestor__intro { max-width: 700px; margin-bottom: 1.4em; }
.gestor__intro h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.gestor__intro p { color: var(--muted); }
.txt-rojo { color: var(--booked); }

.gestor__controls { display: flex; flex-wrap: wrap; gap: .6em 1em; align-items: center; justify-content: space-between; }
.vehicle-switch--mode { background: #fff4e3; }
.vehicle-switch--mode button.is-active { background: var(--sun); color: var(--navy-deep); }
.gestor__hint { color: var(--muted); font-weight: 700; font-size: .92rem; min-height: 1.6em; margin: 0 0 1em; }

.gestor__veh { color: var(--blue); font-weight: 800; margin: -.4em 0 .8em; }
.gestor__lista { list-style: none; padding: 0; margin: 0; max-height: 460px; overflow: auto; }
.gestor__lista li { display: flex; justify-content: space-between; gap: 1em; padding: .6em 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.gestor__lista b { color: var(--navy); }
.gestor__lista span { color: var(--muted); white-space: nowrap; }
.gestor__vacio { color: var(--muted); }

.savebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8em;
  padding: 14px max(16px, (100% - 1180px) / 2); background: var(--white); box-shadow: 0 -4px 18px rgba(11,58,120,.12);
  font-weight: 800; color: var(--muted);
}
.savebar.is-dirty { background: #fff4e3; color: var(--sun-deep); }
.savebar__actions { display: flex; gap: .5em; }
.btn:disabled { opacity: .45; cursor: default; transform: none; box-shadow: none; }

.gestor-login { max-width: 400px; margin: 3em auto; background: var(--white); border-radius: 24px; box-shadow: var(--shadow); padding: 2em; }
.gestor-login h1 { font-size: 1.8rem; }
.gestor-login p { color: var(--muted); }
.gestor-login label { display: block; font-weight: 800; color: var(--navy); margin-bottom: .3em; }
.gestor-login input { width: 100%; font: 700 1.1rem var(--font-body); padding: .7em .9em; border: 2px solid var(--line); border-radius: 12px; margin-bottom: 1em; }
.gestor-login input:focus { outline: none; border-color: var(--blue); }
.gestor-login__check { display: flex !important; align-items: center; gap: .5em; font-weight: 700 !important; color: var(--muted) !important; margin: -.3em 0 1.2em !important; cursor: pointer; }
.gestor-login__check input { width: auto; margin: 0; }
.gestor-login__alt { display: block; margin: 1em auto 0; }
.gestor__top-actions { display: flex; gap: .5em; }
.gestor-dialog { border: 0; border-radius: 22px; padding: 1.8em; width: min(440px, 100% - 32px); box-shadow: var(--shadow); color: var(--ink); }
.gestor-dialog::backdrop { background: rgba(7,42,88,.55); }
.gestor-dialog h2 { font-size: 1.4rem; }
.gestor-dialog p { color: var(--muted); font-size: .92rem; }
.gestor-dialog label { display: block; font-weight: 800; color: var(--navy); margin-bottom: .3em; }
.gestor-dialog input { width: 100%; font: 700 1.05rem var(--font-body); padding: .65em .9em; border: 2px solid var(--line); border-radius: 12px; margin-bottom: 1em; }
.gestor-dialog input:focus { outline: none; border-color: var(--blue); }
.gestor-dialog__tip { font-size: .82rem !important; }
.gestor-dialog__actions { display: flex; justify-content: flex-end; gap: .5em; margin-top: 1em; }
.gestor-login__repo { font-size: .8rem; margin: 1.2em 0 0; text-align: center; }
.gestor-login code { background: var(--sky); padding: .1em .35em; border-radius: 4px; }
.gestor__cargando { text-align: center; color: var(--muted); font-weight: 700; padding: 4em 0; }
.gestor__controls .cal-vehicle { margin: 0; }
.gestor-login__error { color: var(--booked-ink) !important; font-weight: 800; }

/* ---------- Páginas legales ---------- */
body.legal-page { background: var(--white); }
.legal { max-width: 780px; padding: 2.5em 0 4em; }
.legal h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); margin-bottom: .2em; }
.legal h2 { font-size: 1.25rem; margin: 2em 0 .6em; }
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: .45em; }
.legal a { font-weight: 700; word-break: break-word; }
.legal__fecha { color: var(--muted) !important; font-size: .9rem; }
.legal__resumen { background: var(--sky); border-left: 4px solid var(--blue); border-radius: 12px; padding: 1em 1.2em; margin: 1.5em 0; }
mark.pendiente { background: #ffe08a; color: #6b4a00; padding: .05em .35em; border-radius: 4px; font-weight: 700; }
.footer__legal a { color: rgba(255,255,255,.85); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .booking { grid-template-columns: minmax(0, 1fr); }
  .booking__side { position: static; }
  .perks { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); box-shadow: 0 12px 24px rgba(11,58,120,.15); padding: .6em 16px 1.2em;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .2s;
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a:not(.btn) { color: var(--navy) !important; padding: .8em 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 1em; }
  .vehicle { grid-template-columns: 1fr; }
  .vehicle--reverse .vehicle__media { order: 0; }
  .contact__inner { grid-template-columns: 1fr; }
  .cal-grid { grid-template-columns: 1fr; }
  .cal-months span + span { display: none; }
  .cal-month + .cal-month { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .specs { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr; }
  .perks { grid-template-columns: 1fr; }
  .hero__bg { background-position: 72% center; }
  .hero__bg::after { background: linear-gradient(180deg, rgba(7,42,88,.55) 0%, rgba(7,42,88,.9) 70%); }
  .vehicle-switch { display: flex; }
  .vehicle-switch button { flex: 1; padding: .55em .6em; font-size: .85rem; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .gestor__controls .vehicle-switch { width: 100%; }
  .savebar { padding: 12px 16px; }
  .savebar > span { width: 100%; }
  .savebar__actions { width: 100%; }
  .savebar__actions .btn { flex: 1; }
  .cal-days, .cal-week { gap: 3px; }
}
