/* =========================================================
   Cofradía Virgen del Puerto - Santoña
   ========================================================= */

:root {
  --color-brand: #004ca0;
  --color-brand-dark: #003670;
  --color-brand-soft: #e8f0f9;
  --color-red: #c8303a;
  --color-red-dark: #a82530;
  --color-red-light: #f85a60;
  --color-ink: #1d2733;
  --color-ink-soft: #4f5a67;
  --color-muted: #5a6472;
  --color-line: #dde3ea;
  --color-line-strong: #b9c4d0;
  --color-brand-line: #c9daef;
  --color-ok: #1d7a3e;
  --color-bg: #ffffff;
  --color-bg-light: #f4f7fb;
  --color-white: #ffffff;
  /* Archivo: grotesca de la familia de Arial/Helvetica, la letra del logo */
  --font-body: 'Archivo', Arial, Helvetica, sans-serif;
  --font-head: 'Archivo', Arial, Helvetica, sans-serif;
  --radius: 12px;
  --shadow: 0 4px 18px rgba(0, 40, 90, .08);
  --shadow-strong: 0 8px 28px rgba(0, 40, 90, .22);
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scrollbar-color: var(--color-brand) var(--color-bg-light); accent-color: var(--color-brand); }
::selection { background: var(--color-brand); color: #fff; }
/* Los anclajes (#saludo, #cerco...) no quedan tapados por la cabecera compacta (78px; móvil 64px) */
[id] { scroll-margin-top: 104px; }
@media (max-width: 640px) { [id] { scroll-margin-top: 84px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  font-family: var(--font-body);
  /* 16px en móvil, 17px en escritorio */
  font-size: clamp(1rem, .95rem + .25vw, 1.0625rem);
  line-height: 1.7;
  color: var(--color-ink);
  background: var(--color-bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-brand); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--color-brand-dark); }
/* Enlaces dentro del texto: sin subrayado, se distinguen por el peso (el azul solo no basta, 1,8:1 con el texto) y se subrayan al pasar por encima */
/* Texto justificado en escritorio (lo pidió Laura); en móvil, a la izquierda para que no queden huecos. Los bloques centrados se quedan centrados */
@media (min-width: 761px) { main p, .prose ul:not(.link-list) li, .prose ol li { text-align: justify; hyphens: auto; } }
.section-head p, .banner-hero__text p, .prose--center p { text-align: center; }
main p a, .prose li a, .footer-bottom a, .cookie-modal-body a { font-weight: 600; }
main p a:hover, .prose li a:hover, .cookie-modal-body a:hover { opacity: .7; }
:focus-visible { outline: 3px solid var(--color-red); outline-offset: 2px; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; letter-spacing: -.01em; color: var(--color-brand-dark); font-weight: 700; text-wrap: balance; }
p { text-wrap: pretty; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p + p { margin-top: 1rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
section { padding: 4.5rem 0; }
.section--light { background: var(--color-bg-light); }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 10000;
  background: var(--color-brand); color: #fff; padding: .7rem 1.1rem; border-radius: var(--radius);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }

.section-head { margin: 0 auto 2.5rem; text-align: center; }
.section-head h1, .section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.section-head p { color: var(--color-ink-soft); margin-top: .75rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .7rem 1.5rem; border-radius: 99px; border: 2px solid transparent;
  font-family: var(--font-body); font-size: .95rem; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn-primary { background: var(--color-red); color: #fff; }
.btn-primary:hover { background: var(--color-red-dark); color: #fff; }
.btn-secondary { background: var(--color-brand); color: #fff; }
.btn-secondary:hover { background: var(--color-brand-dark); color: #fff; }
.btn-ghost--light { border-color: rgba(255, 255, 255, .85); color: #fff; background: rgba(0, 0, 0, .15); }
.btn-ghost--light:hover { background: #fff; color: var(--color-brand-dark); }
.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }

/* ---------- Topbar ---------- */
.topbar { background: var(--color-brand-dark); color: #fff; font-size: .85rem; }
/* Cabecera a todo el ancho de la pantalla, no limitada al contenedor */
.topbar .container, .header-main .container { max-width: none; padding: 0 2rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.topbar ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; }
.topbar a { transition: opacity .2s; }
.topbar a:hover { color: #fff; opacity: .75; }
.topbar svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ---------- Header / navegación ---------- */
#site-header { position: sticky; top: 0; z-index: 900; background: #fff; box-shadow: 0 4px 18px rgba(0, 40, 90, .1); }
/* Línea roja fina bajo la cabecera, del rojo del ancla del logo */
.header-main { border-bottom: 3px solid var(--color-red); }
.header-main .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 134px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { width: auto; max-width: none; flex-shrink: 0; height: 104px; transition: height .2s; }
/* Al bajar, la barra superior se va (top negativo, lo pone layout.js) y el logo se reduce. El margen compensa lo que encoge para que la página no dé un salto */
#site-header { transition: margin-bottom .2s; }
.header-main .container { transition: min-height .2s; }
#site-header.is-compact { margin-bottom: 56px; }
.is-compact .header-main .container { min-height: 78px; }
.is-compact .brand img { height: 64px; }

.nav__list { list-style: none; display: flex; align-items: center; gap: .2rem; }
.nav__list > li { position: relative; }
.nav__list > li > a, .nav__list > li > button {
  display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: .5rem .8rem;
  background: none; border: 0; border-radius: 6px; cursor: pointer;
  font-family: var(--font-body); font-size: .93rem; font-weight: 700; color: var(--color-ink); text-decoration: none; white-space: nowrap;
}
.nav__list > li > a:hover, .nav__list > li > button:hover,
.nav__list > li:focus-within > button, .nav__list > li > a[aria-current="page"] { color: var(--color-brand); background: var(--color-brand-soft); }
/* Escritorio: logo a la izquierda, menú centrado con la página y Contacto a la derecha.
   Las dos columnas de los lados miden lo mismo (1fr), así el menú queda en el centro exacto */
.header-cta { display: none; }
@media (min-width: 1261px) {
  .header-main .container { display: grid; grid-template-columns: 1fr auto 1fr; }
  .header-cta {
    display: inline-flex; align-items: center; justify-self: end; min-height: 46px; padding: .5rem 1.5rem; border-radius: 99px;
    background: var(--color-brand); color: #fff; font-weight: 700; font-size: .95rem; text-decoration: none; transition: background .2s;
  }
  .header-cta:hover, .header-cta[aria-current="page"] { background: var(--color-brand-dark); color: #fff; }
}
.nav__chevron { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }

.nav__dropdown {
  position: absolute; top: 100%; left: 0; min-width: 260px; list-style: none;
  background: #fff; border-top: 3px solid var(--color-brand); border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-strong); padding: .4rem 0;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s;
}
.nav__list > li:hover .nav__dropdown,
.nav__list > li:focus-within .nav__dropdown,
.nav__list > li.is-open .nav__dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__list > li.is-closed .nav__dropdown { opacity: 0; visibility: hidden; }
.nav__dropdown a { display: block; padding: .55rem 1.1rem; color: var(--color-ink); text-decoration: none; font-size: .92rem; }
.nav__dropdown a:hover, .nav__dropdown a:focus-visible, .nav__dropdown a[aria-current="page"] { background: var(--color-brand); color: #fff; }

.nav-toggle {
  display: none; width: 48px; height: 48px; border: 0; border-radius: var(--radius);
  background: var(--color-brand); color: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 26px; height: 26px; }

.mobile-nav { display: none; border-top: 1px solid var(--color-line); background: #fff; max-height: calc(100vh - 174px); overflow-y: auto; }
.is-compact .mobile-nav { max-height: calc(100vh - 78px); }
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; }
.mobile-nav > ul > li { border-bottom: 1px solid var(--color-line); }
.mobile-nav a, .mobile-nav summary {
  display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding: .6rem 1.25rem;
  color: var(--color-ink); font-weight: 700; text-decoration: none; cursor: pointer; list-style: none;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary::after {
  content: ''; width: 9px; height: 9px; border-right: 2px solid var(--color-ink-soft); border-bottom: 2px solid var(--color-ink-soft);
  transform: rotate(45deg); transition: transform .2s;
}
.mobile-nav details[open] summary::after { transform: rotate(-135deg); border-color: var(--color-brand); }
.mobile-nav details ul { background: var(--color-bg-light); padding: .3rem 0; }
.mobile-nav details a { font-weight: 400; min-height: 46px; padding-left: 2.1rem; }
.mobile-nav a, .mobile-nav summary { transition: background .2s, color .2s; }
/* Con el menú móvil abierto, los botones flotantes no tapan sus opciones */
body.mobile-nav-open .a11y-widget, body.mobile-nav-open .cookie-manage-btn, body.mobile-nav-open .back-to-top { display: none; }
/* Mismos colores que el menú de escritorio */
.mobile-nav > ul > li > a:hover, .mobile-nav > ul > li > a:active, .mobile-nav > ul > li > a[aria-current="page"],
.mobile-nav summary:hover, .mobile-nav summary:active, .mobile-nav details[open] > summary { color: var(--color-brand); background: var(--color-brand-soft); }
.mobile-nav details a:hover, .mobile-nav details a:active, .mobile-nav details a:focus-visible, .mobile-nav details a[aria-current="page"] { background: var(--color-brand); color: #fff; }

@media (max-width: 1260px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 640px) {
  .topbar__extra { display: none; }
  .topbar .container, .header-main .container { padding: 0 1.25rem; }
  .header-main .container { min-height: 90px; }
  .brand img { height: 76px; }
  .mobile-nav { max-height: calc(100vh - 130px); }
  #site-header.is-compact { margin-bottom: 26px; }
  .is-compact .header-main .container { min-height: 64px; }
  .is-compact .brand img { height: 52px; }
  .is-compact .mobile-nav { max-height: calc(100vh - 64px); }
}

/* ---------- Banner hero (home) ---------- */
.banner-hero { position: relative; height: min(68vh, 620px); min-height: 420px; overflow: hidden; background: var(--color-brand-dark); }
.banner-hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.banner-hero__slide.is-active { opacity: 1; }
.banner-hero__slide img, .banner-hero__video { display: block; width: 100%; height: 100%; object-fit: cover; }
.banner-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 25, 60, .35) 0%, rgba(0, 25, 60, .55) 100%);
}
.banner-hero__content { position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: center; }
.banner-hero__text { position: relative; text-align: center; color: #fff; max-width: 860px; padding: 1.5rem 1.25rem 4.5rem; }
.banner-hero__text::before {
  content: ''; position: absolute; inset: -20% -15%; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(0, 20, 50, .55) 0%, rgba(0, 20, 50, 0) 70%);
}
.banner-hero__text h1 { color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .45); }
.banner-hero__text p {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(1.5rem, 3.2vw, 2.4rem); line-height: 1.2; text-wrap: balance;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .55), 0 2px 18px rgba(0, 0, 0, .55);
}
.banner-hero .btn-ghost--light { background: rgba(0, 20, 50, .45); }
.banner-hero .btn-ghost--light:hover { background: #fff; }
.banner-hero__actions { margin-top: 1.6rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }
.banner-hero__dots { position: absolute; z-index: 3; bottom: 1rem; left: 0; right: 0; display: flex; justify-content: center; gap: .2rem; }
.banner-hero__dots button { width: 32px; height: 32px; border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.banner-hero__dots button::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .5); transition: background .2s, transform .2s; }
.banner-hero__dots button[aria-current="true"]::before { background: #fff; transform: scale(1.25); }
.banner-hero__pause {
  position: absolute; z-index: 3; right: 1rem; bottom: .5rem; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(0, 20, 50, .45); color: #fff; transition: background .2s;
}
.banner-hero__pause[hidden] { display: none; }
.banner-hero__pause:hover { background: rgba(0, 20, 50, .7); }
.banner-hero__pause svg { width: 18px; height: 18px; }

@media (max-width: 640px) {
  .banner-hero__pause { top: .75rem; bottom: auto; right: .75rem; }
  .banner-hero { height: auto; min-height: 0; }
  .banner-hero__content { position: relative; min-height: 440px; }
  .banner-hero__text { padding: 2.5rem 1rem 3.5rem; }
}
@media (max-height: 480px) and (orientation: landscape) {
  .banner-hero { height: auto; min-height: 0; }
  .banner-hero__content { position: relative; min-height: 340px; }
  .banner-hero__text { padding: 1.5rem 1rem 3rem; }
}

/* ---------- Saludo ---------- */
.saludo__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; align-items: start; }
.saludo__photo { position: sticky; top: 102px; }
.saludo__photo img { border-radius: var(--radius); box-shadow: var(--shadow-strong); }
.saludo__photo figcaption { margin-top: .8rem; font-size: .9rem; color: var(--color-muted); text-align: center; }
.saludo__text h2 { margin-bottom: 1.2rem; }
.saludo__firma { margin-top: 1.5rem; font-family: var(--font-head); font-weight: 700; color: var(--color-brand-dark); }
.saludo__cargo { display: block; font-family: var(--font-body); font-weight: 400; font-size: .9em; color: var(--color-muted); }
@media (max-width: 860px) {
  .saludo__grid { grid-template-columns: 1fr; gap: 2rem; }
  .saludo__photo { position: static; max-width: 520px; margin: 0 auto; }
}

/* ---------- Tarjetas de sección ---------- */
.section-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.section-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.section-card__media { aspect-ratio: 3 / 2; overflow: hidden; }
.section-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.section-card:hover .section-card__media img { transform: scale(1.04); }
.section-card__body { padding: 1.3rem 1.4rem 1.5rem; }
.section-card__body h3 { font-size: 1.3rem; margin-bottom: .7rem; }
.section-card__body h3 a { color: inherit; text-decoration: none; }
.section-card__body ul { list-style: none; }
.section-card__body li a {
  display: flex; align-items: center; gap: .55rem; min-height: 40px; color: var(--color-ink); text-decoration: none;
  border-bottom: 1px solid var(--color-line);
}
.section-card__body li:last-child a { border-bottom: 0; }
.section-card__body li a::before { content: ''; width: 6px; height: 6px; border-right: 2px solid var(--color-red); border-bottom: 2px solid var(--color-red); transform: rotate(-45deg); flex-shrink: 0; }
.section-card__body li a:hover { color: var(--color-brand); }
@media (max-width: 900px) { .section-cards { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }

/* ---------- FAQ ---------- */
.faq-list { margin: 0 auto; display: grid; gap: .8rem; }
.faq-item { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; list-style: none;
  min-height: 56px; padding: .9rem 1.25rem; font-weight: 700; color: var(--color-brand-dark);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ''; width: 9px; height: 9px; flex-shrink: 0;
  border-right: 2px solid var(--color-ink-soft); border-bottom: 2px solid var(--color-ink-soft);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq-item summary:hover { color: var(--color-brand); }
.faq-item summary:hover::after { border-color: var(--color-brand); }
.faq-item[open] summary::after { transform: rotate(-135deg); border-color: var(--color-brand); }
.faq-item p { padding: 0 1.25rem 1.1rem; color: var(--color-ink-soft); }

/* ---------- Footer ---------- */
#site-footer { background: var(--color-brand); color: #fff; margin-top: 0; }
#site-footer a { color: #fff; }
.footer-top { padding: 3.5rem 0 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer-col h2 { font-family: var(--font-head); font-size: 1.1rem; color: #fff; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .45rem; }
.footer-col li a { text-decoration: none; }
/* Pie sin subrayados (lo pidió Laura): al pasar por encima, el enlace se aclara, como en la barra superior */
#site-footer a { transition: opacity .2s; }
#site-footer a:hover { opacity: .75; }
.contact-list { list-style: none; }
.contact-list li { display: flex; align-items: flex-start; gap: .65rem; margin-bottom: .6rem; }
.contact-list svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: .3rem; }
.contact-list a { text-decoration: none; }
main .contact-list a:hover { opacity: .7; }
.footer-bottom { background: var(--color-brand-dark); font-size: .85rem; padding: 1.1rem 0; text-align: center; }
.footer-bottom__break { display: none; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-col--contact { grid-column: 1 / -1; } }
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { padding-bottom: 7.5rem; }
  .footer-bottom__break { display: block; }
}

/* ---------- Volver arriba ---------- */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 998; width: 44px; height: 44px;
  background: var(--color-red-dark); color: var(--color-white); border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow-strong);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background .3s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: #8a1c26; }
.back-to-top svg { width: 20px; height: 20px; }
@media (max-width: 520px) { .back-to-top { width: 44px; height: 44px; bottom: 16px; right: 16px; } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: rgba(0, 20, 45, .92); opacity: 0; visibility: hidden; transition: opacity .2s ease; }
.lightbox.is-open { opacity: 1; visibility: visible; }
body.lightbox-open { overflow: hidden; }
.lightbox-img { max-width: min(90vw, 1200px); max-height: 88vh; width: auto; height: auto; object-fit: contain; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); transition: transform .25s cubic-bezier(.2, .8, .2, 1), opacity .25s; }
/* Mientras se arrastra con el dedo la foto va pegada a él, sin transición */
.lightbox-img.is-dragging { transition: none; }
/* El navegador deja el pellizco para ampliar; el deslizamiento lo gestiona layout.js */
.lightbox { touch-action: pinch-zoom; }
.lightbox-close { position: absolute; top: 1.2rem; right: 1.5rem; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; transition: background .2s ease; }
.lightbox-close:hover, .lightbox-close:focus-visible { background: rgba(255, 255, 255, .25); }
.lightbox-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer; transition: background .2s ease; display: flex; align-items: center; justify-content: center; }
.lightbox-arrow:hover, .lightbox-arrow:focus-visible { background: rgba(255, 255, 255, .25); }
.lightbox-arrow--prev { left: 1rem; }
.lightbox-arrow--next { right: 1rem; }
@media (max-width: 640px) {
  .lightbox-arrow { width: 44px; height: 44px; font-size: 1.8rem; }
  .lightbox-arrow--prev { left: .4rem; }
  .lightbox-arrow--next { right: .4rem; }
  .lightbox-close { top: .6rem; right: .6rem; }
}

/* ---------- Widget de accesibilidad ---------- */
.a11y-widget { position: fixed; top: 160px; right: 0; z-index: 9995; }
.a11y-toggle {
  width: 48px; height: 48px; background: var(--color-red); border: none; border-radius: 6px 0 0 6px;
  display: flex; align-items: center; justify-content: center; cursor: pointer; color: #fff;
  box-shadow: -2px 2px 10px rgba(0, 0, 0, .2);
}
.a11y-toggle:hover { background: var(--color-red-dark); }
.a11y-toggle svg { width: 26px; height: 26px; }
.a11y-panel {
  position: absolute; top: 0; right: 48px; width: 260px; background: #fff; color: var(--color-ink);
  border: 1px solid rgba(0, 0, 0, .1); border-radius: 6px; box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  padding: 1rem 0; display: none;
}
.a11y-panel.is-open { display: block; }
.a11y-panel h2 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--color-ink); padding: 0 1.1rem .75rem; }
.a11y-panel ul { list-style: none; }
.a11y-option {
  width: 100%; min-height: 44px; display: flex; align-items: center; gap: .7rem; padding: .5rem 1.1rem;
  background: none; border: none; font-family: var(--font-body); font-size: .92rem; color: var(--color-ink); text-align: left; cursor: pointer;
}
.a11y-option:hover { background: var(--color-bg-light); }
.a11y-option svg { width: 18px; height: 18px; flex-shrink: 0; }
.a11y-option.is-active { background: var(--color-brand-soft); font-weight: 700; color: var(--color-brand); }
.a11y-option--reset { border-top: 1px solid rgba(0, 0, 0, .08); margin-top: .35rem; }
/* En móvil el widget baja a la esquina, encima del botón "volver arriba", para no tapar el contenido */
@media (max-width: 520px) {
  .a11y-widget { top: auto; bottom: 68px; right: 16px; }
  .a11y-toggle { width: 44px; height: 44px; border-radius: 50%; }
  .a11y-toggle svg { width: 24px; height: 24px; }
  .a11y-panel { top: auto; bottom: 0; right: 52px; width: 230px; }
}

/* Los filtros van en <html>: en <body> descolocarían los botones fijos */
html.a11y-grayscale { filter: grayscale(1); }
body.a11y-contrast { background: #000 !important; color: #fff !important; }
body.a11y-contrast * {
  background-color: #000 !important; color: #fff !important; background-image: none !important;
  border-color: #444 !important; box-shadow: none !important; text-shadow: none !important;
}
body.a11y-contrast a { color: #ffd370 !important; }
body.a11y-contrast img, body.a11y-contrast svg { filter: grayscale(1) contrast(1.2); opacity: .9; }
body.a11y-contrast .banner-hero__overlay { background: rgba(0, 0, 0, .7) !important; }
html.a11y-contrast-negative { filter: invert(1) hue-rotate(180deg); }
body.a11y-light-bg *:not(.a11y-toggle):not(.a11y-toggle *) { background-color: #fff !important; color: #111 !important; }
body.a11y-underline-links a { text-decoration: underline !important; }
body.a11y-readable-font, body.a11y-readable-font * { font-family: Arial, Helvetica, sans-serif !important; }

/* =========================================================
   COOKIE CONSENT BANNER - RGPD
   ========================================================= */
.cookie-overlay { display: none; }
.cookie-modal {
  position: fixed; bottom: 1.5rem; left: 1.5rem; transform: translateY(12px) scale(.97);
  width: min(400px, calc(100vw - 2rem)); background: #fff; border-radius: 1rem;
  box-shadow: 0 8px 48px rgba(0, 0, 0, .18); z-index: 9999; opacity: 0; visibility: hidden;
  transition: opacity .3s ease, transform .3s ease, visibility .3s; pointer-events: none; overflow: hidden;
}
.cookie-modal.active { opacity: 1; visibility: visible; transform: translateY(0) scale(1); pointer-events: auto; }
.cookie-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem 0; }
.cookie-modal-header h2 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--color-ink); }
.cookie-close {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 50%;
  color: var(--color-muted); font-size: 1.1rem; cursor: pointer; background: none; border: none; padding: 0; transition: background .2s;
}
.cookie-close:hover { background: var(--color-bg-light); color: var(--color-ink); }
.cookie-modal-body { padding: 1rem 1.5rem 1.25rem; }
.cookie-modal-body p { font-size: .88rem; color: var(--color-ink-soft); line-height: 1.6; }
.cookie-modal-body a { color: var(--color-brand); }
.cookie-modal-footer, .cookie-prefs-footer { display: flex; flex-wrap: wrap; gap: .65rem; padding: 0 1.5rem 1.5rem; }
.cookie-btn {
  flex: 1 1 auto; min-width: 100px; min-height: 44px; padding: .6rem 1rem; border-radius: 99px;
  font-family: var(--font-body); font-size: .82rem; font-weight: 700; cursor: pointer;
  transition: background .2s, border-color .2s, box-shadow .2s; border: 1.5px solid transparent;
}
.cookie-btn-accept { background: var(--color-brand); color: #fff; border-color: var(--color-brand); }
.cookie-btn-accept:hover { background: var(--color-brand-dark); box-shadow: 0 2px 12px rgba(0, 0, 0, .2); }
.cookie-btn-deny, .cookie-btn-prefs { background: #fff; color: var(--color-ink); border-color: var(--color-line-strong); }
.cookie-btn-deny:hover, .cookie-btn-prefs:hover { border-color: var(--color-ink-soft); background: var(--color-bg-light); }
.cookie-category { border: 1px solid var(--color-line); border-radius: .5rem; margin-bottom: .65rem; overflow: hidden; }
.cookie-category-header { display: flex; align-items: center; justify-content: space-between; padding: .85rem 1rem; background: var(--color-bg-light); cursor: pointer; gap: .75rem; }
.cookie-category-header:hover { background: var(--color-brand-soft); }
.cookie-category-title { display: flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 700; color: var(--color-ink); flex: 1; }
.cookie-required-badge { font-size: .7rem; font-weight: 600; color: var(--color-ink-soft); background: var(--color-line); padding: .15rem .5rem; border-radius: 99px; }
.cookie-category-desc { font-size: .82rem; color: var(--color-ink-soft); padding: .65rem 1rem; border-top: 1px solid var(--color-line); background: #fff; display: none; }
.cookie-category.expanded .cookie-category-desc { display: block; }
.cookie-category-toggle-icon { font-size: .75rem; color: var(--color-muted); transition: transform .2s; flex-shrink: 0; }
.cookie-category.expanded .cookie-category-toggle-icon { transform: rotate(180deg); }
.cookie-toggle { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.cookie-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.cookie-toggle-slider { position: absolute; inset: 0; background: var(--color-line-strong); border-radius: 99px; transition: background .2s; cursor: pointer; }
.cookie-toggle-slider::before { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 4px rgba(0, 0, 0, .2); }
.cookie-toggle input:checked + .cookie-toggle-slider { background: var(--color-brand); }
.cookie-toggle input:checked + .cookie-toggle-slider::before { transform: translateX(18px); }
.cookie-toggle input:focus-visible + .cookie-toggle-slider { outline: 3px solid var(--color-red); outline-offset: 2px; }
.cookie-toggle input:disabled + .cookie-toggle-slider { background: var(--color-line-strong); cursor: not-allowed; }
.cookie-toggle input:disabled + .cookie-toggle-slider::before { transform: translateX(18px); }
.cookie-manage-btn {
  position: fixed; bottom: 24px; left: 1.5rem; z-index: 9990; min-height: 44px;
  background: #fff; border: 1.5px solid var(--color-line-strong); border-radius: 99px;
  padding: .5rem .95rem; font-family: var(--font-body); font-size: .75rem; font-weight: 700; color: var(--color-ink-soft); cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08); display: flex; align-items: center; gap: .4rem;
  opacity: 0; pointer-events: none; transition: opacity .3s, border-color .2s, box-shadow .2s;
}
.cookie-manage-btn.visible { opacity: 1; pointer-events: auto; }
.cookie-manage-btn:hover { border-color: var(--color-brand); color: var(--color-brand); }
@media (max-width: 520px) {
  .cookie-modal { left: .5rem; right: .5rem; width: auto; bottom: .5rem; border-radius: .8rem; }
  .cookie-modal-header { padding: .9rem 1rem 0; }
  .cookie-modal-body { padding: .6rem 1rem .8rem; }
  .cookie-modal-body p { font-size: .82rem; }
  .cookie-modal-footer, .cookie-prefs-footer { padding: 0 1rem 1rem; gap: .5rem; flex-wrap: nowrap; }
  .cookie-prefs-footer { flex-wrap: wrap; }
  .cookie-btn { min-width: 0; padding: .55rem .6rem; font-size: .78rem; }
  .cookie-manage-btn { left: 16px; bottom: 16px; width: 44px; height: 44px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
  .cookie-manage-btn svg { width: 18px; height: 18px; }
}

/* =========================================================
   PÁGINAS INTERIORES
   ========================================================= */
.page-hero { padding: 0; position: relative; overflow: hidden; background: var(--color-brand-dark); color: #fff; }
.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero__bg--abajo { object-position: center bottom; }
.page-hero__bg--virgen { object-position: 85% 30%; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 30, 70, .88) 0%, rgba(0, 40, 90, .6) 60%, rgba(0, 40, 90, .45) 100%); }
/* En pantalla ancha el título queda a la izquierda: la capa se aclara a la derecha para que la foto conserve su color */
@media (min-width: 1100px) { .page-hero::after { background: linear-gradient(90deg, rgba(0, 30, 70, .85) 0%, rgba(0, 34, 78, .7) 45%, rgba(0, 37, 84, .28) 72%, rgba(0, 40, 90, .14) 100%); } }
.page-hero .container { position: relative; z-index: 1; padding-top: clamp(4rem, 9vw, 7rem); padding-bottom: clamp(4rem, 9vw, 7rem); }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.2rem); }

.page-content { padding: 3.5rem 0 4.5rem; }
.page-intro { margin-bottom: 2rem; }
/* El texto ocupa todo el contenedor, hasta el mismo borde que las fotos (lo pidió Laura) */
.prose h2 { margin: 3rem 0 1rem; }
.prose ul { margin: 1rem 0 1rem 1.3rem; }
.prose ul li + li { margin-top: .35rem; }
.prose--intro { margin-bottom: 2.5rem; }

.media-right { float: right; width: 42%; margin: .3rem 0 1.2rem 2rem; }
.media-left { float: left; width: 42%; margin: .3rem 2rem 1.2rem 0; }
.media-right img, .media-left img, .figure img { border-radius: var(--radius); box-shadow: var(--shadow-strong); }
.media-right figcaption, .media-left figcaption, .figure figcaption { margin-top: .6rem; font-size: .88rem; color: var(--color-muted); text-align: center; }
.clearfix::after { content: ''; display: table; clear: both; }
@media (max-width: 720px) {
  .media-right, .media-left { float: none; width: 100%; max-width: 520px; margin: 0 auto 1.5rem; }
}

.figure-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 2rem 0; align-items: start; }
.figure-pair a { display: block; }
.figure-pair img { width: 100%; aspect-ratio: 100 / 142; object-fit: cover; }
@media (max-width: 600px) { .figure-pair { grid-template-columns: 1fr; } }

.callout { margin: 2rem 0; padding: 1.2rem 1.4rem; background: var(--color-brand-soft); border: 1px solid var(--color-brand-line); border-radius: var(--radius); }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; margin-top: 1.5rem; }
.photo-grid a { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 6px; background: var(--color-bg-light); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, filter .35s ease; }
.photo-grid a:hover img, .photo-grid a:focus-visible img { transform: scale(1.05); filter: brightness(1.05); }
@media (max-width: 480px) { .photo-grid { grid-template-columns: repeat(2, 1fr); gap: .5rem; } }

/* ---------- Junta directiva ---------- */
.member-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 1rem; }
.member { display: flex; align-items: center; gap: .9rem; background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.member__icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; background: var(--color-brand-soft); color: var(--color-brand); display: flex; align-items: center; justify-content: center; }
.member__icon svg { width: 22px; height: 22px; }
.member strong { display: block; color: var(--color-ink); }
.member__role { display: block; font-size: .88rem; color: var(--color-red); font-weight: 600; }

/* ---------- Barcos ---------- */
.subnav { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 2.5rem; }
.subnav a { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1.2rem; border-radius: 99px; border: 2px solid var(--color-brand); color: var(--color-brand); font-weight: 700; text-decoration: none; }
.subnav a:hover { background: var(--color-brand); color: #fff; }
.boat-section + .boat-section { margin-top: 3.5rem; }
.boat-section h2 { margin-bottom: .4rem; }
.boat-section > p { color: var(--color-ink-soft); margin-bottom: 1.5rem; }
.boat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem; }
.boat-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.boat-card a.js-lightbox { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.boat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.boat-card a.js-lightbox:hover img { transform: scale(1.05); }
.boat-card__body { padding: .85rem 1rem 1rem; }
.boat-card h3 { font-family: var(--font-body); font-size: 1rem; letter-spacing: .03em; color: var(--color-brand-dark); }
.boat-card__reg { display: inline-flex; align-items: center; gap: .35rem; min-height: 32px; font-size: .9rem; font-weight: 600; color: var(--color-red); font-variant-numeric: tabular-nums; }
.boat-card__reg svg { width: 14px; height: 14px; }
@media (max-width: 480px) { .boat-grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; } .boat-card h3 { font-size: .85rem; } .boat-card__reg { font-size: .8rem; } }

/* ---------- Documentos descargables ---------- */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.4rem; margin-top: 1.5rem; }
.doc-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--color-ink); transition: transform .2s, box-shadow .2s; }
.doc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-strong); color: var(--color-ink); }
.doc-card__thumb { aspect-ratio: 600 / 849; background: var(--color-bg-light); border-bottom: 1px solid var(--color-line); overflow: hidden; }
.doc-card__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.doc-card__body { padding: .9rem 1rem 1.1rem; }
.doc-card__body h3 { font-family: var(--font-body); font-size: 1rem; line-height: 1.35; }
.doc-card__meta { display: inline-flex; align-items: center; gap: .4rem; margin-top: .5rem; font-size: .85rem; font-weight: 700; color: var(--color-red); }
.doc-card__meta svg { width: 16px; height: 16px; }
.cert-msc { display: grid; grid-template-columns: 1fr 220px; gap: 2rem; align-items: center; }
.cert-msc img { border-radius: var(--radius); border: 1px solid var(--color-line); }
@media (max-width: 640px) { .cert-msc { grid-template-columns: 1fr; } .cert-msc a { max-width: 220px; } }

/* ---------- Listas de enlaces externos / vídeos ---------- */
.prose ul.link-list { list-style: none; margin: 1rem 0 0; display: grid; gap: .6rem; }
.prose ul.link-list li + li { margin-top: 0; }
.link-list a {
  display: flex; align-items: center; gap: .7rem; min-height: 52px; padding: .7rem 1rem;
  background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius);
  color: var(--color-brand-dark); font-weight: 600; text-decoration: none; transition: border-color .2s, background .2s;
}
.link-list a:hover { border-color: var(--color-brand); background: var(--color-brand-soft); }
.link-list svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--color-red); }
.link-list--video svg { width: 24px; height: 24px; }
.doc-grid--single { grid-template-columns: minmax(0, 260px); }

/* ---------- Bloques con texto + galería (instalaciones, equipo) ---------- */
.inst-block { max-width: var(--container); margin: 0 auto; }
.inst-block + .inst-block { margin-top: 3.2rem; padding-top: 3.2rem; border-top: 1px solid var(--color-line); }
.inst-block h2 { margin-bottom: .8rem; }
.inst-block > p { color: var(--color-ink-soft); }

/* ---------- Especies subastadas ---------- */
.species-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.species-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.species-card__media { aspect-ratio: 2 / 1; background: #fff; border-bottom: 1px solid var(--color-line); }
.species-card__media img { width: 100%; height: 100%; object-fit: contain; }
.species-card__body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 1.1rem 1.2rem 1.3rem; }
.species-card h3 { font-size: 1.3rem; letter-spacing: .04em; }
.species-card h3 span { font-size: .8em; font-weight: 400; letter-spacing: 0; color: var(--color-ink-soft); }
/* Va debajo del enlace y sin justificar: en tan poco ancho quedaban huecos entre palabras */
.species-card__nota { order: 1; margin-top: .6rem; font-size: .85rem; color: var(--color-muted); text-align: left; hyphens: manual; }
.species-card__link { display: inline-flex; align-items: center; gap: .4rem; margin-top: .8rem; font-weight: 600; }
.species-card__link svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--color-red); }

/* Gráficas de ventas (las dibuja js/especies.js con los datos de js/ventas-datos.js) */
.ventas-aviso { text-align: center; color: var(--color-ink-soft); margin-bottom: 1.5rem; }
.species-card__ver { display: flex; width: 100%; margin-top: .9rem; }
.ventas-modal { width: min(960px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); margin: auto; padding: 0; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); color: var(--color-ink); }
.ventas-modal::backdrop { background: rgba(0, 0, 0, .55); }
html:has(.ventas-modal[open]) { overflow: hidden; }
.ventas-modal__cabecera { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.4rem; border-bottom: 1px solid var(--color-line); }
.ventas-modal__cabecera h2 { margin: 0; font-size: 1.5rem; }
.ventas-modal__cabecera h2:focus { outline: none; }
.ventas-modal__x { flex-shrink: 0; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--color-muted); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.ventas-modal__x:hover { background: var(--color-brand-soft); color: var(--color-brand); }
.ventas-modal__graficas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding: 1.2rem 1.4rem; }
.ventas-modal__pie { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; padding: 1rem 1.4rem; border-top: 1px solid var(--color-line); }
.ventas-modal__cerrar { border-color: var(--color-line-strong); background: #fff; color: var(--color-ink); }
.ventas-modal__cerrar:hover { background: var(--color-bg-light); }
.ventas-chart { margin: 0; padding: .6rem .5rem; border: 1px solid var(--color-line); border-radius: 6px; }
.ventas-chart__plot { position: relative; min-height: 340px; }
.ventas-chart svg { display: block; overflow: visible; touch-action: pan-y; }
.ventas-chart svg:focus-visible { outline: 3px solid var(--color-brand); outline-offset: 2px; }
.ventas-chart text { font: 12px var(--font-body); fill: #595959; font-variant-numeric: tabular-nums; }
.ventas-chart text.titulo { font-size: 14px; font-weight: 700; fill: var(--color-ink); }
.ventas-chart .guia { stroke: #ccc; stroke-width: 1; stroke-dasharray: 4 3; }
.ventas-chart .eje { stroke: #a6a6a6; stroke-width: 1; }
.ventas-chart__tip { position: absolute; z-index: 2; pointer-events: none; white-space: nowrap; padding: .3rem .6rem; border-radius: 6px; background: var(--color-ink); color: #fff; font-size: .85rem; font-variant-numeric: tabular-nums; box-shadow: var(--shadow); }
.ventas-chart__tip strong { margin-right: .35rem; }
@media (max-width: 760px) { .ventas-modal__graficas { grid-template-columns: 1fr; padding: 1rem; } .ventas-modal__cabecera h2 { font-size: 1.25rem; } }
@media (max-width: 380px) { .species-grid { grid-template-columns: 1fr; } }
/* Resto de especies: tarjeta apaisada a todo el ancho, para que no quede sola con dos huecos al lado */
@media (min-width: 720px) {
  .species-card--ancha { grid-column: 1 / -1; flex-direction: row; }
  .species-card--ancha .species-card__media { flex: 0 0 calc((100% - 3rem) / 3); align-self: center; border-bottom: 0; }
  .species-card--ancha .species-card__body { justify-content: center; border-left: 1px solid var(--color-line); }
  .species-card--ancha .species-card__ver { width: auto; }
}

/* ---------- Documentos en lista / alta comprador ---------- */
.doc-grid--pair { grid-template-columns: repeat(2, minmax(0, 300px)); justify-content: center; gap: 3rem; }
@media (max-width: 560px) { .doc-grid--pair { grid-template-columns: minmax(0, 300px); gap: 1.5rem; } }
.contact-callout { display: flex; justify-content: center; }
.contact-callout .contact-list { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 2rem; }
.contact-callout .contact-list li { margin: 0; align-items: center; }
.contact-callout .contact-list svg { margin-top: 0; color: var(--color-brand); }
.contact-callout a { font-weight: 700; }
.doc-rows a { flex-wrap: wrap; row-gap: .1rem; }
.doc-row__title { flex: 1 1 260px; }
.doc-row__meta { font-size: .82rem; font-weight: 600; color: var(--color-muted); white-space: nowrap; }
/* Páginas sin texto, solo descargas (Alta como comprador): el bloque va centrado */
.prose.prose--center > *, .prose.prose--center > ul.link-list { margin-left: auto; margin-right: auto; }

/* ---------- Clientes / meteo ---------- */
.client-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.2rem; }
.client-logo { display: flex; align-items: center; justify-content: center; aspect-ratio: 200 / 157; background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
a.client-logo:hover { transform: translateY(-3px); box-shadow: var(--shadow-strong); border-color: var(--color-brand); }
.client-logo img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 480px) { .client-grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; } }
.link-list__plain { display: flex; align-items: center; min-height: 52px; padding: .7rem 1rem; background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius); color: var(--color-ink-soft); font-weight: 600; }
.meteo-widget { max-width: 100%; margin-top: 1rem; }
.meteo-widget iframe { display: block; width: 100%; border: 0; }
.meteo-source { margin: .6rem 0 2.5rem; font-size: .85rem; color: var(--color-muted); text-align: right; }

/* ---------- Contacto y formulario ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 2.5rem; align-items: start; }
.contact-info { background: var(--color-bg-light); border: 1px solid var(--color-line); border-radius: var(--radius); padding: 1.6rem; }
.contact-info h2, .contact-form h2 { font-size: 1.4rem; margin-bottom: 1.1rem; }
.contact-list--page li { margin-bottom: .9rem; }
.contact-list--page svg { color: var(--color-brand); }
.contact-list--page a { font-weight: 600; }
.contact-form { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius); padding: 1.6rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.form-group--full { grid-column: 1 / -1; }
.form-group label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: .35rem; color: var(--color-ink); }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"], .contact-form textarea {
  width: 100%; min-height: 46px; padding: .6rem .8rem; font: inherit; font-size: 16px; color: var(--color-ink);
  background: #fff; border: 1px solid var(--color-line-strong); border-radius: 6px; transition: border-color .2s, box-shadow .2s;
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--color-brand); box-shadow: 0 0 0 3px rgba(0, 76, 160, .18); }
.contact-form [aria-invalid="true"] { border-color: var(--color-red); box-shadow: 0 0 0 3px rgba(200, 48, 58, .15); }
.contact-form input[type="checkbox"][aria-invalid="true"] { outline: 2px solid var(--color-red); outline-offset: 2px; }
.honeypot-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-legal { margin: 1.3rem 0 1rem; padding: .85rem 1rem; font-size: .8rem; line-height: 1.55; color: var(--color-ink-soft); background: var(--color-bg-light); border: 1px solid var(--color-line); border-radius: 6px; }
.form-check label, .form-radios label { display: flex; align-items: flex-start; gap: .6rem; cursor: pointer; font-size: .9rem; min-height: 32px; }
.form-check input, .form-radios input { width: 20px; height: 20px; margin-top: .15rem; flex-shrink: 0; accent-color: var(--color-brand); }
.form-radios { border: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; margin: .6rem 0 1.2rem; }
.captcha-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.captcha-row img { border: 1px solid var(--color-line); border-radius: 6px; background: var(--color-bg-light); }
.captcha-refresh { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--color-line-strong); border-radius: 6px; background: #fff; color: var(--color-brand); cursor: pointer; }
.captcha-refresh:hover { border-color: var(--color-brand); background: var(--color-brand-soft); }
.captcha-refresh svg { width: 20px; height: 20px; }
.contact-form .captcha-row input[type="text"] { width: 150px; text-transform: uppercase; letter-spacing: 4px; }
.form-hint { margin-top: .5rem; font-size: .85rem; color: var(--color-muted); }
.form-submit { display: flex; justify-content: center; margin-top: 1.4rem; }
.form-submit .btn:disabled { opacity: .6; cursor: wait; }
.form-status { margin-top: 1rem; text-align: center; font-weight: 700; min-height: 1.5em; }
.form-status--ok { color: var(--color-ok); }
.form-status--error { color: var(--color-red-dark); }
.contact-map iframe { display: block; width: 100%; height: 420px; }
.contact-map { padding: 0; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .contact-form, .contact-info { padding: 1.2rem; }
  .contact-map iframe { height: 320px; }
}

/* ---------- Zonas táctiles mínimas de 44 px (revisión ui-ux-pro-max) ---------- */
.banner-hero__dots button { width: 44px; height: 44px; }
.banner-hero__dots { gap: 0; bottom: .5rem; }
.boat-card__reg { min-height: 44px; }
.contact-list a { display: inline-flex; align-items: center; min-height: 44px; }
.contact-list li { margin-bottom: .1rem; }
.contact-list svg { margin-top: .75rem; }
.contact-list li > span { padding: calc((44px - 1.7em) / 2) 0; }
.contact-list li > span:has(> a) { padding-bottom: 0; }
.contact-callout .contact-list svg { margin-top: 0; }
.footer-col li { margin-bottom: 0; }
.footer-col li a { display: inline-flex; align-items: center; min-height: 44px; }

/* Pie más compacto con ratón (Laura, 18/11/2026): en pantallas táctiles se mantienen los 44 px */
@media (pointer: fine) {
  .footer-col li a, #site-footer .contact-list a { min-height: 30px; }
  #site-footer .contact-list svg { margin-top: .4rem; }
  #site-footer .contact-list li > span { padding: calc((30px - 1.7em) / 2) 0; }
  #site-footer .contact-list li > span:has(> a) { padding-bottom: 0; }
}
