/* =============================================================
   Autos Borges · Alquiler de coches en Lanzarote
   Archetype 02 (Editorial Dark) adaptado a océano + verde volcánico
   ============================================================= */

/* 1. Tokens ---------------------------------------------------- */
@property --mesh-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  --bg:       #0B1411;
  --bg-2:     #0F1C17;
  --bg-3:     #14261F;
  --bg-4:     #1A3128;
  --cream:    #F2F5F2;
  --cream-2:  #CBD8D0;
  --cream-3:  #86998F;
  --accent:   #2BC266;
  --accent-2: #1E9E4A;
  --sea:      #8FD0A6;
  --sea-2:    #1E5B3A;
  --line:     rgba(238,243,236,.12);
  --line-2:   rgba(238,243,236,.22);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(1rem, 4vw, 3rem);
  --radius: 22px;
  --radius-sm: 14px;
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --nav-h: 72px;
}

/* 2. Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--cream);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.02em; font-weight: 400; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

/* 3. Utilities ------------------------------------------------- */
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--cream); color: var(--bg); z-index: 9999; border-radius: 8px; font-weight: 500; }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.container { width: min(1240px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.kicker { display: inline-block; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 500; margin-bottom: 1.1rem; }
.fine { font-size: .78rem; color: var(--cream-3); margin-top: 1.4rem; }
em { font-style: italic; font-variation-settings: "SOFT" 100; color: var(--accent); }
h2 em, h1 em { font-family: var(--serif); }

/* 4. Typography ------------------------------------------------ */
h2 { font-family: var(--serif); font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 350; font-variation-settings: "opsz" 144, "SOFT" 30; }
h3 { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 400; }
.section { padding-block: clamp(5rem, 11vw, 9rem); position: relative; background-color: var(--bg); }
.section-head { max-width: 860px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-lead { color: var(--cream-2); margin-top: 1.2rem; max-width: 620px; font-size: 1.05rem; }

/* 5. Components ------------------------------------------------ */
.btn {
  --b-bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.5rem; border-radius: 999px; font-weight: 500; font-size: .98rem;
  background: var(--b-bg); border: 1px solid transparent; white-space: nowrap;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), background .3s, color .3s, border-color .3s;
}
.btn-primary { --b-bg: var(--accent); color: #04210F; box-shadow: 0 10px 30px -12px rgba(43,194,102,.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(43,194,102,.75); background: #4FD282; }
.btn-ghost { border-color: var(--line-2); color: var(--cream); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-sm { padding: .6rem 1.1rem; font-size: .9rem; }
.btn-block { width: 100%; }
.pill { font-style: normal; font-size: .7rem; background: var(--accent); color: #04210F; padding: .15rem .55rem; border-radius: 999px; margin-left: .4rem; letter-spacing: .02em; text-transform: none; vertical-align: 2px; }

/* Splash */
.splash {
  position: fixed; inset: 0; z-index: 10000; background: var(--bg);
  display: grid; place-items: center;
  transition: opacity .9s var(--ease-out), clip-path 1.1s var(--ease-out);
  clip-path: inset(0 0 0 0);
  animation: splashSafety .01s 4.5s forwards;
}
.splash.is-out { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); } }
.splash-inner { display: grid; justify-items: center; gap: 1rem; }
.splash-mark { font-family: var(--serif); font-size: clamp(2.4rem, 9vw, 5.5rem); font-style: italic; font-variation-settings: "SOFT" 100; letter-spacing: -0.03em; animation: splashIn 1s var(--ease-out) both; }
.splash-line { width: 140px; height: 1px; background: var(--line-2); position: relative; overflow: hidden; }
.splash-line::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; animation: splashLine 1.2s var(--ease-out) .2s both; }
.splash-coord { font-size: .72rem; letter-spacing: .25em; color: var(--cream-3); text-transform: uppercase; }
@keyframes splashIn { from { opacity: 0; transform: translateY(20px); filter: blur(8px); } }
@keyframes splashLine { from { transform: scaleX(0); } }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 900; height: var(--nav-h);
  display: flex; align-items: center; gap: 2rem; padding-inline: var(--gutter);
  transition: background .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(11,20,17,.92); border-color: var(--line); }
@supports (backdrop-filter: blur(10px)) { .nav.is-solid { background: rgba(11,20,17,.7); backdrop-filter: blur(16px) saturate(1.4); } }
.nav-brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--serif); font-size: 1.5rem; font-style: italic; font-variation-settings: "SOFT" 100; }
.nav-links { display: none; gap: 1.8rem; margin-left: auto; font-size: .92rem; color: var(--cream-2); }
.nav-links a { position: relative; padding-block: .3rem; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: none; }
.nav-burger { margin-left: auto; width: 44px; height: 44px; display: grid; place-content: center; gap: 6px; border-radius: 50%; border: 1px solid var(--line-2); }
.nav-burger span { width: 18px; height: 1.5px; background: var(--cream); transition: transform .4s var(--ease-out); }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 850; background: var(--bg-2);
  display: flex; flex-direction: column; justify-content: center; gap: 1.2rem; padding: var(--gutter);
  font-family: var(--serif); font-size: 2.2rem;
}
.mobile-menu .btn { font-family: var(--sans); font-size: 1rem; margin-top: 1.5rem; align-self: flex-start; }

