/* Plantilla: Spec Sheet (ficha técnica) · motor Trayectoria · estático, igual para todos los clientes */
:root{
  color-scheme:light;
  --bg:#EDEEE9; --paper:#F3F4EF; --ink:#1A1D1A;
  --muted:#5B6057;          /* 5,5:1 sobre --bg (el original #6A6F66 daba 4,4:1) */
  --grid:#D3D5CE; --hover:#E3E4DE;
  --accent:oklch(0.86 0.15 105);   /* solo como relleno, con texto en --ink encima */
  --ph1:#DCDDD7; --ph2:#E5E6E0;
  --mono:'IBM Plex Mono',ui-monospace,Menlo,monospace; --display:'Archivo','Helvetica Neue',Arial,sans-serif;
  --ease:cubic-bezier(.23,1,.32,1);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.65 var(--mono);padding-inline:16px}
a{color:inherit;text-decoration:none;-webkit-tap-highlight-color:transparent}
a:focus-visible{outline:2px solid var(--ink);outline-offset:-4px;background:var(--accent)}
img{max-width:100%;display:block}
p{margin:0}
ul{margin:0;padding:0;list-style:none}
h1,h2,h3{text-wrap:balance}
.skip{position:absolute;left:-9999px}
.skip:focus{left:16px;top:16px;z-index:30;background:var(--ink);color:var(--bg);padding:12px 14px;min-height:44px;outline:2px solid var(--accent);outline-offset:2px}
.hero > *,.media > *,.sec-head > *,.about > *,.tl > *,.press > *,.contact > *,.contact .body,.talks > *,.articles > *,.cards > *,.edu > *,.orgs > *{min-width:0}
/* transiciones de color cortas (<=200 ms) y feedback de pulsación */
header a,.hero .links a,.specs > a,.cards a,.direct a,.linkrows a{transition:background-color .15s var(--ease),color .15s var(--ease)}

.sheet{max-width:1200px;margin:0 auto;border-left:1px solid var(--ink);border-right:1px solid var(--ink);background:var(--bg)}
.b{border-bottom:1px solid var(--ink)}
.r{border-right:1px solid var(--ink)}
.label{color:var(--muted);text-transform:uppercase;font-size:12px;letter-spacing:.04em}
.cell{padding:24px}
.hl{background:var(--accent);padding:0 4px}

/* ---------- cabecera ---------- */
header{display:flex;position:sticky;top:env(safe-area-inset-top,0px);z-index:10;background:var(--bg)}
header .id{flex:1 1 160px;min-width:0;display:flex;align-items:center;padding:12px 16px;min-height:48px;font-size:13px;font-weight:600;border-right:1px solid var(--ink);overflow-wrap:anywhere}
header .menu{display:flex;flex:0 0 auto}
header .menu a{display:flex;align-items:center;padding:12px 14px;min-height:48px;font-size:13px;white-space:nowrap;border-right:1px solid var(--ink)}
header .menu a.cta{background:var(--accent);font-weight:600;border-right:0}
header .lang{display:flex;align-items:center;justify-content:center;min-width:44px;padding:12px 16px;font-size:12px;font-weight:500;text-transform:uppercase;letter-spacing:.08em;border-left:1px solid var(--ink)}
@media (hover: hover) { header .id:hover,header .menu a:hover,header .lang:hover {background:var(--hover)} header .menu a.cta:hover{background:var(--ink);color:var(--accent)} }
header a:active{background:var(--hover)}
header .menu a.cta:active{background:var(--ink);color:var(--accent)}
@media(min-width:1241px){section[id]{scroll-margin-top:56px}}

/* ---------- portada ---------- */
.hero{display:grid;grid-template-columns:1.4fr 1fr}
.hero .main{padding:40px 24px;display:flex;flex-direction:column;gap:22px}
h1{font-family:var(--display);font-weight:800;font-size:clamp(40px,5.6vw,76px);line-height:.98;letter-spacing:-.03em;margin:0;overflow-wrap:anywhere;hyphens:auto}
.hero .tag{font-size:17px;line-height:1.5;max-width:56ch}
.hero .roles{font-size:13px;color:var(--muted);max-width:60ch}
.hero .links{display:flex;flex-wrap:wrap;gap:10px}
.hero .links a{display:inline-flex;align-items:center;min-height:44px;border:1px solid var(--ink);padding:9px 14px;font-weight:500}
.hero .links a.go{background:var(--accent);font-weight:600}
@media (hover: hover) { .hero .links a:hover {background:var(--ink);color:var(--bg)} }
.hero .links a:active{background:var(--ink);color:var(--bg)}
.hero.solo{grid-template-columns:1fr}
.specs{display:flex;flex-direction:column;container-type:inline-size}
.specs > div{flex:1 1 auto;padding:18px 24px;display:flex;flex-direction:column;gap:2px;justify-content:center}
.specs b{display:block;font-family:var(--display);font-weight:800;font-size:44px;line-height:1;letter-spacing:-.02em;margin-top:6px;overflow-wrap:anywhere}
.specs b.lg{font-size:min(44px,calc((100cqi - 48px) / 5.9))}
.specs small{font-size:12px;color:var(--muted)}
.specs > a{display:flex;align-items:center;min-height:56px;padding:18px 24px;background:var(--accent);font-weight:600;margin-top:auto}
@media (hover: hover) { .specs > a:hover {background:var(--ink);color:var(--accent)} }
.specs > a:active{background:var(--ink);color:var(--accent)}

