/* ==========================================================================
   NORTH YACHT — ESTILOS
   Sistema editorial, minimalista y técnico. Azul marino + blanco cálido.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --navy: #082f4e;
  --navy-deep: #051c30;
  --secondary: #245b78;
  --bg: #ffffff;
  --bg-alt: #f7f6f2;
  --bg-soft: #f6f7f8;
  --text: #17232d;
  --text-soft: #4b5563;
  --line: #e3e0d8;
  --line-soft: rgba(23, 35, 45, 0.08);
  --white: #ffffff;

  --serif: "Cormorant Garamond", "Georgia", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --header-h: 84px;
  --container: 1240px;
  --radius: 14px;
  --radius-sm: 8px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

section { padding: 96px 0; }

@media (max-width: 720px) {
  section { padding: 64px 0; }
  .container { padding: 0 20px; }
}

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--secondary);
  font-weight: 500;
}

.section-head {
  max-width: 680px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 42px);
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.section-head p {
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.6;
  max-width: 60ch;
}

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 14.5px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background 0.2s var(--ease-soft), color 0.2s var(--ease-soft), border-color 0.2s var(--ease-soft), transform 0.3s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover { background: var(--secondary); }

.btn-outline {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }

.btn-line {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}
.btn-line:hover { background: var(--navy); color: var(--white); }

.btn-whatsapp {
  background: var(--navy);
  color: var(--white);
  width: 100%;
  justify-content: center;
  padding: 15px 28px;
}
.btn-whatsapp:hover { background: var(--secondary); }

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.35s var(--ease-soft), box-shadow 0.35s var(--ease-soft), height 0.35s var(--ease-soft), transform 0.45s var(--ease);
}

.site-header.is-hidden { transform: translateY(-100%); }

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 1px 0 var(--line-soft);
  height: 72px;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand { display: flex; align-items: center; }
.brand img { height: 46px; width: auto; transition: height 0.35s var(--ease); }
.site-header.is-scrolled .brand img { height: 38px; }

.main-nav { display: flex; align-items: center; gap: 40px; }

.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--navy);
  position: relative;
  padding: 4px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--navy);
  transition: right 0.3s var(--ease);
}
.main-nav a:hover::after { right: 0; }

.main-nav a.nav-cta {
  margin-left: 8px;
  padding: 10px 22px;
  font-size: 14px;
  color: var(--white);
}
.main-nav a.nav-cta::after { display: none; }

/* Badge to an external, independent site — deliberately lighter than the
   main nav tabs, so it doesn't read as "one more section of North Yacht". */
.main-nav a.qbc-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px 7px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-soft);
  margin-left: -6px;
}
.main-nav a.qbc-badge::after { display: none; }
.main-nav a.qbc-badge:hover {
  border-color: var(--secondary);
  color: var(--navy);
}
.qbc-badge img { height: 20px; width: auto; display: block; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--navy);
  position: relative;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: 24px 24px 40px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .main-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }
  .main-nav a {
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
  }
  .nav-cta { margin: 20px 0 0; width: 100%; justify-content: center; }
  .qbc-badge {
    width: 100%;
    justify-content: center;
    border-bottom: none !important;
    margin: 14px 0 0;
    padding: 12px 16px;
  }
  .nav-toggle { display: flex; }
  .site-header { background: rgba(255, 255, 255, 0.96); box-shadow: 0 1px 0 var(--line-soft); }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-top: var(--header-h);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  left: 0; right: 0;
  top: -18%;
  height: 136%;
  z-index: -1;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 60%;
  transform: scale(1.09);
  animation: heroZoom 2.6s var(--ease) forwards;
}
@keyframes heroZoom {
  to { transform: scale(1); }
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 20, 33, 0.15) 0%, rgba(5, 20, 33, 0.55) 100%);
}

.hero-inner {
  padding-bottom: 108px;
  max-width: 720px;
  color: var(--white);
}

.hero-kicker {
  font-size: 13.5px;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 22px;
  font-weight: 500;
  opacity: 0;
  animation: riseIn 0.9s var(--ease) forwards;
  animation-delay: 0.15s;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 5.6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
  opacity: 0;
  animation: riseIn 1s var(--ease) forwards;
  animation-delay: 0.3s;
}

.hero p {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  max-width: 46ch;
  margin-bottom: 36px;
  opacity: 0;
  animation: riseIn 1s var(--ease) forwards;
  animation-delay: 0.45s;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: riseIn 1s var(--ease) forwards;
  animation-delay: 0.6s;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-kicker, .hero h1, .hero p, .hero-actions { animation: none; opacity: 1; }
  .hero-media img { animation: none; transform: none; }
}

