/* ==========================================================
   AUGUSSEP · Sistema de diseño "Humboldt"
   Azul Pacífico + niebla limeña + tostado de harina + ámbar de aceite
   Tipografía única: Archivo
   (Estilos comunes a todas las páginas; los propios de esta página van al final)
   ========================================================== */

:root {
  /* Color */
  --ink: #0d3a5c;          /* Azul Pacífico: fondos oscuros, texto principal */
  --ink-2: #154a70;        /* Superficies sobre azul */
  --ink-3: #255d85;        /* Bordes sobre azul */
  --current: #8ccbec;      /* Líneas de corriente, acentos fríos */
  --paper: #f4f6f5;        /* Fondo claro */
  --fog: #e4eae8;          /* Fondos alternos */
  --line: #c9d3d1;
  --text: #0f242c;
  --muted: #4c5f66;
  --meal: #b4864f;         /* Harina de pescado */
  --oil: #e3a520;          /* Aceite de pescado · color de acción */
  --oil-hover: #f0b63a;
  --tbd-bg: #fff2c7;
  --tbd-ink: #6e5100;

  /* Tipografía */
  --font: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 3.4vw, 2.75rem);

  /* Forma */
  --r-sm: 3px;
  --r: 6px;
  --r-card: 12px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--font); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
