/* ─────────────────────────────────────────────────────────────
   Yates Banderas · dirección de diseño: GPT-6 Astra (ronda 1, 21/09/2026)
   Paleta: mar profundo #092B36 · carbón #212529 · blanco cálido #F7F5F3
   cian #00C4FF (solo "esta bahía", botones y estados activos)
   gris secundario #526168 · arena #D8C5AA (etiquetas de procedencia)
   Tipografía: Outfit 400 titulares · Manrope 400/500 cuerpo
   Superficies planas y mates, radio 8 px, sin elevación ni zoom.
   ───────────────────────────────────────────────────────────── */

:root {
  --sea: #092B36;
  --sea-deep: #061D25;
  --carbon: #212529;
  --carbon-2: #2B3036;
  --paper: #F7F5F3;
  --paper-2: #EFEBE6;
  --cyan: #00C4FF;
  --grey: #AAB8BC;
  --grey-2: #526168;
  --sand: #D8C5AA;
  --white: #FFFFFF;

  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;

  --wrap: 1360px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 8px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --dur: 500ms;
  --gap-section: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 25px;
  color: var(--carbon); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0; letter-spacing: -0.012em; }
h2 { font-size: 48px; line-height: 52px; color: var(--carbon); }
h1 em { font-style: normal; color: var(--cyan); }
h2 em { font-style: normal; color: inherit; }
p { margin: 0; }
figure { margin: 0; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--carbon); color: #fff; padding: 8px 14px; border-radius: var(--radius); z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.section { padding-block: var(--gap-section); }

/* ── Eyebrow ── */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 12px; line-height: 18px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.78); margin-bottom: 20px; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); flex: none; }

