/* Base styles for F1 (structure and legibility). The visual direction chosen in F2a replaces this in F2b. */
:root {
	--bg: #ffffff;
	--text: #111418;
	--muted: #4a525a;
	--line: #d9dde1;
	--accent: #0b57d0;
	--accent-contrast: #ffffff;
	--focus: #0b57d0;
	--radius: 6px;
	--gutter: clamp(16px, 4vw, 56px);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--text); background: var(--bg); }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: var(--gutter); top: 8px; z-index: 100; background: #fff; padding: 8px 12px; }

.site-header { border-bottom: 1px solid var(--line); }
/* article.page, not .page: WordPress also puts "page" on <body>, which would cap the whole document. */
.site-header__inner, .site-footer__inner, .section, .page-head, article.page, .boat, .model__body { max-width: 1280px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.site-header__inner { display: flex; align-items: center; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.site-logo { font-weight: 700; text-decoration: none; color: var(--text); margin-right: auto; }
/* The logo file is 852px wide: without a height here it comes out at that size wherever it is used. */
.site-logo__image { display: block; width: auto; height: 28px; }
.site-nav { display: flex; gap: 24px; align-items: center; }
.site-nav ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--text); text-decoration: none; padding: 12px 0; display: inline-block; }
.site-nav a[aria-current] { text-decoration: underline; text-underline-offset: 6px; }
.lang-switch span[aria-current] { font-weight: 700; padding: 12px 0; display: inline-block; }
.nav-toggle { display: none; min-height: 44px; }
@media (max-width: 800px) {
	.nav-toggle { display: inline-block; }
	.site-nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; padding-bottom: 16px; }
	.site-nav.is-open { display: flex; }
	.site-nav ul { flex-direction: column; gap: 0; }
	.lang-switch { flex-direction: row !important; gap: 16px !important; }
}

.button { display: inline-flex; align-items: center; min-height: 46px; padding: 10px 20px; border: 1px solid var(--text); border-radius: var(--radius); color: var(--text); text-decoration: none; background: transparent; margin: 4px 8px 4px 0; }
.button--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }

.hero { position: relative; min-height: 70vh; display: grid; align-items: end; background: #0b0f14; color: #fff; overflow: hidden; }
.hero__poster, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video { opacity: 0; transition: opacity .6s; }
.hero__video.is-playing { opacity: 1; }
.hero__content { position: relative; padding: 48px var(--gutter); background: linear-gradient(transparent, rgba(0, 0, 0, .7)); }
.hero .button { color: #fff; border-color: #fff; }
.hero .button--primary { border-color: var(--accent); }
.hero__toggle { position: absolute; right: var(--gutter); top: 16px; z-index: 2; min-height: 44px; }

.section { padding-top: 48px; padding-bottom: 48px; }
.grid { display: grid; gap: 24px; }
.grid--models { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid--boats { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.model-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.model-filters button { min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.model-filters button[aria-pressed="true"] { background: var(--text); color: #fff; }
.model-card__link, .boat-card__link { color: inherit; text-decoration: none; }
.model-card__family { color: var(--muted); margin: 8px 0 0; font-size: 14px; }
/* Separator in the base so both parts read as one line; a skin that shows only the family
   hides .model-card__line and the separator goes with it. */
.model-card__line + .model-card__type::before { content: " · "; }
.model-card__title, .boat-card__title { margin: 4px 0; }
.boat-card__media { position: relative; aspect-ratio: 3 / 2; background: #eef0f2; border-radius: var(--radius); overflow: hidden; }
.boat-card__media img { width: 100%; height: 100%; object-fit: cover; }
.boat-card__details { color: var(--muted); margin: 0; }
.boat-card__price { font-weight: 700; margin: 4px 0 0; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: #fff3cd; color: #5c4400; }
.boat-card__media .badge { position: absolute; left: 12px; top: 12px; }
/* Novelty badge on model cards (text from Ajustes: NEW, NOVEDAD…); each skin places and tones it. */
.model-card { position: relative; }
.model-card__badge { position: absolute; top: 12px; right: 12px; z-index: 2; padding: 6px 12px; border-radius: 999px; background: #c8102e; color: #fff; font-size: 12px; font-weight: 700; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; }
.badge--sold { background: #1c1f23; color: #fff; }
.badge--available { background: #e7f3ea; color: #14532d; }
.boat-card__details { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; }
.boat-card__detail dt, .boat-card__detail dd { display: inline; margin: 0; }
.boat-card__detail dt { color: var(--muted); font-size: 13px; }
.section--sold .boat-card { opacity: .85; }

.boat__price { font-size: 1.5rem; }
.boat__price del { color: var(--muted); font-size: 1rem; margin-right: 8px; }
.boat__tax { color: var(--muted); font-size: .9rem; margin-left: 8px; }
.gallery__thumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.gallery__thumbs button { padding: 0; border: 2px solid transparent; background: none; }
.gallery__thumbs button[aria-pressed="true"] { border-color: var(--accent); }
.gallery__thumbs img { width: 96px; height: 72px; object-fit: cover; }
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 24px; }
.specs div { border-top: 1px solid var(--line); padding-top: 8px; }
.specs dt { color: var(--muted); font-size: 14px; }
.specs dd { margin: 0; font-weight: 600; }
.engines { border-collapse: collapse; margin-top: 24px; width: 100%; }
.engines th, .engines td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); }
.nq-fallback-note { font-size: 14px; color: var(--muted); font-style: italic; }
.contact-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.site-footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 32px 0; }
.site-footer ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer a { display: inline-block; padding: 10px 0; }

/* La etiqueta va en su propio elemento porque una maqueta la pone en columna aparte y otras
   en linea; los dos puntos se ponen aqui para que quien la quiera en linea no haga nada. */
.contact-details__label::after { content: ": "; }

/* WhatsApp: inline and floating access. The floating one stays clear of the menu and forms. */
.whatsapp-link { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; }
.whatsapp-link__icon { flex: none; }
.whatsapp-link--float { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; padding: 0 16px; border-radius: 999px; background: #0b6b3a; color: #fff; text-decoration: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.whatsapp-link--float:hover { background: #09562f; }
body.nav-open .whatsapp-link--float,
body.whatsapp-float-away .whatsapp-link--float { display: none; }
/* Compact by height as well: in landscape the phone is wide but the screen is only ~320px tall,
   and the full-width button crowds whatever the hero puts in that corner. */
@media (max-width: 480px), (max-height: 480px) { .whatsapp-link--float .whatsapp-link__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .whatsapp-link--float { width: 56px; height: 56px; padding: 0; justify-content: center; } }
.site-footer { padding-bottom: 96px; }
/* Compact footers reserve space only where a floating access can remain visible.
   Without JS or IntersectionObserver the safe padding remains in place. */
body footer.nq-footer-compact { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
body footer.nq-footer-compact--float { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
body.whatsapp-float-ready footer.nq-footer-compact--float { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
body.whatsapp-float-focused footer.nq-footer-compact--float { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
.nq-footer-compact .footer-phone { display: inline-flex; align-items: center; min-height: 44px; padding: 0; white-space: nowrap; font-size: 14px; font-variant-numeric: tabular-nums; text-decoration: none; }
.nq-footer-compact .footer-phone:hover { text-decoration: underline; text-underline-offset: 5px; }