@media (max-width: 720px) {
  .hero-inner { padding-bottom: 64px; }
}

/* ==========================================================================
   INTRO / POSICIONAMIENTO
   ========================================================================== */
.intro { background: var(--bg-alt); }

.intro-head { max-width: 620px; margin-bottom: 64px; }

.intro-head .eyebrow { margin-bottom: 16px; display: block; }

.intro-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 38px);
  color: var(--navy);
  margin-bottom: 18px;
}

.intro-head p {
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--text-soft);
  max-width: 56ch;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.intro-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
}

.intro-num {
  display: block;
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1;
  color: var(--secondary);
  font-weight: 500;
  margin-bottom: 16px;
}

.intro-item h3 {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 10px;
}
.intro-item p { color: var(--text-soft); font-size: 15.5px; line-height: 1.6; font-weight: 500; }

@media (max-width: 820px) {
  .intro-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   PROCESO — cómo trabajamos
   ========================================================================== */
.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.process-step {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 34px 28px;
}

.process-num {
  display: block;
  font-family: var(--serif);
  font-size: 46px;
  line-height: 1;
  color: var(--secondary);
  font-weight: 500;
  margin-bottom: 20px;
}

.process-step h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 10px;
}

.process-step p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-soft);
  font-weight: 500;
}

@media (max-width: 900px) {
  .process-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .process-list { grid-template-columns: 1fr; }
}

/* ==========================================================================
   SECTION HEADER ROW (title + filters aligned)
   ========================================================================== */
.section-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

/* ---------- Filters ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
  padding: 18px 0 40px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 44px;
}

.filters select,
.filters input[type="search"] {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  min-width: 140px;
}

.filters input[type="search"] {
  min-width: 220px;
  flex: 1 1 220px;
}

.filters select:focus,
.filters input:focus { border-color: var(--secondary); }

.filters .filter-count {
  margin-left: auto;
  font-size: 13.5px;
  color: var(--text-soft);
}

@media (max-width: 720px) {
  .filters { gap: 10px; }
  .filters select,
  .filters input[type="search"] { min-width: 0; width: 100%; }
  .filters .filter-count { margin-left: 0; order: 10; width: 100%; }
}

/* ==========================================================================
   TARJETAS DE EMBARCACIÓN
   ========================================================================== */
.grid-boats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px 32px;
}

@media (max-width: 1020px) {
  .grid-boats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .grid-boats { grid-template-columns: 1fr; gap: 40px; }
}

.boat-card {
  cursor: pointer;
}

.boat-card figure {
  margin: 0 0 20px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-soft);
  position: relative;
  border-radius: var(--radius);
}
.boat-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.boat-card figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 20, 33, 0);
  transition: background 0.9s var(--ease);
  pointer-events: none;
}
.boat-card:hover img { transform: scale(1.12); }
.boat-card:hover figure::after { background: rgba(5, 20, 33, 0.06); }

.boat-status {
  position: relative;
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.02em;
  font-weight: 500;
  color: var(--white);
  background: var(--navy);
  padding: 5px 11px;
}
.boat-status.reservado { background: var(--secondary); }
.boat-status.vendido { background: var(--text-soft); }

.boat-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.destacado-tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.02em;
  font-weight: 600;
  color: var(--navy);
  background: transparent;
  border: 1px solid var(--navy);
  padding: 4px 10px;
}

.sold-stamp,
.new-stamp {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--sans);
  font-size: 27px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}
.sold-stamp { background: rgba(5, 20, 33, 0.5); }
.new-stamp { background: rgba(36, 91, 120, 0.55); }

.boat-card h3 {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 6px;
}

.boat-price {
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
}

.boat-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 14px;
  color: var(--text-soft);
  padding-top: 12px;
  border-top: 1px solid var(--line);
  margin-bottom: 18px;
}
.boat-meta span { white-space: nowrap; }

.boat-card .card-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.boat-card .card-link .chevron { transition: transform 0.2s var(--ease); }
.boat-card:hover .card-link .chevron { transform: translateX(3px); }

.empty-state {
  padding: 60px 0;
  text-align: center;
  color: var(--text-soft);
  font-size: 15.5px;
  grid-column: 1 / -1;
}

/* ==========================================================================
   ATRAQUES
   ========================================================================== */
.section-alt { background: var(--bg-alt); }

