/* =========================================================
   AM Rentals · Port de Pollença
   Paleta: arena (#beb4a8), azul marino del logo (#010449) y celeste
   Tipografía: Archivo (variable, alojada en local, OFL)
   ========================================================= */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0b1146;
  --ink-2: #2b3160;
  --muted: #5b6078;
  --sea: #1f4fa8;
  --sea-2: #3b74c9;
  --sand: #beb4a8;
  --sand-50: #f6f3ee;
  --sand-100: #ece6dd;
  --sand-200: #ddd4c7;
  --olive: #8fd3f4;
  --olive-d: #010449;
  --white: #fff;
  --wa: #12803f;

  --radius: 22px;
  --radius-s: 14px;
  --shadow: 0 18px 50px -20px rgba(11, 17, 70, .35);
  --ease: cubic-bezier(.22, .8, .2, 1);
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sand-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.05; letter-spacing: -.025em; margin: 0 0 .5em; font-weight: 800; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; gap: .6em;
  padding: .95em 1.5em; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: 1rem; line-height: 1; text-decoration: none; cursor: pointer;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .18); transform: translateX(-101%);
  transition: transform .45s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .45); }
.btn:hover::after { transform: translateX(0); }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn--wa { --bg: var(--wa); }
.btn--olive { --bg: var(--olive); --fg: var(--ink); }
.btn--light { --bg: #fff; --fg: var(--ink); }
.btn--ghost { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost::after { background: currentColor; opacity: .1; }
.btn--sm { padding: .7em 1.1em; font-size: .92rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--sea);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  display: flex; align-items: center; color: #fff;
  transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease);
}
.header.is-solid { background: rgba(246, 243, 238, .92); color: var(--ink); box-shadow: 0 1px 0 rgba(11, 17, 70, .08); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: block; width: 132px; flex: none; position: relative; z-index: 2; }
.logo img { width: 100%; height: auto; transition: opacity .4s; }
.logo .logo--dark { position: absolute; inset: 0; opacity: 0; }
.header.is-solid .logo .logo--light { opacity: 0; }
.header.is-solid .logo .logo--dark { opacity: 1; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; gap: 26px; list-style: none; }
.nav__list a { text-decoration: none; font-weight: 600; font-size: .95rem; position: relative; padding: 6px 0; }
.nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--olive); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav__list a:hover::after, .nav__list a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
.lang { display: flex; gap: 2px; font-size: .82rem; font-weight: 700; }
.lang a { text-decoration: none; padding: 4px 6px; border-radius: 6px; opacity: .65; }
.lang a[aria-current="page"] { opacity: 1; box-shadow: inset 0 0 0 1.5px currentColor; }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; background: currentColor; margin: 6px 0; transition: transform .35s var(--ease), opacity .35s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Con 4 enlaces el menú horizontal cabe desde 981 px; por debajo, menú móvil */
@media (max-width: 980px) {
  .menu-toggle { display: block; position: relative; z-index: 2; }
  .nav {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; justify-content: center; align-items: flex-start;
    padding: 100px var(--gutter) 40px; gap: 32px; background: var(--ink); color: #fff;
    clip-path: circle(0 at calc(100% - 44px) 38px); transition: clip-path .7s var(--ease); visibility: hidden;
  }
  .menu-open .nav { clip-path: circle(150% at calc(100% - 44px) 38px); visibility: visible; }
  .menu-open .header { color: #fff; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; transform: none !important; }
  .menu-open .header .logo--light { opacity: 1 !important; }
  .menu-open .header .logo--dark { opacity: 0 !important; }
  .nav__list { flex-direction: column; gap: 10px; }
  .nav__list a { font-size: clamp(1.8rem, 8vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; }
  .lang { font-size: 1rem; }
}

/* ---------- Hero con secuencia de scroll ---------- */
.hero { position: relative; height: 320vh; background: var(--ink); color: #fff; }
.hero__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__frames { position: absolute; inset: 0; }
.hero__frame { position: absolute; inset: 0; opacity: 0; will-change: opacity, transform; }
.hero__frame:first-child { opacity: 1; }
.hero__frame picture { display: contents; }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(10, 24, 32, .45) 0%, rgba(10, 24, 32, 0) 60%),
  linear-gradient(180deg, rgba(10, 24, 32, .55) 0%, rgba(10, 24, 32, .05) 30%, rgba(10, 24, 32, .1) 55%, rgba(10, 24, 32, .75) 100%); }
.hero__layer {
  position: absolute; inset: auto 0 0; padding-bottom: clamp(96px, 14vh, 150px);
  opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s;
}
.hero__layer.is-active, html:not(.js) .hero__layer--main { opacity: 1; visibility: visible; }
.hero__eyebrow { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; display: inline-block; margin-bottom: 1.1rem; padding: .5em .9em; border-radius: 99px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero h1, .hero__big { font-size: clamp(2.3rem, 5.2vw, 4.9rem); max-width: 15ch; margin-bottom: .35em; text-wrap: balance; }
.hero__big { font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.hero__lead { font-size: clamp(1.05rem, 1.5vw, 1.3rem); max-width: 46ch; color: rgba(255, 255, 255, .9); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.hero .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero .line > span { display: block; transition: transform 1s var(--ease), opacity 1s var(--ease); }
.js .hero__layer:not(.is-active) .line > span { transform: translateY(105%); }
.js .hero__layer .fade { transition: opacity .8s var(--ease) .25s, transform .8s var(--ease) .25s; }
.js .hero__layer:not(.is-active) .fade { opacity: 0; transform: translateY(16px); }
.hero__layer--main .line > span { animation: rise 1.1s var(--ease) both; }
.hero__layer--main .line:nth-child(2) > span { animation-delay: .12s; }
.hero__layer--main .fade { animation: fadeUp 1s var(--ease) .35s both; }
@keyframes rise { from { transform: translateY(105%); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }
.hero__progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 36px; display: flex; gap: 10px; align-items: center; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.hero__progress ol { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; flex: 1; max-width: 420px; }
.hero__progress li { flex: 1; }
.hero__progress .bar { display: block; height: 3px; background: rgba(255, 255, 255, .3); border-radius: 3px; overflow: hidden; margin-bottom: 6px; }
.hero__progress .bar i { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }
.hero__scroll { margin-left: auto; display: flex; align-items: center; gap: 10px; opacity: .85; }
.hero__scroll .mouse { width: 22px; height: 34px; border: 2px solid #fff; border-radius: 12px; position: relative; }
.hero__scroll .mouse::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 3px; background: #fff; animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }
@media (max-width: 700px) {
  .hero { height: 260vh; }
  .hero__scroll { display: none; }
  .hero__progress { bottom: 22px; right: 92px; font-size: .62rem; letter-spacing: .04em; }
  .hero__layer { padding-bottom: 84px; }
  .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
  .hero__eyebrow { font-size: .66rem; letter-spacing: .12em; padding: .45em .8em; }
  .hero h1, .hero__big { font-size: clamp(2.1rem, 10vw, 2.8rem); }
  .hero__lead { font-size: 1rem; }
}

/* ---------- Secciones ---------- */
.section { padding: clamp(80px, 12vw, 150px) 0; position: relative; }
.section--white { background: #fff; }
.section--ink { background: var(--ink); color: #fff; }
.section--ink .eyebrow { color: var(--olive); }
.section__head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 70px); }
.section__head h2, .h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); text-wrap: balance; }
.section__head p { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }
.section--ink .section__head p { color: rgba(255, 255, 255, .75); }

/* Reveal genérico (solo con JS: sin JS el contenido se ve siempre) */
.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="scale"] { transform: scale(.94); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-mask] { clip-path: inset(100% 0 0 0 round var(--radius)); transition: clip-path 1.3s var(--ease); }
.js [data-mask] img { transform: scale(1.25); transition: transform 1.6s var(--ease); }
.js [data-mask].is-in { clip-path: inset(0 0 0 0 round var(--radius)); }
.js [data-mask].is-in img { transform: scale(1); }

/* ---------- Nosotros ---------- */
.about { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about__statement { font-size: clamp(1.55rem, 3vw, 2.5rem); line-height: 1.22; font-weight: 700; letter-spacing: -.02em; margin-bottom: 1.2em; }
.js .about__statement .w { opacity: .18; transition: opacity .3s linear; }
.js .about__statement .w.on { opacity: 1; }
.about__text { color: var(--muted); max-width: 58ch; }
.about__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.about__media img { width: 100%; height: 118%; object-fit: cover; }
.about__badge { position: absolute; left: 18px; bottom: 18px; right: 18px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 14px; padding: 14px 16px; font-size: .9rem; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.about__badge svg { width: 22px; height: 22px; color: var(--sea); flex: none; }
.stats { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: clamp(50px, 7vw, 90px); }
.stat { border-top: 2px solid var(--ink); padding-top: 18px; }
.stat__num { font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; display: block; font-variant-numeric: tabular-nums; }
.stat__label { color: var(--muted); font-size: .95rem; display: block; margin-top: 8px; }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about__media { aspect-ratio: 4 / 3; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
}

/* ---------- Alojamientos ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.chip { border: 1.5px solid var(--sand-200); background: #fff; border-radius: 99px; padding: .6em 1.1em; font-weight: 600; font-size: .92rem; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip:hover { border-color: var(--ink); }
.props { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 30px); }
.prop { background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 0 rgba(11, 17, 70, .06); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.prop:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.prop[hidden] { display: none; }
.prop__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.prop__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.prop:hover .prop__media img { transform: scale(1.06); }
.prop__tag { position: absolute; top: 14px; left: 14px; background: rgba(255, 255, 255, .92); border-radius: 99px; padding: .35em .8em; font-size: .78rem; font-weight: 700; }
.prop__tag--sea { background: var(--olive); color: var(--ink); left: auto; right: 14px; }
.prop__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.prop__title { font-size: 1.35rem; margin-bottom: .2em; }
.prop__lic { font-size: .8rem; color: var(--muted); font-weight: 600; letter-spacing: .03em; }
.prop__facts { display: flex; flex-wrap: wrap; gap: 8px 16px; list-style: none; margin: 16px 0; font-size: .92rem; font-weight: 600; }
.prop__facts li { display: inline-flex; align-items: center; gap: 6px; }
.prop__facts svg { width: 18px; height: 18px; color: var(--sea); }
.prop__desc { color: var(--muted); font-size: .97rem; flex: 1; }
.prop__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
@media (max-width: 1020px) { .props { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .props { grid-template-columns: 1fr; } }

/* Dialog de detalles */
.dlg { border: 0; padding: 0; border-radius: var(--radius); width: min(980px, 100% - 24px); max-height: calc(100svh - 24px); background: #fff; color: var(--ink); box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .5); }
.dlg::backdrop { background: rgba(5, 8, 40, .7); backdrop-filter: blur(4px); }
.dlg[open] { animation: dlgIn .5s var(--ease); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(30px) scale(.98); } }
.dlg__gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; }
.dlg__gallery img { flex: 0 0 auto; height: clamp(220px, 44vh, 430px); width: auto; max-width: 88%; object-fit: cover; scroll-snap-align: start; }
.dlg__body { padding: clamp(22px, 4vw, 44px); }
.dlg__body h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.dlg__body ul { padding-left: 1.1em; color: var(--ink-2); }
.dlg__body li { margin-bottom: .45em; }
.dlg__close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; box-shadow: var(--shadow); cursor: pointer; font-size: 1.5rem; line-height: 1; }
.dlg__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 34px; }
.dlg__aside { background: var(--sand-50); border-radius: var(--radius-s); padding: 22px; align-self: start; }
.dlg__aside dl { margin: 0 0 18px; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: .95rem; }
.dlg__aside dt { color: var(--muted); }
.dlg__aside dd { margin: 0; font-weight: 700; }
.dlg__aside .btn { width: 100%; justify-content: center; margin-top: 8px; }
@media (max-width: 760px) { .dlg__grid { grid-template-columns: 1fr; } .dlg__gallery img { height: 240px; } }

/* ---------- Ventajas (sticky) ---------- */
.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 100px); }
.why__sticky { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
.why__list { display: grid; gap: 18px; list-style: none; }
.why__item { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; }
.why__item h3 { font-size: 1.4rem; margin-bottom: .35em; }
.why__item p { color: rgba(255, 255, 255, .75); margin: 0; }
.icon-anim { width: 56px; height: 56px; color: var(--olive); }
.icon-anim path, .icon-anim circle, .icon-anim rect, .icon-anim line, .icon-anim polyline { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.js .icon-anim [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease) .2s; }
.js .is-in .icon-anim [pathLength] { stroke-dashoffset: 0; }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; } .why__sticky { position: static; } }

