/* Hallmark · v2.0.0 · redesign 2 · genre editorial · custom (tierra de La Mancha: arena, verde encina, terracota) · signature: las autocaravanas recortadas, sin fondo blanco, sobre un suelo de arena con su sombra */
/* critique: la navegación tenía 9 botones del mismo peso y en el móvil ocupaba 4 filas; las fotos de la flota eran recuadros blancos dentro de tarjetas; las rutas no decían si bastan los kilómetros incluidos */
/* waive 24b: los espaciados siguen la escala mixta que ya usa website.css (6, 10, 14, 18, 22 px) para que la web y el panel encajen sin saltos */
/* waive 63: se mantiene la flecha de «volver» (← Todas las rutas) porque es la señal de vuelta atrás que el cliente reconoce; las flechas de avance se han quitado */

:root{
  --bg:#f6f3ec;          /* arena */
  --surface:#fffdf9;
  --surface-2:#efeadf;
  --stage:#ebe4d5;       /* suelo donde se apoyan las autocaravanas */
  --stage-shadow:#1f2e2933;
  --line:#e3ddd0;
  --line-strong:#cfc8b8;
  --ink:#1f2e29;         /* verde encina */
  --muted:#5b6862;
  --orange:#b4562e;      /* terracota */
  --orange-dark:#9f4521;
  --orange-soft:#f6e4d8;
  --green-soft:#e4ebe1;
  --ok:#1b7a3c;
  --ok-soft:#e3f1e6;
  --warn:#8a5a00;
  --warn-soft:#fbf0db;
  --on-dark:#fffdf9;
  --on-dark-muted:#c6cfc9;
  --on-dark-accent:#f0a57d;
  --header-bg:#fffdf9;
  --on-dark-hover:#ffffff14;
  --on-dark-line:#ffffff26;
  --font-body:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --font-display:"Iowan Old Style","Palatino Linotype",Palatino,"Book Antiqua",Georgia,serif;
  --radius:16px;
  --radius-sm:10px;
  --shadow:0 1px 2px #1f2e290d,0 10px 30px #1f2e2912;
  --shadow-lift:0 2px 4px #1f2e2910,0 18px 40px #1f2e291c;
  --header-h:68px;
}

html,body{overflow-x:clip}
html{scroll-padding-top:calc(var(--header-h) + 16px)}
body{background:var(--bg);color:var(--ink);font:16px/1.6 var(--font-body);-webkit-font-smoothing:antialiased}
p{color:var(--muted)}
a{color:var(--orange-dark)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* Títulos */
h1,h2,h3,.section-title,.hero h1,.vehicle-heading h1,.confirmation h1{text-wrap:balance;font-family:var(--font-display);font-weight:700;letter-spacing:-.01em;overflow-wrap:break-word;min-width:0;color:var(--ink)}
h1{font-size:clamp(32px,4vw,48px);line-height:1.1}
h2{font-size:clamp(20px,2vw,24px);line-height:1.25}
h3{font-size:19px}
.section-title{font-size:clamp(28px,3.2vw,40px);margin:4px 0 24px}

/* Rótulos: frase normal, sin mayúsculas espaciadas */
.eyebrow{display:block;font-size:15px;letter-spacing:0;font-weight:600;color:var(--orange-dark);text-transform:lowercase}
.eyebrow::first-letter{text-transform:uppercase}
.eyebrow.keep-case{text-transform:none}

/* ---------- Cabecera ---------- */
header{position:sticky;top:0;z-index:40;min-height:var(--header-h);background:var(--header-bg);border-bottom:1px solid var(--line);padding:10px max(24px,calc((100% - 1240px)/2));gap:18px;flex-wrap:wrap}
.brand{font-family:var(--font-body);font-size:22px;letter-spacing:.14em;color:var(--ink)}
.brand small{font-size:12px;letter-spacing:0;color:var(--orange-dark);font-weight:600;margin-top:2px;text-transform:lowercase}.brand small::first-letter{text-transform:uppercase}
nav{align-items:center;gap:2px}
nav button{font-size:15px;font-weight:550;border-radius:999px;padding:9px 14px;color:var(--ink);background:transparent;position:relative}
nav button:hover{background:var(--surface-2)}
nav button.active{background:var(--ink);color:var(--on-dark)}
nav .nav-cta{order:99;background:var(--orange);color:var(--on-dark);margin-left:10px;padding:10px 20px}
nav .nav-cta:hover{background:var(--orange-dark)}
nav .nav-cta.active{background:var(--orange-dark);color:var(--on-dark)}
.menu-toggle{display:none}
#view-mode{border-top-color:var(--line);padding-top:8px}
#view-mode:empty{display:none}

/* ---------- Botones y campos ---------- */
button{background:var(--orange);color:var(--on-dark);border-radius:999px;padding:12px 22px;font-weight:650;font-size:15px;min-height:44px;transition:background-color .15s ease,transform .15s ease,box-shadow .15s ease}
button:hover{background:var(--orange-dark)}
button:active{transform:translateY(1px)}
button:disabled{opacity:.55;cursor:not-allowed}
button.secondary{background:var(--surface-2);color:var(--ink)}
button.secondary:hover{background:var(--line)}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[role=button]:focus-visible,.day:focus-visible{outline:3px solid var(--orange-dark);outline-offset:3px;transition:none}
label{font-size:14px;font-weight:600;color:var(--ink)}
input,select,textarea{border:1px solid var(--line-strong);border-radius:var(--radius-sm);padding:12px;background:var(--surface);color:var(--ink);min-height:46px}
input:hover,select:hover,textarea:hover{border-color:var(--muted)}
input[type=checkbox],input[type=radio]{min-height:0;accent-color:var(--orange)}

/* ---------- Superficies ---------- */
main{max-width:1240px;padding:40px 28px 24px}
.panel,.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}
.note{background:var(--green-soft);color:var(--ink);font-size:15px;border-radius:var(--radius-sm)}
.badge{background:var(--orange-soft);color:var(--orange-dark);font-size:13px}
.price{font-family:var(--font-display);font-size:28px;font-variant-numeric:tabular-nums}
table td,table th{border-bottom-color:var(--line)}
dialog{background:var(--surface);color:var(--ink);border-radius:20px}
.empty{color:var(--muted)}

