/* =====================================================================
   INSTAMAR — hoja de estilos única (EN + ES)
   Base reciclada de joseluisleiros.com: tokens, nav, selector de idioma,
   fade-in, responsive y accesibilidad. Paleta y componentes: Instamar.
   ===================================================================== */

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f5f8f7;
  --color-surface: #eaf1ee;
  --color-border: #dfe6e3;
  --color-text: #414b56;
  --color-text-muted: #5b6472;
  --color-heading: #0b1524;

  /* Verde Instamar. --accent para rellenos (4,5:1 con texto blanco),
     --accent-bright es el verde del mockup (#009B70) para iconos y hover,
     --accent-ink para texto verde pequeño sobre blanco. */
  --color-accent: #00875f;
  --color-accent-bright: #009b70;
  --color-accent-hover: #006f4e;
  --color-accent-ink: #00674a;
  --color-accent-soft: #e5f4ef;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1180px;
  --transition: 0.3s ease;
  --radius: 16px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: light;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--color-accent-ink);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--color-accent-hover); }

img { max-width: 100%; display: block; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
  font-family: var(--font-sans);
  color: var(--color-heading);
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.2rem, 1.4rem + 3.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
}

h3 {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
}

p { color: var(--color-text-muted); line-height: 1.7; }

.dot { color: var(--color-accent-bright); }

/* el cuadrado de marca como punto final del titular */
.h1-sq {
  display: inline-block;
  width: 0.16em;
  height: 0.16em;
  margin-left: 0.1em;
  border-radius: 0.028em;
  background: var(--color-accent-bright);
}

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 4.5rem 0; }

.section-alt { background-color: var(--color-bg-alt); }

.section-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-heading);
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
}

/* kicker con el táctil de marca delante */
.section-label::before {
  content: '';
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin-right: 0.35em;
  border-radius: 1.5px;
  background: var(--color-accent-bright);
  vertical-align: 0.11em;
}

/* ===== BOTONES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition),
              color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn--primary {
  background: var(--color-accent);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 135, 95, 0.18);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 135, 95, 0.24);
}

.btn--ghost {
  background: var(--color-bg);
  border-color: var(--color-border);
  color: var(--color-heading);
}

.btn--ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-ink);
  transform: translateY(-1px);
}

.btn--sm { padding: 0.7rem 1.25rem; font-size: 0.9rem; }

/* ===== ACCESIBILIDAD ===== */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--color-accent);
  color: #fff;
  border-radius: 0 0 6px 6px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 200;
  transition: top 0.2s ease;
}

.skip-nav:focus { top: 0; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ===== NAVEGACIÓN ===== */
.nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.nav.scrolled { border-bottom-color: var(--color-border); }

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Wordmark Instamar: ı sin punto + cuadrado verde como punto de la i */
.nav-logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-heading);
  margin-right: 2.5rem;
  flex-shrink: 0;
}

.logo-svg { display: block; height: 1.9em; width: auto; }
.logo-svg .logo-tittle {
  fill: var(--color-accent-bright);
  transform-box: fill-box;
  transform-origin: center;
}

/* magia mínima: el punto de la i saluda al pasar por el logo */
.nav-logo:hover .logo-tittle,
.footer-logo:hover .logo-tittle { animation: tittle-hop 0.5s cubic-bezier(0.3, 1.6, 0.4, 1); }

@keyframes tittle-hop {
  0% { transform: translateY(0); }
  40% { transform: translateY(-4.5px); }
  100% { transform: translateY(0); }
}
.footer-logo .logo-svg { height: 1.6em; }

/* TODO: sustituir por el SVG de marca. Mientras tanto, en oscuro el PNG se
   pasa a blanco entero (el isotipo pierde el verde). */

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
  margin-left: auto;
}

.nav-links > li { display: flex; align-items: center; }

