/* ============================================================
   Costa Inteligente — hoja de estilos principal
   1. Tokens y base
   2. Utilidades y componentes compartidos
   3. Encabezado y navegación
   4. Secciones de la página principal
   5. Páginas secundarias
   6. Pie de página
   7. Responsive
   8. Movimiento reducido / impresión
   ============================================================ */

/* ---------- 1. Tokens y base ---------- */
:root{
  /* Paleta alineada con el pack oficial de iconos v2 */
  --navy: #133d53;
  --navy-800: #0d3145;
  --navy-900: #092838;
  --navy-950: #06202f;
  --teal: #00bfa5;
  --teal-600: #009c87;
  --teal-050: #e2f8f4;
  --ocean: #0e7c9b;
  --orange: #ff7a32;          /* acento de marca (pack de iconos) */
  --orange-strong: #f96f22;   /* fondo de botón en estado hover */
  --orange-600: #bd450b;      /* naranja legible como texto (5.2:1 sobre blanco) */

  --ink: #0f3145;
  --body: #4d6c7c;
  --muted: #5a7583;

  --surface: #ffffff;
  --surface-2: #f2f9fb;
  --surface-3: #e6f2f6;
  --line: #d7e6ec;
  --line-strong: #bcd4dd;

  --shadow-sm: 0 1px 2px rgba(9, 40, 56, .06), 0 4px 12px rgba(9, 40, 56, .05);
  --shadow-md: 0 2px 4px rgba(9, 40, 56, .05), 0 14px 34px rgba(9, 40, 56, .09);
  --shadow-lg: 0 30px 70px rgba(6, 32, 47, .22);

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 26px;

  --header-h: 72px;
  --container: 1200px;
  --gutter: clamp(1.1rem, 4vw, 2rem);

  /* Colores por defecto del sprite de iconos */
  --ic-1: var(--navy);
  --ic-2: var(--teal);

  --ease: cubic-bezier(.22, .61, .36, 1);
  color-scheme: light;
}

*,
*::before,
*::after{ box-sizing: border-box; }

html{
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.25rem);
  -webkit-text-size-adjust: 100%;
}

