/* =====================================================================
   DeCam — hoja de estilos (assets/css/styles.css)

   Cómo está organizada:
     1. Fuentes autoalojadas (carpeta assets/fonts)
     2. Tokens de diseño: colores, tipografías y medidas  ← si querés cambiar
        un color o una fuente, tocá SOLO esta sección
     3. Base: reset mínimo y tipografía general
     4. Componentes reutilizables: botones, etiquetas, notas
     5. Secciones, en el mismo orden que index.html
     6. Ajustes para celular (media queries)

   Concepto de diseño: "expediente". Columna de lectura a la izquierda,
   reglas finas, etiquetas en monoespaciada (como carátulas de causa),
   y el navy de la marca reservado para el inicio, la tarjeta del CTO y el pie.
   ===================================================================== */


/* ---------------------------------------------------------------------
   1. FUENTES
   --------------------------------------------------------------------- */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
}


/* ---------------------------------------------------------------------
   2. TOKENS DE DISEÑO
   --------------------------------------------------------------------- */
:root {
  /* Fondos y texto */
  --paper: #F5F6F8;          /* fondo general, gris frío muy claro */
  --paper-2: #FFFFFF;        /* superficies (tarjetas, tabla, formulario) */
  --ink: #121826;            /* texto principal */
  --ink-2: #4A5468;          /* texto secundario */
  --ink-3: #66708A;          /* etiquetas y metadatos */
  --line: #DDE1E8;           /* reglas finas */
  --line-strong: #C5CBD6;    /* bordes de campos de formulario */

  /* Marca (el navy sale del logo registrado) */
  --navy: #131725;           /* fondo del inicio, tarjeta CTO y pie */
  --navy-2: #1C2234;         /* superficies sobre navy */
  --navy-line: #2E364B;      /* bordes sobre navy */

  /* Acento: verde "sello verificado" */
  --accent: #0F7C6B;
  --accent-ink: #0B5F52;     /* texto de acento sobre fondo claro */
  --accent-soft: #E3F2EE;    /* tinte suave */
  --accent-bright: #2FBF9A;  /* acento sobre navy */

  /* Estados del tablero "Dónde estamos" */
  --amber: #A2490A; --amber-soft: #FBF0DD;   /* en curso */
  --slate-soft: #ECEFF3;                     /* pendiente */
  --danger: #B42318;

  /* Tipografías */
  --font-display: "Bricolage Grotesque", "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", SFMono-Regular, Menlo, Consolas, monospace;

  /* Medidas */
  --container: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 10px;

  color-scheme: light;
}


/* ---------------------------------------------------------------------
   3. BASE
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 84px; /* deja lugar al encabezado fijo al saltar a una sección */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); font-weight: 700; line-height: 1.04; }
h2 { font-size: clamp(1.75rem, 3.3vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p, ul, ol, dl { margin: 0; }

a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

strong { font-weight: 600; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

.section { padding-block: clamp(56px, 9vw, 104px); }
.section-white { background: var(--paper-2); }

.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head .lead { margin-top: 16px; font-size: 1.15rem; color: var(--ink-2); }

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--paper-2); color: var(--ink); padding: 8px 12px; border-radius: 6px;
}
.skip-link:focus { left: 8px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}


/* ---------------------------------------------------------------------
   4. COMPONENTES
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-small { padding: 10px 16px; font-size: 0.95rem; }

/* Botones sobre fondo navy */
.on-dark .btn-primary { background: var(--accent-bright); color: var(--navy); border-color: var(--accent-bright); }
.on-dark .btn-primary:hover { background: #fff; border-color: #fff; color: var(--navy); }
.on-dark .btn-secondary { color: #fff; border-color: rgba(255,255,255,.4); }
.on-dark .btn-secondary:hover { border-color: #fff; color: #fff; }

/* Nota con etiqueta a la izquierda (se usa en varias secciones) */
.nota {
  display: grid; grid-template-columns: auto 1fr; gap: 14px;
  margin-top: 36px; padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-2); font-size: 0.98rem;
}
.nota-l {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-ink); padding-top: 4px; white-space: nowrap;
}

/* Íconos en línea (SVG de trazo) */
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* Bloque texto + imagen ilustrativa */
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: center; margin-bottom: clamp(28px, 4vw, 48px); }
.split .section-head { margin-bottom: 0; }
.media { margin: 0; }
.media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.media-portrait img { aspect-ratio: 4 / 5; max-width: 420px; margin-inline: auto; }
.media figcaption { margin-top: 8px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); text-align: right; }

/* Etiqueta pequeña en mono (encabezados de columna, metadatos) */
.k {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-ink);
}