/* 6. Sections -------------------------------------------------- */

/* HERO */
.hero {
  position: relative; background-color: var(--bg); min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--nav-h) + 2rem) var(--gutter) clamp(3rem, 7vh, 5rem);
  isolation: isolate; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -3; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; filter: saturate(1.05) contrast(1.05); transform: scale(1.06); animation: kenburns 22s var(--ease-soft) infinite alternate; }
@keyframes kenburns { to { transform: scale(1.14) translate3d(-1.5%, -1%, 0); } }
.hero-tint {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,20,17,.55) 0%, rgba(11,20,17,.05) 30%, rgba(11,20,17,.35) 60%, rgba(11,20,17,.96) 100%),
    linear-gradient(90deg, rgba(11,20,17,.75) 0%, rgba(11,20,17,0) 65%);
}
.hero-mesh {
  position: absolute; inset: -20%; z-index: -2; opacity: .45; mix-blend-mode: soft-light;
  background:
    conic-gradient(from var(--mesh-angle) at 30% 70%, rgba(43,194,102,.55), rgba(143,208,166,.45), rgba(30,91,58,.2), rgba(43,194,102,.55));
  filter: blur(70px);
  animation: mesh 18s linear infinite;
}
@keyframes mesh { to { --mesh-angle: 360deg; } }
.grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-inner { width: min(1240px, 100%); margin-inline: auto; }
.hero-meta { display: inline-flex; align-items: center; gap: .6rem; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cream-2); padding: .45rem .9rem; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(11,20,17,.35); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(43,194,102,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(43,194,102,0); } 100% { box-shadow: 0 0 0 0 rgba(43,194,102,0); } }
.hero-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(3.2rem, 11vw, 9.5rem); line-height: .92; letter-spacing: -0.045em;
  margin-top: 1.4rem; font-variation-settings: "opsz" 144, "SOFT" 50;
}
.hero-title .line { display: block; }
.hero-title em { font-weight: 300; }
.hero-lead { max-width: 560px; margin-top: 1.4rem; font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--cream-2); }

/* booking bar */
.booking {
  margin-top: 2rem; display: grid; gap: .5rem; grid-template-columns: 1fr 1fr;
  padding: .55rem; border-radius: 24px;
  background: rgba(15,28,23,.82); border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.7);
  max-width: 1040px;
}
@supports (backdrop-filter: blur(10px)) { .booking { background: rgba(15,28,23,.55); backdrop-filter: blur(18px) saturate(1.3); } }
.booking-field { display: grid; gap: .1rem; padding: .55rem .9rem; border-radius: 16px; transition: background .3s; min-width: 0; }
.booking-field:hover, .booking-field:focus-within { background: rgba(238,243,236,.06); }
.booking-field:first-child { grid-column: 1 / -1; }
.booking-field span { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-3); }
.booking-field select, .booking-field input { background: transparent; border: 0; padding: .1rem 0; font-size: .98rem; width: 100%; min-width: 0; color-scheme: dark; outline: none; }
.booking-field select option { background: var(--bg-2); }
.booking-btn { grid-column: 1 / -1; padding-block: 1.05rem; border-radius: 16px; }