.grid-atraques {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
@media (max-width: 780px) { .grid-atraques { grid-template-columns: 1fr; } }

.atraque-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.atraque-card figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-soft);
  position: relative;
}
.atraque-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.atraque-card figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 20, 33, 0);
  transition: background 0.9s var(--ease);
  pointer-events: none;
}
.atraque-card:hover img { transform: scale(1.1); }
.atraque-card:hover figure::after { background: rgba(5, 20, 33, 0.06); }

.atraque-body { padding: 22px 22px 22px 0; display: flex; flex-direction: column; }

.atraque-body h3 {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--navy);
  margin-bottom: 4px;
}
.atraque-loc { font-size: 14px; color: var(--text-soft); margin-bottom: 14px; }

.atraque-meta {
  font-size: 14px;
  color: var(--text-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-bottom: 14px;
}

.atraque-desc { font-size: 14.5px; color: var(--text-soft); line-height: 1.55; margin-bottom: 18px; }

.atraque-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.atraque-price { font-size: 16.5px; font-weight: 600; color: var(--navy); }

.atraque-cta { margin-top: 18px; }

@media (max-width: 560px) {
  .atraque-card { grid-template-columns: 1fr; }
  .atraque-body { padding: 20px; }
}

/* ==========================================================================
   EN BUSCA
   ========================================================================== */
.grid-busca {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 780px) { .grid-busca { grid-template-columns: 1fr; } }

.busca-card {
  background: var(--bg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.busca-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--secondary);
}
.busca-card:nth-child(2)::before { background: var(--navy); }

.busca-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.busca-type {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--navy);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
}

.busca-status {
  font-size: 12px;
  color: var(--white);
  background: var(--secondary);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 5px 12px;
}

.busca-card h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 24px;
  max-width: 32ch;
}

.busca-budget {
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 20px;
}
.busca-budget-value {
  display: block;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.2;
}
.busca-budget-label {
  display: block;
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 2px;
}

.busca-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.busca-facts dt {
  font-size: 12px;
  color: var(--text-soft);
  margin-bottom: 3px;
}
.busca-facts dd {
  margin: 0;
  font-size: 15px;
  color: var(--text);
  font-weight: 600;
}

.busca-desc { font-size: 14.5px; color: var(--text-soft); line-height: 1.6; margin-bottom: 22px; flex: 1; }

/* ==========================================================================
   CTA — VENDER / BUSCAR (bloques gemelos)
   ========================================================================== */
.cta-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 780px) { .cta-pair { grid-template-columns: 1fr; } }

.cta-block {
  background: var(--bg);
  padding: 52px 44px;
}
.cta-block.navy { background: var(--navy); color: var(--white); }

.cta-block h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 14px;
}
.cta-block.navy h3 { color: var(--white); }
.cta-block:not(.navy) h3 { color: var(--navy); }

.cta-block p {
  font-size: 15.5px;
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 40ch;
}
.cta-block.navy p { color: rgba(255, 255, 255, 0.82); }
.cta-block:not(.navy) p { color: var(--text-soft); }

.cta-note {
  margin-top: 20px;
  font-size: 13.5px !important;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  line-height: 1.6;
}
.cta-note-icon {
  height: 22px;
  width: auto;
  float: left;
  margin: 0 8px 4px 0;
}

