/* Car Clean Torremolinos — estilos */

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

:root {
  /* Lujo silencioso: negro, blanco limpio y el verde CarClean solo en botones y pequeños detalles */
  --noche: #000000;
  --carbon: #0b0b0b;
  --carbon-2: #121212;
  --linea: #1f1f1f;
  --verde: #63a052;
  --lima: #7fe05a;
  --lima-hover: #95ec72;
  --blanco: #f5f5f2;
  --niebla: #a5a8a6;
  --error: #ff8a7a;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --sec: clamp(80px, 11vw, 150px);
  --radius: 10px;
  --header-h: 72px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  --fs-hero: clamp(2rem, 1.3rem + 2.4vw, 3.5rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.4vw, 3.4rem);
  --fs-h3: 1.25rem;
  --fs-lead: clamp(1.06rem, 1rem + 0.35vw, 1.25rem);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--noche);
  color: var(--blanco);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, figure, blockquote, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2 {
  font-stretch: 125%;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-wrap: balance;
}
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 650; letter-spacing: -0.01em; line-height: 1.25; }
p { text-wrap: pretty; }

.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;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--lima); color: var(--noche); padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--lima); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--sec); }
.section + .section { border-top: 1px solid var(--linea); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 650; text-decoration: none; line-height: 1.1; text-align: center;
  cursor: pointer; user-select: none;
  transition: transform 160ms var(--ease-out), background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--lima { background: var(--lima); color: #0a1407; }
.btn--line { border-color: rgba(255, 255, 255, 0.32); color: var(--blanco); background: rgba(0, 0, 0, 0.35); }
.btn--big { min-height: 54px; padding: 14px 26px; font-size: 1.06rem; }
.btn svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
@media (hover: hover) and (pointer: fine) {
  .btn--lima:hover { background: var(--lima-hover); }
  .btn--line:hover { border-color: var(--blanco); background: rgba(241, 244, 240, 0.08); }
}

/* Cabecera */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--linea);
}
.top__in {
  height: var(--header-h);
  width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto;
  display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 54px; height: auto; }
.brand__name { display: flex; flex-direction: column; font-stretch: 125%; font-weight: 800; font-size: 1.12rem; line-height: 1; letter-spacing: -0.02em; }
.brand__city { font-stretch: 100%; font-weight: 500; font-size: 0.8rem; letter-spacing: 0; color: var(--niebla); margin-top: 4px; }
.nav { display: none; gap: 4px; }
.nav a { padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--niebla); font-weight: 550; transition: color 160ms ease; }
.nav a:hover { color: var(--blanco); }
.top__cta { min-height: 44px; padding: 10px 18px; }
@media (min-width: 1100px) { .nav { display: flex; } }

/* Portada: la foto entera y el texto en blanco limpio */
.hero { position: relative; isolation: isolate; background: var(--noche); overflow: hidden; }
.hero__img { position: relative; display: block; }
.hero__img img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; } /* en móvil se ve la composición entera */
.hero__img::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 70%, var(--noche) 100%); }
.hero__body { position: relative; width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; padding: 8px 0 48px; }
.hero__kicker { display: block; font-stretch: 100%; font-weight: 350; text-transform: uppercase; letter-spacing: 0.16em; font-size: clamp(0.78rem, 0.72rem + 0.3vw, 0.95rem); line-height: 1.5; color: rgba(245, 245, 242, 0.82); margin-bottom: 14px; }
.hero__big { display: block; text-wrap: balance; text-transform: uppercase; letter-spacing: -0.01em; }
.hero__title { font-size: clamp(2rem, 1.2rem + 2.3vw, 3.1rem); max-width: none; line-height: 1.04; }
.hero__lead { margin-top: 18px; max-width: 52ch; font-size: clamp(1rem, 0.95rem + 0.25vw, 1.15rem); color: rgba(245, 245, 242, 0.86); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 22px; color: var(--niebla); font-size: 0.95rem; }
.hero__facts a { text-decoration: none; }
.hero__facts a:hover { color: var(--blanco); }
.stars { color: var(--lima); letter-spacing: 2px; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--linea); }