/* ---------- Suelo para las autocaravanas recortadas ---------- */
.fleet-card>a,.vehicle-main-photo,.hero-image{position:relative;isolation:isolate}
.fleet-card>a::after,.vehicle-main-photo::after,.hero-image::after{content:"";position:absolute;left:12%;right:12%;bottom:8%;height:14%;border-radius:50%;background:radial-gradient(closest-side,var(--stage-shadow),transparent);z-index:-1;pointer-events:none}

/* ---------- Portada ---------- */
.hero{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:48px;padding:8px 0 0}
.hero h1{font-size:clamp(40px,5vw,66px);line-height:1.03;letter-spacing:-.02em;margin:12px 0 18px}
.hero p{font-size:19px;color:var(--muted);max-width:30ch}
.hero-image{background:radial-gradient(ellipse 70% 55% at 50% 78%,var(--stage),transparent 72%)}
.hero-image img{height:420px;object-fit:contain;background:transparent;border-radius:0}
.hero-image span{background:var(--surface);color:var(--ink);font-size:13px;box-shadow:var(--shadow)}
.home-search{position:relative;z-index:2;margin-top:32px;box-shadow:var(--shadow);border-radius:20px;padding:20px}
.benefits{justify-content:center;gap:40px;font-size:15px;color:var(--ink);border-bottom-color:var(--line);padding:18px}
.web-section{margin-top:88px}

/* ---------- Flota ---------- */
.grid{gap:24px}
.fleet-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.fleet-card{padding:0;overflow:hidden;display:flex;flex-direction:column;transition:box-shadow .2s ease,transform .2s ease}
.fleet-card:hover{box-shadow:var(--shadow-lift);transform:translateY(-2px)}
.fleet-card>a{display:block;background:linear-gradient(180deg,var(--surface) 0%,var(--surface) 45%,var(--stage) 100%);padding:18px 18px 10px}
.fleet-card img{height:190px;margin:0;border-radius:0;background:transparent;object-fit:contain;padding:0;transition:transform .35s ease}

.fleet-card>:not(a){margin-left:22px;margin-right:22px}
.fleet-card .eyebrow{margin-top:18px}
.fleet-card h2{margin-top:4px;margin-bottom:10px}
.fleet-facts{list-style:none;display:flex;flex-wrap:wrap;gap:6px;padding:0;margin:0 22px 18px}
.fleet-facts li{background:var(--surface-2);border-radius:999px;padding:5px 12px;font-size:14px;color:var(--ink)}
.fleet-card .row{margin-top:auto;border-top-color:var(--line);padding-top:16px}
.fleet-card .row>span{font-size:14px;color:var(--muted)}
.fleet-card .call-line{margin-bottom:18px}
.card img{background:var(--surface-2)}

/* ---------- Pasos y preguntas ---------- */
.journey{background:var(--green-soft);border-radius:24px;padding:52px}
.journey ol{margin:0;padding-left:26px}
.journey li::marker{font-family:var(--font-display);font-weight:700;color:var(--orange-dark)}
.journey li strong{font-family:var(--font-display);font-size:22px}
.faq{padding:0}
.faq summary{padding:20px 24px;font-size:17px}
.faq p{padding:0 24px 20px;margin:0}

/* ---------- Ficha del vehículo ---------- */
.vehicle-facts span{background:var(--green-soft);font-size:15px}
.vehicle-main-photo{border:0;background:radial-gradient(ellipse 75% 50% at 50% 80%,var(--stage),var(--surface) 75%);border-radius:var(--radius);padding:24px}
.vehicle-main-photo img{background:transparent}
.vehicle-main-photo:hover{background:radial-gradient(ellipse 75% 50% at 50% 80%,var(--stage),var(--surface) 75%)}
.vehicle-main-photo span{color:var(--orange-dark);font-weight:600}
.photo-strip button{background:var(--surface-2);border-radius:var(--radius-sm);min-height:0}
.photo-strip img{border-radius:var(--radius-sm)}
.technical dl>div,.route-stats>div,.route-sheet dl>div{background:var(--surface-2)}
.technical dt,.route-stats dt,.route-sheet dt{font-size:13px}

/* ---------- Calendario ---------- */
.calendar{gap:6px}
.calendar>strong{font-size:13px;color:var(--muted);text-align:center;padding-bottom:4px}
.day{background:var(--ok-soft);border:1px solid transparent;border-radius:var(--radius-sm);font-weight:600;min-height:44px;transition:border-color .15s ease}
.day:hover:not(:disabled){border-color:var(--ok)}
.day.busy{background:var(--orange-soft)}
.day.blocked{background:var(--surface-2)}
.day:disabled{cursor:not-allowed;opacity:.85}

/* ---------- Contacto ---------- */
.contact-type{border-color:var(--line-strong);border-radius:var(--radius-sm);background:var(--surface);font-size:15px}
.contact-type span{display:none}
.contact-type:has(input:checked){border-color:var(--orange);background:var(--orange-soft)}
.consent-box{border-color:var(--line);background:var(--bg)}
.consent-box label{font-size:14px}
.call-link{color:var(--orange-dark);font-size:15px;min-height:0}
.call-link:hover{background:transparent;color:var(--ink)}

/* ---------- Rutas ---------- */
.route-filters{gap:8px;margin-top:14px}
.route-filters+.route-filters{margin-top:10px}
.route-filters button{min-height:42px;padding:9px 16px}
.route-card{padding:0;overflow:hidden;transition:box-shadow .2s ease,transform .2s ease}
.route-card:hover{box-shadow:var(--shadow-lift);transform:translateY(-2px)}
.route-card>:not(.route-media-wrap){margin-left:22px;margin-right:22px}
.route-card .route-media-wrap{margin-bottom:16px}
.route-media{border-radius:0}
.route-card .row{margin-bottom:20px;border-top-color:var(--line)}
.route-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 16px}
.route-facts>div{background:var(--surface-2);border-radius:var(--radius-sm);padding:8px 10px}
.route-facts dt{font-size:12px;color:var(--muted)}
.route-facts dd{margin:2px 0 0;font-size:14px;font-weight:600}
.route-hero .eyebrow{color:var(--on-dark-accent)}
.route-glance .table-wrap{overflow-x:auto;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}
.route-glance table{min-width:760px;font-size:15px}
.route-glance th,.route-glance td{padding:14px 16px;vertical-align:top}
.route-glance thead th{font-size:14px;color:var(--muted);font-weight:600;background:var(--surface-2)}
.route-glance tbody th{font-weight:600}
.route-glance tbody tr:hover{background:var(--bg)}
.route-before .guide-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.route-before .panel p{margin-bottom:0}
.route-km-verdict{font-weight:650;border-radius:var(--radius-sm);padding:10px 12px;color:var(--ink)}
.route-km-verdict.is-ok{background:var(--ok-soft)}
.route-km-verdict.is-more{background:var(--warn-soft)}
.route-km-packs,.route-models ul{padding-left:20px;margin:8px 0 0}
.route-models li{margin-bottom:6px}
.route-models small{color:var(--muted)}
.route-cta{background:var(--green-soft)}

/* ---------- Pie ---------- */
footer{background:var(--ink);color:var(--on-dark);font-size:15px}
footer p{color:var(--on-dark-muted)}
footer button{background:transparent;color:var(--on-dark);border-radius:6px;min-height:40px}
footer button:hover{background:var(--on-dark-hover)}
footer .brand{color:var(--on-dark)}
footer .brand small{color:var(--on-dark-accent)}
.footer-bottom{border-top-color:var(--on-dark-line);color:var(--on-dark-muted)}

/* ---------- WhatsApp y cookies ---------- */
.whatsapp-access{transition:background-color .15s ease,transform .15s ease}
#cookie-note{background:var(--ink);border-radius:20px}
#cookie-note .ck-btns button{border-radius:999px}
#cookie-note .ck-btns .ck-save{background:var(--orange);border-color:var(--orange)}

/* Panel de gestión */
.admin-view header{border-top:4px solid var(--orange)}

/* ---------- Pantallas medianas ---------- */
@media(max-width:1100px){
  nav button{padding:8px 10px;font-size:14px}
  .fleet-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:900px){
  .hero{grid-template-columns:minmax(0,1fr)}
  .hero-image img{height:280px}
  .route-before .guide-grid{grid-template-columns:minmax(0,1fr)}
}

/* ---------- Menú desplegable (tablet y móvil) ---------- */
@media(max-width:1020px){
  header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;row-gap:8px}
  .menu-toggle{display:inline-flex;align-items:center;gap:10px;background:var(--surface-2);color:var(--ink);padding:10px 18px}
  .menu-toggle::before{content:"";width:18px;height:12px;background:linear-gradient(var(--ink),var(--ink)) top/100% 2px no-repeat,linear-gradient(var(--ink),var(--ink)) center/100% 2px no-repeat,linear-gradient(var(--ink),var(--ink)) bottom/100% 2px no-repeat}
  .menu-toggle:hover{background:var(--line)}
  body.menu-open .menu-toggle{background:var(--ink);color:var(--on-dark)}
  body.menu-open .menu-toggle::before{background:linear-gradient(var(--on-dark),var(--on-dark)) top/100% 2px no-repeat,linear-gradient(var(--on-dark),var(--on-dark)) center/100% 2px no-repeat,linear-gradient(var(--on-dark),var(--on-dark)) bottom/100% 2px no-repeat}
  header nav{display:none;grid-column:1 / -1;flex-direction:column;align-items:stretch;gap:4px;padding:8px 0 6px;border-top:1px solid var(--line)}
  body.menu-open header nav{display:flex}
  header nav button{text-align:left;font-size:17px;padding:14px 16px;border-radius:var(--radius-sm)}
  nav .nav-cta{margin:6px 0 0;text-align:center}
  #view-mode{grid-column:1 / -1;width:auto;border:0;padding:0;gap:8px;justify-content:flex-start}
  #view-mode .badge{display:none}
  #view-mode button{padding:8px 14px;font-size:14px}
  body.menu-open main,body.menu-open footer{visibility:hidden}
}

/* ---------- Móvil ---------- */
@media(max-width:760px){
  :root{--header-h:60px}
  header{padding:8px 16px}
  .brand{font-size:20px}
  main{padding:24px 16px}
  .hero{gap:8px}
  .hero h1{font-size:40px}
  .hero p{font-size:17px}
  .hero-image img{height:170px}
  .hero-image span{display:none}
  .home-search,.search{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
  .home-search>button,.search>button{grid-column:1 / -1}
  .benefits{flex-direction:column;align-items:flex-start;gap:6px}
  .web-section{margin-top:60px}
  .journey{padding:28px}
  .grid,.fleet-grid{grid-template-columns:minmax(0,1fr)}
  .fleet-card img{height:180px}
  .section-title{font-size:28px}
  .route-facts{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  /* calendario legible */
  .calendar{gap:3px}
  .calendar .day{min-height:52px;padding:5px 3px;font-size:13px;text-align:center!important}
  .calendar .day strong{font-size:11px!important;margin-top:4px!important;white-space:nowrap}
  .calendar .day small{display:none}
}

@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}
}