/* ---------- foto + ficha ---------- */
.media{display:grid;grid-template-columns:1.4fr 1fr}
.ph{margin:0;overflow:hidden;position:relative}
.ph img{width:100%;height:100%;object-fit:cover}
.ph figcaption{position:absolute;left:0;bottom:0;background:var(--bg);border-top:1px solid var(--ink);border-right:1px solid var(--ink);padding:6px 12px;font-size:12px}
.media .ph{height:440px}
.media .ph img{object-position:65% 30%}
.plan{background-color:var(--paper);background-image:repeating-linear-gradient(0deg,transparent 0 23px,var(--grid) 23px 24px),repeating-linear-gradient(90deg,transparent 0 23px,var(--grid) 23px 24px);padding:24px;display:flex;flex-direction:column;gap:16px}
.plan > .label{align-self:flex-start;background:var(--paper)}  /* contraste: la etiqueta caía sobre las líneas del papel milimetrado (4,36:1) */
.plan dl{margin:0;display:grid;grid-template-columns:minmax(0,max-content) minmax(0,1fr);border-top:1px solid var(--ink);background:var(--paper)}
.plan dt,.plan dd{margin:0;padding:10px 12px;border-bottom:1px solid var(--grid);overflow-wrap:anywhere}
.plan dt{max-width:18ch}
.plan dt{color:var(--muted);text-transform:uppercase;font-size:12px;padding-left:0}
.plan dd a{text-decoration:underline;text-underline-offset:3px;display:inline-flex;align-items:center;min-height:44px;margin-block:-12px}

/* ---------- cabecera de sección ---------- */
.sec-head{display:grid;grid-template-columns:1fr 3fr}
.sec-head > *{padding:22px 24px}
.sec-head h2{margin:0;font-family:var(--display);font-weight:800;font-size:clamp(28px,3.4vw,44px);line-height:1.02;letter-spacing:-.025em}
.sec-head .lede{margin-top:12px;max-width:640px;color:var(--ink)}
.sec-head .label{display:flex;flex-direction:column;gap:4px}
.sec-head .label strong{color:var(--ink);font-weight:600;font-size:13px}

/* ---------- sobre mí ---------- */
.about{display:grid;grid-template-columns:1fr 1.6fr}
.about .ph{min-height:560px}
.about .ph img{object-position:top center}
.about .text{padding:28px 24px;display:flex;flex-direction:column;gap:16px;max-width:760px}
.about .text > p:not(.lede){max-width:66ch;font-size:15px}
.about .lede{font-family:var(--display);font-weight:800;font-size:22px;line-height:1.25;letter-spacing:-.01em;border-top:1px solid var(--ink);padding-top:18px}
.about .personal{color:var(--muted)}

/* ---------- trayectoria ---------- */
.tl{display:grid;grid-template-columns:1fr 2fr 1fr}
.tl > *{padding:22px 24px}
.tl h3{margin:0 0 8px;font-size:16px;font-weight:600;line-height:1.35}
.tl p{max-width:66ch;font-size:15px}
.tl .when{display:flex;flex-direction:column;gap:8px}
.tl .when b{font-weight:500}
.tl .now{align-self:flex-start;font-size:12px;text-transform:uppercase;letter-spacing:.06em;font-weight:600}
.tl .tags li{font-size:12.5px;line-height:1.5;padding:8px 0;border-bottom:1px solid var(--grid)}
.tl .tags li:first-child{padding-top:0}
.tl .tags li:last-child{border-bottom:none}
.tl .empty{color:var(--muted);font-size:12px}

/* ---------- ponencias ---------- */
.talks{display:grid;grid-template-columns:repeat(var(--c,4),minmax(0,1fr))}
.talks article.r2,.edu table.r2,.articles article.r2,.orgs li.r2,.cards a.r2{border-top:1px solid var(--ink)}
.talks article{padding:24px;display:flex;flex-direction:column;gap:14px}
.talks .top{display:flex;justify-content:space-between;align-items:flex-start}
.talks svg{width:30px;height:30px}
.talks .count{font-family:var(--display);font-weight:800;font-size:56px;line-height:1;background:var(--accent);padding:4px 12px 2px;letter-spacing:-.02em}
.talks h3{margin:0;font-size:15px;font-weight:600;line-height:1.35;min-height:2.7em}
.talks li{font-size:12.5px;line-height:1.5;padding:9px 0;border-top:1px solid var(--grid);overflow-wrap:anywhere}
.talks li strong{font-weight:600}
.talks li .yr{color:var(--muted)}