@media (min-width: 900px) {
  .hero__img img { aspect-ratio: 2.25 / 1; object-position: 50% 60%; max-height: calc(100svh - var(--header-h) - 170px); min-height: 380px; }
  .hero__img::after { background: linear-gradient(180deg, transparent 70%, var(--noche) 100%); }
  .hero__body { margin-top: -96px; padding: 0 0 clamp(48px, 6vw, 80px); display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px 64px; align-items: end; }
  .hero__title { grid-column: 1 / -1; grid-row: 2; margin-bottom: 14px; font-size: min(2.05rem, 2.3vw); } /* cada frase en su línea */
  .hero__lead { grid-column: 1; grid-row: 3 / span 2; margin-top: 0; align-self: start; }
  .hero__ctas { grid-column: 2; grid-row: 3; margin-top: 0; justify-self: end; }
  .hero__facts { grid-column: 2; grid-row: 4; margin-top: 0; justify-self: end; }
}

/* Carrusel (en «Presupuesto a tu medida»): fundido + acercamiento lento, solo opacity/transform */
.slider { position: absolute; inset: 0; overflow: hidden; }
.slider::after { /* velo suave abajo para que se vean las barras */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, transparent 65%, rgba(0, 0, 0, 0.55) 100%);
}
.slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%;
  opacity: 0; transition: opacity 1200ms cubic-bezier(0.4, 0, 0.2, 1);
  backface-visibility: hidden; will-change: opacity, transform;
}
.slide.is-active { opacity: 1; z-index: 1; }
.slide.is-leaving { z-index: 0; }
.slide.is-active, .slide.is-leaving { animation: kenburns 5200ms linear both; }
@keyframes kenburns { from { transform: scale(1.001); } to { transform: scale(1.06); } }

.slider__ui {
  position: absolute; z-index: 6; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 14px;
  padding: 0 14px 6px;
}
.slider__bars { flex: 1; display: flex; gap: 6px; max-width: 240px; }
.slider__bar { flex: 1; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; align-items: center; }
.slider__bar span { display: block; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.3); overflow: hidden; position: relative; }
.slider__bar span::after { content: ""; position: absolute; inset: 0; background: var(--blanco); transform: scaleX(0); transform-origin: left; }
.slider__bar.is-done span::after { transform: scaleX(1); }
.slider__bar.is-current span::after { animation: fillbar 3000ms linear forwards; }
.slider.is-paused .slider__bar.is-current span::after,
.slider.is-paused .slide.is-active, .slider.is-paused .slide.is-leaving { animation-play-state: paused; }
@keyframes fillbar { to { transform: scaleX(1); } }
.slider__pause {
  margin-left: auto; width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(0, 0, 0, 0.35); color: var(--blanco);
  transition: background-color 160ms ease, transform 140ms var(--ease-out);
}
.slider__pause:active { transform: scale(0.94); }
.slider__pause svg { width: 18px; height: 18px; fill: currentColor; }
.slider__pause .i-play { display: none; }
.slider.is-paused .slider__pause .i-play { display: block; }
.slider.is-paused .slider__pause .i-pause { display: none; }
@media (hover: hover) and (pointer: fine) { .slider__pause:hover { background: rgba(0, 0, 0, 0.6); } }
@media (prefers-reduced-motion: reduce) {
  .slide { transition-duration: 400ms; }
  .slide.is-active, .slide.is-leaving { animation: none; }
  .slider__bar.is-current span::after { animation-duration: 3000ms !important; } /* el ritmo de 3 s se mantiene */
}

/* Cabeceras de sección */
.sec-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head p { color: var(--niebla); max-width: 58ch; font-size: var(--fs-lead); }
.sec-head__claim strong { color: var(--blanco); font-weight: 650; }
@media (min-width: 900px) {
  .sec-head { grid-template-columns: 1.1fr 1fr; align-items: end; gap: 48px; }
}

/* Servicios: lista sobria con «Leer más» */
.srv { display: grid; border-top: 1px solid var(--linea); }
.srv__item {
  display: grid; gap: 12px; align-content: start; justify-items: start;
  padding: 32px 0; border-bottom: 1px solid var(--linea);
}
.srv__item h3 { font-size: 1.3rem; }
.srv__item > p { color: var(--niebla); max-width: 62ch; }
.srv__more { width: 100%; }
.srv__more summary {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer;
  color: var(--blanco); font-weight: 600; font-size: 0.95rem; list-style: none;
  text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 5px;
}
.srv__more summary::-webkit-details-marker { display: none; }
.srv__more summary::after {
  content: ""; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform 200ms var(--ease-out);
}
.srv__more[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.srv__more p { color: var(--niebla); max-width: 62ch; margin-top: 12px; }
.srv__more[open] summary { margin-bottom: 2px; }
.srv__cierre { color: var(--blanco) !important; font-style: italic; }
.srv__ask {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px;
  border-radius: 999px; border: 1px solid rgba(127, 224, 90, 0.55);
  color: var(--lima); text-decoration: none; font-weight: 600; font-size: 0.95rem; white-space: nowrap;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms var(--ease-out);
}
.srv__ask:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .srv__ask:hover { border-color: var(--lima); background: rgba(127, 224, 90, 0.08); }
}
@media (min-width: 900px) {
  .srv { grid-template-columns: 1fr 1fr; column-gap: 72px; border-top: 0; }
  .srv__item:nth-child(-n + 2) { border-top: 1px solid var(--linea); }
}