.hero-proof { list-style: none; padding: 0; display: flex; gap: clamp(1.4rem, 4vw, 3.5rem); margin-top: 2rem; flex-wrap: wrap; }
.hero-proof li { display: grid; }
.hero-proof strong { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 350; line-height: 1; }
.hero-proof span { font-size: .82rem; color: var(--cream-3); margin-top: .35rem; }
.hero-scroll { position: absolute; right: var(--gutter); bottom: 2.5rem; width: 26px; height: 44px; border: 1px solid var(--line-2); border-radius: 20px; display: none; }
.hero-scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--accent); animation: scrollcue 1.8s var(--ease-soft) infinite; }
@keyframes scrollcue { 60% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* MARQUEE */
.marquee { border-block: 1px solid var(--line); padding-block: 1.15rem; overflow: hidden; background: var(--bg-2); }
.marquee-track { display: flex; gap: 2rem; width: max-content; align-items: center; animation: marquee 40s linear infinite; font-family: var(--serif); font-size: clamp(1.1rem, 2vw, 1.5rem); font-style: italic; font-variation-settings: "SOFT" 100; color: var(--cream-2); }
.marquee-track i { color: var(--accent); font-style: normal; font-size: .8em; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* VENTAJAS · flip cards */
.ventajas { background: radial-gradient(1000px 500px at 85% 0%, rgba(30,91,58,.25), transparent 60%), var(--bg); }
.flip-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.flip { perspective: 1200px; text-align: left; min-height: 230px; display: block; width: 100%; }
.flip-inner { position: relative; display: block; width: 100%; height: 100%; min-height: 230px; transform-style: preserve-3d; transition: transform .9s var(--ease-out); }
.flip.is-flipped .flip-inner { transform: rotateY(180deg); }
@media (hover: hover) and (pointer: fine) { .flip:hover .flip-inner { transform: rotateY(180deg); } }
.flip-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; gap: .6rem;
  border: 1px solid var(--line);
}
.flip-front { background: linear-gradient(160deg, var(--bg-3), var(--bg-2)); color: var(--cream-2); }
.flip-front strong { font-family: var(--serif); font-weight: 350; font-size: 1.3rem; line-height: 1.2; color: var(--cream); margin-top: auto; }
.flip-back { transform: rotateY(180deg); background: linear-gradient(150deg, #123A22, #0F2A1C); border-color: rgba(43,194,102,.35); }
.flip-back span:last-child { color: var(--cream-2); }
.flip-big { font-family: var(--serif); font-weight: 350; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; color: var(--accent); margin-top: auto; font-style: italic; font-variation-settings: "SOFT" 100; }
.flip-tag { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cream-3); }
.flip-tag--ok { color: var(--accent); }
.flip-ico { font-size: 1.6rem; }
.flip-hint { font-size: .75rem; color: var(--cream-3); }

.compare { margin-top: clamp(2.5rem, 5vw, 4rem); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compare-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: .5rem; padding: 1rem 1.2rem; border-top: 1px solid var(--line); font-size: .9rem; align-items: center; }
.compare-row:first-child { border-top: 0; }
.compare-head { background: var(--bg-3); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cream-3); }
.compare-head span:last-child { color: var(--accent); }
.compare .yes { color: var(--accent); font-weight: 500; }
.compare .yes::before { content: "✓ "; }
.compare .no { color: #E58B7B; }
.compare .no::before { content: "✕ "; }
.compare .mid { color: var(--cream-3); }

/* ECO */
.eco { display: grid; grid-template-columns: 1fr; background: var(--bg-2); border-block: 1px solid var(--line); }
.eco-media { position: relative; min-height: 340px; overflow: hidden; }
.eco-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.eco-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg-2), transparent 40%); }
.eco-copy { padding: clamp(3rem, 7vw, 6rem) var(--gutter); max-width: 680px; }
.eco-copy > p { color: var(--cream-2); margin-top: 1.3rem; }
.eco-stats { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.2rem; border-top: 1px solid var(--line); padding-top: 1.6rem; }
.eco-stats strong { display: block; font-family: var(--serif); font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-weight: 350; color: var(--accent); line-height: 1; }
.eco-stats span { font-size: .8rem; color: var(--cream-3); display: block; margin-top: .45rem; }