/* ---------- formación ---------- */
.edu{display:grid;grid-template-columns:repeat(var(--c,2),minmax(0,1fr))}
.edu table{width:100%;border-collapse:collapse;align-self:start}
.edu table.r{align-self:stretch}
.edu table.r2{align-self:start}
.edu caption{text-align:left;padding:14px 24px;border-bottom:1px solid var(--ink);font-weight:600;text-transform:uppercase;font-size:12.5px;letter-spacing:.04em}
.edu caption span{float:right;background:var(--accent);padding:0 6px}
.edu th,.edu td{text-align:left;vertical-align:top;padding:12px 24px;border-bottom:1px solid var(--grid);font-weight:400}
.edu th{width:128px;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap;padding-right:0}
.edu td strong{display:block;font-weight:600}
.edu td span{color:var(--muted);font-size:13px}
.edu td strong,.edu td span{overflow-wrap:anywhere}
.edu tr:last-child th,.edu tr:last-child td{border-bottom:none}

/* ---------- artículos ---------- */
.articles{display:grid;grid-template-columns:repeat(var(--c,3),minmax(0,1fr))}
.articles article{padding:24px;display:flex;flex-direction:column;gap:10px}
.articles h3{margin:0;font-family:var(--display);font-weight:800;font-size:22px;line-height:1.1;letter-spacing:-.01em;overflow-wrap:anywhere}
.articles p{overflow-wrap:anywhere}
.linkrows a{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:48px;padding:12px 24px;font-weight:500;overflow-wrap:anywhere}
.linkrows a + a{border-top:1px solid var(--grid)}
@media (hover: hover) { .linkrows a:hover {background:var(--hover)} }

/* ---------- prensa ---------- */
.press{display:grid;grid-template-columns:1fr 3fr}
.press .quotes{display:flex;flex-direction:column}
.press blockquote{margin:0;padding:24px;font-family:var(--display);font-weight:800;font-size:clamp(22px,2.6vw,32px);line-height:1.15;letter-spacing:-.015em}
.press blockquote + blockquote{border-top:1px solid var(--grid)}
.press .source{padding:16px 24px;border-top:1px solid var(--ink);font-size:12.5px;color:var(--muted)}
.press .side{padding:24px;display:flex;flex-direction:column;gap:6px}
.press .side b{font-weight:600}

/* ---------- instituciones ---------- */
.orgs{display:grid;grid-template-columns:repeat(var(--c,5),minmax(0,1fr))}
.orgs li{padding:18px 20px;min-height:92px;display:flex;flex-direction:column;justify-content:space-between;gap:10px}
.orgs li span{font-weight:500;line-height:1.35;overflow-wrap:anywhere}

/* ---------- contacto ---------- */
.contact{display:grid;grid-template-columns:1fr 3fr}
.contact .ph{min-height:420px}
.contact .ph img{object-position:top center}
.contact .body{display:flex;flex-direction:column}
.contact .head{padding:24px}
.contact .head h2{margin:6px 0 0;font-family:var(--display);font-weight:800;font-size:clamp(30px,3.8vw,50px);line-height:1;letter-spacing:-.025em}
.cards{display:grid;grid-template-columns:repeat(var(--c,3),minmax(0,1fr));border-top:1px solid var(--ink);flex:1}
.cards a{padding:22px 24px;display:flex;flex-direction:column;gap:8px;overflow-wrap:anywhere}
.cards a:active{background:var(--hover)}
@media (hover: hover) { .cards a:hover {background:var(--hover)} }
.cards h3{margin:0;font-size:15px;font-weight:600}
.cards p{font-size:13px;color:var(--muted);flex:1}
.cards .go{font-weight:600}
.direct{display:flex;flex-wrap:wrap;align-items:stretch;justify-content:space-between;border-top:1px solid var(--ink)}
.direct a{display:flex;align-items:center;min-height:56px;padding:18px 24px;overflow-wrap:anywhere}
.direct a.email{flex:1 1 280px;font-size:clamp(16px,1.8vw,20px);font-weight:500}
.direct a:not(.email){background:var(--accent);font-weight:600;border-left:1px solid var(--ink)}
@media (hover: hover) { .direct a.email:hover{background:var(--hover)} .direct a:not(.email):hover {background:var(--ink);color:var(--accent)} }
.direct a:not(.email):active{background:var(--ink);color:var(--accent)}