.nav-links > li > a {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav-links > li > a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 50%;
  width: 0; height: 2px;
  background: var(--color-accent-bright);
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-links > li > a:hover::after { width: 100%; left: 0; }
.nav-links > li > a:hover { color: var(--color-heading); }

.nav-right { display: flex; align-items: center; gap: 0.25rem; margin-left: 2rem; }

/* CTA permanente en la barra: el negocio entra por WhatsApp, así que la acción
   nunca queda fuera de pantalla. En móvil la cubre el botón flotante. */
.nav-cta {
  margin-left: 1.25rem;
  padding: 0.6rem 1.1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

/* Arriba del todo manda el botón del hero: duplicar el mensaje a 300px de
   distancia cansa. En cuanto el hero se va, la barra recoge la acción. */
.nav.cta-on .nav-cta { opacity: 1; visibility: visible; transform: none; }
.nav-cta svg { width: 18px; height: 18px; }

/* ===== HAMBURGUESA ===== */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  -webkit-tap-highlight-color: transparent;
}

.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--color-heading);
  margin: 5px 0;
  transition: all var(--transition);
  border-radius: 2px;
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== SELECTOR DE IDIOMA ===== */
.lang-selector { position: relative; margin-left: 0.5rem; }

.lang-selector__btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 1.5px solid var(--color-border);
  border-radius: 20px;
  padding: 8px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all var(--transition);
}

.lang-selector__btn:hover {
  border-color: var(--color-accent);
  color: var(--color-heading);
}

.lang-selector__btn svg { width: 12px; height: 12px; transition: transform var(--transition); }
.lang-selector.active .lang-selector__btn svg { transform: rotate(180deg); }

.lang-selector__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  min-width: 130px;
  overflow: hidden;
  z-index: 120;
}

.lang-selector.active .lang-selector__dropdown { display: block; }

.lang-selector__link {
  display: block;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: background var(--transition);
}

.lang-selector__link:hover { background: var(--color-bg-alt); color: var(--color-heading); }
.lang-selector__link--active { font-weight: 700; color: var(--color-heading); background: var(--color-bg-alt); }

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: calc(72px + 3.5rem) 0 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: center;
}

.hero-claim { position: relative; z-index: 2; padding-bottom: 3rem; }

.hero-claim h1 { margin-bottom: 1.5rem; max-width: 14ch; }

/* Señal de actividad: verdadera (estamos en servicio) y con pulso sutil */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent-ink);
  background: var(--color-accent-soft);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  margin-bottom: 1.4rem;
}

.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent-bright); position: relative; flex-shrink: 0; }

.pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--color-accent-bright);
  opacity: 0;
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  0% { transform: scale(0.5); opacity: 0.8; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { opacity: 0; }
}

.hero-sub {
  font-size: 1.05rem;
  max-width: 38ch;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Media del hero: plancha de puerto al fondo + producto recortado encima.
   El degradado usa --color-bg, así que funciona igual en claro y en oscuro. */
/* La imagen va en flujo y conserva su proporción: la foto es una composición
   única (producto + puerto), recortarla con object-fit se come el buque. */
.hero-media {
  position: relative;
  align-self: center;
  display: block;
}

.hero-media__bg {
  width: 100%;
  height: auto;
  display: block;
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--color-bg) 0%, rgba(255, 255, 255, 0) 38%),
              linear-gradient(to top, var(--color-bg) 0%, rgba(255, 255, 255, 0) 14%);
  pointer-events: none;
}

.hero-media__fg {
  position: relative;
  z-index: 1;
  width: 100%;
  object-fit: contain;
  object-position: bottom center;
}

/* Sangrado del hero hasta el borde derecho de la ventana */
@media (min-width: 901px) {
  .hero-media { margin-right: min(0px, calc((var(--max-width) - 100vw) / 2 - 2rem)); }
}

/* ===== TIRA DE CATEGORÍAS ===== */
.categories {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.category {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 1.5rem 1rem;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--color-heading);
  position: relative;
}

.category + .category::before {
  content: '';
  position: absolute;
  left: 0; top: 25%;
  height: 50%;
  border-left: 1px solid var(--color-border);
}

.category svg {
  width: 28px; height: 28px;
  color: var(--color-accent-bright);
  flex-shrink: 0;
  stroke-width: 1.5;
}