/* ---------- Banda ciclistas (parallax) ---------- */
.band { position: relative; min-height: 88vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.band__bg { position: absolute; inset: -12% 0; }
.band__bg img { width: 100%; height: 100%; object-fit: cover; }
.band::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10, 24, 32, .85), rgba(10, 24, 32, .2) 70%); }
.band__content { position: relative; z-index: 2; padding: 120px 0 clamp(60px, 10vw, 110px); max-width: 640px; }
.band h2 { font-size: clamp(2.2rem, 5vw, 4rem); }
.band p { font-size: 1.1rem; color: rgba(255, 255, 255, .88); }
.band .eyebrow { color: var(--olive); }

/* ---------- Zona: carrusel horizontal con scroll ---------- */
.zone { position: relative; }
.zone__pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.zone__track { display: flex; gap: clamp(16px, 2vw, 28px); padding-inline: var(--gutter); will-change: transform; }
.zone__card { flex: 0 0 clamp(280px, 32vw, 440px); background: #fff; border-radius: var(--radius); overflow: hidden; }
.zone__card--intro { background: transparent; flex-basis: clamp(300px, 36vw, 520px); display: flex; flex-direction: column; justify-content: center; padding-right: 20px; }
.zone__card figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.zone__card figure img { width: 100%; height: 100%; object-fit: cover; }
.zone__card .txt { padding: 20px 22px 24px; }
.zone__card h3 { font-size: 1.25rem; margin-bottom: .3em; }
.zone__card p { color: var(--muted); font-size: .96rem; margin: 0; }
.zone__metric { font-size: 2.6rem; font-weight: 800; letter-spacing: -.04em; color: var(--sea); line-height: 1; display: block; margin-bottom: 6px; }
.zone__bar { height: 3px; background: var(--sand-200); margin: 34px var(--gutter) 0; border-radius: 3px; overflow: hidden; }
.zone__bar i { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.zone.is-static .zone__pin { position: static; height: auto; padding: 90px 0; }
.zone.is-static .zone__track { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; }
.zone.is-static .zone__card { scroll-snap-align: start; }
.zone.is-static .zone__bar { display: none; }
@media (max-width: 760px) { .zone__card { flex-basis: 82vw; } .zone__card--intro { flex-basis: 86vw; } }

/* ---------- Rent a car ---------- */
.section--car { background: #fff; padding: clamp(70px, 9vw, 120px) 0; border-top: 1px solid var(--sand-200); border-bottom: 1px solid var(--sand-200); }
.section--car .car { box-shadow: 0 1px 0 rgba(11, 17, 70, .06); }
.section--car .car__left { flex: 1 1 460px; }
.section--car .car h2 { text-wrap: balance; }
.section--car .car > .btn { flex: none; }
@media (max-width: 560px) { .car__left { flex-direction: column; align-items: flex-start; gap: 14px; } .car__icon { width: 56px; height: 56px; } }
.car { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; background: var(--sand-100); border-radius: var(--radius); padding: clamp(28px, 4vw, 50px); }
.car h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: .25em; }
.car p { margin: 0; color: var(--muted); max-width: 54ch; }
.car__icon { width: 74px; height: 74px; color: var(--sea); flex: none; }
.car__left { display: flex; align-items: center; gap: 24px; }
.drive { animation: drive 3.4s var(--ease) infinite; transform-origin: center; }
@keyframes drive { 0%, 100% { transform: translateX(-4px); } 50% { transform: translateX(4px); } }

/* ---------- Reseñas ---------- */
.reviews__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.gscore { display: flex; align-items: center; gap: 18px; background: #fff; border-radius: var(--radius); padding: 18px 24px; }
.gscore__g { width: 42px; height: 42px; }
.gscore strong { font-size: 2rem; line-height: 1; letter-spacing: -.03em; }
.stars { color: #f4b400; letter-spacing: 2px; }
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review { background: #fff; border-radius: var(--radius); padding: 26px; min-height: 200px; display: flex; flex-direction: column; gap: 12px; }
.review--placeholder { border: 2px dashed var(--sand-200); background: transparent; color: var(--muted); justify-content: center; align-items: flex-start; }
.review--placeholder .sk { height: 10px; border-radius: 6px; background: linear-gradient(90deg, var(--sand-100), var(--sand-200), var(--sand-100)); background-size: 200% 100%; animation: sk 1.6s infinite linear; width: 100%; }
.review--placeholder .sk:nth-child(2) { width: 80%; } .review--placeholder .sk:nth-child(3) { width: 60%; }
@keyframes sk { to { background-position: -200% 0; } }
.reviews__note { font-size: .85rem; color: var(--muted); margin-top: 18px; }
.reviews__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.section--sand { background: var(--sand-100); }
a.gscore { text-decoration: none; color: inherit; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
a.gscore:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.gscore__txt { display: grid; gap: 4px; }
.gscore__fallback { font-weight: 700; max-width: 24ch; line-height: 1.3; }
.gscore__row { display: flex; align-items: center; gap: 10px; }
.gscore small { color: var(--muted); font-weight: 600; font-size: .85rem; }
.stars-meter { --r: 100%; position: relative; display: inline-block; font-size: 1.05rem; line-height: 1; letter-spacing: 2px; color: var(--sand-200); white-space: nowrap; }
.stars-meter::before { content: "\2605\2605\2605\2605\2605"; }
.stars-meter::after { content: "\2605\2605\2605\2605\2605"; position: absolute; left: 0; top: 0; width: var(--r); overflow: hidden; color: #f4b400; }
.stars-meter--sm { font-size: .9rem; }
.review { animation: fadeUp .7s var(--ease) both; animation-delay: var(--d, 0s); }
.review__head { display: flex; gap: 12px; align-items: center; }
.review__avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 800; font-size: .95rem; color: #fff; background: var(--sea); letter-spacing: .02em; }
.review__who { display: grid; gap: 4px; min-width: 0; }
.review__author { font-weight: 700; line-height: 1.2; text-decoration: none; overflow-wrap: anywhere; }
a.review__author:hover { text-decoration: underline; }
.review__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: .84rem; color: var(--muted); }
.review__text { margin: 0; color: var(--ink-2); font-size: .97rem; overflow-wrap: anywhere; }
.review__more { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--sea); font-weight: 700; font-size: .92rem; text-decoration: underline; cursor: pointer; }
.review__src { margin-top: auto; font-size: .78rem; color: var(--muted); }
a.review__src { color: var(--sea); }
.reviews__foot { margin: 26px 0 0; }
@media (max-width: 860px) { .reviews__grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 90px); }
.faq__aside { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
.faq__list { border-top: 1px solid var(--sand-200); }
.faq details { border-bottom: 1px solid var(--sand-200); interpolate-size: allow-keywords; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 50px 22px 0; position: relative; font-weight: 700; font-size: 1.12rem; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; background:
  linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat,
  linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat, var(--sand-100); transition: transform .4s var(--ease), background-color .3s; }
.faq details[open] summary::after { transform: rotate(135deg); background-color: var(--olive); }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .5s var(--ease), content-visibility .5s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq .answer { padding: 0 50px 24px 0; color: var(--ink-2); }
.faq .answer p { margin: 0; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } .faq__aside { position: static; } }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); }
.contact__cards { display: grid; gap: 14px; }
.ccard { display: flex; gap: 18px; align-items: center; background: #fff; border-radius: var(--radius-s); padding: 18px 20px; text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
a.ccard:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.ccard__ico { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--sand-100); flex: none; }
.ccard__ico svg { width: 22px; height: 22px; }
.ccard--wa .ccard__ico { background: var(--wa); color: #fff; }
.ccard small { display: block; color: var(--muted); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.ccard strong { font-size: 1.08rem; }
.map { margin-top: 14px; border-radius: var(--radius-s); overflow: hidden; background: var(--sand-100); aspect-ratio: 16 / 10; display: grid; place-items: center; text-align: center; padding: 20px; position: relative; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map p { font-size: .92rem; color: var(--muted); max-width: 36ch; }
.form { background: #fff; border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.form h3 { font-size: 1.6rem; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; font: inherit; padding: 13px 14px; border: 1.5px solid var(--sand-200); border-radius: 12px; background: var(--sand-50); color: var(--ink); transition: border-color .3s, background .3s; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--sea); background: #fff; outline: none; box-shadow: 0 0 0 3px rgba(31, 79, 168, .18); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; margin-bottom: 12px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--sea); flex: none; }
.legal-info { font-size: .8rem; color: var(--muted); background: var(--sand-50); border-radius: 10px; padding: 12px 14px; margin: 14px 0 18px; }
.legal-info p { margin: 0 0 .4em; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } .field-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .8); padding: 80px 0 30px; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer h3 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.1em; }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__logo { width: 150px; margin-bottom: 18px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 60px; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; font-size: .85rem; }
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; color: inherit; font-size: inherit; }
.linkbtn:hover { text-decoration: underline; color: #fff; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .25); transition: background .3s, color .3s; }
.social a:hover { background: #fff; color: var(--ink); }
.social svg { width: 18px; height: 18px; }
.big-word { font-size: clamp(2.6rem, 10.2vw, 8.4rem); font-weight: 800; letter-spacing: -.05em; line-height: .85; color: rgba(255, 255, 255, .06); margin-top: 50px; white-space: nowrap; overflow: hidden; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -8px rgba(0, 0, 0, .45); transition: transform .35s var(--ease); }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ping 2.6s infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
.wa-float__label { position: absolute; right: 70px; white-space: nowrap; background: #fff; color: var(--ink); font-weight: 700; font-size: .85rem; padding: 8px 12px; border-radius: 10px; box-shadow: var(--shadow); opacity: 0; transform: translateX(8px); transition: .35s var(--ease); pointer-events: none; }
.wa-float:hover .wa-float__label, .wa-float:focus-visible .wa-float__label { opacity: 1; transform: none; }

/* ---------- Banner de cookies ---------- */
.cookie { position: fixed; left: 18px; bottom: 18px; z-index: 150; width: min(460px, calc(100% - 36px)); background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); padding: 24px; font-size: .92rem; }
.cookie[hidden] { display: none; }
.cookie h2 { font-size: 1.15rem; letter-spacing: -.01em; margin-bottom: .5em; }
.cookie p { color: var(--ink-2); }
.cookie__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cookie__actions .btn { justify-content: center; }
.cookie__config { grid-column: 1 / -1; background: none; border: 0; text-decoration: underline; cursor: pointer; padding: 6px; font-weight: 600; }
.cookie__panel { border-top: 1px solid var(--sand-200); margin: 14px 0; padding-top: 14px; display: grid; gap: 12px; }
.cookie__panel[hidden] { display: none; }
.cookie__opt { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.cookie__opt small { display: block; color: var(--muted); }
.switch { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; border-radius: 99px; background: var(--sand-200); position: relative; cursor: pointer; flex: none; transition: background .3s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease); }
.switch:checked { background: var(--sea); }
.switch:checked::after { transform: translateX(18px); }
.switch:disabled { opacity: .6; cursor: not-allowed; }
@media (max-width: 560px) { .cookie { left: 10px; bottom: 10px; width: calc(100% - 20px); padding: 18px; font-size: .84rem; } .cookie p { margin-bottom: .8em; } }

/* ---------- Páginas legales ---------- */
.legal-page { padding: calc(var(--header-h) + 60px) 0 90px; }
.legal-page .container { max-width: 820px; }
.legal-page h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.legal-page h2 { font-size: 1.5rem; margin-top: 1.8em; }
.legal-page table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; font-size: .92rem; margin: 1em 0; }
.legal-page th, .legal-page td { border: 1px solid var(--sand-200); padding: 10px; text-align: left; vertical-align: top; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 1.2em; }
.crumbs a { color: var(--sea); }
.header--static { background: rgba(246, 243, 238, .95); color: var(--ink); box-shadow: 0 1px 0 rgba(11, 17, 70, .08); }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero { height: auto; }
  .hero__sticky { position: relative; height: 100svh; }
  .hero__layer--extra, .hero__frame:not(:first-child), .hero__progress { display: none; }
  .js [data-reveal], .js [data-mask], .js [data-mask] img { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .js .about__statement .w { opacity: 1; }
  .js .icon-anim [pathLength] { stroke-dashoffset: 0; }
  .band__bg { inset: 0; }
}

/* ===== Buscador AvaiBook ===== */
.booking { background: var(--sand-100); padding: clamp(28px, 5vw, 56px) 0; position: relative; z-index: 2; }
.booking__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: clamp(16px, 4vw, 48px); align-items: center; }
.booking__title { font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.1; margin: .3rem 0 0; }
.booking__widget { background: #fff; border-radius: var(--radius-s); padding: 12px; box-shadow: var(--shadow); min-height: 140px; overflow: visible; }
.booking__widget--dark { margin-top: 1.6rem; max-width: 560px; }
.avaibook-search-widget { display: block; width: 100%; min-height: 116px; position: relative; overflow: visible; }
@media (max-width: 860px) { .booking__inner { grid-template-columns: 1fr; } .avaibook-search-widget { min-height: 160px; } }

/* ===== Páginas interiores (ciclistas, larga estancia) ===== */
.nav__list a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.band--page { min-height: 92vh; min-height: 92svh; background: var(--ink); }
.band--page .band__content { max-width: 720px; padding-top: calc(var(--header-h) + 70px); }
.band--page h1 { font-size: clamp(2.3rem, 5.2vw, 4.6rem); max-width: 16ch; margin-bottom: .35em; text-wrap: balance; }
.band--page .line { display: block; overflow: hidden; padding-bottom: .06em; }
.band--page .line > span { display: block; animation: rise 1.1s var(--ease) both; }
.band--page .line:nth-child(2) > span { animation-delay: .12s; }
.band--page .fade { animation: fadeUp 1s var(--ease) .35s both; }
.band .crumbs { color: rgba(255, 255, 255, .75); }
.band .crumbs a { color: #fff; }
.booking .contact__cards { gap: 10px; }
ol.stats { padding: 0; }
@media (max-width: 700px) {
  .band--page h1 { font-size: clamp(2.1rem, 10vw, 2.8rem); }
  .band--page .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
  .band--page::before { background: linear-gradient(180deg, rgba(10, 24, 32, .55), rgba(10, 24, 32, .78)); }
}
/* Menú: 4 enlaces. Espaciado compacto en escritorio estrecho y menú móvil con scroll si no cabe en alto */
@media (min-width: 981px) and (max-width: 1180px) {
  .nav { gap: 20px; }
  .nav__list { gap: 16px; }
  .nav__list a { font-size: .9rem; }
}
.nav__list a { white-space: nowrap; }
@media (max-width: 980px) {
  .nav { overflow-y: auto; justify-content: safe center; }
  .nav__list { gap: 6px; }
  .nav__list a { font-size: clamp(1.6rem, 7vw, 2.4rem); }
}

/* ===== Widget Trustindex ===== */
.reviews__ti { margin: clamp(20px, 3vw, 32px) 0; }
.has-widget .gscore { display: none; }

/* Títulos largos de páginas legales (p. ej. alemán) */
.legal-page h1 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }

/* ---------- Botón volver arriba ---------- */
.to-top { position: fixed; right: 24px; bottom: 92px; z-index: 89; width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 12px 26px -8px rgba(0, 0, 0, .45); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .35s var(--ease), transform .35s var(--ease), background .3s; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--sea); }
.to-top svg { width: 22px; height: 22px; }

/* ---------- Rutas en bici (ciclistas) ---------- */
.ruta-btn { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--olive); background: transparent; color: var(--olive); font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; transition: background .3s, color .3s; }
.ruta-btn:hover, .ruta-btn:focus-visible { background: var(--olive); color: var(--ink); }
.ruta-btn svg { width: 18px; height: 18px; }
.ruta__map { height: clamp(260px, 48vh, 460px); background: var(--sand-100); border-radius: var(--radius) var(--radius) 0 0; }
.ruta__via { color: var(--ink-2); font-weight: 600; }
.ruta__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
.ruta__stats div { background: var(--sand-50); border-radius: var(--radius-s); padding: 14px 16px; }
.ruta__stats dt { color: var(--muted); font-size: .85rem; }
.ruta__stats dd { margin: 2px 0 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.ruta__stats small { font-size: .75rem; font-weight: 600; color: var(--muted); }
.ruta__prof { margin: 0 0 16px; }
.ruta__prof figcaption { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.ruta__prof svg { width: 100%; height: 90px; display: block; }
.ruta__note { font-size: .88rem; color: var(--muted); }
.ruta-pin { width: 14px; height: 14px; border-radius: 50%; background: var(--olive-d); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.ruta-pin--end { background: #e2483d; }
@media (max-width: 560px) { .ruta__stats { grid-template-columns: 1fr 1fr; } .ruta__stats dd { font-size: 1.2rem; } }
