/* HSM Team — estilos «A · Profundidad» (elegido por Hugo el 14/10/2026):
   el mar donde uno se sumerge en las ideas; azul profundo y el rojo de la bandera de buceo. */
:root {
  --deep-1: #0B2A44;
  --deep-2: #071A2C;
  --deep-3: #04101C;
  --glass: rgba(255, 255, 255, .06);
  --glass-2: rgba(255, 255, 255, .10);
  --line: rgba(255, 255, 255, .12);
  --line-soft: rgba(255, 255, 255, .08);
  --text: #E8F1F8;
  --text-2: #B9CFE0;
  --muted: #9DB4C8;
  --red: #E8352A;        /* rojo de la bandera de buceo */
  --red-dark: #C81E17;
  --coral: #FF9D92;
  --edu: #7FD6C2;
  --hobby: #F2C27B;
  --radius: 20px;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--deep-3); }
main section[id] { scroll-margin-top: 80px; }
body {
  margin: 0; color: var(--text); font: 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1200px 520px at 75% -8%, #1D4F7A 0%, transparent 60%),
    linear-gradient(180deg, var(--deep-1) 0%, var(--deep-2) 45%, var(--deep-3) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -0.01em; color: #fff; }
p { margin: 0; }
a { color: var(--text); }
a:hover { color: var(--coral); }
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(--coral); 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(--red); 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(--coral); }

/* 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: var(--red-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--text); border-color: rgba(255, 255, 255, .35); }
.btn--ghost:hover { background: var(--glass-2); color: #fff; }

/* Barra superior */
.topbar { position: sticky; top: 0; z-index: 5; background: rgba(7, 26, 44, .78); backdrop-filter: blur(12px); 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: #fff; }
.brand__mark { width: 52px; height: 40px; display: block; }
.brand__name { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.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; color: var(--text-2); }
.topnav a:hover { background: var(--glass); color: #fff; }
.topnav .topnav__cta { margin-left: 8px; background: var(--red); color: #fff; border-radius: 999px; padding: 11px 18px; font-weight: 600; }
.topnav .topnav__cta:hover { background: var(--red-dark); color: #fff; }
@media (max-width: 640px) { .topnav a:not(.topnav__cta) { display: none; } }

/* Portada */
.hero { padding: 72px 0 56px; }
.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.5rem, 5.4vw, 4rem); line-height: 1.03; letter-spacing: -0.025em; }
.hero__lead { font-size: 19px; line-height: 1.6; color: var(--text-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(--glass); border: 1px solid var(--line); backdrop-filter: blur(6px); 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; }
.depth__head span { font-size: 13px; color: var(--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(--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(--muted); }
.depth__bar { height: 8px; border-radius: 9px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.depth__bar i { display: block; height: 100%; border-radius: 9px; background: var(--red); }
.depth__stats { margin: 0; display: flex; gap: 28px; padding-top: 16px; border-top: 1px solid var(--line); }
.depth__stats div { display: flex; flex-direction: column-reverse; }
.depth__stats dt { font-size: 13px; color: var(--muted); }
.depth__stats dd { margin: 0; font-family: var(--font-display); font-size: 34px; font-weight: 700; color: #fff; line-height: 1.1; font-variant-numeric: tabular-nums; }

/* Secciones */
.projects { padding: 24px 0 72px; }
.section-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 22px; }
.section-head h2 { font-size: clamp(2rem, 3.4vw, 2.6rem); }
.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(--glass); border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; min-height: 44px; color: var(--muted); }
.search:focus-within { border-color: rgba(255, 255, 255, .45); }
.search input { border: 0; background: transparent; color: #fff; font: inherit; font-size: 15px; padding: 10px 0; outline: none; width: 160px; }
.search input::placeholder { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; border: 1px solid var(--line); background: var(--glass); color: var(--text); padding: 10px 16px; border-radius: 999px; cursor: pointer; font-size: 15px; font-weight: 600; }
.chip:hover { border-color: rgba(255, 255, 255, .4); }
.chip[aria-pressed="true"] { background: #fff; color: var(--deep-2); border-color: #fff; }
.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(--coral); height: 100%; display: flex; flex-direction: column; gap: 14px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(6px); border-radius: var(--radius); padding: 24px; cursor: pointer; transition: border-color .15s, transform .15s, background .15s; }
.card:hover { border-color: rgba(255, 255, 255, .28); background: var(--glass-2); 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(--deep-2); }
.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: rgba(255, 255, 255, .18); }
.stage__dots i.on { background: var(--red); }
.stage--pausa { padding: 2px 8px; border-radius: 999px; background: var(--glass-2); }
.card__title { font-size: 22px; line-height: 1.2; }
.card__title button { all: unset; cursor: pointer; }
.card__title button:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }
.card__summary { color: var(--text-2); 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: #fff; cursor: pointer; }
.card__open:hover { color: var(--coral); }
.access { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: rgba(232, 53, 42, .16); color: var(--coral); 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(--glass-2); padding: 3px 10px; border-radius: 999px; color: var(--text-2); }
.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: rgba(255, 255, 255, .03); border-block: 1px solid var(--line); padding: 72px 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.6rem); line-height: 1.08; }
.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); }
.idea__n { font-family: var(--font-display); font-size: 22px; font-weight: 700; 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: var(--text-2); }
.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(--glass); color: var(--text); border-radius: 999px; padding: 4px 11px 4px 5px; font-size: 13px; cursor: pointer; min-height: 32px; }
.rel:hover { border-color: rgba(255, 255, 255, .4); }

/* Etapas */
.how { padding: 72px 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(--glass); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.stages__n { font-family: var(--font-display); font-size: 40px; font-weight: 700; color: var(--red); line-height: 1; }
.stages h3 { font-size: 20px; }
.stages p { color: var(--text-2); font-size: 15px; line-height: 1.55; }
.stages__help { font-size: 14px !important; }
.stages__help strong { color: #fff; }

/* Proponer */
.propose { padding: 0 0 72px; }
.propose__inner { background: linear-gradient(135deg, rgba(232, 53, 42, .22), rgba(255, 255, 255, .05)); border: 1px solid rgba(232, 53, 42, .35); 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.2rem); margin-bottom: 10px; }
.propose p { max-width: 640px; color: var(--text-2); 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: #0A2236; color: var(--text); box-shadow: 0 24px 80px rgba(0, 0, 0, .55); }
.modal::backdrop { background: rgba(2, 10, 18, .7); backdrop-filter: blur(4px); }
.modal[open] { animation: pop .18s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.modal__head { --c: var(--coral); position: relative; padding: 28px 64px 22px 28px; background: linear-gradient(180deg, #123554, #0A2236); 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(--text-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(--glass-2); color: #fff; border-radius: 999px; cursor: pointer; font-size: 1.1rem; }
.modal__close:hover { background: rgba(255, 255, 255, .18); }
.modal__content { padding: 24px 28px 30px; display: grid; gap: 20px; color: var(--text-2); }
.modal__content > p { color: var(--text); }
.needs { background: rgba(232, 53, 42, .14); border: 1px solid rgba(232, 53, 42, .3); border-radius: 14px; padding: 14px 16px; }
.needs strong { font-size: 13px; color: var(--coral); }
.needs p { color: var(--text); }
.facts { margin: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--glass); }
.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; color: var(--text); }
.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; color: var(--text); }
.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(--coral); }
.block--idea li::before { content: "•"; color: var(--coral); }
.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; }
}