/* ===== DÓNDE COMPRAMOS (tira tipográfica; nombres, no logos) ===== */
.shops { padding: 2.75rem 0; }

.shops-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.3rem 2.25rem;
  flex-wrap: wrap;
}

.shops-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.logo-wall { --lh: clamp(18px, 14px + 0.8vw, 24px); }

.logo-wall .logo {
  height: calc(var(--lh) * var(--f, 1));
  width: auto;
  max-width: 140px;
  object-fit: contain;
  transform: translateY(var(--ty, 0px));
  opacity: 0.55;
  filter: grayscale(1);
  transition: opacity 0.3s, filter 0.3s;
}

.logo-wall .logo:hover { opacity: 1; filter: grayscale(0); }

/* factores y nudges por logo — medidos con measure_logos.js, no a ojo */
.logo-wall .logo-amazon        { --f: 1.05; --ty: 2.8px; } /* la sonrisa cae bajo la caja */
.logo-wall .logo-decathlon     { --f: 0.95; }
.logo-wall .logo-mediamarkt    { --f: 0.9; --ty: -1.1px; }
.logo-wall .logo-elcorteingles { --f: 1.5; }               /* triángulo compacto → subir */
.logo-wall .logo-lidl          { --f: 1.55; }              /* emblema cuadrado */
.logo-wall .logo-mercadona     { --f: 1.0; }

/* remate abierto: la lista es ejemplo, no catálogo */
.shops-more {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* ===== LO MÁS PEDIDO (fila con aire de tienda) ===== */
.trending { padding: 3rem 0; }

.trend-top { display: flex; align-items: flex-start; justify-content: space-between; }

.trend-arrows { display: flex; gap: 0.4rem; }

.trend-arrows button {
  width: 34px; height: 34px;
  border: 1.5px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition), color var(--transition);
}

.trend-arrows button:hover { border-color: var(--color-accent); color: var(--color-accent-ink); }
.trend-arrows svg { width: 16px; height: 16px; }

.trend-row {
  list-style: none;
  display: flex;
  gap: 0.9rem;
  margin-top: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}

.trend-row::-webkit-scrollbar { display: none; }

.trend-card {
  min-width: 172px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-bg);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
}

.trend-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(11, 21, 36, 0.08); }

.trend-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.6rem;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.trend-card:hover .trend-img { transform: scale(1.05); }

/* con foto, el icono sobra */
.trend-card:has(.trend-img) .trend-ico { display: none; }

/* tarjeta terminal: el catálogo no acaba aquí */
.trend-more { padding: 0; background: var(--color-accent-soft); border-color: transparent; }

.trend-more a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.3rem;
  width: 100%; height: 100%;
  padding: 1.1rem 1.15rem;
}

.trend-plus {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--color-bg);
  color: var(--color-accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.35rem;
}

.trend-plus svg { width: 18px; height: 18px; }
.trend-more b { font-size: 0.9rem; font-weight: 700; color: var(--color-accent-ink); }

.trend-ico { color: var(--color-accent-bright); margin-bottom: 0.35rem; }
.trend-ico svg { width: 26px; height: 26px; }
.trend-card b { font-size: 0.9rem; font-weight: 700; color: var(--color-heading); line-height: 1.3; }
.trend-price { font-size: 0.82rem; font-weight: 600; color: var(--color-accent-ink); }

/* ===== TARJETAS DE AUDIENCIA ===== */
.audiences {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

.audience {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg-alt);
  min-height: 17rem;
  display: flex;
  align-items: center;
  isolation: isolate;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.audience:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(11, 21, 36, 0.10); }

.audience img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.audience:hover img { transform: scale(1.03); }

.audience::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to right,
    var(--color-bg-alt) 0%,
    var(--color-bg-alt) 38%,
    rgba(245, 248, 247, 0.72) 62%,
    rgba(245, 248, 247, 0) 88%);
}