/* Embarcaciones: servicios a la izquierda (desplegables), imagen con texto a la derecha */
.mar { margin-top: clamp(56px, 8vw, 104px); display: grid; gap: 32px; align-items: center; }
.mar__img { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; order: -1; }
.mar__img img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.mar__img::after { /* sombra suave solo en la esquina del texto */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 75% at 0% 0%, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.25) 45%, transparent 70%);
}
.mar__overlay {
  position: absolute; z-index: 1; left: 0; top: 0;
  padding: clamp(14px, 2.6vw, 28px); display: grid; gap: 6px; max-width: min(62%, 340px);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8);
}
.mar__overlay strong { font-stretch: 125%; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; font-size: clamp(1rem, 0.8rem + 1vw, 1.5rem); }
.mar__overlay span { color: rgba(245, 245, 242, 0.85); font-size: clamp(0.78rem, 0.72rem + 0.25vw, 0.9rem); line-height: 1.45; }
.mar__text { display: grid; gap: 10px; justify-items: start; }
.mar__text h3 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); font-stretch: 125%; font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; margin: 2px 0 4px; }
.mar__hint { color: var(--niebla); font-size: 0.95rem; }
.mar__list { width: 100%; border-top: 1px solid var(--linea); margin: 8px 0 18px; }
.mar__item { border-bottom: 1px solid var(--linea); }
.mar__item summary {
  list-style: none; cursor: pointer; min-height: 56px; padding: 14px 4px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-weight: 650; font-size: 1.08rem;
}
.mar__item summary::-webkit-details-marker { display: none; }
.mar__item summary::after { /* signo + que gira a × al abrir */
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(127, 224, 90, 0.55);
  background:
    linear-gradient(var(--lima), var(--lima)) center / 11px 1.5px no-repeat,
    linear-gradient(var(--lima), var(--lima)) center / 1.5px 11px no-repeat;
  transition: transform 220ms var(--ease-out);
}
.mar__item[open] summary::after { transform: rotate(45deg); }
@media (hover: hover) and (pointer: fine) { .mar__item summary:hover { color: var(--lima); } }
.mar__desc { padding: 0 4px 18px; display: grid; gap: 10px; }
.mar__desc p { color: var(--niebla); max-width: 60ch; }
@media (min-width: 900px) {
  .mar { grid-template-columns: 1fr 1.15fr; gap: 56px; }
  .mar__img { order: 0; }
}

/* Servicios: igual que embarcaciones pero con la foto a la izquierda */
.mar--rev { margin-top: 0; }
.mar--rev .mar__img::after {
  background: radial-gradient(110% 80% at 0% 0%, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.45) 40%, transparent 68%);
}
.mar--rev .mar__img img { aspect-ratio: 16 / 9; }
.mar--rev .mar__list { margin-bottom: 0; }
@media (min-width: 900px) { .mar--rev .mar__overlay { max-width: min(48%, 290px); } }
.mar__desc .srv__ask { justify-self: start; margin-top: 4px; }
@media (min-width: 900px) {
  .mar--rev { grid-template-columns: 1.15fr 1fr; align-items: start; }
  .mar--rev .mar__img { order: -1; position: sticky; top: calc(var(--header-h) + 24px); }
}

/* Presupuesto a medida */
.medida {
  margin-top: clamp(48px, 7vw, 88px); padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--linea); border-radius: var(--radius); background: var(--carbon);
  display: grid; gap: 32px; overflow: hidden;
}
.medida__img { position: relative; aspect-ratio: 4 / 3; border-radius: calc(var(--radius) - 2px); overflow: hidden; border: 1px solid var(--linea); }
.medida__label { color: var(--lima); font-weight: 600; font-size: 0.95rem; }
.medida h3 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); font-stretch: 125%; font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; margin: 10px 0 18px; max-width: 18ch; }
.medida__text p:not(.medida__label) { color: var(--niebla); max-width: 60ch; margin-top: 10px; }
.medida__cta { display: grid; gap: 12px; justify-items: start; margin-top: 22px; }
.medida__cta p { color: var(--niebla); font-size: 0.95rem; }
@media (min-width: 960px) {
  .medida { grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: center; }
}