body{
  margin: 0;
  color: var(--body);
  background: var(--surface);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.62;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-locked{ overflow: hidden; }
[hidden]{ display: none !important; }

img,
svg,
video,
picture{ display: block; max-width: 100%; }
img{ height: auto; }

a{ color: inherit; text-decoration: none; }
button,
input,
select,
textarea{ font: inherit; color: inherit; }
button{ cursor: pointer; background: none; border: 0; }
ul,
ol{ margin: 0; padding: 0; list-style: none; }

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd{ margin: 0; }

h1,
h2,
h3,
h4{
  color: var(--ink);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.018em;
  text-wrap: balance;
}

h1{ font-size: clamp(2.1rem, 1.35rem + 3.2vw, 3.9rem); line-height: 1.06; }
h2{ font-size: clamp(1.65rem, 1.2rem + 1.85vw, 2.65rem); }
h3{ font-size: 1.09rem; line-height: 1.3; }

p{ text-wrap: pretty; }

::selection{ color: #fff; background: var(--ocean); }

:where(a,
button,
input,
select,
textarea,
summary,
[tabindex]):focus-visible{
  outline: 3px solid var(--ocean);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link{
  position: fixed;
  z-index: 200;
  top: .75rem;
  left: .75rem;
  padding: .7rem 1.1rem;
  color: #fff;
  background: var(--navy-900);
  border-radius: 999px;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}
.skip-link:focus{ transform: translateY(0); }

.sr-only{
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- 2. Utilidades y componentes ---------- */
.container{
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section{ padding: clamp(3.5rem, 2rem + 6vw, 6.5rem) 0; }
.section-tint{ background: var(--surface-2); }

.section-head{
  max-width: 46rem;
  margin: 0 auto clamp(2rem, 1.2rem + 2.4vw, 3.25rem);
  text-align: center;
}
.section-lead{
  margin-top: .9rem;
  font-size: clamp(1rem, .96rem + .2vw, 1.1rem);
}

.eyebrow{
  display: block;
  margin-bottom: .7rem;
  color: var(--ocean);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.eyebrow-orange{ color: var(--orange-600); }
.eyebrow-light{ color: var(--teal); }

.section-actions{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .85rem;
  margin-top: clamp(1.75rem, 1rem + 2vw, 2.75rem);
}

.ic{
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ic *{ vector-effect: non-scaling-stroke; }

/* Botones */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .6rem 1.15rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 700;
  text-align: center;
  transition: background-color .18s var(--ease), border-color .18s var(--ease),
              color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
.btn .ic{ width: 1.05rem; height: 1.05rem; --ic-1: currentColor; --ic-2: currentColor; }
.btn-lg{ min-height: 54px; padding: .75rem 1.55rem; font-size: 1rem; }

.btn-primary{
  color: #fff;
  background: var(--teal-600);
  box-shadow: 0 8px 20px rgba(0, 156, 135, .24);
}
.btn-primary:hover{ background: #007d6d; box-shadow: 0 12px 26px rgba(0, 156, 135, .32); }

.btn-outline{
  color: var(--navy);
  border-color: var(--line-strong);
  background: var(--surface);
}
.btn-outline:hover{ border-color: var(--ocean); color: var(--ocean); background: var(--teal-050); }

.btn-light{
  color: var(--navy-900);
  background: #fff;
  border-color: rgba(255, 255, 255, .8);
}
.btn-light:hover{ background: var(--teal-050); }

.btn:active{ transform: translateY(1px); }

/* Animación de entrada.
   Solo se oculta cuando JavaScript está disponible: sin JS el contenido
   se muestra completo desde el primer render. */
.js .reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-visible{ opacity: 1; transform: none; }

/* ---------- 3. Encabezado y navegación ---------- */
.site-header{
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgba(255, 255, 255, .86);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease), background-color .25s var(--ease);
}
.site-header.is-scrolled{
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(9, 40, 56, .07);
}

.nav-shell{
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: var(--container);
  min-height: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  flex: none;
  margin-right: auto;
}
.brand img{ width: 44px; height: auto; }
.brand{ min-height: 44px; }
.brand-text{ display: grid; line-height: 1.08; }
.brand-text strong{ color: var(--navy-900); font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; }
.brand-text small{ color: var(--ocean); font-size: .74rem; font-weight: 700; letter-spacing: .04em; }

.nav-menu{
  display: flex;
  align-items: center;
  gap: clamp(.35rem, .9vw, 1.05rem);
}
.nav-menu > a{
  padding: .5rem .25rem;
  color: var(--navy);
  font-size: .92rem;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.nav-menu > a:hover{ color: var(--ocean); }
.nav-menu > a.is-active{ color: var(--ocean); border-bottom-color: var(--teal); }

.nav-menu-actions{
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-left: clamp(.4rem, 1vw, 1rem);
}
.nav-menu-actions .btn{ min-height: 42px; padding: .45rem 1rem; font-size: .9rem; }

.nav-toggle{
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--navy);
}
.nav-toggle .ic{ width: 1.4rem; height: 1.4rem; }
.nav-toggle [hidden]{ display: none !important; }

/* ---------- 4. Secciones ---------- */

/* Hero */
.hero{
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: min(760px, calc(100svh - var(--header-h)));
  padding: clamp(3rem, 2rem + 6vw, 5.5rem) 0 clamp(3rem, 2rem + 5vw, 5rem);
  color: #fff;
  background: var(--navy-950);
  overflow: hidden;
}
.hero-bg{ position: absolute; inset: 0; z-index: -2; }
.hero-bg img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 42%;
  /* Acercamiento único de entrada, sin movimiento permanente */
  animation: heroIntro 2.4s var(--ease) both;
}
@keyframes heroIntro {
  from { transform: scale(1.07); opacity: .6; }
  to   { transform: scale(1); opacity: 1; }
}
.hero-veil{
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(6, 32, 47, .94) 8%, rgba(6, 32, 47, .78) 44%, rgba(6, 32, 47, .34) 78%),
    linear-gradient(0deg, rgba(6, 32, 47, .82), rgba(6, 32, 47, .1) 48%),
    radial-gradient(70% 60% at 82% 18%, rgba(0, 191, 165, .26), transparent 70%);
}

.hero-inner{
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
}
.hero-copy{ max-width: 42rem; }
.hero h1{ color: #fff; }
.hero-lead{
  max-width: 36rem;
  margin-top: 1.15rem;
  color: rgba(233, 247, 250, .9);
  font-size: clamp(1.02rem, .97rem + .35vw, 1.2rem);
}
.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2rem;
}

.hero-tags{
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .55rem;
  margin-top: 1.9rem;
}
.hero-tags li{
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  padding: .4rem .8rem .4rem .6rem;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: #eaf7fa;
  font-size: .85rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
}
.hero-tags .ic{ width: 1.05rem; height: 1.05rem; --ic-1: #cfeef6; --ic-2: var(--teal); }

.store-row{ display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.store-btn{
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: .5rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-weight: 700;
}

.hero-card{
  padding: 1.35rem;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--r-xl);
  background: rgba(8, 38, 54, .58);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}
.hero-card-title{
  margin-bottom: 1rem;
  color: var(--teal);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hero-card-list{ display: grid; gap: .85rem; }
.hero-card-list li{ display: flex; gap: .8rem; align-items: flex-start; }
.hero-card-list .ic{ margin-top: .15rem; --ic-1: #b9e4f0; --ic-2: var(--teal); }
.hero-card-list span{ display: grid; gap: .1rem; color: rgba(214, 236, 243, .78); font-size: .86rem; line-height: 1.45; }
.hero-card-list strong{ color: #fff; font-size: .95rem; font-weight: 700; }

/* Audiencia */
.audience-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: clamp(1.1rem, .7rem + 1.4vw, 1.75rem);
}
.audience-card{
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .28s var(--ease), transform .28s var(--ease), border-color .28s var(--ease);
}
.audience-card:hover{
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}
.audience-media{ aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-3); }
.audience-media img{ width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.audience-card:hover .audience-media img{ transform: scale(1.04); }
.audience-body{ display: flex; flex-direction: column; gap: .75rem; padding: clamp(1.25rem, 1rem + 1vw, 1.9rem); }
.audience-body h3{ font-size: clamp(1.2rem, 1.05rem + .5vw, 1.5rem); }
.audience-body .btn{ margin-top: .5rem; align-self: flex-start; }

/* Son exactamente dos tarjetas: con auto-fit quedaba una columna vacía
   en pantallas anchas. */
@media (min-width: 860px) {
  .audience-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.feature-icon .ic{ width: 1.5rem; height: 1.5rem; }

/* Planea tu salida */
.plan-layout{
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: start;
  gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
}
.plan-steps{ display: grid; gap: .8rem; }
.plan-step{
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.plan-step:hover{ border-color: rgba(0, 191, 165, .5); transform: translateX(4px); }
.plan-num{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: .92rem;
  font-weight: 800;
}
.plan-step h3{ display: flex; align-items: center; gap: .5rem; margin-bottom: .3rem; }
.plan-step h3 .ic{ width: 1.2rem; height: 1.2rem; }
.plan-step p{ font-size: .92rem; }

.plan-aside{ display: grid; gap: 1.1rem; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.plan-figure{
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.plan-figure img{ width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.plan-figure figcaption{ padding: .85rem 1rem; color: var(--muted); font-size: .85rem; }

.species-strip{
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.species-title{ margin-bottom: .8rem; color: var(--navy); font-size: .95rem; font-weight: 700; }
.species-strip ul{ display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem; }
.species-strip li{ display: grid; gap: .35rem; text-align: center; }
.species-strip img{
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--r-sm);
  background: var(--surface-3);
}
.species-strip span{ color: var(--navy); font-size: .78rem; font-weight: 600; }
.species-note{ margin-top: .85rem; color: var(--muted); font-size: .8rem; }

/* Cómo funciona */
.how-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: clamp(1rem, .7rem + 1vw, 1.4rem);
  counter-reset: how;
}
.how-card{
  position: relative;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.how-card::after{
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--ocean));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.how-card:hover::after{ transform: scaleX(1); }
.how-num{
  display: block;
  margin-bottom: .55rem;
  color: rgba(14, 124, 155, .22);
  font-size: clamp(2.4rem, 2rem + 1.6vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
}
.how-card h3{ margin-bottom: .5rem; font-size: 1.2rem; }
.how-card p{ font-size: .95rem; }

/* Los tres pasos ocupan exactamente tres columnas desde tableta:
   con auto-fit quedaba una pista vacía en pantallas anchas. */
@media (min-width: 700px) {
  .how-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* La plataforma / carrusel */
.app{
  color: #eaf6f9;
  background: radial-gradient(90% 70% at 12% 0%, #124559 0%, var(--navy-900) 46%, var(--navy-950) 100%);
}
.app h2,
.app h3{ color: #fff; }
.app .section-lead,
.app p{ color: rgba(213, 236, 243, .8); }

/* Capturas de la aplicación */
.shot{
  flex: 0 0 min(15.5rem, 68vw);
  scroll-snap-align: start;
  display: grid;
  align-content: start;
  gap: .55rem;
}
.shot-frame{
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 9 / 19.5;
  margin-bottom: .55rem;
  padding: 7px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 26px;
  background: linear-gradient(170deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05));
  box-shadow: 0 20px 44px rgba(0, 0, 0, .34);
}
.shot-frame img{
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: cover;
  background: var(--navy-900);
}
/* Estado mientras la captura real no está disponible */
.shot-frame.is-pending{
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(0, 191, 165, .2), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .04));
}
.shot-placeholder{
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .1);
}
.shot-placeholder .ic{ width: 2rem; height: 2rem; --ic-1: #b7dbe6; --ic-2: var(--teal); }
.shot h3{ font-size: 1rem; }
.shot p{ font-size: .88rem; }

.carousel{ margin-top: clamp(1.5rem, 1rem + 1.5vw, 2rem); }
.carousel-viewport{
  display: flex;
  gap: .9rem;
  padding-bottom: .35rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.carousel-viewport::-webkit-scrollbar{ display: none; }
.carousel-viewport:focus-visible{ outline-offset: 6px; }
.carousel-track{ display: flex; gap: .9rem; }
.screen-icon .ic{ width: 1.4rem; height: 1.4rem; --ic-1: #cdeaf3; --ic-2: var(--teal); }

.carousel-controls{
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: 1.15rem;
}
.carousel-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), opacity .2s var(--ease);
}
.carousel-btn:hover:not(:disabled){ background: rgba(0, 191, 165, .24); border-color: var(--teal); }
.carousel-btn:disabled{ opacity: .35; cursor: not-allowed; }
.carousel-btn .ic{ --ic-1: currentColor; --ic-2: currentColor; }
[data-carousel-prev] .ic{ transform: rotate(180deg); }
.carousel-status{ color: rgba(206, 233, 241, .8); font-size: .85rem; font-weight: 600; }

/* Diferencia frente a un mapa convencional */
.diff-list{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: .8rem;
  max-width: 62rem;
  margin-inline: auto;
}
/* Cinco diferencias: 3 columnas en tabletas (3+2) y 5 en una fila en escritorio,
   evitando que quede una tarjeta huérfana. */
@media (min-width: 700px) and (max-width: 1119px) {
  .diff-list{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1120px) {
  .diff-list{ grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.diff-item{
  display: grid;
  justify-items: center;
  align-content: start;
  gap: .7rem;
  padding: 1.4rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-size: .94rem;
  font-weight: 700;
  text-align: center;
  transition: border-color .22s var(--ease), transform .22s var(--ease);
}
.diff-item:hover{ border-color: rgba(0, 191, 165, .5); transform: translateY(-3px); }
.diff-item .ic{
  width: 2.6rem;
  height: 2.6rem;
  padding: .55rem;
  border-radius: 14px;
  background: var(--teal-050);
}

/* Franja de Nosotros */
.about-strip{
  padding: clamp(2.25rem, 1.5rem + 2.5vw, 3.25rem) 0;
  background: var(--surface-2);
  border-top: 1px solid var(--line);
}
.about-strip-inner{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.about-strip-inner > div{ max-width: 46rem; }
.about-strip h2{ font-size: clamp(1.35rem, 1.15rem + .8vw, 1.75rem); margin-bottom: .6rem; }
.about-strip p{ font-size: .98rem; }
.about-strip .btn{ flex: none; }
.compare-list .ic{ margin-top: .15rem; width: 1.15rem; height: 1.15rem; --ic-1: var(--muted); --ic-2: var(--muted); }
.compare-list-check .ic{ --ic-1: var(--teal-600); --ic-2: var(--teal-600); }

/* Pesca responsable */
.safety{
  color: #eaf6f9;
  background:
    linear-gradient(150deg, rgba(6, 32, 47, .95), rgba(14, 124, 155, .82)),
    url("assets/img/pesca-barco-640.webp") center / cover no-repeat;
}
.safety h2,
.safety h3{ color: #fff; }
.safety .section-lead,
.safety p{ color: rgba(215, 237, 244, .84); }

.safety-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: .9rem;
}
.safety-card{
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .09);
  backdrop-filter: blur(8px);
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.safety-card:hover{ background: rgba(255, 255, 255, .14); border-color: rgba(0, 191, 165, .5); }
.safety-card .ic{ width: 1.6rem; height: 1.6rem; margin-bottom: .8rem; --ic-1: #cdeaf3; --ic-2: var(--teal); }
.safety-card h3{ margin-bottom: .35rem; font-size: 1rem; }
.safety-card p{ font-size: .88rem; }

.notice{
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  max-width: 54rem;
  margin: clamp(1.5rem, 1rem + 1.5vw, 2.25rem) auto 0;
  padding: 1.15rem 1.35rem;
  border: 1px solid rgba(255, 122, 50, .5);
  border-left-width: 4px;
  border-radius: var(--r-md);
  background: rgba(255, 122, 50, .12);
}
.notice .ic{ margin-top: .15rem; --ic-1: var(--orange); --ic-2: var(--orange); }
.notice p{ color: #fbeade; font-size: .92rem; }

/* Proveedores */
.tool-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: .8rem;
}
.tool-card{
  display: flex;
  align-items: center;
  gap: .8rem;
  min-height: 76px;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color .22s var(--ease), transform .22s var(--ease);
}
.tool-card:hover{ border-color: rgba(255, 122, 50, .5); transform: translateY(-3px); }
.tool-card .ic{ width: 1.4rem; height: 1.4rem; }
.tool-card h3{ font-size: .95rem; font-weight: 700; }

/* Rejillas de conteo fijo (6 herramientas, 6 actividades, 4 bloques de seguridad).
   Se usa doble clase para ganar en especificidad al auto-fit de la clase base,
   sin depender del orden en que aparezcan las reglas en la hoja. */
.tool-grid.tool-grid-6,
.activity-grid.activity-grid-6 { max-width: 68rem; margin-inline: auto; }

@media (min-width: 500px) {
  .tool-grid.tool-grid-6,
  .activity-grid.activity-grid-6,
  .safety-grid.safety-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 760px) {
  .tool-grid.tool-grid-6,
  .activity-grid.activity-grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1040px) {
  .safety-grid.safety-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Actividades */
.activity-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: clamp(.8rem, .6rem + .6vw, 1.1rem);
}
.activity-card{
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--navy-900);
  box-shadow: var(--shadow-sm);
  isolation: isolate;
}
.activity-card img{
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.activity-card::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 32, 47, 0) 34%, rgba(6, 32, 47, .88) 100%);
}
.activity-card h3{
  position: absolute;
  z-index: 1;
  inset: auto .95rem .9rem;
  color: #fff;
  font-size: 1rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .5);
}
.activity-card:hover img{ transform: scale(1.06); }

/* Presencia local */
.local-layout{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.75rem, 1rem + 3.5vw, 3.5rem);
  margin-top: clamp(2.5rem, 1.6rem + 3vw, 4.25rem);
  padding-top: clamp(2.25rem, 1.5rem + 2.5vw, 3.5rem);
  border-top: 1px solid var(--line);
}
.local-title{ font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); margin-bottom: .8rem; }
.place-list{ display: grid; gap: .6rem; margin-top: 1.5rem; }
.place-list li{
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
  color: var(--navy);
  font-size: .93rem;
  font-weight: 600;
}
.local-figure{
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.local-figure img{ width: 100%; }
.local-figure figcaption{ padding: .9rem 1.15rem; color: var(--muted); font-size: .87rem; }
.about-copy .btn{ margin-top: .4rem; }

/* Llamado final */
.cta{
  position: relative;
  padding: clamp(3.25rem, 2rem + 5vw, 5.5rem) 0;
  color: #fff;
  background:
    radial-gradient(80% 120% at 15% 0%, rgba(0, 191, 165, .34), transparent 62%),
    linear-gradient(120deg, var(--navy-900), var(--ocean) 130%);
  text-align: center;
}
.cta-inner{ max-width: 44rem; }
.cta h2{ color: #fff; }
.cta p{ margin-top: .9rem; color: rgba(219, 240, 246, .88); font-size: 1.05rem; }
.cta-actions{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .8rem;
  margin-top: 2rem;
}

/* Diálogo de disponibilidad de la app */
.app-dialog{
  position: fixed;
  inset: 0;
  width: min(30rem, calc(100% - 2rem));
  margin: auto;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.app-dialog::backdrop{ background: rgba(6, 32, 47, .58); backdrop-filter: blur(3px); }
.app-dialog h2{ font-size: 1.35rem; }
.app-dialog p{ margin-top: .8rem; font-size: .95rem; }
.app-dialog-actions{ display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.app-dialog-x{
  position: absolute;
  top: .85rem;
  right: .85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--navy);
}
.app-dialog-x:hover{ background: var(--surface-2); }

/* ---------- 5. Páginas secundarias ---------- */
.page-hero{
  position: relative;
  padding: clamp(3rem, 2rem + 4vw, 4.75rem) 0 clamp(2.5rem, 1.7rem + 3vw, 4rem);
  color: #fff;
  background:
    radial-gradient(70% 110% at 88% 6%, rgba(0, 191, 165, .3), transparent 64%),
    linear-gradient(110deg, var(--navy-950), var(--navy-800) 62%, var(--ocean) 150%);
}
.page-hero h1{ color: #fff; max-width: 22ch; }
.page-hero p{ max-width: 44rem; margin-top: 1rem; color: rgba(219, 240, 246, .86); font-size: 1.05rem; }

.breadcrumb{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  margin-bottom: 1.1rem;
  font-size: .85rem;
}
.breadcrumb a{ color: rgba(206, 233, 241, .85); font-weight: 600; }
.breadcrumb a:hover{ color: #fff; text-decoration: underline; }
.breadcrumb span[aria-current]{ color: var(--teal); font-weight: 700; }
.breadcrumb .sep{ color: rgba(206, 233, 241, .45); }

.prose{ max-width: 46rem; }
.prose > * + *{ margin-top: 1.05rem; }
.prose h2{ margin-top: 2.5rem; font-size: clamp(1.4rem, 1.2rem + .8vw, 1.85rem); }
.prose h3{ margin-top: 1.75rem; font-size: 1.12rem; }
.prose ul{ display: grid; gap: .55rem; }
.prose ul li{ position: relative; padding-left: 1.4rem; }
.prose ul li::before{
  content: "";
  position: absolute;
  top: .62em;
  left: .25rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}
.prose ol{ display: grid; gap: .55rem; counter-reset: p; }
.prose ol li{ position: relative; padding-left: 2rem; counter-increment: p; }
.prose ol li::before{
  content: counter(p);
  position: absolute;
  left: 0;
  top: .05em;
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--navy);
  font-size: .78rem;
  font-weight: 800;
}
.prose a:not(.btn){ color: var(--ocean); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose strong{ color: var(--ink); }
.prose .updated{ color: var(--muted); font-size: .88rem; }

/* Acordeón (FAQ) */
.faq-list{ display: grid; gap: .7rem; max-width: 50rem; margin-inline: auto; }
.faq-item{
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-item summary{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.25rem;
  color: var(--navy);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary::after{
  content: "";
  flex: none;
  width: .6rem;
  height: .6rem;
  border-right: 2px solid var(--ocean);
  border-bottom: 2px solid var(--ocean);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .25s var(--ease);
}
.faq-item[open] summary::after{ transform: rotate(-135deg) translateY(-2px); }
.faq-item p{ padding: 0 1.25rem 1.15rem; font-size: .95rem; }

/* Formularios */
.form-card{
  padding: clamp(1.35rem, 1.1rem + 1vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.field{ display: grid; gap: .38rem; margin-bottom: 1.05rem; }
.field > label,
.field > span{
  color: var(--navy);
  font-size: .9rem;
  font-weight: 700;
}
.field > label{ display: block; }
.field .hint{ color: var(--muted); font-size: .82rem; font-weight: 500; }
.field input,
.field select,
.field textarea{
  width: 100%;
  min-height: 48px;
  padding: .7rem .9rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea{ min-height: 130px; resize: vertical; }
.field input:hover,
.field select:hover,
.field textarea:hover{ border-color: var(--ocean); }
.field input:focus,
.field select:focus,
.field textarea:focus{
  border-color: var(--ocean);
  box-shadow: 0 0 0 3px rgba(14, 124, 155, .16);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea{ border-color: #c23c1c; }
.field-error{
  display: none;
  align-items: center;
  gap: .35rem;
  color: #a8331a;
  font-size: .84rem;
  font-weight: 600;
}
.field.has-error .field-error{ display: flex; }
.field-error::before{ content: "!"; display: grid; place-items: center; flex: none; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: #a8331a; color: #fff; font-size: .72rem; font-weight: 800; }

fieldset{ padding: 0; margin: 0 0 1.05rem; border: 0; }

.hp-field{ position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status{ min-height: 1.5rem; margin-top: .9rem; font-size: .92rem; font-weight: 600; }
.form-status.is-success{ color: #0b6b52; }
.form-status.is-error{ color: #a8331a; }
.form-status a{ color: inherit; text-decoration: underline; }

.form-actions{ display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin-top: 1.25rem; }
.form-actions .btn:disabled{ opacity: .6; cursor: progress; }

.field input[type="file"]{
  padding: .55rem .6rem;
  background: var(--surface-2);
  cursor: pointer;
}
.field input[type="file"]::file-selector-button{
  margin-right: .8rem;
  padding: .5rem .95rem;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.field input[type="file"]::file-selector-button:hover{ background: var(--navy-800); }
.draft-note .ic{ width: 1rem; height: 1rem; --ic-1: var(--teal-600); --ic-2: var(--teal-600); }

/* Tarjetas de contacto */
.contact-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: .8rem;
  margin-top: 1.5rem;
}
.contact-card{
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: .85rem;
  padding: 1.05rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.contact-card:hover{ border-color: var(--ocean); transform: translateY(-3px); }
.contact-card .ic{ width: 1.4rem; height: 1.4rem; }
.contact-card span{ display: grid; }
.contact-card small{ color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.contact-card strong{ color: var(--navy); font-size: .95rem; overflow-wrap: anywhere; }

/* Bloques informativos secundarios */
.info-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1rem;
}
.info-card{
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.info-card .ic{ width: 1.6rem; height: 1.6rem; margin-bottom: .8rem; }
.info-card h3{ margin-bottom: .4rem; }
.info-card p{ font-size: .93rem; }

.link-list{ display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.25rem; }
.link-list a{
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--navy);
  font-size: .88rem;
  font-weight: 600;
}
.link-list a:hover{ border-color: var(--ocean); color: var(--ocean); }
.link-list .ic{ width: .95rem; height: .95rem; --ic-1: currentColor; --ic-2: currentColor; }

/* ---------- 6. Pie de página ---------- */
.site-footer{
  padding: clamp(2.75rem, 2rem + 2.5vw, 4rem) 0 1.75rem;
  color: rgba(203, 227, 235, .78);
  background: var(--navy-950);
}
.footer-grid{
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 1rem + 2.5vw, 3rem);
}
.site-footer h2{ margin-bottom: 1rem; color: #fff; font-size: .82rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.site-footer .brand-text strong{ color: #fff; }
.site-footer .brand-text small{ color: var(--teal); }
.footer-brand p{ max-width: 26rem; margin-top: 1rem; font-size: .92rem; }

.social-list{ display: flex; gap: .5rem; margin-top: 1.25rem; }
.social-list a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.social-list a:hover{ background: rgba(0, 191, 165, .22); border-color: var(--teal); }
.social-list .ic{ --ic-1: #d3e9f0; --ic-2: var(--teal); }

.footer-nav,
.footer-contact{ display: grid; align-content: start; gap: .65rem; }
.footer-nav a,
.footer-contact a{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: rgba(203, 227, 235, .78);
  font-size: .92rem;
  transition: color .18s var(--ease);
}
.footer-nav a:hover,
.footer-contact a:hover{ color: var(--teal); }
.footer-contact .ic,
.footer-place .ic{ width: 1.05rem; height: 1.05rem; --ic-1: #9fc4d0; --ic-2: var(--teal); }
.footer-place{ display: flex; align-items: center; gap: .5rem; font-size: .92rem; }

.footer-bottom{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem;
  margin-top: clamp(2rem, 1.4rem + 1.6vw, 3rem);
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(203, 227, 235, .62);
  font-size: .84rem;
}

/* ---------- 7. Responsive ---------- */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { max-width: 34rem; }
  .plan-layout,
  .app-layout,
  .local-layout,
  .about-layout { grid-template-columns: 1fr; }
  .plan-aside { position: static; }
  .app-device { order: -1; }
  .about-figure { order: 1; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: fixed;
    z-index: 99;
    inset: var(--header-h) 0 auto;
    display: grid;
    align-content: start;
    gap: 0;
    max-height: calc(100dvh - var(--header-h));
    padding: .75rem var(--gutter) 1.5rem;
    overflow-y: auto;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 48px rgba(9, 40, 56, .16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  }
  .nav-menu.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-menu > a {
    padding: .95rem .25rem;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .nav-menu > a.is-active { border-bottom-color: var(--teal); }
  .nav-menu-actions {
    display: grid;
    gap: .6rem;
    margin: 1.1rem 0 0;
  }
  .nav-menu-actions .btn { min-height: 50px; width: 100%; }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .hero { min-height: 0; }
  .hero-bg img { object-position: 62% 45%; }
  .hero-actions .btn,
  .cta-actions .btn { flex: 1 1 14rem; }
  .species-strip ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compare-card h3 { font-size: 1.05rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .section-actions { flex-direction: column; align-items: stretch; }
  .section-actions .btn { width: 100%; }
  .form-actions .btn { width: 100%; }
}

@media (max-width: 420px) {
  .brand img { width: 38px; }
  .brand-text strong { font-size: .98rem; }
  .plan-step { grid-template-columns: 1fr; gap: .6rem; }
  .screen-card { flex-basis: 82vw; }
}

@media (min-width: 1500px) {
  :root { --container: 1300px; }
}

/* ---------- 8. Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-bg img, .app-device img { animation: none; }
  .carousel-viewport { scroll-behavior: auto; }
}

@media print {
  .site-header, .site-footer, .app-dialog, .hero-bg, .hero-veil, .btn { display: none !important; }
  body { color: #000; background: #fff; }
  .reveal { opacity: 1; transform: none; }
}