.audience-text { padding: 2.25rem; max-width: 60%; }
.audience-text h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 800; margin-bottom: 0.75rem; }
.audience-text p { font-size: 0.95rem; margin-bottom: 1.5rem; max-width: 22ch; }

/* ===== CÓMO FUNCIONA ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.step { display: flex; align-items: flex-start; gap: 1rem; position: relative; }

.step-icon {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-bright);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background var(--transition), border-color var(--transition);
}

.step:hover .step-icon {
  transform: translateY(-4px);
  background: var(--color-accent-soft);
  border-color: var(--color-accent-bright);
}

.step-icon svg { width: 24px; height: 24px; stroke-width: 1.6; }

.step-body h3 { font-size: 0.98rem; font-weight: 700; margin-bottom: 0.35rem; }
.step-body p { font-size: 0.9rem; line-height: 1.55; }

/* ===== NOSOTROS ===== */
.about { max-width: 60ch; }
.about h2 { margin-bottom: 1.25rem; }
.about p { font-size: 1.05rem; }

.about-points { list-style: none; margin-top: 1.75rem; display: grid; gap: 0.85rem; }

.about-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.98rem;
  color: var(--color-text);
}

.about-points svg { width: 20px; height: 20px; color: var(--color-accent-bright); flex-shrink: 0; margin-top: 3px; }

/* ===== NOSOTROS: texto + aéreo del muelle ===== */
.about-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.about-photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

/* ===== RESEÑAS (burbujas estilo chat) ===== */
#resenas .container { text-align: center; }
.reviews-title { margin-bottom: 2rem; }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* con 3 reseñas, el paso intermedio de 2 columnas deja una huérfana: se salta */
@media (max-width: 880px) {
  .reviews-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
}

.reviews-grid { margin-top: 2.5rem; }

.review {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-bg);
  text-align: left;
  height: 100%;
}

.review-head { display: flex; align-items: center; gap: 0.75rem; }

.review-avatar {
  position: relative;
  overflow: hidden;
  width: 42px; height: 42px;
  border-radius: 22%;
  border: 2px solid var(--color-bg);
  box-shadow: 0 0 0 2px var(--color-accent-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.review-avatar img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.review:hover .review-avatar img { transform: scale(1.07); }

.review-id { display: flex; flex-direction: column; line-height: 1.35; }
.review-id b { font-size: 0.92rem; color: var(--color-heading); }
.review-id i { font-style: normal; font-size: 0.78rem; color: var(--color-text-muted); }

.review blockquote {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.6;
}

/* ===== BANDA CTA ===== */
.cta-band {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2.25rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.cta-band h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); margin: 0; }

/* ===== GARANTÍAS: prueba social sustituta en fase cero clientes ===== */
.pledges { padding: 3.5rem 0; }

.pledges-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.pledges-grid li { display: flex; gap: 0.9rem; align-items: flex-start; }

.pledge-ico {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--color-accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pledge-ico svg { width: 20px; height: 20px; }

.pledges-grid b { font-size: 0.98rem; font-weight: 700; color: var(--color-heading); display: block; margin-bottom: 0.25rem; }
.pledges-grid p { font-size: 0.9rem; line-height: 1.55; }

/* ===== CONTACTO: acorde final oscuro ===== */
.contact-section {
  text-align: center;
  background: var(--color-heading);
  padding: 5.5rem 0;
}

.contact-section h2 { color: #fff; }

.contact-section > .container > p {
  margin: 1rem auto 2.25rem;
  max-width: 52ch;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.72);
}

.contact-links { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.contact-links .btn { min-width: 240px; }

.contact-section .btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.contact-section .btn--ghost:hover {
  border-color: var(--color-accent-bright);
  color: var(--color-accent-bright);
}

/* ===== PÁGINAS LEGALES ===== */
.legal-page p { margin-bottom: 0; font-size: 0.97rem; }
.legal-page h1 { font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.4rem); }

/* ===== FOOTER ===== */
.footer {
  background: var(--color-heading);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer { padding: 2.75rem 0; }

.footer .container {
  display: grid;
  grid-template-columns: 1fr auto;
  row-gap: 0.9rem;
  align-items: center;
}

.footer-logo { grid-column: 1; grid-row: 1; }
.footer-links { grid-column: 2; grid-row: 1; justify-self: end; display: flex; gap: 1.5rem; }
.footer-tagline {
  grid-column: 1;
  grid-row: 2;
  max-width: 44ch;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
}
.footer-copy { grid-column: 2; grid-row: 2; justify-self: end; align-self: end; }

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-links a:hover { color: #fff; }

.footer-brand { display: flex; flex-direction: column; gap: 0.7rem; max-width: 44ch; }

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
}

.footer-logo { font-size: 1.1rem; font-weight: 800; letter-spacing: -0.03em; color: #fff; }
.footer-copy { font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); }

/* ===== BOTÓN FLOTANTE WHATSAPP (móvil) ===== */
.wa-float {
  display: none;
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 900;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { color: #fff; background: var(--color-accent-hover); }

/* ===== PUERTOS ===== */
.port-stats {
  list-style: none;
  display: flex;
  gap: 2.75rem;
  margin-top: 1.9rem;
  flex-wrap: wrap;
}

.port-stats b {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-heading);
  line-height: 1.2;
}

.port-stats span { font-size: 0.85rem; color: var(--color-text-muted); }

/* el titular respira en una linea; el parrafo si va capado por legibilidad (45-75ch) */
.ports-title { max-width: 40ch; }
.ports-intro { margin-top: 1rem; max-width: 62ch; }

/* Rejilla de puertos: mini tarjetas con foto de cada ciudad */
.portgrid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.9rem;
  margin-top: 2.5rem;
  max-width: 1050px;
}

.portcard {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-bg);
}

.portcard img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.portcard:hover img { transform: scale(1.04); }

/* Leixões: foto en duotono verde de acento con el sello coming soon encima */
.portcard-media { position: relative; display: block; overflow: hidden; }
.portcard--soon img { filter: grayscale(1); }
.soon-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 135, 95, 0.55);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

/* el puerto aún no activo lleva el marcador en gris */

/* banda del nombre: sólida, con el cuadrado de marca como marcador */
.portcard b {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-heading);
  border-top: 1px solid var(--color-border);
}

.portcard b::before {
  content: '';
  width: 0.42em;
  height: 0.42em;
  border-radius: 1.5px;
  background: var(--color-accent-bright);
  flex-shrink: 0;
}

/* el puerto aún no activo lleva el marcador en gris */
.portcard--soon b::before { background: #b8c0bd; }

.ports-growth {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1.6rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--color-accent-ink);
}

.ports-growth .pulse { margin-top: 0.42em; }

/* El "¿otro puerto?" es captación: banda visible con acción, no una nota perdida */
.ports-ask {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.1rem 1.4rem;
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent-bright);
  border-radius: 12px;
  background: var(--color-bg);
}

.ask-ico { color: var(--color-accent-bright); flex-shrink: 0; display: flex; }
.ask-ico svg { width: 26px; height: 26px; }

.ports-ask p { font-size: 0.98rem; color: var(--color-text); margin: 0; margin-right: auto; }
.ports-ask .btn { flex-shrink: 0; }

/* en anchos medios el wrap deja icono y boton huerfanos: se apila a la izquierda */
@media (max-width: 940px) {
  .ports-ask { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
}

/* la etiqueta Cruise se trunca con nombres largos en anchos medios: sobra
   (el filtro y el aro verde del avatar ya marcan los cruceros) */
@media (max-width: 780px) {
  .calls-tag { display: none; }
}

.calls { margin-top: 3rem; }
.calls-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.calls-label {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--color-heading);
}

.calls-filter {
  display: flex;
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.calls-filter button {
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.calls-filter button.active {
  background: var(--color-accent);
  color: #fff;
}

.calls-head,
.calls-list li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1.4fr) minmax(0, 0.65fr) 110px 120px;
  gap: 1rem;
  align-items: center;
}

.calls-head span { white-space: nowrap; }
.calls-head span:first-child { grid-column: 1 / 3; }