.modal-inspection-note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-soft);
}
.modal-inspection-note img {
  height: 20px;
  width: auto;
  float: left;
  margin: 0 8px 4px 0;
}
.inline-link {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.inline-link:hover { color: var(--secondary); }

@media (max-width: 720px) { .cta-block { padding: 40px 28px; } }

/* ==========================================================================
   CONTACTO
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.contact-info h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 16px;
}
.contact-info > p {
  color: var(--text-soft);
  font-size: 16.5px;
  line-height: 1.6;
  max-width: 46ch;
  margin-bottom: 36px;
}

.contact-list { display: flex; flex-direction: column; gap: 0; }
.contact-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 15.5px;
}
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list dt { color: var(--text-soft); }
.contact-list a { color: var(--navy); font-weight: 500; }
.contact-list a:hover { color: var(--secondary); }

.contact-panel {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 36px;
}
.contact-panel h3 {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 12px;
}
.contact-panel p {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 26px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.78);
  padding: 72px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  margin-bottom: 28px;
}

.footer-brand img { height: 40px; margin-bottom: 14px; }
.footer-brand p { font-size: 14px; color: rgba(255, 255, 255, 0.55); }

.footer-nav { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-nav h4 {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 14px;
  font-weight: 500;
}
.footer-nav ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { font-size: 14.5px; color: rgba(255, 255, 255, 0.85); }
.footer-nav a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}
.footer-bottom ul { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255, 255, 255, 0.55); }
.footer-bottom a:hover { color: var(--white); }

/* ==========================================================================
   MODAL — FICHA DE EMBARCACIÓN
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 20, 33, 0.6);
  z-index: 900;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s;
}
.modal-overlay.is-open { opacity: 1; visibility: visible; }

.modal-sheet {
  background: var(--bg);
  max-width: 980px;
  width: 100%;
  margin: auto;
  border-radius: var(--radius);
  overflow: hidden;
  transform: translateY(24px) scale(0.98);
  transition: transform 0.4s var(--ease);
}
.modal-overlay.is-open .modal-sheet { transform: translateY(0) scale(1); }

.modal-close {
  position: sticky;
  top: 0;
  z-index: 5;
  margin-left: auto;
  display: flex;
  justify-content: flex-end;
  padding: 16px 16px 0;
  background: linear-gradient(180deg, var(--bg) 60%, transparent);
}
.modal-close button {
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--navy);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close button:hover { background: var(--bg-soft); }

.modal-body { padding: 0 40px 48px; }

/* Gallery */
.gallery-main {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-soft);
  overflow: hidden;
  margin-bottom: 12px;
  border-radius: var(--radius);
}
.gallery-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.28s var(--ease-soft);
}
.gallery-main img.is-fading { opacity: 0; }
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  color: var(--navy);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-nav:hover { background: var(--white); }
.gallery-prev { left: 14px; }
.gallery-next { right: 14px; }

.gallery-counter {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: rgba(5, 20, 33, 0.6);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 5px 10px;
  border-radius: 999px;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 36px;
}
.gallery-thumbs img {
  width: 92px; height: 68px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s var(--ease);
  flex: none;
  border-radius: var(--radius-sm);
}
.gallery-thumbs img.is-active { opacity: 1; box-shadow: 0 0 0 2px var(--navy) inset; }

.modal-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.modal-header-row h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 500;
  color: var(--navy);
}
.modal-price { font-size: 22px; font-weight: 600; color: var(--navy); white-space: nowrap; }

.modal-status { margin-bottom: 28px; }

.modal-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 68ch;
  margin-bottom: 36px;
}

.modal-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  margin-bottom: 32px;
}
.modal-specs div dt {
  font-size: 12.5px;
  color: var(--text-soft);
  margin-bottom: 4px;
}
.modal-specs div dd {
  margin: 0;
  font-size: 15.5px;
  color: var(--text);
  font-weight: 500;
}

.modal-equipment {
  margin: -8px 0 32px;
}
.modal-equipment h4 {
  font-size: 12.5px;
  color: var(--text-soft);
  font-weight: 600;
  margin-bottom: 12px;
}

.equipment-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.equipment-card {
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}
.equipment-card h5 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
}
.equipment-card h5 svg { width: 17px; height: 17px; flex: none; color: var(--secondary); }
.equipment-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.equipment-card li {
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.4;
  padding-left: 20px;
  position: relative;
}
.equipment-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: 700;
}

.equipment-capacity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-size: 14px;
  color: var(--text);
}
.equipment-capacity svg { width: 19px; height: 19px; flex: none; color: var(--secondary); margin-right: 2px; }
.equipment-capacity strong { font-weight: 600; }
.equipment-capacity .dot { color: var(--line); margin: 0 2px; }

@media (max-width: 900px) {
  .equipment-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .equipment-cards { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .modal-body { padding: 0 20px 40px; }
  .modal-specs { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   UTILIDADES
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Wipe-reveal for headings, à la Porsche: text uncovers left-to-right on scroll.
   The clip-path/transform live on an INNER span, not on the observed element
   itself — clip-path on the observed node breaks IntersectionObserver's
   re-triggering on scroll in some Chromium builds. */
.heading-reveal { overflow: hidden; display: block; }
.heading-reveal-inner {
  display: inline-block;
  clip-path: inset(0 100% 0 0);
  transform: translateX(28px);
  transition: clip-path 1s var(--ease), transform 1s var(--ease);
}
.heading-reveal.is-visible .heading-reveal-inner {
  clip-path: inset(0 0 0 0);
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .heading-reveal-inner { clip-path: inset(0 0 0 0) !important; transform: none !important; }
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--navy);
  color: var(--white);
  padding: 12px 18px;
  z-index: 1000;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }
