/* capitanich.com — hoja de estilos del sitio público */

:root {
  --navy: #21345e;
  --navy-2: #2b3f73;
  --navy-dark: #172544;
  --cyan: #59d0f8;
  --cyan-text: #4fb3e8;
  --ink: #1b1b1b;
  --muted: #5d6273;
  --line: #bfc3cc;
  --gray-footer: #d4d4d4;
  --header-bg: #fcf8f7;
  --white: #fff;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Outfit", "Noto Sans", system-ui, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--header-bg);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(33, 52, 94, .06);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { font-weight: 700; font-size: 18px; text-decoration: none; color: #111; letter-spacing: -.01em; margin-right: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { text-decoration: none; font-size: 15px; color: #333; font-weight: 400; }
.nav a:hover { color: var(--navy); }
.nav a[aria-current="page"] { font-weight: 700; color: #111; }
.social { display: flex; align-items: center; gap: 18px; }
.social a { display: inline-flex; color: #111; }
.social a:hover { color: var(--navy); }
.social svg { width: 21px; height: 21px; fill: currentColor; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy); }
.menu-toggle svg { width: 26px; height: 26px; }

@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; }
  .site-header .wrap { gap: 12px; }
  .site-header .social { gap: 14px; }
  .site-header .social svg { width: 19px; height: 19px; }
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--header-bg); border-bottom: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 12px 24px rgba(0,0,0,.08);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px var(--gutter); border-top: 1px solid rgba(0,0,0,.06); font-size: 16px; }
}
@media (max-width: 560px) {
  .site-header .social { display: none; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer; border: 0;
  background: var(--navy); color: #fff; font: 500 13px/1 var(--sans);
  padding: 11px 22px; border-radius: 2px; transition: background .15s, transform .15s;
}
.btn:hover { background: var(--navy-dark); }
.btn-cyan { background: var(--cyan); color: var(--navy); font-size: 14px; }
.btn-cyan:hover { background: #7edcfb; }
.btn-lg { padding: 14px 30px; font-size: 15px; }
.link-more { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.6); padding-bottom: 3px; font-size: 14px; }
.link-more:hover { border-color: #fff; }

/* ---------- Títulos de sección ---------- */
.section { padding: clamp(40px, 6vw, 64px) 0; }
.section-title {
  font-family: var(--serif); font-weight: 400; color: var(--navy);
  font-size: clamp(30px, 3.4vw, 40px); letter-spacing: -.01em; margin-bottom: 26px;
}
.section-title a { text-decoration: none; }
.section-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Hero portada ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: #16181d var(--hero) no-repeat right center / cover;
  min-height: clamp(420px, 52vw, 640px);
  display: flex; align-items: flex-start;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,12,18,.92) 0%, rgba(10,12,18,.72) 30%, rgba(10,12,18,.15) 58%, rgba(10,12,18,0) 75%);
}
.hero .wrap { position: relative; padding-top: clamp(28px, 5vw, 56px); padding-bottom: 48px; }
.hero h1 {
  font-family: var(--serif); font-weight: 400; line-height: 1.02;
  font-size: clamp(44px, 7.4vw, 92px); letter-spacing: -.01em;
}
.hero h1 em { font-style: italic; color: var(--cyan); display: block; }
.hero h1 .l { display: block; }
.hero .bajada {
  display: block; margin-top: 16px; font-family: var(--serif); font-style: italic;
  font-size: clamp(22px, 2.9vw, 36px); line-height: 1.2; color: rgba(255,255,255,.92); max-width: 13em;
}
.hero-fit {
  --h: clamp(420px, 52vw, 640px);
  min-height: var(--h);
  background:
    linear-gradient(90deg, #121418 0%, rgba(18,20,24,.65) 16%, rgba(18,20,24,0) 42%) right center / calc(var(--h) * var(--ar, 1.2)) 100% no-repeat,
    var(--hero) right center / auto 100% no-repeat,
    #121418;
}
.hero-fit::before { display: none; }
@media (max-width: 700px) {
  .hero, .hero-fit { background: #121418 var(--hero) no-repeat 70% center / cover; align-items: flex-end; }
  .hero-fit::before { display: block; }
  .hero::before { background: linear-gradient(0deg, rgba(10,12,18,.95) 0%, rgba(10,12,18,.7) 45%, rgba(10,12,18,.1) 80%); }
}

/* ---------- Bio (banda azul) ---------- */
.bio-band { background: var(--navy); color: #fff; padding: clamp(40px, 6vw, 64px) 0; }
.bio-band .text {
  max-width: 820px; margin: 0 auto; font-family: var(--serif);
  font-size: clamp(16px, 1.5vw, 18.5px); line-height: 1.75; text-align: justify;
}
.bio-band .text p { margin: 0; }
.bio-band .text strong { font-weight: 700; }
.bio-band .more { text-align: center; margin-top: 26px; }

/* ---------- Tarjetas de noticias ---------- */
.news-grid { display: grid; gap: clamp(28px, 3vw, 42px) clamp(18px, 2vw, 22px); grid-template-columns: repeat(3, 1fr); }
.news-grid.cols-4 { grid-template-columns: repeat(4, 1fr); gap: 64px 20px; }
.card { display: flex; flex-direction: column; }
.card h3 {
  font-family: var(--serif); color: var(--navy); font-size: clamp(19px, 1.7vw, 23px);
  line-height: 1.22; margin-bottom: 18px; min-height: 3.66em;
}
.cols-4 .card h3 { font-size: 19px; min-height: 4.9em; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.card .thumb { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #e8ebf1; margin-bottom: 14px; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card .thumb:hover img { transform: scale(1.03); }
.card .summary { font-size: 13.5px; line-height: 1.5; text-align: justify; hyphens: auto; color: #222; flex: 1; margin-bottom: 20px; }
.card .actions { text-align: right; }
@media (max-width: 1000px) { .news-grid.cols-4 { grid-template-columns: repeat(2, 1fr); gap: 44px 22px; } }
@media (max-width: 800px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .news-grid, .news-grid.cols-4 { grid-template-columns: 1fr; }
  .card h3, .cols-4 .card h3 { min-height: 0; }
}

/* ---------- Proyectos / Informes (portada) ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; }
.two-col > div { padding: 0 clamp(18px, 3vw, 28px); }
.two-col > div:first-child { padding-left: 0; border-right: 2px solid var(--line); }
.two-col > div:last-child { padding-right: 0; }
.dated-list { list-style: none; margin: 0; padding: 0; }
.dated-list li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; margin-bottom: 24px; align-items: baseline; }
.dated-list time { font-size: 12.5px; color: #222; white-space: nowrap; }
.dated-list a { font-family: var(--serif); color: var(--navy-2); text-decoration: none; font-size: 17px; line-height: 1.3; }
.dated-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.see-all { font-size: 14px; color: var(--navy); font-weight: 600; text-decoration: none; }
.see-all:hover { text-decoration: underline; }
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .two-col > div, .two-col > div:first-child, .two-col > div:last-child { padding: 0; border: 0; }
}
@media (max-width: 420px) { .dated-list li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Videos (YouTube) ---------- */
.videos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vcard {
  position: relative; background: #1b1f27; border-radius: 12px; overflow: hidden; color: #fff;
  display: flex; flex-direction: column; text-decoration: none; box-shadow: 0 4px 18px rgba(0,0,0,.18);
}
.vcard .media { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.vcard .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, opacity .2s; }
.vcard:hover .media img { transform: scale(1.03); }
.vcard .media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vcard .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 45px; border-radius: 12px; background: rgba(255,0,0,.92);
  display: grid; place-items: center; transition: transform .2s;
}
.vcard .play::after { content: ""; border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 4px; }
.vcard:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.vcard .info { padding: 12px 14px 14px; }
.vcard .t { font-weight: 700; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vcard .m { font-size: 12px; color: #aab1bf; margin-top: 4px; }
.vcard.featured { padding: 14px; background: #1b1f27; }
.vcard.featured .media { border-radius: 10px; }
.vcard.featured .info { padding: 16px 4px 4px; }
.vcard.featured .t { font-size: clamp(16px, 1.8vw, 21px); }
.vcard.featured .m { font-size: 14px; }
.vgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vgrid .vcard { padding: 8px; }
.vgrid .vcard .media { border-radius: 8px; }
.vgrid .vcard .info { padding: 8px 4px 2px; }
.vgrid .vcard .play { width: 40px; height: 28px; border-radius: 8px; }
.vgrid .vcard .play::after { border-left-width: 11px; border-top-width: 7px; border-bottom-width: 7px; margin-left: 3px; }
.vcard .media img.blur { position: absolute; inset: 0; filter: blur(18px) brightness(.55); transform: scale(1.6); }
.vcard .media .vert { position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); aspect-ratio: 9 / 16; overflow: hidden; }
.vcard .media .vert img { position: absolute; height: 100%; width: auto; max-width: none; left: 50%; transform: translateX(-50%); }
.vcard:hover .media .vert img { transform: translateX(-50%); }
.videos-foot { margin-top: 22px; display: flex; justify-content: flex-end; }
.empty-box { background: #f3f5f9; border-radius: 12px; padding: 36px; text-align: center; color: var(--muted); }
@media (max-width: 860px) { .videos { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .vgrid { grid-template-columns: 1fr; } }

/* ---------- Caja de X ---------- */
.xbox { display: grid; grid-template-columns: 330px 1fr; gap: 22px; align-items: start; }
.xprofile {
  background: var(--navy); color: #fff; border-radius: 12px; padding: 28px; text-align: center;
  position: sticky; top: 96px;
}
.xprofile img { width: 108px; height: 108px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; border: 3px solid #fff; }
.xprofile .n { font-family: var(--display); font-weight: 600; font-size: 21px; }
.xprofile .h { color: var(--cyan); font-size: 15px; margin-bottom: 14px; }
.xprofile p { font-size: 14px; color: rgba(255,255,255,.85); }
.xprofile .btn-x { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #000; border-radius: 999px; padding: 11px 22px; font-weight: 700; font-size: 14px; text-decoration: none; }
.xprofile .btn-x svg { width: 16px; height: 16px; fill: currentColor; }
.xprofile .btn-x:hover { background: var(--cyan); }
.xtimeline {
  border: 1px solid #e3e6ec; border-radius: 12px; background: #fff; min-height: 320px;
  max-height: 640px; overflow-y: auto; padding: 4px 8px;
}
.xtimeline .x-loading, .xtimeline .x-fallback { padding: 48px 24px; text-align: center; color: var(--muted); }
.xtimeline .x-fallback { display: none; }
.xtimeline.failed .x-fallback { display: block; }
.xtimeline.failed .x-loading, .xtimeline.failed .twitter-timeline { display: none; }
.xtimeline .x-fallback svg { width: 38px; height: 38px; margin: 0 auto 12px; fill: #111; }
.x-posts { padding: 12px 16px; display: grid; gap: 8px; }
.x-posts .x-post { display: flex; justify-content: center; }
.x-posts .twitter-tweet-rendered { margin: 0 auto !important; }
/* Estilo de respaldo mientras X no transforma el blockquote (o si no lo hace) */
.x-posts blockquote.twitter-tweet { margin: 0; width: 100%; max-width: 550px; border: 1px solid #e3e6ec; border-radius: 12px; padding: 18px 20px; font-size: 15px; line-height: 1.5; background: #fff; }
.x-posts blockquote.twitter-tweet p { margin: 0 0 10px; }
.x-posts blockquote.twitter-tweet a { color: var(--navy-2); }
@media (max-width: 860px) { .xbox { grid-template-columns: 1fr; } .xprofile { position: static; } }

/* ---------- Libros ---------- */
.books-band { background: var(--navy); color: #fff; padding: clamp(44px, 6vw, 70px) 0 clamp(52px, 7vw, 84px); }
.books-band .section-title { color: #fff; }
.books { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); }
.book { display: flex; flex-direction: column; gap: 18px; }
.book .cover { aspect-ratio: 2 / 3.15; background: #33466f; overflow: hidden; box-shadow: 0 10px 28px rgba(0,0,0,.28); }
.book .cover img { width: 100%; height: 100%; object-fit: cover; }
.book .btn-cyan { text-align: center; width: 100%; padding: 12px; }
.book .btn-cyan[aria-disabled="true"] { opacity: .45; pointer-events: none; }
@media (max-width: 800px) { .books { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Página interior: banda con título ---------- */
.page-hero { background: var(--navy); color: #fff; }
.page-hero .wrap { min-height: clamp(150px, 19vw, 300px); display: flex; align-items: center; }
.page-hero h1 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(46px, 7vw, 96px); letter-spacing: -.01em; line-height: 1; }
.page-hero .sub { font-size: 15px; opacity: .85; margin-top: 10px; }
.page-hero.small .wrap { min-height: clamp(120px, 14vw, 200px); }
.page-hero.small h1 { font-size: clamp(36px, 5vw, 64px); }

/* ---------- Sobre mí ---------- */
.profile-hero { background: var(--navy); color: #fff; height: clamp(150px, 18vw, 175px); }
.profile-hero .wrap { position: relative; height: 100%; display: flex; align-items: center; }
.profile-hero .avatar {
  position: absolute; left: calc(var(--gutter) + clamp(0px, 7vw, 62px)); top: clamp(18px, 3vw, 22px);
  width: clamp(120px, 20vw, 196px); height: clamp(120px, 20vw, 196px);
  border-radius: 50%; border: 5px solid #fff; object-fit: cover; background: #ccc;
}
.profile-hero .who { margin-left: calc(clamp(120px, 20vw, 196px) + clamp(0px, 7vw, 62px) + 24px); }
.profile-hero .who h1 { font-family: var(--display); font-weight: 600; font-size: clamp(24px, 3.2vw, 38px); line-height: 1.1; }
.profile-hero .who p { margin: 4px 0 0; font-family: var(--display); font-weight: 400; letter-spacing: .08em; font-size: clamp(13px, 1.6vw, 18px); text-transform: uppercase; }
.cv { max-width: 870px; margin: 0 auto; }
.cv-bio { padding: clamp(80px, 11vw, 110px) 0 36px; font-family: var(--serif); font-size: clamp(15.5px, 1.4vw, 17.5px); line-height: 1.8; color: #333; text-align: justify; }
.cv-bio p { margin: 0 0 1em; }
.cv-bio strong { color: #111; }
.cv-section { border-top: 1px solid var(--line); padding: 28px 0 22px; }
.cv-section h2 { font-weight: 700; font-size: 16px; margin-bottom: 22px; }
.cv-section ul { list-style: none; margin: 0; padding: 0; }
.cv-section li { position: relative; padding-left: 10px; margin-bottom: 4px; font-size: 15px; line-height: 1.55; text-align: justify; }
.cv-section li::before { content: "•"; position: absolute; left: 0; color: var(--cyan-text); }
.cv-section .y { color: var(--cyan-text); font-weight: 600; }
.cv-wide { max-width: calc(var(--wrap) + 2 * var(--gutter)); }
.cv-wide > .cv-section { padding-left: 0; padding-right: 0; }
.cv-wide .inner { max-width: 870px; margin: 0 auto; }

/* ---------- Tablas (comisiones / proyectos) ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; color: var(--navy); }
.data-table thead th {
  background: var(--cyan); color: var(--navy); text-align: left; font-weight: 600;
  font-size: clamp(15px, 1.7vw, 22px); padding: 12px clamp(12px, 2.4vw, 34px);
}
.data-table td { border-bottom: 1px solid #aaa; padding: 14px clamp(12px, 2.4vw, 34px); vertical-align: middle; font-size: clamp(14.5px, 1.5vw, 19px); }
.data-table.comisiones td:last-child, .data-table.comisiones th:last-child { width: 29%; }
.data-table.proyectos th { font-size: clamp(14px, 1.5vw, 17px); padding: 9px 16px; }
.data-table.proyectos td { padding: 14px 16px; font-size: 15px; color: #111; }
.data-table.proyectos td.exp { width: 150px; }
.data-table.proyectos td.exp a { color: var(--cyan-text); font-weight: 600; text-decoration: none; font-size: 16px; white-space: nowrap; }
.data-table.proyectos td.exp a:hover { text-decoration: underline; }
.data-table.proyectos td.fecha { width: 200px; white-space: nowrap; }
.data-table.proyectos td.extracto { font-size: 11.5px; text-transform: uppercase; text-align: justify; line-height: 1.5; letter-spacing: .01em; }
@media (max-width: 700px) {
  .data-table.proyectos thead { display: none; }
  .data-table.proyectos, .data-table.proyectos tbody, .data-table.proyectos tr, .data-table.proyectos td { display: block; width: auto !important; }
  .data-table.proyectos tr { border-bottom: 1px solid #aaa; padding: 12px 0; }
  .data-table.proyectos td { border: 0; padding: 2px 0; }
  .data-table.proyectos td.exp, .data-table.proyectos td.fecha { display: inline-block; margin-right: 14px; }
}
.search-bar { display: flex; gap: 8px; justify-content: flex-end; margin: 0 0 18px; }
.search-bar input { flex: 0 1 320px; padding: 10px 12px; border: 1px solid #c6cad3; border-radius: 3px; font: inherit; font-size: 14px; }
.search-bar .btn { padding: 10px 18px; }
.search-note { font-size: 14px; color: var(--muted); margin-bottom: 12px; }

/* ---------- Paginación ---------- */
.pager { display: flex; justify-content: center; margin: 48px 0 12px; }
.pager ul { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 12px 18px; background: var(--gray-footer); }
.pager a, .pager span { display: inline-block; min-width: 28px; text-align: center; padding: 4px 6px; font-size: 18px; color: var(--navy); text-decoration: none; }
.pager a:hover { text-decoration: underline; }
.pager .cur { color: #111; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.pager .off { opacity: .35; }

/* ---------- Detalle (noticia / informe) ---------- */
.article { max-width: 820px; margin: 0 auto; }
.article .meta { font-size: 14px; color: var(--muted); margin-bottom: 10px; text-transform: capitalize; }
.article h1 { font-family: var(--serif); color: var(--navy); font-size: clamp(30px, 4.2vw, 48px); line-height: 1.12; margin-bottom: 18px; }
.article .lead { font-family: var(--serif); font-size: clamp(17px, 1.8vw, 21px); line-height: 1.55; color: #333; margin-bottom: 28px; }
.article .main-img { margin: 0 0 32px; }
.article .main-img img { width: 100%; max-height: 620px; object-fit: cover; }
.prose { font-size: 17px; line-height: 1.75; color: #222; }
.prose p { margin: 0 0 1.1em; }
.prose h2, .prose h3 { font-family: var(--serif); color: var(--navy); margin: 1.6em 0 .6em; line-height: 1.25; }
.prose h2 { font-size: 28px; } .prose h3 { font-size: 23px; }
.prose a { color: var(--navy-2); text-underline-offset: 3px; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--cyan); font-family: var(--serif); font-size: 20px; color: var(--navy); }
.prose img { margin: 1.4em auto; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; margin: 1.4em 0; }
.prose .ql-align-center { text-align: center; } .prose .ql-align-right { text-align: right; } .prose .ql-align-justify { text-align: justify; }
.prose ul, .prose ol { padding-left: 1.4em; }
.share { display: flex; align-items: center; gap: 10px; margin: 36px 0 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.share a { display: inline-flex; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; align-items: center; justify-content: center; }
.share a:hover { background: var(--cyan); color: var(--navy); }
.share svg { width: 17px; height: 17px; fill: currentColor; }
.doc-box { display: flex; align-items: center; gap: 16px; background: #f1f6fb; border-left: 4px solid var(--cyan); padding: 18px 20px; margin: 28px 0; }
.doc-box svg { width: 34px; height: 34px; flex: none; fill: var(--navy); }
.doc-box .t { flex: 1; font-weight: 600; color: var(--navy); }
.back { display: inline-block; margin-bottom: 26px; color: var(--navy); font-size: 14px; text-decoration: none; }
.back:hover { text-decoration: underline; }
.related { margin-top: 64px; }

/* ---------- Listado de informes ---------- */
.report-list { list-style: none; margin: 0 auto; padding: 0; max-width: 900px; }
.report-list li { border-bottom: 1px solid var(--line); padding: 22px 0; display: grid; grid-template-columns: 120px 1fr; gap: 20px; }
.report-list time { font-size: 14px; color: var(--muted); padding-top: 4px; }
.report-list h2 { font-family: var(--serif); font-size: 23px; line-height: 1.25; color: var(--navy); margin-bottom: 6px; }
.report-list h2 a { text-decoration: none; }
.report-list h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.report-list p { margin: 0; font-size: 15px; color: #333; }
.report-list .pdf { font-size: 13px; font-weight: 600; color: var(--cyan-text); }
@media (max-width: 560px) { .report-list li { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 64px); }
.form { display: grid; gap: 16px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form input, .form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #c6cad3; border-radius: 3px; font: inherit; font-size: 16px; background: #fff;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(89,208,248,.35); }
.form textarea { min-height: 170px; resize: vertical; }
.form .err { color: #b3261e; font-size: 13px; margin-top: 4px; }
.form .hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 18px; border-radius: 4px; margin-bottom: 20px; font-size: 15px; }
.alert-ok { background: #e6f6ec; color: #145c2e; border: 1px solid #b5e0c3; }
.alert-err { background: #fdecea; color: #8c1d18; border: 1px solid #f3c1bd; }
.contact-card { background: var(--navy); color: #fff; padding: 32px; border-radius: 4px; align-self: start; }
.contact-card h2 { font-family: var(--serif); font-size: 28px; margin-bottom: 18px; }
.contact-card dl { margin: 0; display: grid; gap: 14px; font-size: 15px; }
.contact-card dt { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--cyan); }
.contact-card dd { margin: 2px 0 0; }
.contact-card a { color: #fff; }
.contact-card .social { margin-top: 24px; }
.contact-card .social a { color: #fff; }
@media (max-width: 800px) { .contact-grid, .form .row2 { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { font-family: var(--sans); }
.site-footer .wrap { display: grid; grid-template-columns: 1fr auto auto; gap: clamp(24px, 5vw, 60px); align-items: center; }
.footer-gray { background: var(--gray-footer); padding: 56px 0; }
.footer-gray .brand-big { font-weight: 700; font-size: clamp(28px, 3vw, 38px); color: var(--navy); line-height: 1.1; margin-bottom: 6px; }
.footer-gray .id { padding-left: clamp(0px, 8vw, 160px); }
.footer-gray .id p { margin: 0; color: var(--navy); font-size: 17px; line-height: 1.75; }
.footer-gray .id .b { font-weight: 700; }
.footer-contact { font-size: 15px; line-height: 1.8; color: #5a5a5a; font-weight: 600; }
.footer-contact a { color: inherit; text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
.pill { background: var(--navy); border-radius: 999px; padding: 14px 10px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.pill a { color: #fff; display: inline-flex; }
.pill a:hover { color: var(--cyan); }
.pill svg { width: 17px; height: 17px; fill: currentColor; }
.footer-profile { background: #fff; padding: 48px 0 56px; border-top: 1px solid #eee; }
.footer-profile .id { display: flex; align-items: center; gap: 26px; }
.footer-profile .id img { width: clamp(96px, 12vw, 150px); height: clamp(96px, 12vw, 150px); border-radius: 50%; object-fit: cover; flex: none; }
.footer-profile .id .n { font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2.2vw, 28px); color: var(--navy); line-height: 1.15; margin-bottom: 6px; }
.footer-profile .id p { margin: 0; color: var(--navy); font-size: 16px; line-height: 1.6; }
.footer-profile .id .b { font-weight: 700; }
.footer-profile .footer-contact { color: #333; }
.footer-legal { background: var(--navy-dark); color: rgba(255,255,255,.7); font-size: 13px; padding: 14px 0; }
.footer-legal .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-legal a { color: inherit; }
@media (max-width: 800px) {
  .site-footer .wrap { grid-template-columns: 1fr auto; }
  .site-footer .id { grid-column: 1 / -1; padding-left: 0 !important; }
  .pill { flex-direction: row; padding: 10px 16px; }
}
@media (max-width: 480px) {
  .site-footer .wrap { grid-template-columns: 1fr; }
  .pill { justify-self: start; }
  .footer-profile .id { flex-direction: column; align-items: flex-start; }
}

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 90px 0 110px; }
.notfound h1 { font-family: var(--serif); font-size: clamp(40px, 6vw, 72px); color: var(--navy); margin-bottom: 10px; font-style: italic; }
.notfound p { color: var(--muted); margin-bottom: 26px; }

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