/* ---------------------------------------------------------------------
   5. SECCIONES
   --------------------------------------------------------------------- */

/* --- Encabezado fijo ------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 246, 248, .9);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }

.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em;
}
.brand img { width: 36px; height: 36px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 12px; border-radius: 6px;
  font-size: 0.95rem; font-weight: 500; color: var(--ink-2); text-decoration: none;
}
.nav a:hover, .nav a.is-active { color: var(--ink); background: var(--paper-2); }
.nav .btn { margin-left: 8px; color: #fff; }
.nav .btn:hover { color: #fff; background: var(--accent-ink); }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 8px;
  background: transparent; border: 1px solid var(--line-strong); color: var(--ink); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }


/* --- 1. Inicio (hero) ---------------------------------------------- */
.hero {
  color: #fff; padding-block: clamp(56px, 8vw, 96px);
  background-color: var(--navy);
  background-image:
    linear-gradient(90deg, rgba(19,23,37,.97) 0%, rgba(19,23,37,.9) 50%, rgba(19,23,37,.72) 100%),
    url("../img/hero-fondo.jpg");
  background-size: cover; background-position: center;
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero .eyebrow { color: var(--accent-bright); }
.hero .eyebrow::before { background: var(--accent-bright); }
.hero h1 { color: #fff; max-width: 24ch; }
.hero .lead { margin-top: 22px; font-size: 1.2rem; color: rgba(255,255,255,.78); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-status {
  margin-top: 28px; max-width: 62ch;
  font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.7; letter-spacing: 0.02em;
  color: rgba(255,255,255,.62);
}
.hero-status strong { color: var(--accent-bright); font-weight: 500; }

/* Tarjeta "constancia de sellado" (ejemplo ilustrativo) */
.constancia {
  position: relative;
  background: var(--navy-2); border: 1px solid var(--navy-line); border-radius: 12px;
  padding: 22px 22px 18px;
  font-family: var(--font-mono); font-size: 0.82rem; color: rgba(255,255,255,.85);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.7);
}
.constancia-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px dashed var(--navy-line);
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,.55);
}
.constancia-head strong { color: #fff; font-weight: 500; }
.constancia dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; }
.constancia dt { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,.5); padding-top: 2px; }
.constancia dd { color: #fff; overflow-wrap: anywhere; }
.constancia .ok { color: var(--accent-bright); }
.constancia-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--navy-line);
}
.stamp {
  display: inline-block; padding: 6px 10px;
  border: 2px solid var(--accent-bright); border-radius: 6px; color: var(--accent-bright);
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  transform: rotate(-4deg);
}
.constancia-note { font-size: 0.7rem; color: rgba(255,255,255,.45); max-width: 26ch; }


/* --- 2. El problema -------------------------------------------------- */
.circuitos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 8px; }
.circuito { border-top: 2px solid var(--ink); padding-top: 16px; }
.circuito h3 { margin-bottom: 8px; }
.circuito p { color: var(--ink-2); }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
.stat {
  position: relative;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 20px;
}
.stat::after { /* ojal de etiqueta de evidencia */
  content: ""; position: absolute; top: 16px; right: 16px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--accent-soft); border: 1px solid var(--accent);
}
.section-white .stat { background: var(--paper); }
.stat-tag { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.stat-n {
  font-family: var(--font-display); font-weight: 700; line-height: 1; letter-spacing: -0.02em;
  font-size: clamp(1.8rem, 2.8vw, 2.4rem); font-variant-numeric: tabular-nums; color: var(--ink);
}
.stat-n.is-long { font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.15; }
.stat-l { margin-top: 12px; font-size: 0.95rem; color: var(--ink-2); }

.conclusion {
  margin-top: 44px; max-width: 40ch;
  font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; line-height: 1.35;
  text-wrap: balance;
}
.fuentes { margin-top: 18px; font-size: 0.82rem; color: var(--ink-3); }


/* --- 3. Cómo funciona ---------------------------------------------- */
.band { border-radius: 16px; overflow: hidden; height: clamp(240px, 30vw, 440px); }
.band img { width: 100%; height: 100%; object-fit: cover; }
.pasos {
  list-style: none; padding: 0 clamp(12px, 3vw, 32px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
  margin-top: -110px; position: relative; z-index: 1;
}
.paso {
  position: relative;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 24px 22px 22px;
  box-shadow: 0 18px 40px -24px rgba(18, 24, 38, .35);
}
.paso-n {
  position: absolute; top: 18px; right: 18px;
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; color: var(--ink-3);
}
.paso-ico {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 16px;
}
.paso h3 { margin-bottom: 8px; }
.paso p { color: var(--ink-2); font-size: 0.96rem; }


/* --- 4. Demos -------------------------------------------------------- */
.demos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.demo {
  display: flex; flex-direction: column;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.section-white .demo { background: var(--paper); }
.demo-shot { background: var(--navy); aspect-ratio: 16 / 10; overflow: hidden; }
.demo-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.demo-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 22px 24px 24px; }
.demo-body h3 { font-size: 1.3rem; }
.demo-body p { color: var(--ink-2); }
.demo-meta { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.demo .btn { align-self: flex-start; margin-top: auto; }


/* --- 5. Por qué Web3 ------------------------------------------------ */
.garantias { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.garantia { border-top: 2px solid var(--accent); padding-top: 16px; }
.garantia-ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 14px; }
.garantia .k { display: block; margin-bottom: 10px; }
.garantia h3 { margin-bottom: 8px; }
.garantia p { color: var(--ink-2); font-size: 0.98rem; }

.no-es { margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--line); }
.no-es h3 { margin-bottom: 18px; }
.no-es ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 36px; }
.no-es li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--ink-2); font-size: 0.98rem; }
.no-es li::before { content: "×"; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1.15; color: var(--ink); }
.no-es li strong { color: var(--ink); }