/* FLOTA */
.fleet-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
.car {
  position: relative; border-radius: var(--radius); background: var(--bg-3); border: 1px solid var(--line); overflow: hidden;
  transform-style: preserve-3d; transition: transform .6s var(--ease-out), border-color .4s, box-shadow .6s var(--ease-out);
  --mx: 50%; --my: 50%;
}
.car::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(43,194,102,.13), transparent 45%); opacity: 0; transition: opacity .4s; }
.car:hover { border-color: rgba(43,194,102,.35); box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.car:hover::after { opacity: 1; }
.car-media { aspect-ratio: 4 / 3; overflow: hidden; }
.car-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out), filter .6s; }
.car:hover .car-media img { transform: scale(1.06); filter: saturate(1.18); }
.car-body { padding: 1.4rem 1.5rem 1.6rem; }
.car-cat { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sea); }
.car h3 { margin-top: .5rem; }
.car-spec { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.car-spec li { font-size: .78rem; padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 999px; color: var(--cream-2); }
.car-price { margin-top: 1.3rem; display: flex; align-items: baseline; gap: .35rem; color: var(--cream-3); font-size: .85rem; }
.car-price strong { font-family: var(--serif); font-size: 2.2rem; font-weight: 350; color: var(--cream); }
.car--feature { border-color: rgba(43,194,102,.3); background: linear-gradient(170deg, #13321F, var(--bg-3) 55%); }

/* RUTAS */
.rutas { position: relative; background: var(--bg); border-top: 1px solid var(--line); }
.rutas-pin { padding-block: clamp(4rem, 9vw, 7rem); }
.rutas-intro { padding-inline: var(--gutter); max-width: 620px; }
.rutas-intro p { color: var(--cream-2); margin: 1.2rem 0 1.6rem; }
.rutas-track { display: flex; gap: 1rem; padding: 2.5rem var(--gutter) 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rutas-track::-webkit-scrollbar { display: none; }
.ruta { position: relative; flex: 0 0 min(78vw, 360px); aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; scroll-snap-align: start; border: 1px solid var(--line); }
.ruta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.ruta:hover img { transform: scale(1.06); }
.ruta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,20,17,.95) 5%, rgba(11,20,17,0) 55%); }
.ruta-credit { position: absolute; z-index: 2; top: .7rem; right: .7rem; left: .7rem; text-align: right; font-size: .62rem; line-height: 1.35; color: rgba(238,243,236,.75); text-shadow: 0 1px 6px rgba(0,0,0,.8); pointer-events: none; }
.ruta-credit a { pointer-events: auto; color: inherit; text-decoration: underline; text-decoration-color: rgba(238,243,236,.35); }
.ruta::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 30%; z-index: 1; background: linear-gradient(180deg, rgba(11,20,17,.45), rgba(11,20,17,0)); pointer-events: none; }
.ruta-cap { position: absolute; inset: auto 0 0 0; padding: 1.4rem; z-index: 1; }
.ruta-cap span { font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: var(--accent); }
.ruta-cap h3 { margin-top: .4rem; font-size: 1.6rem; }
.ruta-cap p { font-size: .88rem; color: var(--cream-2); margin-top: .4rem; }

