/* SODEP · Sitio de enlaces
   Tokens según claude/sitio-web/DESIGN.md (Manual de marca SODEP, oct. 2026) */

@font-face { font-family: "Satoshi"; src: url("assets/fonts/satoshi-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("assets/fonts/satoshi-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("assets/fonts/satoshi-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* Paleta de marca */
  --azul-oscuro: #06308e;
  --azul: #115cf3;
  --celeste: #b0e9fd;
  --gris: #eae6dc;
  --gris-20: #fbfaf8;
  --blanco: #ffffff;
  --negro: #000000;

  /* Roles */
  --lienzo: var(--gris-20);
  --superficie: var(--blanco);
  --banda: var(--gris);
  --tinta: var(--azul-oscuro);
  --texto: #0b1430;
  --texto-suave: #3859a5;
  --acento: var(--azul);
  --resalte: var(--celeste);

  /* Escala */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px;
  --r-btn: 12px;
  --r-row: 16px;
  --r-band: 32px;
  --ancho: 1120px;
  --font: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--lienzo);
  color: var(--texto);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, p { margin: 0; }

:focus-visible { outline: 3px solid var(--acento); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: var(--s2); top: -100px; z-index: 10; background: var(--tinta); color: #fff; padding: 12px 16px; border-radius: var(--r-btn); text-decoration: none; font-weight: 700; }
.skip:focus { top: var(--s2); }

.wrap { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 var(--s2); }

/* ---------- Presentación ---------- */
.intro { padding: var(--s3) 0 var(--s5); }
.intro__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s5); }
.logo img { width: 148px; }

.share {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px;
  border: 0; border-radius: 999px; background: var(--banda); color: var(--tinta);
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: background .2s ease;
}
.share:hover { background: #dfd9cb; }
.share svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

h1 {
  font-size: clamp(38px, 9.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--tinta);
  max-width: 13ch;
  text-wrap: balance;
}
.lead { margin-top: var(--s3); margin-bottom: var(--s4); font-size: 19px; line-height: 1.55; color: var(--texto-suave); max-width: 38ch; }


/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px;
  border: 0; border-radius: var(--r-btn);
  font-size: 17px; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.btn--primary { background: var(--tinta); color: #fff; width: 100%; }
.btn--primary:hover { background: #0a2a73; }
.btn--primary:hover svg { transform: translateX(3px); }
.btn--light { background: #fff; color: var(--tinta); }
.btn--light:hover { background: var(--celeste); }
.btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px #fff; }
.btn--ghost:focus-visible, .btn--light:focus-visible { outline-color: var(--celeste); }

/* ---------- Enlaces ---------- */
.links { display: grid; gap: var(--s5); padding-bottom: var(--s6); }
.group-title { margin-bottom: var(--s2); font-size: 20px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; color: var(--tinta); }
.list { display: grid; gap: var(--s1); }

.row {
  position: relative;
  display: grid; grid-template-columns: 6px 1fr; column-gap: var(--s2); align-items: center;
  min-height: 88px; padding: var(--s2) var(--s3) var(--s2) var(--s2);
  background: var(--superficie); border-radius: var(--r-row);
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.row:hover { background: #f3f0e9; }
.row:active { transform: scale(.99); }
.row__mark { align-self: stretch; width: 6px; border-radius: 6px; background: var(--mark); }
.row__body { display: grid; gap: 6px; min-width: 0; }
.row__title { font-size: 20px; line-height: 1.2; font-weight: 700; color: var(--tinta); letter-spacing: -0.01em; }
.row__brand { display: flex; align-items: center; gap: 12px; }
.row__brand img { height: 30px; width: auto; }
.row__tag {
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--texto-suave); padding: 3px 8px; border-radius: 999px; background: var(--lienzo);
}
.row__desc { font-size: 15px; line-height: 1.5; color: #3a4562; }
.row__go { display: none; }
.row::after {
  content: "↗"; position: absolute; right: 18px; top: 14px;
  font-size: 18px; font-weight: 700; line-height: 1; color: var(--acento);
  transition: transform .2s ease;
}
.row:hover::after { transform: translate(2px, -2px); }
.row__body { padding-right: 18px; }

.row--feature { grid-template-columns: 1fr; background: var(--celeste); }
.row--feature:hover { background: #9fe0f7; }
.row--feature .row__desc { color: #12306f; }
.row--feature::after { color: var(--tinta); }

/* Redes */
.social { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s1); }
.social a {
  display: flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 0 var(--s2);
  background: var(--superficie); border-radius: var(--r-row);
  color: var(--tinta); text-decoration: none; font-weight: 700; font-size: 16px;
  transition: background .2s ease, color .2s ease;
}
.social a:hover { background: var(--tinta); color: #fff; }
.social svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.social svg .fill { fill: currentColor; stroke: none; }
.social li:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Contacto */
.contact {
  background: var(--tinta); color: #fff;
  border-radius: var(--r-band);
  padding: var(--s4) var(--s3);
}
.contact__claim { font-size: clamp(24px, 6vw, 32px); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; max-width: 20ch; }
.contact__mail { margin-top: var(--s2); font-size: 18px; word-break: break-all; }
.contact__mail a { color: #fff; text-decoration-color: rgba(255,255,255,.45); text-underline-offset: 4px; }
.contact__mail a:hover { text-decoration-color: #fff; }
.contact__actions { display: flex; flex-wrap: wrap; gap: var(--s1); margin-top: var(--s3); }
.contact__actions .btn { flex: 1 1 140px; }
.contact__note { margin-top: var(--s2); font-size: 14px; color: #c9d6f2; }

/* Pie */
.foot { background: var(--tinta); color: #c9d6f2; padding: var(--s5) 0 calc(var(--s5) + env(safe-area-inset-bottom)); }
.foot__inner { display: flex; flex-direction: column; gap: var(--s2); }
.foot img { width: 120px; }
.foot p { font-size: 14px; }

/* Aviso */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--texto); color: #fff; padding: 12px 18px; border-radius: 999px;
  font-size: 15px; font-weight: 500;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Pantallas medianas ---------- */
@media (min-width: 560px) {
  .wrap { padding: 0 var(--s4); }
  .btn--primary { width: auto; }
  .social { grid-template-columns: repeat(3, 1fr); }
  .social li:last-child:nth-child(odd) { grid-column: auto; }
  .contact { padding: var(--s5); }
}

/* ---------- Escritorio: dos columnas ---------- */
@media (min-width: 960px) {
  .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s7); align-items: start; }
  .intro { position: sticky; top: 0; padding: var(--s6) 0; }
  .intro__top { margin-bottom: var(--s6); }
  .logo img { width: 168px; }
  .links { padding: calc(var(--s6) + 52px + var(--s6)) 0 var(--s7); }
  .row { grid-template-columns: 6px 1fr auto; padding-right: var(--s3); }
  .row--feature { grid-template-columns: 1fr auto; }
  .row::after { display: none; }
  .row__body { padding-right: 0; }
  .row__go { display: block; font-size: 14px; font-weight: 700; color: var(--acento); white-space: nowrap; transition: transform .2s ease; }
  .row--feature .row__go { color: var(--tinta); }
  .row:hover .row__go { transform: translateX(3px); }
  .foot__inner { display: flex; flex-direction: row; align-items: center; justify-content: space-between; }
}