.calls-head {
  padding: 0 calc(0.25rem + var(--sbw, 0px)) 0.5rem 0.25rem;
  border-bottom: 2px solid var(--color-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.calls-head-eta { text-align: right; margin-right: -0.1em; }

.calls-list {
  list-style: none;
  max-height: 21rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  /* degradado inferior: insinúa que hay más filas */
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 2.5rem), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 2.5rem), transparent);
}

.calls-list li {
  padding: 0.55rem 0.25rem;
  border-bottom: 1px solid var(--color-border);
}

.calls-list li[hidden] { display: none; }

/* los cruceros (cliente objetivo) destacan con el aro de marca */
.calls-list li[data-type="passenger"] .calls-avatar {
  box-shadow: 0 0 0 2px var(--color-bg), 0 0 0 4px var(--color-accent-bright);
}

.calls-avatar {
  position: relative;
  overflow: hidden;
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.calls-avatar img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.calls-list b {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-heading);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calls-tag {
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-ink);
  background: var(--color-accent-soft);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  margin-left: 0.55rem;
  vertical-align: 1px;
}

.calls-port { font-size: 0.88rem; color: var(--color-text-muted); }
.calls-crew { font-size: 0.88rem; color: var(--color-text-muted); text-align: right; font-variant-numeric: tabular-nums; }
.calls-head-crew { text-align: right; margin-right: -0.1em; }

.calls-when {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent-ink);
  text-align: right;
  white-space: nowrap;
}

.ports-soon-label {
  margin-top: 2.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.ports--soon { margin-top: 0.85rem; }

.ports--soon li {
  border-style: dashed;
  background: transparent;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ===== EQUIPO ===== */
/* Sección centrada: los tres dirigen, el equipo de operaciones debajo */
#equipo .container { text-align: center; }
#equipo .section-label { margin-bottom: 1.25rem; }

.who-title { margin-bottom: 1rem; }
.who-text { max-width: 58ch; font-size: 1.05rem; margin: 0 auto; }

.team {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  justify-content: center;
  gap: 2.5rem 4rem;
  margin-top: 3rem;
}

/* con 4 miembros, el paso a 3+1 deja a uno solo abajo: se salta a 2x2 */
@media (max-width: 880px) {
  .team { grid-template-columns: repeat(2, max-content); gap: 2rem 3rem; }
}

.tmember {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 150px;
}

.tavatar {
  width: 124px; height: 124px;
  border-radius: 18%;
  object-fit: cover;
  margin-bottom: 0.6rem;
  /* aro corporativo: borde verde con un respiro blanco entre foto y aro */
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 2.5px var(--color-accent-bright);
}

/* Hueco para quien aún no tiene foto: inicial sobre verde suave */
.tavatar--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-soft);
  color: var(--color-accent-ink);
  font-weight: 800;
  font-size: 1.9rem;
}

.tmember b { font-size: 0.95rem; color: var(--color-heading); line-height: 1.3; }
.trole { font-size: 0.82rem; color: var(--color-text-muted); margin-top: 0.2rem; line-height: 1.45; }

.tlink {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent-ink);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}

.tlink:hover { border-color: var(--color-accent); }
/* ===== FAQ ===== */
/* centrado: vive entre dos secciones centradas (equipo y cierre) */
#faq .container { text-align: center; }
.faq-title { margin-bottom: 2rem; }
.faq-list { max-width: 760px; margin: 0 auto; text-align: left; }
.faq-list details { border-bottom: 1px solid var(--color-border); }
.faq-list details:first-child { border-top: 1px solid var(--color-border); }

.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-heading);
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: '';
  width: 9px; height: 9px;
  border-right: 2px solid var(--color-accent-bright);
  border-bottom: 2px solid var(--color-accent-bright);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-list details[open] summary::after { transform: rotate(225deg); }
.faq-list details p { padding: 0 1.5rem 1.25rem 0; max-width: 62ch; font-size: 0.97rem; }

/* ===== FOCUS ===== */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== ANIMACIONES ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible { opacity: 1; transform: translateY(0); }

