/* HSM Team — estilos («bitácora de inmersión», diseño aprobado en Claude Design el 14/10/2026) */
:root {
  --paper: #F6F3EE;      /* fondo papel cálido */
  --surface: #FFFFFF;
  --sand: #F1ECE3;       /* rellenos suaves */
  --line: #E2DBCF;
  --line-soft: #EEE8DE;
  --ink: #10233A;        /* azul profundo */
  --ink-2: #3A4A5E;
  --muted: #5A6879;
  --red: #C81E17;        /* rojo de la bandera de buceo */
  --red-bright: #E8352A;
  --navy-2: #1B3150;
  --navy-line: #22395A;
  --on-navy: #E9EEF4;
  --on-navy-muted: #A9B8C9;
  --edu: #1F6F63;
  --hobby: #A0601A;
  --radius: 20px;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
main section[id] { scroll-margin-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--ink); }
a:hover { color: var(--red); }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red-bright); outline-offset: 2px; border-radius: 8px; }

.wrap { width: min(1200px, 100%); margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .wrap { padding: 0 16px; } }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: 999px; background: var(--red); color: #fff; text-decoration: none; font-weight: 600; border: 1px solid transparent; cursor: pointer; }
.btn:hover { background: #A9170F; color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }

/* Barra superior */
.topbar { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 76px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand__mark { width: 52px; height: 40px; display: block; }
.brand__name { font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.topnav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.topnav a { text-decoration: none; padding: 10px 14px; border-radius: 10px; font-size: 15px; font-weight: 500; }
.topnav a:hover { background: var(--sand); color: var(--ink); }
.topnav .topnav__cta { margin-left: 8px; background: var(--ink); color: #fff; border-radius: 999px; padding: 11px 18px; font-weight: 600; }
.topnav .topnav__cta:hover { background: var(--navy-2); color: #fff; }
@media (max-width: 640px) { .topnav a:not(.topnav__cta) { display: none; } }

/* Portada */
.hero { padding: 64px 0 48px; }
.hero__inner { display: flex; flex-wrap: wrap; gap: 48px; align-items: stretch; }
.hero__copy { flex: 999 1 540px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 3.8rem); line-height: 1.04; letter-spacing: -0.02em; }
.hero__lead { font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 620px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

.depth { flex: 1 1 320px; min-width: 0; background: var(--ink); color: var(--on-navy); border-radius: 24px; padding: 28px 28px 24px; display: flex; flex-direction: column; gap: 16px; }
.depth__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.depth__head h2 { font-size: 22px; color: #fff; }
.depth__head span { font-size: 13px; color: var(--on-navy-muted); }
.depth__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.depth__list li { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; border-top: 1px solid var(--navy-line); }
.depth__row { display: flex; justify-content: space-between; font-size: 15px; }
.depth__row span:first-child { font-weight: 600; color: #fff; }
.depth__row span:last-child { color: var(--on-navy-muted); }
.depth__bar { height: 8px; border-radius: 9px; background: var(--navy-2); overflow: hidden; }
.depth__bar i { display: block; height: 100%; border-radius: 9px; background: var(--red-bright); }
.depth__stats { margin: 0; display: flex; gap: 28px; padding-top: 16px; border-top: 1px solid var(--navy-line); }
.depth__stats div { display: flex; flex-direction: column-reverse; }
.depth__stats dt { font-size: 13px; color: var(--on-navy-muted); }
.depth__stats dd { margin: 0; font-family: var(--font-display); font-size: 34px; font-weight: 600; color: #fff; line-height: 1.1; font-variant-numeric: tabular-nums; }

/* Secciones */
.projects { padding: 24px 0 64px; }
.section-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 22px; }
.section-head h2 { font-size: clamp(2rem, 3.4vw, 2.5rem); }
.section-head--row { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section-head--row > div:first-child { display: flex; flex-direction: column; gap: 6px; max-width: 560px; }

/* Búsqueda y filtros */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; min-height: 44px; color: var(--muted); }
.search:focus-within { border-color: var(--ink); }
.search input { border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 15px; padding: 10px 0; outline: none; width: 160px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; border: 1px solid #D9D1C3; background: var(--surface); color: var(--ink); padding: 10px 16px; border-radius: 999px; cursor: pointer; font-size: 15px; font-weight: 600; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip__count { font-weight: 500; opacity: .7; font-variant-numeric: tabular-nums; }
.chip__count::before { content: "· "; }
.result-count { font-size: 14px; margin-bottom: 14px; }

/* Tarjetas */
.grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.card { --c: var(--ink); height: 100%; display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; cursor: pointer; transition: border-color .15s, transform .15s; }
.card:hover { border-color: #C9BFAE; transform: translateY(-2px); }
.card--educativo { --c: var(--edu); }
.card--pasatiempo { --c: var(--hobby); }
.card__head { display: flex; align-items: center; gap: 14px; }
.card__top { display: flex; flex-direction: column; gap: 4px; }
.logo { width: 52px; height: 52px; border-radius: 14px; display: block; flex: none; object-fit: contain; }
.logo--lg { width: 72px; height: 72px; border-radius: 18px; }
.logo--sm { width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--surface); }
.logo--xs { width: 20px; height: 20px; border-radius: 6px; }
.type { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c); }
.stage { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.stage__dots { display: inline-flex; gap: 4px; }
.stage__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.stage__dots i.on { background: var(--red); }
.stage--pausa { padding: 2px 8px; border-radius: 999px; background: var(--sand); }
.card__title { font-size: 23px; line-height: 1.2; }
.card__title button { all: unset; cursor: pointer; }
.card__title button:focus-visible { outline: 3px solid var(--red-bright); outline-offset: 3px; border-radius: 4px; }
.card__summary { color: #4A5868; font-size: 15px; line-height: 1.55; flex: 1; }
.kids { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.kids__logos { display: flex; }
.kids__logos .logo + .logo { margin-left: -6px; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.card__open { border: 0; background: none; padding: 6px 0; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; }
.card__open:hover { color: var(--red); }
.access { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--sand); color: #4A5868; white-space: nowrap; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 12px; background: var(--sand); padding: 3px 10px; border-radius: 999px; color: #4A5868; }
.empty { text-align: center; padding: 48px 16px; border: 1px dashed var(--line); border-radius: var(--radius); display: grid; gap: 12px; justify-items: center; }

/* Usina de ideas */
.ideas-bank { background: var(--surface); border-block: 1px solid var(--line); padding: 64px 0; }
.ideas-bank__inner { display: flex; flex-wrap: wrap; gap: 48px; }
.ideas-bank__intro { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ideas-bank__intro h2 { font-size: clamp(2rem, 3.4vw, 2.5rem); line-height: 1.1; }
.ideas { flex: 999 1 560px; min-width: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.idea { display: flex; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line-soft); }
.idea__n { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--red); min-width: 34px; }
.idea__body { display: flex; flex-direction: column; gap: 8px; }
.idea h3 { font-family: var(--font-body); font-size: 18px; font-weight: 600; letter-spacing: 0; }
.idea p { font-size: 15px; line-height: 1.55; color: #4A5868; }
.rels { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rels .muted { font-size: 13px; margin-right: 2px; }
.rel { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 4px 11px 4px 5px; font-size: 13px; cursor: pointer; min-height: 32px; }
.rel:hover { border-color: var(--ink); }

/* Etapas */
.how { padding: 64px 0; }
.stages { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.stages li { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.stages__n { font-family: var(--font-display); font-size: 40px; font-weight: 600; color: var(--red); line-height: 1; }
.stages h3 { font-family: var(--font-body); font-size: 20px; font-weight: 700; letter-spacing: 0; }
.stages p { color: #4A5868; font-size: 15px; line-height: 1.55; }
.stages__help { font-size: 14px !important; }
.stages__help strong { color: var(--ink); }

/* Proponer */
.propose { padding: 0 0 64px; }
.propose__inner { background: var(--ink); color: var(--on-navy); border-radius: 28px; padding: 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.propose h2 { font-size: clamp(1.7rem, 3vw, 2.1rem); color: #fff; margin-bottom: 10px; }
.propose p { max-width: 640px; color: #C2CEDB; line-height: 1.6; }
@media (max-width: 560px) { .propose__inner { padding: 28px 22px; } }

/* Pie */
.footer { border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 24px; font-size: 14px; color: var(--muted); }

/* Ficha */
.modal { width: min(760px, calc(100% - 24px)); max-height: calc(100% - 32px); padding: 0; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 70px rgba(16, 35, 58, .35); }
.modal::backdrop { background: rgba(16, 35, 58, .55); backdrop-filter: blur(3px); }
.modal[open] { animation: pop .18s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.modal__head { --c: var(--ink); position: relative; padding: 28px 64px 22px 28px; background: var(--surface); border-bottom: 1px solid var(--line); display: grid; gap: 12px; }
.modal__head.card--educativo { --c: var(--edu); }
.modal__head.card--pasatiempo { --c: var(--hobby); }
.modal__head h2 { font-size: 32px; letter-spacing: -0.02em; }
.modal__summary { color: var(--ink-2); font-size: 17px; line-height: 1.55; }
.modal__close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: var(--sand); border-radius: 999px; cursor: pointer; font-size: 1.1rem; }
.modal__close:hover { background: var(--line); }
.modal__content { padding: 24px 28px 30px; display: grid; gap: 20px; }
.needs { background: #FBE9E7; border-radius: 14px; padding: 14px 16px; }
.needs strong { font-size: 13px; color: var(--red); }
.facts { margin: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); }
.facts div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.block h3 { font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.block ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.block li { position: relative; padding-left: 24px; font-size: 15px; }
.block li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.block--check li::before { content: "✓"; color: var(--edu); }
.block--next li::before { content: "→"; color: var(--red); }
.block--idea li::before { content: "•"; color: var(--red); }
.links { display: flex; flex-wrap: wrap; gap: 8px; }

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