/* ── Botones ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 20px; border-radius: var(--radius); border: 0; font-weight: 600; font-size: 15px; line-height: 20px; cursor: pointer; white-space: nowrap; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), transform 200ms var(--ease); }
.btn:active { transform: scale(0.985); }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 16px; }
.btn-sm { min-height: 44px; padding: 10px 16px; font-size: 14px; }
.btn-accent { background: var(--cyan); color: var(--sea); }
.btn-accent:hover { background: #33D0FF; }
.btn-dark { background: var(--sea); color: var(--paper); }
.btn-dark:hover { background: var(--sea-deep); }
.btn-outline { background: transparent; color: var(--carbon); box-shadow: inset 0 0 0 1px rgba(33,37,41,0.3); }
.btn-outline:hover { background: var(--white); }
.btn-wide { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; font-size: 15px; color: #fff; }
.link-arrow::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform var(--dur) var(--ease); }
.link-arrow:hover::after { transform: translateX(3px) rotate(-45deg); }

/* ── Nav: barra mate ── */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; background: rgba(9,43,54,0.92); color: #fff; transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.nav.scrolled { background: var(--sea); }
.nav.hidden { transform: translateY(-100%); }
.nav-inner { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.brand-mark { width: 26px; height: 26px; color: var(--cyan); }
.brand-word { font-family: var(--font-display); font-weight: 400; font-size: 19px; }
.brand-logo { display: block; height: 36px; width: auto; }
.brand-logo-foot { height: 96px; }
.brand-word em { font-style: normal; font-weight: 500; color: var(--cyan); }
.nav-links { display: flex; gap: 6px; justify-content: center; font-size: 15px; font-weight: 500; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--radius); color: rgba(255,255,255,0.82); transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; position: relative; cursor: pointer; border-radius: var(--radius); }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: #fff; top: 17px; transition: transform var(--dur) var(--ease), top var(--dur) var(--ease); }
.burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 40; background: var(--sea); color: #fff; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 0 var(--gutter); opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease), visibility 0s linear var(--dur); }
.menu.open { opacity: 1; visibility: visible; transition: opacity var(--dur) var(--ease); }
.menu a { font-family: var(--font-display); font-size: 34px; line-height: 44px; font-weight: 300; padding: 10px 0; min-height: 44px; border-bottom: 1px solid rgba(255,255,255,0.1); transform: translateY(12px); opacity: 0; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.menu.open a { transform: none; opacity: 1; }
.menu.open a:nth-child(1) { transition-delay: 60ms; } .menu.open a:nth-child(2) { transition-delay: 110ms; } .menu.open a:nth-child(3) { transition-delay: 160ms; }
.menu.open a:nth-child(4) { transition-delay: 210ms; } .menu.open a:nth-child(5) { transition-delay: 260ms; } .menu.open a:nth-child(6) { transition-delay: 310ms; }

/* ── Hero ── */
.hero { position: relative; min-height: 100svh; min-height: 100dvh; display: grid; align-items: end; color: #fff; background: var(--sea-deep); isolation: isolate; overflow: hidden; }
.hero-media { position: absolute; inset: -60px 0; z-index: -1; }
.hero-video { width: 100%; height: 100%; object-fit: cover; object-position: 66% 50%; }
.hero-video-b { position: absolute; inset: 0; opacity: 0; transition: opacity 1000ms var(--ease); filter: saturate(0.9); }
.hero.show-b .hero-video-b { opacity: 1; }
.hero-grade { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(6,29,37,0.28) 0, rgba(6,29,37,0) 25%),
  linear-gradient(0deg, rgba(6,29,37,0.94) 0, rgba(6,29,37,0.68) 21%, rgba(6,29,37,0.12) 53%, rgba(6,29,37,0) 75%); }
.hero-inner { display: flex; align-items: end; justify-content: space-between; gap: 48px; padding: 140px 0 86px; max-width: 100%; }
.hero-copy { max-width: 690px; }
.hero-kicker { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; font-size: 13px; line-height: 20px; font-weight: 600; color: var(--paper); }
.hero-kicker::before { content: ""; width: 36px; height: 1px; background: var(--cyan); flex: none; }
.hero-kicker span::before { content: " / "; color: var(--grey); padding-right: 14px; }
.hero-title { font-size: clamp(52px, 5.6vw, 80px); line-height: 0.98; font-weight: 400; letter-spacing: -0.035em; max-width: 670px; margin: 0 0 30px; text-wrap: balance; }
.hero-cta { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero-cta .btn { min-width: 255px; justify-content: space-between; }
.hero-cta .btn span { font-size: 21px; font-weight: 400; line-height: 1; }
.hero-contact { display: inline-flex; align-items: center; min-height: 48px; color: #fff; font-size: 15px; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.65); }
.hero-contact:hover { border-color: var(--cyan); color: var(--cyan); }
.hero-discover { display: inline-flex; align-items: center; gap: 16px; flex: none; margin-bottom: 7px; font-size: 13px; font-weight: 600; color: var(--paper); }
.hero-discover-arrow { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,0.65); border-radius: 50%; font-size: 22px; line-height: 1; transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.hero-discover:hover .hero-discover-arrow { transform: translateY(4px); background: rgba(255,255,255,0.12); }
.search-slot { margin-top: 32px; }
.filter-toggle { display: none; }
.search { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 6px; background: var(--white); color: var(--carbon); border-radius: var(--radius); padding: 6px; max-width: 100%; }
.field { display: flex; flex-direction: column; gap: 2px; padding: 8px 16px; position: relative; min-height: 52px; justify-content: center; }
.field + .field::before { content: ""; position: absolute; left: -3px; top: 12px; bottom: 12px; width: 1px; background: rgba(33,37,41,0.12); }
.field span { font-size: 12px; line-height: 16px; font-weight: 700; color: var(--grey-2); }
.field select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; padding: 0 22px 0 0; font-weight: 600; font-size: 15px; line-height: 22px; color: var(--carbon); min-height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23526168' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center; background-size: 14px; outline: none; cursor: pointer; }
.search .btn { align-self: stretch; padding: 0 26px; }
.hero-credit { position: absolute; right: var(--gutter); bottom: 14px; margin: 0; font-size: 13px; line-height: 18px; color: var(--paper); background: var(--sea); padding: 3px 10px; border-radius: 6px; }

/* Entradas del hero: 700 ms, 12 px, sin zoom */
.reveal-hero { opacity: 0; transform: translateY(12px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.hero.in .reveal-hero { opacity: 1; transform: none; }
.hero.in .hero-kicker { transition-delay: 80ms; }
.hero.in .hero-title { transition-delay: 170ms; }
.hero.in .hero-cta { transition-delay: 300ms; }

/* ── Cabeceras de sección ── */
.section-head { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: end; margin-bottom: 48px; }
.section-note { font-size: 16px; line-height: 25px; color: var(--grey-2); max-width: 48ch; }
.bay .section-note, .contact .section-note { color: rgba(247,245,243,0.78); }

/* ── Etiquetas de procedencia ── */
.tag { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 6px; font-size: 14px; line-height: 20px; font-weight: 600; background: rgba(9,43,54,0.85); color: #fff; }
.tag-real { background: rgba(9,43,54,0.85); }
.tag-gen { background: var(--sand); color: var(--sea); }

/* ── Procedencia (texto bajo las fotos) ── */
.prov { display: block; font-size: 14px; line-height: 20px; color: var(--grey-2); font-style: normal; font-weight: 500; }
.prov-dark, .aboard .prov, .bay .prov { color: var(--grey); }
.frame + .prov { margin-top: 8px; }
.br-m { display: none; }

/* ── Tipos: cuadrícula compacta 4×2 (escritorio) ── */
.tipos { background: var(--paper); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 20px; }
.tile { display: flex; align-items: center; gap: 16px; color: var(--carbon); min-height: 72px; }
.tile-media { position: relative; width: 96px; height: 72px; flex: none; overflow: hidden; background: var(--sea); border-radius: var(--radius); }
.tile-media img { width: 100%; height: 100%; object-fit: cover; }
.tile .prov, .tile-body span, .tile-body em { display: none; }
.tile-body b { font-family: var(--font-display); font-weight: 500; font-size: 20px; line-height: 26px; }
.tile.active .tile-media { outline: 2px solid var(--cyan); outline-offset: 2px; }
.tile:hover .tile-body b { color: var(--sea); }
.tiles-prov { margin-top: 16px; }
.card-media + .prov { margin: 8px 18px 0; }

/* ── Catálogo ── */
.listings { background: var(--paper-2); }
.filter-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; margin-bottom: 24px; border-bottom: 1px solid rgba(33,37,41,0.12); font-size: 16px; line-height: 24px; color: var(--grey-2); }
.filter-count { font-weight: 600; }
.filter-clear { border: 0; background: transparent; color: var(--sea); font-weight: 600; cursor: pointer; min-height: 44px; padding: 0 8px; }
.filter-clear:hover { text-decoration: underline; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--paper); color: var(--carbon); border-radius: var(--radius); overflow: hidden; cursor: pointer; display: flex; flex-direction: column; }
.card.hide, .card.paged { display: none; }
.card-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--sea); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media + .prov { margin: 8px 18px 0; }
.card-body { padding: 8px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-cat { font-size: 14px; line-height: 20px; font-weight: 700; color: var(--grey-2); }
.card .card-cat { display: none; }
.card h3 { font-size: 24px; line-height: 28px; font-weight: 400; }
.card-loc { color: var(--grey-2); font-size: 14px; line-height: 21px; }
.card-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: auto; padding-top: 14px; }
.price { font-family: var(--font-display); font-size: 22px; line-height: 28px; font-weight: 500; }
.price small { font-size: 12px; line-height: 18px; color: var(--grey-2); font-family: var(--font-body); margin-left: 4px; font-weight: 600; }
.price-sample { display: block; font-size: 14px; line-height: 20px; color: var(--grey-2); font-family: var(--font-body); font-weight: 500; }
.card-cta { font-size: 14px; line-height: 21px; font-weight: 600; color: var(--sea); white-space: nowrap; }
.card:hover .card-cta { text-decoration: underline; }
.card:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.empty { text-align: center; color: var(--grey-2); padding: 40px 0 10px; }
.listings-foot { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-top: 40px; }
.link-plain { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--sea); }
.link-plain:hover { text-decoration: underline; }

/* ── La bahía ── */
.bay { background: var(--sea); color: var(--paper); padding-top: 80px; }
.bay h2 { color: var(--paper); }
.bay-photos { display: grid; grid-template-columns: 60fr 40fr; gap: 20px; }
.bay-photos { align-items: start; }
.bay-photo { position: relative; }
.bay-photo img { width: 100%; height: 420px; object-fit: cover; border-radius: var(--radius); background: var(--sea-deep); }
.bay-photo-b { margin-top: 56px; }
.bay-photo-b img { height: 364px; }
.bay-photo figcaption { padding-top: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.bay-photo figcaption span { font-size: 15px; line-height: 22px; color: rgba(247,245,243,0.85); }
.bay-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 48px; }
.bay-cols h3 { font-size: 24px; line-height: 30px; font-weight: 500; margin-bottom: 10px; }
.bay-cols p { color: rgba(247,245,243,0.82); }

/* ── Proceso ── */
.process { background: var(--paper); }
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.split-rev { grid-template-columns: 0.95fr 1.05fr; }
.frame { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--sea); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.step-n { font-family: var(--font-display); font-weight: 300; font-size: 32px; line-height: 36px; color: var(--sea); display: block; margin-bottom: 10px; }
.step h3 { font-size: 22px; line-height: 28px; font-weight: 500; margin-bottom: 6px; }
.step p { font-size: 15px; line-height: 23px; color: var(--grey-2); }

/* ── Vender ── */
.sell { background: var(--paper-2); }
.lead { font-size: 18px; line-height: 28px; color: var(--grey-2); margin: 20px 0 28px; max-width: 52ch; }
.lead-sell { margin: 20px 0 24px; }
.checks { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 16px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; }
.checks i { width: 22px; height: 22px; border-radius: 50%; background: var(--sea); position: relative; margin-top: 2px; }
.checks i::after { content: ""; position: absolute; left: 7px; top: 5px; width: 5px; height: 9px; border-right: 1.6px solid var(--paper); border-bottom: 1.6px solid var(--paper); transform: rotate(45deg); }
.checks b { display: block; font-weight: 600; font-size: 16px; line-height: 24px; }
.checks span { font-size: 15px; line-height: 23px; color: var(--grey-2); }

/* ── Vida a bordo ── */
.aboard { position: relative; min-height: 640px; display: grid; align-items: end; isolation: isolate; overflow: hidden; background: var(--sea-deep); color: #fff; }
.aboard img { position: absolute; inset: -50px 0; width: 100%; height: calc(100% + 100px); object-fit: cover; object-position: 50% 40%; z-index: -1; }
.aboard::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6,29,37,0.15) 0%, rgba(6,29,37,0.3) 45%, rgba(6,29,37,0.9) 100%), linear-gradient(90deg, rgba(6,29,37,0.7) 0%, rgba(6,29,37,0.3) 45%, rgba(6,29,37,0.05) 100%); }
.aboard-inner { padding: 120px 0 56px; }
.aboard h2 { color: #fff; max-width: 16ch; }
.aboard p { max-width: 46ch; color: rgba(255,255,255,0.84); margin: 16px 0 20px; }
.aboard .prov { display: inline-block; }

/* ── Contacto ── */
.contact { background: var(--carbon); color: var(--paper); }
.contact h2 { color: var(--paper); }
.contact .lead { color: rgba(247,245,243,0.78); }
.contact-lines { display: grid; gap: 6px; font-size: 15px; line-height: 23px; color: var(--grey); }
.contact-lines a { font-family: var(--font-display); font-size: 26px; line-height: 32px; color: #fff; min-height: 44px; display: inline-flex; align-items: center; }
.contact-wa { margin-top: 24px; }
.form-title { font-size: 18px; line-height: 26px; color: var(--paper); margin-bottom: 4px; }
.form { display: grid; gap: 20px; }
.fld { display: grid; gap: 6px; }
.fld span { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--paper); }
.fld input, .fld select, .fld textarea { width: 100%; border: 1px solid rgba(255,255,255,0.1); background: #30363B; color: #fff; border-radius: var(--radius); padding: 12px 14px; min-height: 48px; outline: none; transition: border-color var(--dur) var(--ease); }
.fld input::placeholder, .fld textarea::placeholder { color: var(--grey); font-size: 16px; line-height: 24px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--cyan); }
.fld select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23AAB8BC' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 16px 16px; }
.fld select option { color: var(--carbon); }
.fld textarea { resize: vertical; min-height: 88px; }
.fld-err { color: #FFB4A2; font-size: 14px; line-height: 21px; }
.fld-note { font-size: 13px; line-height: 19px; color: var(--grey); }

/* ── Pie ── */
.footer { background: var(--sea-deep); color: var(--grey); padding: 40px 0; font-size: 13px; line-height: 20px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; padding-right: 70px; }
.brand-foot { color: #fff; }
.footer-note { max-width: 62ch; }
.footer-links { display: flex; gap: 4px; flex-wrap: wrap; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }
.footer-links a:hover { color: #fff; }
.footer-social { flex-basis: 100%; }
.contact-lines a.contact-small { font-family: inherit; font-size: 15px; line-height: 23px; min-height: 44px; color: var(--grey); }
.contact-lines a.contact-small:hover { color: #fff; }

/* ── WhatsApp flotante ── */
.wa-float { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: var(--cyan); color: var(--sea); display: grid; place-items: center; z-index: 30; box-shadow: 0 10px 24px -12px rgba(0,0,0,0.5); transition: opacity 160ms var(--ease), visibility 0s linear 0s; }
.wa-float.oculto { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 160ms var(--ease), visibility 0s linear 160ms; }
.wa-float svg { width: 26px; height: 26px; }

/* ── Modal ── */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity 300ms var(--ease), visibility 0s linear 300ms; }
.modal.open { opacity: 1; visibility: visible; transition: opacity 300ms var(--ease); }
.modal-bg { position: absolute; inset: 0; background: rgba(6,29,37,0.82); }
.modal-panel { position: relative; width: min(1040px, 100%); max-height: calc(100dvh - 40px); overflow: auto; background: var(--paper); color: var(--carbon); border-radius: var(--radius); display: grid; grid-template-columns: 1.15fr 0.85fr; transform: translateY(12px); transition: transform 400ms var(--ease); }
.modal-panel::-webkit-scrollbar { width: 0; }
.modal.open .modal-panel { transform: none; }
.modal-media { position: relative; min-height: 320px; background: var(--sea); display: grid; place-items: center; }
.modal-media img { width: 100%; height: 100%; object-fit: contain; position: absolute; inset: 0; }
.modal-media .tag { left: 12px; bottom: 12px; }
.modal-body { padding: 32px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.modal-body h3 { font-size: 32px; line-height: 36px; font-weight: 400; }
.price-lg { font-size: 28px; line-height: 32px; margin-top: 4px; }
.price-note { font-size: 14px; line-height: 20px; font-weight: 500; color: #52636A; margin-top: -6px; }
.modal-kicker { font-size: 14px; line-height: 20px; font-weight: 500; color: #52636A; margin-bottom: 0; }
.modal-prov { display: none; font-size: 12px; line-height: 18px; font-weight: 500; color: var(--sea); }
.m-year::before { content: " · "; }
.modal-body h3 { margin-top: 0; }
.modal-desc { margin-bottom: 10px; }
.modal-cta { margin-top: 6px; }
.modal-desc { font-size: 15px; line-height: 23px; color: var(--grey-2); }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 10px 0 6px; padding-top: 16px; border-top: 1px solid rgba(33,37,41,0.12); }
.specs div { display: grid; gap: 2px; }
.specs dt { font-size: 14px; line-height: 20px; color: var(--grey-2); font-weight: 700; }
.specs dd { margin: 0; font-size: 15px; line-height: 22px; font-weight: 500; }
.modal-note { font-size: 13px; line-height: 19px; color: var(--grey-2); }
.modal-x { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: var(--radius); border: 0; background: var(--sea); cursor: pointer; z-index: 3; }
.modal-x span { position: absolute; left: 13px; width: 18px; top: 21px; height: 1.5px; background: #fff; }
.modal-x span:first-child { transform: rotate(45deg); } .modal-x span:last-child { transform: rotate(-45deg); }

/* ── Reveals ── */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  h2 { font-size: 40px; line-height: 44px; }
  .hero-inner { gap: 24px; }
  .hero-title { font-size: clamp(52px, 6vw, 68px); }
  .hero-discover span:first-child { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .split, .split-rev { grid-template-columns: 1fr; gap: 32px; }
  .process .frame, .sell .frame { aspect-ratio: auto; height: 360px; }
  .bay-photos { grid-template-columns: 1fr 1fr; }
  .bay-photo img, .bay-photo-b img { height: auto; aspect-ratio: 3 / 2; }
  .bay-photo-b { margin-top: 32px; }
  .bay-cols { margin-top: 40px; }
}
@media (max-width: 860px) {
  .nav-inner { grid-template-columns: 1fr auto; gap: 12px; min-height: 60px; height: 60px; }
  .brand-logo { height: 27px; }
  .burger { justify-self: end; margin-right: -12px; }
  .nav-links, .nav .btn { display: none; }
  .burger { display: block; }
  .modal-panel { grid-template-columns: 1fr; }
  .modal-media { min-height: 0; aspect-ratio: 3/2; }
  .modal-media img { position: static; object-fit: cover; }
  .modal-media .tag { left: 12px !important; bottom: 12px !important; }
  .modal-x { position: fixed; top: 12px; right: 12px; }
  .footer-inner { padding-right: 0; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; --gap-section: 64px; }
  h2 { font-size: 32px; line-height: 35px; }
  .hero { min-height: min(780px, 100svh); min-height: min(780px, 100dvh); align-items: end; }
  .hero-inner { display: block; padding: 120px 0 84px; }
  .hero-kicker { display: block; font-size: 12px; line-height: 18px; margin-bottom: 16px; }
  .hero-kicker::before { display: block; margin-bottom: 12px; }
  .hero-kicker span { display: block; }
  .hero-kicker span::before { display: none; }
  .hero-title { font-size: clamp(42px, 11vw, 56px); line-height: 1.02; max-width: 430px; margin-bottom: 24px; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-cta .btn { width: 100%; min-width: 0; }
  .hero-contact { align-self: flex-start; }
  .hero-discover { display: none; }
  .hero-video { object-position: 64% 38%; }
  .hero-grade { background: linear-gradient(180deg, rgba(6,29,37,0.48) 0, rgba(6,29,37,0) 27%, rgba(6,29,37,0.04) 43%, rgba(6,29,37,0.82) 68%, rgba(6,29,37,0.98) 100%); }
  .filter-toggle { display: flex; width: 100%; min-height: 48px; }
  .search { grid-template-columns: 1fr; display: none; margin-top: 12px; }
  .search-slot.abierto .search { display: grid; }
  .search-slot { margin-top: 24px; }
  .filter-bar { padding: 12px 0; margin-bottom: 20px; font-size: 16px; }
  .field + .field::before { display: none; }
  .field { border-top: 1px solid rgba(33,37,41,0.1); }
  .field:first-child { border-top: 0; }
  .search .btn { min-height: 48px; }
  .hero-credit { position: absolute; left: var(--gutter); right: auto; bottom: 14px; }
  .section-head { margin-bottom: 28px; }
  .tiles { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 6px; scrollbar-width: none; margin-right: -20px; padding-right: 20px; }
  .tiles::-webkit-scrollbar { display: none; }
  .tile { flex: 0 0 156px; flex-direction: column; align-items: stretch; gap: 8px; scroll-snap-align: start; min-height: 0; }
  .tile-media { width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .tile-body b { font-size: 18px; line-height: 24px; }
  .grid { grid-template-columns: 1fr; gap: 24px; }
  .card h3 { font-size: 22px; line-height: 28px; }
  .bay { padding-top: 56px; }
  .bay-photos { grid-template-columns: 1fr; gap: 24px; }
  .bay-photo img, .bay-photo-b img { height: auto; aspect-ratio: 3 / 2; }
  .bay-photo-b { margin-top: 0; }
  .bay-cols { grid-template-columns: 1fr; gap: 24px; margin-top: 32px; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .aboard { min-height: 0; display: block; }
  .aboard img { position: static; aspect-ratio: 16 / 10; height: auto; }
  .aboard::before { display: none; }
  .aboard-inner { width: 100%; background: var(--sea); padding: 24px 20px; }
  .aboard h2 { font-size: 32px; line-height: 36px; max-width: 100%; }
  .br-m { display: inline; }
  .form { padding: 0; }
  .specs { grid-template-columns: 1fr 1fr; }
  .wa-float { right: 14px; bottom: 14px; }
  .modal { padding: 0; display: block; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .modal-panel { display: block; max-height: none; min-height: 100%; border-radius: 0; overflow: visible; }
  .modal-body { padding: 24px 24px calc(100px + env(safe-area-inset-bottom, 0px)); }
  .modal-body h3 { font-size: 30px; line-height: 34px; }
  .modal-cta { position: fixed; left: 0; right: 0; bottom: 0; background: var(--paper); padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(33,37,41,0.1); z-index: 2; margin: 0; }
  .modal-x { top: 12px; right: 12px; }
}

/* ── Movimiento reducido: fotograma estático, sin animaciones ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wa-float, .wa-float.oculto { transition: none; }
  .reveal, .reveal-hero { opacity: 1; transform: none; transition: none; }
  .hero-video { display: none; }
  .hero-media::before { content: ""; position: absolute; inset: 0; background: url("assets/img/hero-flota-poster.jpg") 66% 50% / cover no-repeat; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 640px) { .hero-media::before { background-position: 60% 50%; } }

/* ── Modo captura (?captura=1): alturas fijas para capturas de página completa ── */
html.captura .hero-video { display: none; }
html.captura .hero-media::before { content: ""; position: absolute; inset: 0; background: url("assets/img/hero-flota-poster.jpg") 66% 50% / cover no-repeat; }
@media (max-width: 640px) { html.captura .hero-media::before { background-position: 60% 50%; } }
html.captura .reveal, html.captura .reveal-hero { opacity: 1; transform: none; transition: none; }

/* ── Ficha por debajo de 320 px (zoom 200 % sobre 390) ── */
@media (max-width: 320px) {
  .btn, .filter-toggle, .link-arrow, .card-cta { white-space: normal; text-align: center; }
  .hero-title { font-size: 36px; line-height: 39px; }
  h2 { font-size: 28px; line-height: 32px; }
  .modal-panel { padding-top: 68px; }
  .modal::before { content: ""; position: fixed; top: 0; left: 0; right: 0; height: 68px; background: var(--paper); z-index: 2; border-bottom: 1px solid rgba(33,37,41,0.1); }
  .modal-x { top: 12px; right: 12px; z-index: 3; }
  .modal-body { padding: 16px 16px calc(24px + env(safe-area-inset-bottom, 0px)); min-width: 0; }
  .modal-body h3 { font-size: 26px; line-height: 30px; overflow-wrap: anywhere; }
  .modal-desc, .modal-note, .price-note, .card-loc { overflow-wrap: anywhere; }
  .specs { grid-template-columns: 1fr; gap: 12px; }
  .specs div { gap: 2px; }
  .specs dd { font-size: 15px; line-height: 22px; overflow-wrap: anywhere; }
  .modal-cta { position: static; padding: 16px 0 0; border: 0; background: transparent; }
  .modal-cta .btn { white-space: normal; min-height: 52px; font-size: 16px; line-height: 20px; padding: 14px 16px; text-align: center; }
  .price-lg { font-size: 24px; line-height: 28px; }
  .modal { scroll-padding-top: 76px; }
  .modal-media .tag { display: none; }
  .modal-kicker { display: none; }
  .modal-prov { display: block; }
  .modal-body h3 { font-size: 24px; line-height: 29px; }
  .m-name { display: block; }
  .m-year { display: block; font-family: var(--font-body); font-size: 14px; line-height: 20px; color: #59666B; margin-top: 4px; }
  .m-year::before { content: none; }
}

/* ── Foco visible en la ficha (teclado) ── */
.modal .btn:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; }
.modal-x:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--sea); }

/* ── Ronda 13/10/2026: renta, profundidad y revelados variados ── */
[data-depth] { translate: 0 var(--depth-y, 0px); }
@media (prefers-reduced-motion: reduce) { [data-depth] { translate: none; } }
.frame img[data-depth], .bay-photo img[data-depth] { scale: 1.12; }
.bay-photo { overflow: hidden; border-radius: var(--radius); }
.bay-photo figcaption { position: relative; z-index: 1; background: var(--sea); }
.bay-photo img[data-depth] { scale: 1; }
.nav-links .nav-renta { color: var(--cyan); }
/* Imágenes que se descubren (el contenedor se observa; la máscara va en el hijo) */
.reveal.mask { opacity: 1; transform: none; }
.reveal.mask .frame, .reveal.mask .ruta-media, .bay-photo.reveal.mask img { clip-path: inset(0 0 100% 0); transition: clip-path 1000ms var(--ease), translate 0s; }
.reveal.mask.in .frame, .reveal.mask.in .ruta-media, .bay-photo.reveal.mask.in img { clip-path: inset(0 0 0 0); }
html.captura .reveal.mask .frame, html.captura .reveal.mask .ruta-media, html.captura .bay-photo.reveal.mask img { clip-path: none; }
@media (prefers-reduced-motion: reduce) { .reveal.mask .frame, .reveal.mask .ruta-media, .bay-photo.reveal.mask img { clip-path: none; transition: none; } }
/* Dos rutas */
.rutas-home { background: var(--paper); padding-bottom: 32px; }
.ruta-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ruta-card { display: grid; color: var(--carbon); }
.ruta-media { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--sea); }
.ruta-media img { width: 100%; height: 100%; object-fit: cover; scale: 1.1; transition: scale 900ms var(--ease); }
.ruta-card:hover .ruta-media img { scale: 1.14; }
.ruta-card .prov { margin-top: 8px; }
.ruta-body { padding-top: 14px; display: grid; gap: 6px; }
.ruta-kicker { font-size: 14px; line-height: 20px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--grey-2); }
.ruta-body h3 { font-size: 34px; line-height: 38px; }
.ruta-body p:not(.ruta-kicker) { color: var(--grey-2); max-width: 46ch; }
.ruta-cta { margin-top: 6px; font-weight: 600; color: var(--sea); display: inline-flex; gap: 8px; min-height: 44px; align-items: center; }
.ruta-cta span { transition: translate 200ms var(--ease); }
.ruta-card:hover .ruta-cta span { translate: 3px -3px; }
.ruta-card:focus-visible { outline: 2px solid var(--cyan); outline-offset: 6px; border-radius: 10px; }
@media (max-width: 860px) { .ruta-cards { grid-template-columns: 1fr; gap: 36px; } .ruta-body h3 { font-size: 28px; line-height: 32px; } }