h1, h2, h3, h4 { line-height: 1.1; font-weight: 750; }
h2 { font-size: var(--step-3); font-stretch: 112%; letter-spacing: -.015em; text-wrap: balance; }
h3 { font-size: var(--step-1); font-stretch: 105%; }
p { text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--oil); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--oil); color: var(--ink); padding: 10px 16px; font-weight: 700; border-radius: var(--r); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 120px); }
.section--white { background: #fff; }
.section--fog { background: var(--fog); }
.section--deep { background: var(--ink); color: #e1ecf4; }
.section--deep h2, .section--deep h3 { color: #fff; }
.section-head { max-width: 62ch; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head p { margin-top: 18px; color: var(--muted); font-size: var(--step-1); line-height: 1.5; }
.section--deep .section-head p { color: #adc6da; }
.section-head--center { margin-inline: auto; text-align: center; }
.kicker { font-weight: 650; font-stretch: 110%; font-size: var(--step--1); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.lead { font-size: var(--step-1); line-height: 1.6; color: var(--muted); max-width: 58ch; }

/* Marcador: dato pendiente de reemplazar por el cliente */
.tbd { background: var(--tbd-bg); color: var(--tbd-ink); border: 1px dashed #c9a43d; border-radius: var(--r-sm); padding: 1px 8px; font-weight: 650; font-size: .92em; white-space: nowrap; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 10px 20px; border-radius: var(--r); border: 2px solid transparent;
  font-weight: 700; font-size: .95rem; font-stretch: 108%; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn--lg { min-height: 52px; padding: 14px 26px; font-size: 1rem; }
.btn--signal { background: var(--oil); color: var(--ink); }
.btn--signal:hover { background: var(--oil-hover); }
.btn--line { border-color: #fff; color: #fff; }
.btn--line:hover { background: rgba(255,255,255,.12); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--text { padding-inline: 4px; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.btn--text:hover { text-decoration-thickness: 2px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }

/* ---------- Encabezado ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; background: transparent; color: #fff; transition: background-color .3s, box-shadow .3s; }
.site-header.is-solid { background: var(--ink); box-shadow: 0 1px 0 var(--ink-3); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.wordmark { font-weight: 800; font-size: 1.25rem; font-stretch: 112%; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; color: #fff; }
.nav { display: flex; align-items: center; gap: clamp(28px, 4vw, 64px); }
.nav ul { display: flex; gap: clamp(28px, 4.5vw, 72px); }
.nav ul a { text-decoration: none; font-weight: 600; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; color: #fff; padding-block: 8px; border-bottom: 2px solid transparent; transition: border-color .15s; }
.nav ul a:hover, .nav ul a[aria-current="page"] { border-bottom-color: var(--current); }
.nav__cta { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 22px; border: 2px solid #fff; border-radius: var(--r-sm); font-weight: 650; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; color: #fff; transition: background-color .15s, color .15s; }
.nav__cta:hover { background: #fff; color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 0; cursor: pointer; position: relative; }
.nav-toggle i { position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; transition: transform .2s, top .2s; }
.nav-toggle i:first-of-type { top: 17px; }
.nav-toggle i:last-of-type { top: 25px; }
.nav-toggle[aria-expanded="true"] i:first-of-type { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:last-of-type { top: 21px; transform: rotate(-45deg); }

/* ---------- Portada (todas las páginas) ---------- */
.hero { position: relative; isolation: isolate; color: #fff; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--header-h) + clamp(24px, 4vw, 48px)); padding-bottom: clamp(40px, 5vw, 64px); }
.hero__bg { position: absolute; inset: 0; z-index: -1; background: var(--ink) url("../images/hero.jpg") 30% 55% / cover no-repeat; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background:
    linear-gradient(90deg, rgba(13,58,92,.9) 0%, rgba(13,58,92,.68) 50%, rgba(13,58,92,.45) 100%),
    linear-gradient(0deg, rgba(13,58,92,.9) 0%, rgba(13,58,92,0) 35%); }
.hero__kicker { font-weight: 650; font-stretch: 110%; font-size: var(--step-0); letter-spacing: .06em; text-transform: uppercase; color: #fff; margin-bottom: 20px; }
.hero__title { font-size: clamp(2.3rem, 4.3vw, 4.1rem); line-height: 1.04; font-weight: 800; text-transform: uppercase; text-wrap: balance; }
.hero__title span { display: block; }
@media (min-width: 1100px) { .hero__title span { white-space: nowrap; } }
.hero .btn-row { margin-top: clamp(28px, 3.5vw, 40px); }

/* Insignias */
.badges { display: flex; flex-wrap: wrap; gap: 20px clamp(28px, 4vw, 56px); }
.badges li { display: flex; align-items: center; gap: 12px; }
.badges svg { width: 44px; height: 44px; flex: none; overflow: visible; }
.badges__shape { fill: #fff; stroke: #fff; stroke-width: 1.2; stroke-linejoin: round; }
.badges__mark { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.badges p { display: flex; flex-direction: column; line-height: 1.15; font-size: 1.05rem; color: #fff; }
.badges strong { font-weight: 800; font-size: 1.15rem; }
.badges--ink .badges__shape { fill: var(--ink); stroke: var(--ink); }
.badges--ink .badges__mark { stroke: #fff; }
.badges--ink p { color: var(--ink); }

/* Mapa de la corriente de Humboldt */
.chart { width: 100%; height: auto; overflow: visible; }
.chart--fade {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 90%, transparent 100%), linear-gradient(to right, transparent 0%, #000 12%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 90%, transparent 100%), linear-gradient(to right, transparent 0%, #000 12%, #000 86%, transparent 100%);
  mask-composite: intersect;
}
.chart__grid { stroke: rgba(170,215,240,.45); stroke-width: 1; stroke-dasharray: 2 6; }
.chart__lat { fill: #cfe5f3; font-size: 12px; font-family: var(--font); }
.chart__land { fill: url(#landG); }
.chart__coast { fill: none; stroke: #eef6fb; stroke-width: 1.6; stroke-linejoin: round; }
.chart__current {
  fill: none; stroke: #b5e0f7; stroke-width: 1.4; stroke-linecap: round;
  opacity: calc(.8 - var(--i) * .11);
  stroke-dasharray: 56 22;
  animation: flow 14s linear infinite;
  animation-delay: calc(var(--i) * -1.1s);
}
@keyframes flow { to { stroke-dashoffset: 360; } }
.chart__port circle { fill: var(--oil); stroke: var(--ink); stroke-width: 2; }
.chart__port text { fill: #eef6fb; font-size: 13px; font-weight: 600; font-family: var(--font); }

/* ---------- Tarjetas de producto ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; gap: clamp(24px, 4vw, 48px); }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; box-shadow: 0 18px 40px -24px rgba(13,58,92,.35); }
.card__media { aspect-ratio: 4 / 3; background: #fff; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { display: flex; flex-direction: column; gap: 6px; padding: 24px 24px 28px; border-top: 1px solid var(--line); }
.card__body h3 { font-size: var(--step-2); font-stretch: 112%; font-weight: 800; }
.card__body p { color: var(--muted); font-size: var(--step--1); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.card__body .btn-row { margin-top: 18px; }
.card__body .btn { flex: 1 1 0; padding-inline: 14px; }

/* ---------- Bloques de texto + imagen ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 96px); align-items: center; }
.split--reverse .split__media { order: -1; }
.split__text h2 { margin-bottom: 22px; }
.split__text .btn-row { margin-top: 32px; }
.split__media { border-radius: var(--r-card); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 50px -30px rgba(13,58,92,.45); }
.split__media img { width: 100%; height: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.ticks { display: grid; gap: 12px; margin-top: 4px; }
.ticks li { position: relative; padding-left: 30px; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }

/* ---------- ¿Por qué confiar? ---------- */
.trust { max-width: 780px; margin-inline: auto; text-align: center; }
.trust .lead { margin: 20px auto 0; max-width: 62ch; }
.trust .badges { justify-content: center; margin-top: 40px; text-align: left; }
.trust .btn-row { justify-content: center; margin-top: 40px; }

/* ---------- Cotización ---------- */
.quote__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 80px); align-items: start; }
.quote__intro { position: sticky; top: calc(var(--header-h) + 32px); }
.quote__intro > p { margin-top: 18px; color: #adc6da; font-size: var(--step-1); line-height: 1.5; max-width: 40ch; }
.preview { margin-top: 40px; }
.preview__label { font-size: var(--step--1); color: #93b4cc; margin-bottom: 12px; }
.preview__bubble { position: relative; background: #fff; color: var(--text); border-radius: 10px 10px 10px 2px; padding: 16px 18px; max-width: 420px; box-shadow: 0 10px 30px -12px rgba(0,0,0,.45); }
.preview__bubble pre { margin: 0; white-space: pre-wrap; word-break: break-word; font: 400 .92rem/1.55 var(--font); }

.form { background: var(--paper); color: var(--text); border-radius: var(--r); padding: clamp(24px, 4vw, 40px); }
.form fieldset { border: 0; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form fieldset + fieldset { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.form legend { grid-column: 1 / -1; font-weight: 750; font-stretch: 110%; font-size: var(--step-1); margin-bottom: 18px; padding: 0; float: left; width: 100%; }
.field { display: grid; gap: 6px; font-size: var(--step--1); font-weight: 600; color: var(--muted); align-content: start; }
.field--full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: var(--r);
  background: #fff; font-size: 1rem; font-weight: 450; color: var(--text); transition: border-color .15s;
}
.field textarea { resize: vertical; }
.field input:hover, .field textarea:hover { border-color: #9fb0ad; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(227,165,32,.45); }
.field__err { display: none; font-style: normal; color: #a3271b; font-weight: 550; }
.field.is-invalid input { border-color: #a3271b; }
.field.is-invalid .field__err { display: block; }
.segmented { display: flex; flex-wrap: wrap; gap: 8px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; color: var(--text); font-size: .95rem; font-weight: 600; transition: background-color .15s, border-color .15s; }
.segmented input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.segmented input:focus-visible + span { outline: 3px solid var(--oil); outline-offset: 2px; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 28px; }
.form__status { font-size: var(--step--1); font-weight: 600; color: #a3271b; }
.form__status.is-ok { color: #1f6b3a; }

/* ---------- Pie ---------- */
.site-footer { background: #0a2d48; color: #adc6da; padding-top: 64px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer__brand .wordmark { display: inline-block; margin-bottom: 14px; }
.footer__brand p { max-width: 32ch; }
.site-footer h4 { color: #fff; font-size: var(--step-0); font-weight: 650; margin-bottom: 14px; }
.site-footer ul { display: grid; gap: 8px; }
.site-footer ul a { text-decoration: none; }
.site-footer ul a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--ink-3); border-radius: 50%; }
.socials a:hover { border-color: var(--current); }
.socials svg { width: 16px; height: 16px; fill: #d2e3ef; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-block: 24px; border-top: 1px solid var(--ink-3); font-size: var(--step--1); }
.footer__meta { display: inline-flex; align-items: center; gap: 20px; color: #fff; }
.lang { display: flex; border: 1px solid var(--ink-3); border-radius: var(--r); padding: 2px; }
.lang button { background: none; border: 0; color: #a3c0d6; font-weight: 700; font-size: .78rem; padding: 6px 10px; border-radius: var(--r-sm); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink-3); color: #fff; }

/* Botón flotante de WhatsApp */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 6px 18px rgba(10,45,72,.35); transition: transform .15s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }

/* ---------- Responsive (común) ---------- */
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 20px; padding: 24px var(--gutter) 32px; background: var(--ink); border-bottom: 1px solid var(--ink-3); transform: translateY(-110%); visibility: hidden; transition: transform .25s, visibility .25s; }
  .nav.is-open { transform: none; visibility: visible; }
  .nav ul { flex-direction: column; gap: 4px; }
  .nav ul a { display: block; padding: 12px 0; font-size: 1rem; border-bottom: 1px solid var(--ink-2); }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .quote__grid { grid-template-columns: 1fr; }
  .quote__intro { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .cards { grid-template-columns: minmax(0, 420px); }
}
@media (max-width: 600px) {
  .form fieldset { grid-template-columns: 1fr; }
  .btn--lg { width: 100%; }
  .hero .btn-row { flex-direction: column; align-items: stretch; }
  .badges { gap: 18px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================
   PÁGINA: SOBRE NOSOTROS
   ========================================================== */
.hero--page { min-height: min(640px, 82svh); }

/* Foto de "¿Quiénes somos?": acercamiento a la Costa Verde */
.split__media--coast img { aspect-ratio: 4 / 5; object-position: 12% 70%; }

/* Misión con el mapa de la corriente */
.mission-map { background: var(--ink); border: 0; padding: clamp(24px, 4vw, 48px); display: grid; place-items: center; }
.mission-map .chart { max-width: 380px; }

@media (max-width: 960px) {
  .split__media--coast img { aspect-ratio: 4 / 3; }
}