/* --- 6. Modelo ------------------------------------------------------ */
.tabla-wrap { overflow-x: auto; margin-top: 8px; }
.actores { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.actores th {
  text-align: left; padding: 0 16px 12px 0;
  border-bottom: 1px solid var(--ink);
  font-family: var(--font-mono); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3);
}
.actores td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.actores td:first-child { color: var(--ink); font-weight: 600; }
.actor { display: flex; align-items: flex-start; gap: 10px; }
.actor .ico { width: 22px; height: 22px; color: var(--accent-ink); margin-top: 2px; }
.modelo-texto { display: grid; gap: 16px; margin-top: 32px; max-width: 72ch; color: var(--ink-2); }
.modelo-texto strong { color: var(--ink); }


/* --- 7. Dónde estamos ------------------------------------------------ */
.tablero { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.col { background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.section-white .col { background: var(--paper); }
.col-h {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 999px; margin-bottom: 16px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.col-h::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.col-hecho .col-h { background: var(--accent-soft); color: var(--accent-ink); }
.col-curso .col-h { background: var(--amber-soft); color: var(--amber); }
.col-pend .col-h { background: var(--slate-soft); color: var(--ink-2); }
.col ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.col li { position: relative; padding-left: 18px; color: var(--ink-2); font-size: 0.96rem; }
.col li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 8px; height: 1px; background: var(--ink-3); }
.col li strong { color: var(--ink); }


/* --- 8. Lo que falta construir -------------------------------------- */
.desafios { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
.desafio { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.desafio-n { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent-ink); padding-top: 5px; }
.desafio h3 { margin-bottom: 6px; }
.desafio p { color: var(--ink-2); font-size: 0.98rem; }
.desafios-cta { margin-top: 40px; }


/* --- 9. Sumate ------------------------------------------------------ */
.sumate { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: stretch; }
.panel { --pad: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 16px; border-radius: 14px; padding: var(--pad); overflow: hidden; }
.panel-media { margin: calc(var(--pad) * -1) calc(var(--pad) * -1) 6px; aspect-ratio: 16 / 7; overflow: hidden; }
.panel-media img { width: 100%; height: 100%; object-fit: cover; }
.panel h3 { font-size: 1.5rem; }
.panel h4 { font-family: var(--font-body); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin: 8px 0 0; }
.panel p, .panel li { color: var(--ink-2); font-size: 0.98rem; }
.panel ul { padding-left: 18px; display: grid; gap: 8px; }
.panel .btn { align-self: flex-start; margin-top: auto; }
.panel-partner { background: var(--paper-2); border: 1px solid var(--line); }

.panel-cto { background: var(--navy); color: #fff; }
.panel-cto h3 { color: #fff; }
.panel-cto .k { color: var(--accent-bright); }
.panel-cto p, .panel-cto li { color: rgba(255,255,255,.8); }
.panel-cto strong { color: #fff; }

.justicia {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px;
  margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line);
  color: var(--ink-2);
}


/* --- 10. Fundador --------------------------------------------------- */
.fundador { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.fundador-foto img { border-radius: 14px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.fundador .lead { font-size: 1.15rem; color: var(--ink-2); margin: 10px 0 20px; }
.fundador-texto { display: grid; gap: 14px; color: var(--ink-2); max-width: 64ch; }
.fundador-texto strong { color: var(--ink); }
.trayectoria { list-style: none; padding: 22px 0 0; margin-top: 26px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.trayectoria li { display: grid; grid-template-columns: 108px 1fr; gap: 14px; font-size: 0.95rem; color: var(--ink-2); }
.trayectoria .y { font-family: var(--font-mono); font-size: 0.76rem; color: var(--ink-3); padding-top: 4px; }
.trayectoria .y:empty::before { content: "—"; opacity: .4; }
.fundador-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }


/* --- 11. Preguntas frecuentes --------------------------------------- */
.faq { max-width: 800px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; cursor: pointer; list-style: none;
  padding: 18px 44px 18px 0;
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 12px;
  font-family: var(--font-body); font-size: 1.6rem; font-weight: 400; color: var(--ink-3);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 66ch; }


/* --- 12. Contacto ---------------------------------------------------- */
.contacto { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 64px); }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.9rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  font: inherit; font-size: 16px; /* 16px evita el zoom automático de Safari iOS */
  color: var(--ink); background: var(--paper-2);
  border: 1px solid var(--line-strong); border-radius: 8px;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { font-size: 0.95rem; color: var(--ink-2); min-height: 1.5em; }
.form-status.ok { color: var(--accent-ink); }
.form-status.err { color: var(--danger); }
.form-legal { font-size: 0.82rem; color: var(--ink-3); }

.contacto-aside { display: grid; gap: 22px; align-content: start; }
.contacto-aside .k { display: block; margin-bottom: 6px; }
.contacto-aside .email {
  font-family: var(--font-display); font-weight: 600; font-size: 1.35rem;
  color: var(--ink); text-decoration: none; overflow-wrap: anywhere;
}
.contacto-aside .email:hover { color: var(--accent-ink); }
.contacto-aside p { color: var(--ink-2); }


/* --- Pie ------------------------------------------------------------ */
.site-footer { background: var(--navy); color: rgba(255,255,255,.72); padding-block: 48px 36px; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.footer-brand img { width: 150px; margin-bottom: 14px; }
.footer-brand p { max-width: 36ch; }
.footer-k { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 10px; }
.footer-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--accent-bright); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--navy-line);
  font-size: 0.82rem; color: rgba(255,255,255,.5);
}


/* ---------------------------------------------------------------------
   6. CELULAR Y PANTALLAS CHICAS
   --------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { background-image: linear-gradient(180deg, rgba(19,23,37,.94) 0%, rgba(19,23,37,.9) 100%), url("../img/hero-fondo.jpg"); }
  .split { grid-template-columns: 1fr; }
  .media img { max-width: 560px; }
  .pasos { margin-top: -70px; }
  .constancia { max-width: 520px; }
  .pasos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tablero { grid-template-columns: 1fr; }
  .sumate { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: var(--paper-2); border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 10px; font-size: 1.05rem; }
  .nav .btn { margin: 10px 0 0; justify-content: center; }
  .nav-toggle { display: inline-flex; }
  .contacto { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .garantias { grid-template-columns: 1fr; }
  .band { height: clamp(200px, 56vw, 320px); border-radius: 12px; }
  .pasos { margin-top: -40px; padding-inline: 10px; }
  .media-portrait img { max-width: 100%; aspect-ratio: 4 / 3; }
  .demos { grid-template-columns: 1fr; }
  .desafios { grid-template-columns: 1fr; }
  .fundador { grid-template-columns: 1fr; }
  .fundador-foto { max-width: 260px; }
  .footer-grid { grid-template-columns: 1fr; }
  .circuitos { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }

  /* La tabla del modelo pasa a fichas apiladas */
  .actores thead { display: none; }
  .actores tr { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .actores td { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 5px 0; border: 0; }
  .actores td::before {
    content: attr(data-label);
    font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3);
    padding-top: 4px;
  }
  .actores td:first-child { grid-template-columns: 1fr; font-size: 1.1rem; padding-bottom: 8px; }
  .actores td:first-child::before { display: none; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .pasos { grid-template-columns: 1fr; margin-top: -24px; padding-inline: 0; }
  .fundador-foto { max-width: 300px; }
  .no-es ul { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .constancia { padding: 18px 16px 14px; font-size: 0.78rem; }
  .constancia dl { grid-template-columns: 1fr; gap: 4px 0; }
  .constancia dt { margin-top: 8px; }
  .trayectoria li { grid-template-columns: 1fr; gap: 2px; }
  .trayectoria .y:empty { display: none; }
  .nota { grid-template-columns: 1fr; gap: 6px; }
}