footer{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px 20px;padding:16px 24px;font-size:12px}
footer .muted{color:var(--muted)}
@media (hover: hover) { footer a:hover {text-decoration:underline} }
.credit,.trayectoria-credit{display:inline-flex;align-items:center;gap:6px}

/* ---------- responsive ---------- */
@media(max-width:1240px){   /* la barra deja de caber en una fila: nombre + idioma arriba, secciones en una tira debajo */
  header{flex-wrap:wrap;position:relative}
  header .id{order:1}
  header .lang{order:2}
  header .menu{order:3;flex:0 0 100%;min-width:0;overflow-x:auto;border-top:1px solid var(--ink);scrollbar-width:none}
  header .menu::-webkit-scrollbar{display:none}
  header .menu a{flex:1 0 auto;justify-content:center;min-width:44px}
}
@media(max-width:1100px){
  .tl{grid-template-columns:1fr 2fr}
  .tl .when{grid-row:1 / span 2}
  .tl > .r:nth-child(2){border-right:0}
  .tl .tags,.tl .empty{grid-column:2;padding-top:0}
  .tl .tags{display:flex;flex-wrap:wrap;gap:0 18px}
  .tl .tags li,.tl .tags li:first-child{padding:4px 0;border-bottom:0}
  .tl .empty{display:none}
  .talks,.articles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .talks article.r:nth-child(even),.articles article.r:nth-child(even){border-right:0}
  .talks article.r2,.articles article.r2{border-top:0}
  .talks article:nth-child(n+3),.articles article:nth-child(n+3){border-top:1px solid var(--ink)}
  .orgs{grid-template-columns:repeat(2,minmax(0,1fr))}
  .orgs li.r:nth-child(even){border-right:0}
  .orgs li.r2{border-top:0}
  .orgs li:nth-child(n+3){border-top:1px solid var(--ink)}
}
/* columnas con borde derecho (.r) y filas siguientes con borde superior (.r2), calculadas en la plantilla */
.talks article.r,.articles article.r,.orgs li.r,.cards a.r,.edu table.r{border-right:1px solid var(--ink)}
@media(max-width:760px){
  body{padding-inline:12px}
  header .id,header .lang{padding-inline:12px}
  header .menu a{font-size:12px;padding-inline:12px}
  .hero,.media,.sec-head,.about,.tl,.talks,.edu,.articles,.press,.contact,.cards{grid-template-columns:1fr}
  .r{border-right:0;border-bottom:1px solid var(--ink)}
  .talks article,.articles article,.cards a,.edu table,.orgs li.r{border-right:0 !important}
  .talks article.r,.articles article.r,.cards a.r,.edu table.r{border-bottom:1px solid var(--ink)}
  .talks article.r2,.articles article.r2,.cards a.r2,.edu table.r2{border-top:0}
  .talks article:nth-child(n+3),.articles article:nth-child(n+3){border-top:0}
  .talks h3{min-height:0}
  h1{font-size:clamp(34px,11vw,48px)}
  .hero .main{padding:28px 16px}
  .specs{display:flex}
  .specs > a{order:-1;margin-top:0;border-bottom:1px solid var(--ink)}
  .specs > div:last-of-type{border-bottom:0}
  .hero.solo .main{padding-bottom:28px}
  .tl{grid-template-columns:1fr}
  .tl .when{grid-row:auto}
  .tl > .r:nth-child(2){border-right:0}
  .tl .tags,.tl .empty{grid-column:auto}
  .tl > *,.sec-head > *,.talks article,.articles article,.cards a{padding-inline:16px}
  .media .ph{height:300px}
  .about .ph{min-height:0;height:420px}
  .contact .ph{min-height:0;height:340px}
  .edu th{width:96px}
  .edu th,.edu td{padding:10px 16px}
  .edu caption{padding-inline:16px}
  .cards a + a{border-top:1px solid var(--ink)}
  .direct a:not(.email){border-left:0;border-top:1px solid var(--ink);width:100%}
  .direct a.email{padding-inline:16px}
  .linkrows a{padding-inline:16px}
  .plan dl{grid-template-columns:minmax(0,1fr)}
  .plan dt{max-width:none;border-bottom:0;padding-bottom:0}
  .orgs{grid-template-columns:minmax(0,1fr)}
  .orgs li.r{border-right:0 !important}
  .orgs li:nth-child(n+2){border-top:1px solid var(--ink)}
  .orgs li{padding-inline:16px}
  footer{flex-direction:column;align-items:flex-start}
}

/* Robustez (26/9/2026): un email o una palabra muy larga no debe desbordar
   la página en móvil (detectado con un email de 35 caracteres). */
a[href^="mailto:"], .email { overflow-wrap: anywhere; }