/* Así somos: fachada e interior lado a lado */
.local { display: grid; gap: 28px; }
.local__item { margin: 0; display: grid; gap: 14px; }
.local__item img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.local__item figcaption { display: grid; gap: 2px; }
.local__item strong { font-weight: 650; font-size: 1.05rem; }
.local__item strong::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--lima); margin-right: 10px; vertical-align: middle; transform: translateY(-2px); }
.local__item span { color: var(--niebla); font-size: 0.95rem; padding-left: 16px; }
@media (min-width: 900px) {
  .local { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* Clientes satisfechos: vídeos verticales */
.reels {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(72vw, 300px); gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 4px var(--gutter) 12px; scroll-padding-inline: var(--gutter);
  scrollbar-width: thin; scrollbar-color: var(--linea) transparent;
}
.reel { scroll-snap-align: start; }
.reel__frame {
  position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden;
  background: var(--carbon) url("../img/logo-carclean-160.webp") center / 80px no-repeat;
  border: 1px solid var(--linea);
}
.reel__video { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.reel__toggle {
  position: absolute; right: 12px; bottom: 12px;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(6, 8, 7, 0.7); color: var(--blanco);
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.reel__toggle:active { transform: scale(0.94); }
.reel__toggle svg { width: 22px; height: 22px; fill: currentColor; }
.reel__toggle .i-pause { display: none; }
.reel__toggle[aria-pressed="true"] .i-play { display: none; }
.reel__toggle[aria-pressed="true"] .i-pause { display: block; }
.reel figcaption { padding: 14px 2px 0; display: grid; gap: 2px; }
.reel figcaption strong { font-weight: 650; font-size: 1.08rem; }
.reel figcaption span { color: var(--niebla); font-size: 0.95rem; }
.clientes__more { margin-top: 28px; color: var(--niebla); }
.clientes__more a { color: var(--blanco); font-weight: 600; text-decoration-color: var(--lima); text-underline-offset: 4px; }
@media (min-width: 900px) {
  .reels {
    grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto;
    overflow: visible; width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; padding: 0;
  }
}

/* Reseñas: tarjetas */
.resenas { background: var(--noche); }
.resenas__head { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: end; justify-content: space-between; margin-bottom: clamp(32px, 5vw, 56px); }
.rating { display: flex; align-items: center; gap: 16px; }
.rating__num { font-stretch: 125%; font-weight: 800; font-size: clamp(3rem, 2.2rem + 3vw, 4.4rem); letter-spacing: -0.05em; line-height: 0.9; }
.rating__side { display: grid; gap: 4px; }
.rating__side .stars { font-size: 1.15rem; }
.rating__label { color: var(--niebla); font-size: 0.95rem; }
.revs { display: grid; gap: 16px; }
.rev {
  display: grid; grid-template-rows: auto 1fr auto; gap: 18px;
  padding: clamp(24px, 3vw, 32px); margin: 0;
  background: var(--carbon); border: 1px solid var(--linea); border-radius: var(--radius);
}
.rev__stars { font-size: 1rem; }
.rev blockquote { margin: 0; display: grid; gap: 10px; align-content: start; }
.rev__big { font-stretch: 112%; font-weight: 700; font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem); line-height: 1.2; letter-spacing: -0.02em; }
.rev__more { color: var(--niebla); font-size: 0.98rem; }
.rev figcaption { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--linea); }
.rev__avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: #1a1a1a; color: var(--blanco); font-weight: 700;
}
.rev__who { display: grid; line-height: 1.3; }
.rev__who strong { font-weight: 650; }
.rev__who span { color: var(--niebla); font-size: 0.88rem; }
.resenas__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) {
  .revs { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

/* Cita */
.cita__grid { display: grid; gap: 36px; }
.cita__intro p { color: var(--niebla); font-size: var(--fs-lead); margin-top: 16px; max-width: 42ch; }
.cita__alt a { color: var(--blanco); font-weight: 650; text-decoration-color: var(--lima); text-underline-offset: 4px; }
.form {
  display: grid; gap: 20px;
  padding: clamp(20px, 4vw, 36px);
  background: var(--carbon); border: 1px solid var(--linea);
  border-radius: var(--radius);
}
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-weight: 600; }
.field .opt { color: var(--niebla); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font-size: 16px; /* evita el zoom en iOS */
  background: var(--noche); border: 1.5px solid #2c2c2c; border-radius: 8px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field input::placeholder, .field textarea::placeholder { color: #767976; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--lima); box-shadow: 0 0 0 3px rgba(127, 224, 90, 0.25);
}
.field select:disabled { opacity: 0.6; }
.field input[type="date"] { color-scheme: dark; }
.field textarea { resize: vertical; min-height: 96px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7.5l5 5 5-5' fill='none' stroke='%23aab4ad' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.field__help { color: var(--niebla); font-size: 0.9rem; }

/* Servicios: varios a la vez */
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.field legend { font-weight: 600; padding: 0; margin-bottom: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 16px;
  border: 1.5px solid #2c2c2c; border-radius: 999px; background: var(--noche);
  font-weight: 550; user-select: none;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 140ms var(--ease-out);
}
.chip span::before {
  content: ""; width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid #5a5a5a; flex: none;
  transition: background-color 140ms ease, border-color 140ms ease;
}
.chip:active span { transform: scale(0.97); }
.chip input:checked + span { border-color: var(--lima); background: rgba(127, 224, 90, 0.1); }
.chip input:checked + span::before {
  border-color: var(--lima);
  background: var(--lima) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%230a1407' stroke-width='2.2'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.chip input:focus-visible + span { outline: 3px solid var(--lima); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .chip:hover span { border-color: #6a6a6a; } }
.servicios-pick.is-invalid .chip span { border-color: var(--error); }

/* Cómo funciona la reserva */
.cita__pasos { list-style: none; padding: 0; margin-top: 24px; display: grid; gap: 14px; counter-reset: paso; }
.cita__pasos li {
  counter-increment: paso; position: relative; padding-left: 44px; color: var(--niebla); min-height: 30px;
}
.cita__pasos li::before {
  content: counter(paso); position: absolute; left: 0; top: -2px;
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid var(--lima); color: var(--lima); font-weight: 700; font-size: 0.9rem;
}
.cita__pasos strong { color: var(--blanco); font-weight: 650; }

/* Aviso tras enviar */
.form__done {
  display: grid; gap: 10px; justify-items: start; padding: 18px;
  border: 1px solid rgba(127, 224, 90, 0.45); background: rgba(127, 224, 90, 0.08); border-radius: 8px;
}
.form__done:focus { outline: none; }
.form__done-title { font-weight: 700; font-size: 1.1rem; color: var(--lima); }
.form__done p { color: #dfe5e0; }
.field__err { color: var(--error); font-size: 0.92rem; font-weight: 550; }
.field.is-invalid input, .field.is-invalid select { border-color: var(--error); }
.form__foot { display: grid; gap: 12px; justify-items: start; }
.form__note { color: var(--niebla); font-size: 0.9rem; }
@media (min-width: 640px) {
  .form { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .cita__grid { grid-template-columns: 0.75fr 1.25fr; gap: 64px; align-items: start; }
}

/* Dónde */
.donde__grid { display: grid; gap: 40px; }
.donde__addr { font-style: normal; font-size: var(--fs-lead); margin-top: 18px; }
.donde__now { margin-top: 12px; font-weight: 600; }
.donde__now.is-open { color: var(--lima); }
.donde__now.is-closed { color: var(--niebla); }
.hours { margin-top: 24px; border-collapse: collapse; width: 100%; max-width: 380px; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 9px 0; border-bottom: 1px solid var(--linea); text-align: left; }
.hours th { font-weight: 500; color: var(--niebla); }
.hours td { text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--blanco); font-weight: 700; }
.hours tr.is-today th::after { content: " · hoy"; color: var(--lima); font-weight: 600; }
.donde__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.map {
  position: relative; min-height: 340px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--linea); text-decoration: none; color: var(--blanco);
  display: grid; place-content: center; justify-items: center; gap: 12px; padding: 32px 20px; text-align: center;
  background:
    radial-gradient(60% 60% at 50% 45%, rgba(127, 224, 90, 0.10), transparent 70%),
    repeating-linear-gradient(35deg, transparent 0 46px, rgba(255, 255, 255, 0.035) 46px 48px),
    repeating-linear-gradient(-55deg, transparent 0 70px, rgba(255, 255, 255, 0.03) 70px 72px),
    var(--carbon);
  transition: border-color 180ms ease, transform 160ms var(--ease-out);
}
.map:active { transform: scale(0.99); }
@media (hover: hover) and (pointer: fine) { .map:hover { border-color: rgba(127, 224, 90, 0.6); } .map:hover .map__go { background: var(--lima-hover); } }
.map__pin { width: 44px; color: var(--lima); }
.map__pin svg { width: 100%; height: auto; fill: currentColor; }
.map__addr { font-weight: 650; font-size: 1.2rem; line-height: 1.35; }
.map__go {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 22px; margin-top: 6px;
  border-radius: 999px; background: var(--lima); color: #0a1407; font-weight: 650;
}
.map__go svg { width: 18px; height: 18px; }
.map__note { font-size: 0.9rem; color: var(--niebla); }
@media (min-width: 960px) {
  .donde__grid { grid-template-columns: 0.8fr 1.2fr; gap: 64px; }
  .map { min-height: 460px; }
}

/* Pie */
.foot { border-top: 1px solid var(--linea); padding: 48px 0 calc(48px + 76px); }
.foot__grid { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-end; }
.foot__brand { display: flex; gap: 18px; align-items: center; }
.foot__brand img { width: 81px; height: auto; }
.foot__brand p { color: var(--niebla); font-size: 0.95rem; }
.foot__brand a { color: var(--blanco); }
.foot__links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot__links a { color: var(--niebla); text-decoration: none; padding: 8px 0; }
.foot__links a:hover { color: var(--blanco); }
@media (min-width: 900px) { .foot { padding-bottom: 48px; } }

/* Barra fija en móvil */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: rgba(0, 0, 0, 0.96); border-top: 1px solid var(--linea);
  padding-bottom: env(safe-area-inset-bottom);
}
.dock a {
  display: grid; justify-items: center; gap: 4px; padding: 10px 4px 12px;
  text-decoration: none; font-size: 0.82rem; font-weight: 600; color: var(--blanco);
  transition: transform 140ms var(--ease-out);
}
.dock a:active { transform: scale(0.95); }
.dock a:nth-child(2) { color: var(--lima); }
.dock svg { width: 24px; height: 24px; fill: currentColor; }
@media (min-width: 900px) { .dock { display: none; } }

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

/* Páginas legales */
.legal { padding-block: 56px 96px; }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); margin-bottom: 28px; }
.legal h2 { font-size: 1.3rem; letter-spacing: -0.01em; margin: 32px 0 10px; font-stretch: 100%; line-height: 1.2; }
.legal p, .legal li { color: #d4dbd6; max-width: 70ch; margin-bottom: 12px; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal a { color: var(--lima); }
.pending { background: rgba(255, 196, 80, 0.12); color: #ffd27a; padding: 0 4px; border-radius: 4px; }

/* Enlaces dentro del texto: zona táctil de 44px sin mover el diseño */
.hero__facts a, .clientes__more a, .cita__alt a, .foot__brand a {
  display: inline-block; padding-block: 12px; margin-block: -12px;
}

/* Móvil: la barra inferior ya tiene «Llamar»; el envío ocupa todo el ancho */
@media (max-width: 899px) {
  .hero__ctas .btn--line { display: none; }
  .hero__ctas .btn--lima { flex: 1 1 auto; max-width: 360px; }
}
@media (max-width: 639px) {
  .form__foot { justify-items: stretch; }
  .form__foot .btn { width: 100%; font-size: 1rem; padding-inline: 16px; }
}

/* Móvil: la foto de embarcaciones limpia y su texto justo debajo */
@media (max-width: 899px) {
  .mar__img { overflow: visible; border-radius: 0; }
  .mar__img img { border-radius: var(--radius); }
  .mar__img::after { display: none; }
  .mar__overlay { position: static; max-width: none; padding: 14px 2px 0; text-shadow: none; }
  .mar__overlay strong { font-size: 1.35rem; }
  .mar__overlay span { font-size: 0.95rem; color: var(--niebla); }
}

/* Móvil: titular de portada más alargado (menos líneas) */
@media (max-width: 599px) { .hero__title { font-size: clamp(1.05rem, 0.7rem + 1.8vw, 1.3rem); letter-spacing: -0.02em; } }