.steps .fade-in:nth-child(2) { transition-delay: 0.08s; }
.steps .fade-in:nth-child(3) { transition-delay: 0.16s; }
.steps .fade-in:nth-child(4) { transition-delay: 0.24s; }

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1000px) {
  .categories-grid { grid-template-columns: 1fr 1fr; }
  .category:nth-child(3)::before { display: none; }
  .category:nth-child(3), .category:nth-child(4) { border-top: 1px solid var(--color-border); }

}

@media (max-width: 900px) {
  body.nav-open { overflow: hidden; }

  .portgrid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: 1fr; row-gap: 1.5rem; }

  /* muro de logos: rejilla 3×2 en cuanto la línea única no cabe */
  .shops { padding: 2.75rem 0; }

.shops-inner { display: grid; grid-template-columns: repeat(3, 1fr); justify-items: center; align-items: center; row-gap: 1.6rem; }
  .shops-label, .shops-more { grid-column: 1 / -1; justify-self: center; }

  .nav-inner { position: relative; }

  .nav-links {
    display: flex;
    position: fixed;
    top: 72px; left: 0;
    width: 100%;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 2rem;
    gap: 0;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

  .nav-links.active { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-links > li > a::after { display: none; }
  .nav-links > li > a { display: block; padding: 0.6rem 0; font-size: 1rem; }
  .nav-hamburger { display: block; }
  .nav-right { margin-left: auto; }

  .hero { padding-top: calc(72px + 2rem); }
  .hero-grid { grid-template-columns: 1fr; gap: 1rem; min-height: 0; }
  .hero-claim { padding-bottom: 0; }
  .hero-claim h1 { max-width: none; }
  .hero-sub { max-width: none; }
  .hero-media { margin: 0 -2rem; }

  .audiences { grid-template-columns: 1fr; }
  .about-split { grid-template-columns: 1fr; gap: 1.75rem; }
  .about-photo { order: -1; }
  .audience-text { max-width: 65%; }

}

@media (max-width: 640px) {
  section { padding: 3rem 0; }
  .container { padding: 0 1.25rem; }
  .hero-media { margin: 0 -1.25rem; }

  .nav-inner { padding: 0 1.25rem; }
  .nav-cta { display: none; }

  .portgrid { grid-template-columns: repeat(2, 1fr); }

  .categories-grid { grid-template-columns: 1fr; }
  .category { justify-content: flex-start; padding: 1.1rem 0.25rem; }
  .category::before { display: none; }
  .category + .category { border-top: 1px solid var(--color-border); }

  .steps { grid-template-columns: 1fr; row-gap: 1.5rem; }

  .audience { min-height: 0; }
  .audience-text { max-width: 100%; padding: 1.75rem 1.5rem; }
  .audience-text p { max-width: none; }
  .audience::before {
    background: linear-gradient(to right, var(--color-bg-alt) 0%, rgba(245, 248, 247, 0.82) 70%, rgba(245, 248, 247, 0.6) 100%);
  }

  .pledges-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .contact-links { flex-direction: column; align-items: stretch; }
  .contact-links .btn { width: 100%; }

  .ports li { padding: 0.6rem 1rem; font-size: 0.9rem; }
  .trend-card { min-width: 150px; }
  .trend-arrows { display: none; }

  .calls-head, .calls-list li { grid-template-columns: 34px minmax(0, 1fr) 96px; }
  .calls-head span:nth-child(2), .calls-port, .calls-head-crew, .calls-crew { display: none; }
  .calls-head-eta { grid-column: 3; }
  .calls-list .calls-when { grid-column: 3; }
  .port-stats { gap: 2rem; }
  .team { gap: 1.5rem 1.25rem; justify-content: center; }

  .footer .container { grid-template-columns: 1fr; row-gap: 1rem; }
  .footer-links, .footer-copy { grid-column: 1; justify-self: start; }
  .footer-links { grid-row: 3; }
  .footer-copy { grid-row: 4; }

  .wa-float { display: flex; }
}