/* CÓMO FUNCIONA */
.steps { list-style: none; padding: 0; display: grid; gap: 2.5rem; counter-reset: s; }
.step { position: relative; }
.step-media { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.step-media img { width: 100%; height: 100%; object-fit: cover; }
.step-n { display: block; font-family: var(--serif); font-style: italic; font-variation-settings: "SOFT" 100; font-size: 3.6rem; line-height: 1; color: var(--accent); margin: -2rem 0 0 1.2rem; position: relative; text-shadow: 0 6px 30px rgba(0,0,0,.6); }
.step h3 { margin-top: .9rem; }
.step p { color: var(--cream-2); margin-top: .6rem; max-width: 420px; }

/* TESTIMONIOS */
.testimonios { background: linear-gradient(180deg, var(--bg), var(--bg-2)), var(--bg); }
.demo-flag { display: inline-flex; margin-top: 1.2rem; font-size: .78rem; color: #F2C66D; border: 1px dashed rgba(242,198,109,.5); padding: .35rem .8rem; border-radius: 999px; }
.quotes { display: grid; gap: 1.2rem; }
.quote { position: relative; padding: 2rem 1.8rem; border-radius: var(--radius); background: var(--bg-3); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 1.6rem; }
.quote--accent { background: linear-gradient(160deg, #123A22, #0F2A1C); border-color: rgba(43,194,102,.3); }
.quote blockquote { font-family: var(--serif); font-size: 1.25rem; line-height: 1.4; font-weight: 350; }
.quote figcaption { display: grid; margin-top: auto; }
.quote figcaption span { font-size: .82rem; color: var(--cream-3); }
.quote-badge { position: absolute; top: 1rem; right: 1rem; font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: #F2C66D; border: 1px dashed rgba(242,198,109,.5); padding: .15rem .5rem; border-radius: 999px; }

/* FAQ */
.faq-wrap { display: grid; gap: 2rem; }
.faq-list { display: grid; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.4rem 3rem 1.4rem 0; position: relative; font-family: var(--serif); font-size: clamp(1.1rem, 1.8vw, 1.35rem); font-weight: 350; transition: color .3s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); font-family: var(--sans); font-size: 1.2rem; color: var(--accent); transition: transform .5s var(--ease-out), background .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: rgba(43,194,102,.12); }
.faq summary:hover { color: var(--accent); }
.faq details p { color: var(--cream-2); padding-bottom: 1.5rem; max-width: 680px; animation: faqIn .5s var(--ease-out); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }

/* CONTACTO */
.contacto { background: var(--bg-2); border-top: 1px solid var(--line); }
.contact-grid { display: grid; gap: 3rem; }
.contact-list { display: grid; gap: 1.2rem; margin-top: 2rem; }
.contact-list dt { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-3); }
.contact-list dd { margin: .2rem 0 0; color: var(--cream); }
.contact-list a { border-bottom: 1px solid var(--line-2); transition: border-color .3s, color .3s; }
.contact-list a:hover { color: var(--accent); border-color: var(--accent); }
.map { margin-top: 1.8rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: var(--bg-3); }
.map iframe { width: 100%; height: 100%; border: 0; filter: invert(.9) hue-rotate(160deg) saturate(.6) brightness(.95) contrast(.9); }

.contact-form { position: relative; padding: clamp(1.5rem, 4vw, 2.6rem); border-radius: var(--radius); background: var(--bg-3); border: 1px solid var(--line); display: grid; gap: 1rem; align-self: start; }
.contact-form h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.form-sub { color: var(--cream-2); font-size: .92rem; margin-top: -.4rem; }
.field-row { display: grid; gap: 1rem; }
.field { position: relative; display: block; }
.field input, .field select, .field textarea {
  width: 100%; padding: 1.35rem 1rem .55rem; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--line); outline: none; color-scheme: dark;
  transition: border-color .3s, background .3s; resize: vertical;
}
.field select option { background: var(--bg-2); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); background: #0F1F18; }
.field > span { position: absolute; left: 1rem; top: 1rem; font-size: .95rem; color: var(--cream-3); pointer-events: none; transition: transform .3s var(--ease-out), font-size .3s, color .3s; transform-origin: left; }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span,
.field > span.is-up { transform: translateY(-.62rem); font-size: .7rem; letter-spacing: .06em; color: var(--accent); }
.field.is-invalid input { border-color: #E58B7B; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .8rem; color: var(--cream-2); }
.check input { margin-top: .2rem; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.form-msg { min-height: 1.2em; font-size: .85rem; color: #F2C66D; }
.contact-form.is-sending .btn { opacity: .6; pointer-events: none; }
.form-ok { position: absolute; inset: 0; border-radius: var(--radius); background: var(--bg-3); display: grid; place-content: center; justify-items: center; text-align: center; gap: 1.2rem; padding: 2rem; animation: faqIn .6s var(--ease-out); }
.form-ok svg { width: 74px; height: 74px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.form-ok circle { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw 1s var(--ease-out) forwards; }
.form-ok path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s var(--ease-out) .7s forwards; }
.form-ok p { max-width: 340px; color: var(--cream-2); }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* FOOTER */
.footer { padding-block: 3rem calc(3rem + 70px); border-top: 1px solid var(--line); background-color: var(--bg); }
.footer-grid { display: grid; gap: 1.2rem; }
.footer-brand { font-family: var(--serif); font-style: italic; font-variation-settings: "SOFT" 100; font-size: 2.4rem; line-height: 1; }
.footer-tag { color: var(--cream-3); font-size: .9rem; margin-top: .4rem; }
.footer-legal { color: var(--cream-3); font-size: .78rem; max-width: 520px; }

/* CHAT */
.chat-fab {
  position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 950;
  display: inline-flex; align-items: center; gap: .7rem; padding: .9rem 1.3rem .9rem 1rem; border-radius: 999px;
  background: var(--accent); color: #04210F; font-weight: 600; font-size: .92rem;
  box-shadow: 0 18px 40px -12px rgba(43,194,102,.55), 0 0 0 1px rgba(255,255,255,.15) inset;
  transition: transform .5s var(--ease-bounce), opacity .3s;
}
.chat-fab:hover { transform: translateY(-3px) scale(1.02); }
.chat-fab[aria-expanded="true"] { opacity: 0; pointer-events: none; transform: scale(.8); }
.chat-fab-dot { width: 10px; height: 10px; border-radius: 50%; background: #04210F; box-shadow: 0 0 0 0 rgba(4,33,15,.5); animation: pulse 2.4s infinite; }
.chat {
  position: fixed; z-index: 960; right: 0; bottom: 0; left: 0; height: min(86svh, 720px);
  display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 24px 24px 0 0;
  box-shadow: 0 40px 120px -20px rgba(0,0,0,.85); overflow: hidden;
  animation: chatIn .55s var(--ease-out);
}
@keyframes chatIn { from { opacity: 0; transform: translateY(30px) scale(.97); } }
.chat-head { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); background: linear-gradient(120deg, #123A22, #0F2A1C); }
.chat-head strong { display: block; font-size: .95rem; }
.chat-status { font-size: .75rem; color: var(--accent); }
.chat-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #04210F; font-family: var(--serif); font-style: italic; font-size: 1.3rem; flex: none; }
.chat-close { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; font-size: 1.5rem; line-height: 1; color: var(--cream-2); border: 1px solid var(--line); }
.chat-close:hover { color: var(--cream); border-color: var(--cream-3); }
.chat-log { position: relative; flex: 1; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: .75rem; overscroll-behavior: contain; }
.msg { max-width: 88%; padding: .75rem 1rem; border-radius: 18px; font-size: .92rem; line-height: 1.5; animation: msgIn .4s var(--ease-out); }
.msg p + p { margin-top: .5rem; }
.msg ul { padding-left: 1.1rem; margin-top: .4rem; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
.msg--bot { background: var(--bg-3); border: 1px solid var(--line); border-bottom-left-radius: 6px; align-self: flex-start; }
.msg--user { background: var(--accent); color: #04210F; border-bottom-right-radius: 6px; align-self: flex-end; }
.msg--typing { display: inline-flex; gap: 4px; }
.msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--cream-3); animation: typing 1.2s infinite; }
.msg--typing i:nth-child(2) { animation-delay: .15s; } .msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 30% { transform: translateY(-4px); opacity: 1; } 60%, 100% { transform: none; opacity: .4; } }
.msg-cta { margin-top: .7rem; }
.chat-chips { display: flex; gap: .45rem; padding: 0 1.1rem .7rem; overflow-x: auto; scrollbar-width: none; }
.chat-chips button { flex: none; font-size: .8rem; padding: .45rem .8rem; border-radius: 999px; border: 1px solid var(--line-2); color: var(--cream-2); transition: border-color .3s, color .3s; }
.chat-chips button:hover { border-color: var(--accent); color: var(--accent); }
.chat-form { display: flex; gap: .5rem; padding: .8rem 1rem calc(.8rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; padding: .8rem 1rem; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); outline: none; font-size: 16px; }
.chat-form input:focus { border-color: var(--accent); }
.chat-form button { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #04210F; font-size: 1.2rem; flex: none; }

/* lead form inside chat */
.lead-card { align-self: stretch; max-width: 100%; background: linear-gradient(160deg, #123A22, #0F2A1C); border: 1px solid rgba(43,194,102,.35); border-radius: 18px; padding: 1rem; display: grid; gap: .6rem; animation: msgIn .4s var(--ease-out); }
.lead-card h4 { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; }
.lead-card p { font-size: .82rem; color: var(--cream-2); }
.lead-card input, .lead-card select { width: 100%; padding: .7rem .9rem; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); outline: none; font-size: 16px; color-scheme: dark; }
.lead-card input:focus, .lead-card select:focus { border-color: var(--accent); }
.lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.lead-grid label { display: grid; gap: .2rem; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cream-3); }
.lead-card .check { font-size: .74rem; }
.lead-card .btn { padding: .8rem 1rem; }
.lead-err { font-size: .8rem; color: #F2C66D; min-height: 1em; }

/* tourist guide inside chat */
.consent-box { align-self: stretch; background: rgba(143,208,166,.1); border: 1px solid rgba(143,208,166,.35); border-radius: 16px; padding: .85rem .95rem; display: grid; gap: .7rem; animation: msgIn .4s var(--ease-out); }
.consent-box p { font-size: .78rem; line-height: 1.5; color: var(--cream-2); }
.consent-box a, .lead-card .check a { color: var(--accent); text-decoration: underline; }
.consent-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.consent-actions .btn { padding: .6rem 1rem; font-size: .85rem; }
.consent-box.is-done .consent-actions { display: none; }
.guide-pdf { display: inline-block; margin-top: .7rem; font-size: .8rem; font-weight: 600; color: var(--accent); text-decoration: none; border: 1px solid rgba(43,194,102,.45); border-radius: 999px; padding: .45rem .85rem; }
.guide { align-self: stretch; max-width: 100%; border-radius: 18px; border: 1px solid var(--line-2); overflow: hidden; background: var(--bg); animation: msgIn .5s var(--ease-out); }
.guide-head { padding: 1rem 1rem .9rem; background: linear-gradient(120deg, rgba(43,194,102,.18), rgba(143,208,166,.18)); border-bottom: 1px solid var(--line); }
.guide-head span { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.guide-head h4 { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; margin-top: .2rem; }
.guide-head p { font-size: .8rem; color: var(--cream-2); margin-top: .3rem; }
.guide-day { padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
.guide-day h5 { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sea); font-weight: 600; }
.guide-day h5 b { color: var(--cream); font-weight: 600; }
.guide-stops { list-style: none; padding: 0; margin-top: .6rem; display: grid; gap: .55rem; counter-reset: st; }
.guide-stops li { position: relative; padding-left: 1.8rem; font-size: .84rem; color: var(--cream-2); }
.guide-stops li::before { counter-increment: st; content: counter(st); position: absolute; left: 0; top: .05rem; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--bg-4); color: var(--accent); font-size: .7rem; display: grid; place-items: center; font-weight: 600; }
.guide-stops strong { color: var(--cream); font-weight: 600; }
.guide-stops a { color: var(--accent); font-size: .76rem; white-space: nowrap; border-bottom: 1px solid rgba(43,194,102,.4); }
.guide-tips { padding: .9rem 1rem 1rem; font-size: .8rem; color: var(--cream-2); }
.guide-tips ul { padding-left: 1rem; display: grid; gap: .3rem; margin-top: .4rem; }

/* 7. Effects --------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease-soft), transform .8s var(--ease-out); }
[data-reveal].is-revealed { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }
.flip-grid [data-reveal]:nth-child(3n+2), .fleet-grid [data-reveal]:nth-child(2), .steps [data-reveal]:nth-child(2), .quotes [data-reveal]:nth-child(2) { transition-delay: .08s; }
.flip-grid [data-reveal]:nth-child(3n+3), .fleet-grid [data-reveal]:nth-child(3), .steps [data-reveal]:nth-child(3), .quotes [data-reveal]:nth-child(3) { transition-delay: .16s; }
.hero [data-hero-item] { animation: heroIn 1.2s var(--ease-out) both; }
.hero [data-hero-item]:nth-child(1) { animation-delay: .7s; }
.hero-title .line:nth-child(1) { animation-delay: .8s; }
.hero-title .line:nth-child(2) { animation-delay: .92s; }
.hero-lead { animation-delay: 1.05s !important; }
.booking { animation-delay: 1.15s !important; }
.hero-proof { animation-delay: 1.25s !important; }
@keyframes heroIn { from { opacity: 0; transform: translateY(36px); filter: blur(6px); } }

/* 8. Responsive ------------------------------------------------ */
@media (min-width: 540px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .chat { right: 1rem; left: auto; bottom: 1rem; width: 400px; border-radius: 24px; }
}
@media (min-width: 720px) {
  .flip-grid { grid-template-columns: repeat(2, 1fr); }
  .fleet-grid { grid-template-columns: repeat(3, 1fr); }
  .quotes { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
  .booking { grid-template-columns: 1.4fr 1fr 1fr .7fr auto; border-radius: 999px; padding: .45rem; }
  .booking-field:first-child { grid-column: auto; }
  .booking-field { border-radius: 999px; padding-inline: 1.2rem; }
  .booking-btn { grid-column: auto; border-radius: 999px; padding-inline: 1.7rem; }
  .hero-scroll { display: block; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-burger { display: none; }
  .flip-grid { grid-template-columns: repeat(3, 1fr); }
  .eco { grid-template-columns: 1.1fr 1fr; align-items: center; }
  .eco-media { min-height: 640px; height: 100%; }
  .eco-media::after { background: linear-gradient(90deg, transparent 60%, var(--bg-2)); }
  .faq-wrap { grid-template-columns: .85fr 1.15fr; gap: 4rem; align-items: start; }
  .faq .section-head { position: sticky; top: calc(var(--nav-h) + 2rem); }
  .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 4rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; align-items: end; }
  .footer-legal { justify-self: end; text-align: right; }
  .step:nth-child(2) { margin-top: 4rem; }
  .step:nth-child(3) { margin-top: 8rem; }
}
@media (min-width: 1280px) {
  .car--feature { transform: translateY(-1.5rem); }
}

/* 9. Reduced motion (solo efectos intrusivos) ------------------ */
@media (prefers-reduced-motion: reduce) {
  .hero-bg img { animation: none; }
  .hero-mesh { animation: none; }
  .marquee-track { animation-duration: 90s; }
}

/* ---------- Catálogo por grupos ---------- */
.catalogo { display: grid; gap: 2.4rem; }
.catalogo-cargando { color: var(--cream-3); padding: 2rem 0; }
.grupo-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.grupo-head h3 { margin-top: .3rem; }
.grupo-precios { list-style: none; padding: 0; margin: 0; display: flex; gap: .5rem; }
.grupo-precios li { text-align: center; padding: .55rem .85rem; border: 1px solid var(--line); border-radius: 14px; min-width: 76px; }
.grupo-precios strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.35rem; color: var(--cream); }
.grupo-precios span { font-size: .72rem; color: var(--cream-3); }
.grupo-precios .is-best { border-color: rgba(43,194,102,.5); background: rgba(43,194,102,.08); }
.grupo-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.grupo .car-media { aspect-ratio: 16 / 10; background: #101C17; }
.grupo .car-media img.is-placeholder { object-fit: contain; }
.grupo .car-body { padding: 1.1rem 1.2rem 1.3rem; }
.grupo .car h4 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; }
.grupo .car h4 small { font-family: var(--sans); font-size: .78rem; color: var(--cream-3); }
.grupo .car-spec { margin-top: .7rem; }
.grupo .car-price { margin-top: .8rem; }
.grupo .car-price strong { font-size: 1.8rem; }
.car-ask { margin-top: .9rem; width: 100%; }
.car-credit { margin-top: .6rem; font-size: .66rem; color: var(--cream-3); }
.car-credit a { color: inherit; }
@media (min-width: 640px) { .grupo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grupo-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-tag a { color: inherit; }

/* ---------- Rutas: sección normal (sin fijar al hacer scroll) ---------- */
.rutas { isolation: isolate; }
@media (min-width: 960px) {
  .rutas-pin { max-width: var(--max, 1240px); margin-inline: auto; }
  .rutas-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; overflow: visible; scroll-snap-type: none; }
  .rutas-track .ruta { flex: none; }
}
@media (prefers-reduced-motion: reduce) { [data-reveal] { transition: none; transform: none; opacity: 1; } }

/* ---------- Logo (marca) ---------- */
.nav-brand img { display: block; height: 40px; width: auto; }
.splash-mark img { display: block; width: min(300px, 62vw); height: auto; margin-inline: auto; }
.footer-brand { display: inline-block; }
.footer-brand img { display: block; width: 170px; height: auto; }
.chat-avatar { background: none; overflow: hidden; border-radius: 10px; }
.chat-avatar img { display: block; width: 100%; height: 100%; }
@media (max-width: 640px) { .nav-brand img { height: 34px; } }
