/* Abordo · sistema de diseño base (tokens de la identidad de Todos a Bordo + icono «a bordo») */
@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(../fonts/fredoka-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(../fonts/fredoka-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Work Sans'; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url(../fonts/work-sans-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Work Sans'; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url(../fonts/work-sans-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Work Sans'; font-style: italic; font-weight: 400 600; font-display: swap;
  src: url(../fonts/work-sans-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #f9f6f1; --bg-2: #f4eee6; --paper: #fffdf9; --card: #f2ede7;
  --ink: #1f4549; --ink-2: #2f5150; --muted: #5e7b79; --line: rgba(31, 69, 73, .12); --line-2: rgba(31, 69, 73, .2);
  --primary: #305454; --primary-2: #26474a; --teal: #426666; --teal-2: #577a76; --sage: #aabdb1; --mint: #c7d7cd;
  --cream: #fae9d9; --sand: #f7c98d; --sand-soft: #f6dfbf; --pink: #e3a3a1; --pink-soft: #f4d2d1; --rose: #eaaba4;
  --coral: #e5876f; --coral-soft: #f3cfcb; --ochre: #cf9d56; --plum: #643d3e; --heart: #e99d9f;
  --ok: #3f7a5f; --warn: #b07a2e; --danger: #b5524a;
  --font-display: 'Fredoka', 'Nunito', ui-rounded, system-ui, sans-serif;
  --font-body: 'Work Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r-s: 12px; --r-m: 18px; --r-l: 26px; --r-xl: 34px; --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(31, 69, 73, .06), 0 6px 18px rgba(31, 69, 73, .06);
  --sh-2: 0 2px 6px rgba(31, 69, 73, .06), 0 18px 44px rgba(31, 69, 73, .12);
  --sh-3: 0 30px 80px rgba(31, 69, 73, .18);
  --ease-out: cubic-bezier(.2, .8, .2, 1); --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --wrap: 1180px; --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink-2); font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, video, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--primary); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--primary-2); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--pink-soft); color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.12; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.7rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--primary); color: var(--cream); padding: 10px 16px; border-radius: var(--r-pill); }
.skip:focus { top: 12px; }
.eyebrow { display: inline-flex; align-items: center; gap: .5em; font: 600 .78rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--coral); }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-2); }
.muted { color: var(--muted); }
.center { text-align: center; }

/* Botones */
.btn { --b: var(--primary); --c: var(--cream); display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 52px; padding: 0 1.6em;
  border: 0; border-radius: var(--r-pill); background: var(--b); color: var(--c); font: 600 1.06rem/1 var(--font-display); letter-spacing: .01em;
  text-decoration: none; box-shadow: 0 10px 24px rgba(48, 84, 84, .22); transition: transform .25s var(--ease-out), box-shadow .25s, background .2s; position: relative; isolation: isolate; overflow: hidden; }
.btn:hover { color: var(--c); background: var(--primary-2); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(48, 84, 84, .28); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .ico { width: 1.2em; height: 1.2em; transition: transform .3s var(--ease-out); }
.btn:hover .ico-arrow { transform: translateX(4px); }
.btn--lg { min-height: 60px; font-size: 1.16rem; padding: 0 2em; }
.btn--block { width: 100%; }
.btn--ghost { --b: transparent; --c: var(--primary); box-shadow: inset 0 0 0 2px var(--line-2); }
.btn--ghost:hover { --c: var(--primary); background: rgba(48, 84, 84, .06); box-shadow: inset 0 0 0 2px var(--primary); }
.btn--soft { --b: var(--paper); --c: var(--primary); box-shadow: var(--sh-1); }
.btn--soft:hover { background: #fff; color: var(--primary); }
.btn--coral { --b: var(--coral); --c: #fff; box-shadow: 0 10px 24px rgba(229, 135, 111, .3); }
.btn--coral:hover { background: #d9765d; color: #fff; }
.btn--danger { --b: var(--danger); --c: #fff; box-shadow: none; }
.btn--sm { min-height: 40px; font-size: .95rem; padding: 0 1.1em; }
.btn[disabled], .btn.is-loading { opacity: .65; pointer-events: none; }
.btn.is-loading::after { content: ''; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
.link-arrow { display: inline-flex; align-items: center; gap: .35em; font-weight: 600; text-decoration: none; color: var(--primary); }
.link-arrow .ico { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease-out); }
.link-arrow:hover .ico { transform: translateX(3px); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sea-x { to { transform: translateX(-600px); } }   /* olas en mosaico de 600 px */

/* Iconos */
.ico { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico-fill { fill: currentColor; stroke: none; }

/* Tarjetas y chips */
.card { background: var(--paper); border-radius: var(--r-l); box-shadow: var(--sh-1); padding: clamp(18px, 3vw, 28px); }
.chip { display: inline-flex; align-items: center; gap: .4em; padding: .42em .9em; border-radius: var(--r-pill); background: var(--card); color: var(--ink-2); font: 500 .88rem/1.1 var(--font-body); }
.chip--pink { background: var(--pink-soft); color: #8d4b48; }
.chip--mint { background: var(--mint); color: #2c5a54; }
.chip--sand { background: var(--sand-soft); color: #7d5520; }
.chip--coral { background: var(--coral-soft); color: #9a443c; }
.badge { display: inline-flex; align-items: center; gap: .35em; padding: .3em .7em; border-radius: var(--r-pill); font: 600 .74rem/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; }

/* Formularios */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .label { font: 600 .92rem/1.2 var(--font-body); color: var(--ink); }
.input, .select, .textarea { width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 16px; border: 1.5px solid var(--line-2); background: #fff;
  font-size: 1rem; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23305454' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(48, 84, 84, .14); }
.input::placeholder, .textarea::placeholder { color: #93a6a3; }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 52px; }
.input-wrap .peek { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 0; background: none; border-radius: 12px; color: var(--muted); display: grid; place-items: center; }
.input-wrap .peek:hover { color: var(--primary); background: var(--bg-2); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; line-height: 1.45; cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 24px; height: 24px; margin: 0; border-radius: 8px; border: 1.8px solid var(--line-2); background: #fff; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.check input:checked { background: var(--primary); border-color: var(--primary); }
.check input:checked::after { content: ''; width: 11px; height: 6px; border: 2.6px solid var(--cream); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.form-msg { border-radius: 14px; padding: 12px 14px; font-size: .95rem; margin: 0 0 14px; display: none; }
.form-msg.is-error { display: block; background: #fbe7e4; color: #8c3a33; }
.form-msg.is-ok { display: block; background: #e5f1ea; color: #2d5f47; }

/* Avisos flotantes */
.toasts { position: fixed; z-index: 2000; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: 10px; width: min(92vw, 440px); pointer-events: none; }
.toast { pointer-events: auto; background: var(--ink); color: var(--cream); border-radius: 16px; padding: 14px 18px; box-shadow: var(--sh-3); font-size: .97rem; display: flex; gap: 10px; align-items: center;
  animation: toast-in .45s var(--ease-spring) both; }
.toast.is-error { background: #8c3a33; }
.toast.is-out { animation: toast-out .3s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(20px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px); } }

/* Esqueletos de carga */
.skel { background: linear-gradient(100deg, #efe8df 30%, #f7f2ec 50%, #efe8df 70%); background-size: 300% 100%; animation: skel 1.3s linear infinite; border-radius: var(--r-m); }
@keyframes skel { to { background-position: -150% 0; } }

/* Revelado al hacer scroll */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

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