/* Dona3D · dona3d.trauma3d.com
   Estética de la presentación de la II Jornada CATA (22/10/2026):
   banners azules con píldora menta, tarjetas blancas, paneles menta y cifras grandes. */

:root {
  --blue: #114d69;
  --blue-deep: #0d3d54;
  --green: #2e7d32;
  --green-ink: #235f27;      /* verde para texto pequeño sobre fondos tintados (AA) */
  --mint: #bfe3c4;
  --mint-soft: #e9f3ea;
  --blue-soft: #e3edf2;
  --bg: #fafaf8;
  --card: #ffffff;
  --ink: #1b2a33;
  --muted: #4a5b66;
  --line: #dfe5e8;
  --pending: #ffe08a;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(17, 77, 105, .06), 0 6px 18px rgba(17, 77, 105, .06);
  --wrap: 1120px;
  --gut: 16px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--font); }
img, video { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--green-ink); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--blue); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gut); }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .hero :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--mint); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--mint); color: var(--blue); padding: .6rem 1rem; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--blue); color: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 58px; }
.brand { color: #fff; text-decoration: none; font-weight: 800; letter-spacing: .01em; font-size: 1.1rem; display: flex; align-items: baseline; gap: .5rem; }
.brand small { font-weight: 500; font-size: .75rem; opacity: .85; letter-spacing: .08em; text-transform: uppercase; }
.brand:hover { color: #fff; }
.nav-toggle { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .55); border-radius: 8px; padding: .4rem .7rem; font: 600 .9rem var(--font); cursor: pointer; }
.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--blue-deep); padding: .5rem var(--gut) 1rem; }
.nav.open { display: block; }
.nav a { white-space: nowrap; display: block; color: #fff; text-decoration: none; padding: .7rem .25rem; border-bottom: 1px solid rgba(255, 255, 255, .12); font-weight: 500; }
.nav a:hover { color: var(--mint); }
.nav .btn { margin-top: .8rem; display: flex; border-bottom: 0; background: var(--mint); color: var(--blue); }
.nav .btn:hover { color: var(--blue); background: #d3edd7; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 46px; padding: .65rem 1.3rem; border-radius: 999px; font: 700 1rem var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--mint); color: var(--blue); }
.btn-primary:hover { background: #d3edd7; color: var(--blue); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .75); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-deep); color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-ink); color: #fff; }

/* ---------- Portada ---------- */
.hero { background: var(--blue); color: #fff; }
.hero .wrap { padding-block: 2.2rem 0; }
.eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--mint); margin: 0 0 1rem; line-height: 1.45; }
.hero h1 { color: #fff; font-size: clamp(2rem, 7.4vw, 3.4rem); font-weight: 800; margin-bottom: .6rem; }
.hero .rule { width: 72px; height: 4px; background: var(--mint); border-radius: 4px; margin: 1.1rem 0 1.1rem; }
.hero .lead { font-size: clamp(1.05rem, 3.6vw, 1.3rem); max-width: 34ch; color: #e6f1f6; margin-bottom: 1.2rem; }
.hero .frase { font-size: 1.1rem; font-style: italic; color: var(--mint); margin-bottom: 1.6rem; }
.cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.4rem; }
.hero .meta { font-size: .88rem; color: #cfe3ec; margin: 0 0 1.6rem; }
.hero .meta strong { color: #fff; }
.hero-img { margin: 0 calc(var(--gut) * -1); border-top: 6px solid var(--mint); }
.hero-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- Secciones ---------- */
.sec { padding-block: 2.6rem 0.4rem; }
.banner { background: var(--blue); color: #fff; border-radius: var(--radius); padding: 1.1rem 1.25rem; margin-bottom: 1.4rem; display: flex; flex-direction: column; gap: .65rem; box-shadow: var(--shadow); }
.banner h1, .banner h2 { color: #fff; margin: 0; font-size: clamp(1.4rem, 5vw, 1.9rem); }
.banner p { margin: .15rem 0 0; color: #d6e8f0; font-size: .98rem; }
.pill { align-self: flex-start; background: var(--mint); color: var(--blue); font-size: .75rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; border-radius: 999px; padding: .3rem .8rem; white-space: nowrap; }

.grid { display: grid; gap: 1rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.2rem; box-shadow: var(--shadow); }
.card h2, .card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.card.soft { background: var(--mint-soft); border-color: #cfe5d2; box-shadow: none; }
.card.blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.card.blue h2, .card.blue h3 { color: #fff; }
.card.quote { background: var(--blue-soft); border: 0; border-left: 5px solid var(--blue); box-shadow: none; }
.label { display: block; font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green-ink); margin-bottom: .45rem; }
.card.blue .label { color: var(--mint); }
.card.blue li::marker { color: var(--mint); }

.checklist li { position: relative; padding: .4rem 0 .4rem 1.5rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .95rem; width: .6rem; height: .6rem; border-radius: 50%; background: var(--green); }
.card.blue .checklist li::before { background: var(--mint); }
.card.blue .checklist li { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.card.blue .checklist li:last-child { border-bottom: 0; }

.big { font-size: clamp(2.4rem, 9vw, 3.6rem); font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.big.green { color: var(--green); }
.big.blue { color: var(--blue); }
.stat { display: flex; align-items: baseline; flex-wrap: wrap; gap: .6rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.stat:first-of-type { border-top: 0; }
.stat span { font-weight: 600; color: var(--muted); }
.stat small { display: block; font-weight: 400; font-size: .85rem; }

blockquote { margin: 0; font-style: italic; font-size: 1.08rem; color: var(--blue); }
blockquote cite { display: block; margin-top: .8rem; font-style: normal; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green-ink); }
.fuente { font-size: .82rem; color: var(--muted); margin: .9rem 0 0; }
.fuente a { color: var(--muted); }

/* Tarjetas de método */
.metodo .nombre { font-size: 1.35rem; font-weight: 800; color: var(--blue); margin: 0 0 .25rem; }
.metodo .sub { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green-ink); }
.metodo p { margin-bottom: 0; }
.callout { background: var(--blue); color: #fff; border-radius: var(--radius); padding: 1.1rem 1.25rem; font-weight: 700; font-size: 1.08rem; margin-top: 1rem; }

/* Subtítulos de sección y utilidades de las páginas */
.subh { font-size: clamp(1.2rem, 4vw, 1.5rem); margin: 2rem 0 .8rem; }
.nav a[aria-current="page"]:not(.btn) { color: var(--mint); font-weight: 700; }
.nav .btn.is-current { outline: 2px solid #fff; outline-offset: 2px; }

/* Tarjetas-enlace de la portada */
.linkcard { display: flex; flex-direction: column; gap: .2rem; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.linkcard:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(17, 77, 105, .1), 0 12px 26px rgba(17, 77, 105, .12); color: var(--ink); }
.linkcard h3 { font-size: 1.3rem; }
.linkcard p { color: var(--muted); margin: 0 0 .8rem; }
.linkcard .more { margin-top: auto; font-weight: 700; color: var(--blue); }
.linkcard:hover .more { color: var(--green-ink); }
.nums p { margin: .5rem 0 0; color: var(--ink); font-weight: 600; }
.nums small { font-weight: 400; color: var(--muted); }
.cta-band { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; margin-top: 1.4rem; }
.cta-band strong { color: var(--mint); }
.legal-page .sources { padding-left: 1.2rem; list-style: decimal; display: grid; gap: .5rem; margin: 0; font-size: .95rem; color: var(--ink); }

/* Paginador anterior / siguiente */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 2.2rem; }
.pager a { display: flex; flex-direction: column; gap: .1rem; padding: .9rem 1.1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; box-shadow: var(--shadow); color: var(--blue); }
.pager a:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); }
.pager small { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green-ink); }
.pager strong { font-size: 1.05rem; }
.pager-next { text-align: right; align-items: flex-end; grid-column: 2; }
.pager-prev { grid-column: 1; }

/* Imágenes y pies */
figure { margin: 0; }
figcaption { font-size: .85rem; color: var(--muted); margin-top: .5rem; }
.ph { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.ph img { width: 100%; }

/* Imagen explícita: difuminada en origen, se muestra con un clic */
.sensible { position: relative; }
.sensible-btn { position: relative; display: block; width: 100%; padding: 0; margin: 0; border: 0; background: #0c2f40; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; color: #fff; text-align: left; font: inherit; }
.sensible-btn img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: filter .25s; }
.sensible-btn.poster img { aspect-ratio: 9 / 16; max-height: 560px; margin-inline: auto; width: auto; max-width: 100%; }
.sensible-aviso { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; text-align: center; padding: 1rem; background: rgba(12, 47, 64, .55); }
.sensible-aviso strong { font-size: 1rem; background: #fff; color: var(--blue); padding: .25rem .7rem; border-radius: 999px; }
.sensible-aviso span { font-size: .9rem; font-weight: 600; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.sensible.visible .sensible-aviso { inset: auto 8px 8px auto; background: rgba(12, 47, 64, .82); padding: .35rem .75rem; border-radius: 999px; flex-direction: row; }
.sensible.visible .sensible-aviso strong { display: none; }
.sensible.visible .sensible-aviso span { font-size: .8rem; text-shadow: none; }
.sensible-vid { max-width: 380px; margin-inline: auto; width: 100%; }
.sensible-video { width: 100%; max-height: 640px; border-radius: var(--radius-sm); background: #000; }
.sensible-hide { margin-top: .5rem; background: none; border: 0; padding: .3rem 0; font: 600 .9rem var(--font); color: var(--blue); text-decoration: underline; cursor: pointer; }

/* Línea de tiempo */
.timeline { display: grid; gap: 1rem; }
.step { display: grid; gap: .9rem; }
.step .when { display: inline-block; background: var(--mint); color: var(--blue); font-weight: 800; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; padding: .25rem .75rem; border-radius: 999px; margin-bottom: .6rem; }

/* Flujo */
.flow { display: grid; gap: .6rem; counter-reset: f; margin-top: 1rem; }
.flow li { counter-increment: f; display: flex; gap: .8rem; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .65rem .9rem; }
.flow li::before { content: counter(f); font-size: 1.4rem; font-weight: 800; color: var(--blue); min-width: 1.2rem; }
.flow small { display: block; color: var(--muted); }

.flow.v { grid-template-columns: 1fr !important; }
.flow.v li { flex-direction: row !important; align-items: center !important; }
.dims { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .7rem; }
.dims .big { font-size: 1.6rem; white-space: nowrap; }

/* Tabla de costes */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .98rem; }
th, td { padding: .6rem .9rem; text-align: left; border-bottom: 1px solid var(--line); }
thead th { background: var(--blue); color: #fff; font-weight: 700; }
tbody th { font-weight: 500; }
tbody tr:last-child > * { border-bottom: 0; }
caption { text-align: left; font-size: .85rem; color: var(--muted); padding: .5rem 0 0; caption-side: bottom; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { background: var(--mint-soft); color: var(--green-ink); font-weight: 700; font-size: .88rem; border-radius: 999px; padding: .3rem .85rem; border: 1px solid #cfe5d2; }

/* Marcador de dato pendiente */
mark.pendiente { background: var(--pending); color: #3b2f00; padding: .1em .4em; border-radius: 4px; font-weight: 600; font-size: .92em; }

/* Colaborar */
.perfil h2, .perfil h3 { display: flex; align-items: center; gap: .5rem; }
.perfil .btn { margin-top: .9rem; width: 100%; }

/* Formulario */
.form { display: grid; gap: 1rem; }
.field label { display: block; font-weight: 700; color: var(--blue); margin-bottom: .3rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #9fb3bd; border-radius: 10px; padding: .7rem .8rem; min-height: 46px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; }
.check input { width: 1.3rem; height: 1.3rem; margin-top: .15rem; accent-color: var(--green); flex: none; }
.hp { position: absolute; left: -9999px; }
.status { min-height: 1.5em; font-weight: 600; }
.status.ok { color: var(--green-ink); }
.status.err { color: #a02020; }
.contact-direct { display: grid; gap: .5rem; }

/* Equipo */
.person h2, .person h3 { margin-bottom: .1rem; }
.person .role { color: var(--muted); font-size: .94rem; margin: 0; }

/* Pie */
.site-footer { background: var(--blue); color: #e1eef4; margin-top: 3.2rem; padding-block: 2.4rem 1.6rem; }
.site-footer h2, .site-footer h3 { color: #fff; font-size: 1.15rem; }
.site-footer a { color: var(--mint); }
.site-footer a:hover { color: #fff; }
.logos { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem 2rem; margin: 0 0 1.6rem; padding: 0 0 1.4rem; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.logos li { display: flex; }
.logos img { height: 52px; width: auto; }
.logos .junta img, .logos .uca img { height: 72px; }
.logos .inibica img { height: 76px; }
.sources { font-size: .86rem; display: grid; gap: .35rem; padding-left: 1.2rem; list-style: decimal; margin: 0 0 1.4rem; }
.legal details { border-top: 1px solid rgba(255, 255, 255, .2); padding: .8rem 0; font-size: .92rem; }
.legal summary { cursor: pointer; font-weight: 700; color: #fff; }
.legal details p, .legal details ul { margin-top: .6rem; color: #d6e8f0; }
.legal ul { list-style: disc; padding-left: 1.2rem; }
.legal mark.pendiente { color: #3b2f00; }
.foot-links { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin: 0 0 1.2rem; font-size: .95rem; }
.copy { font-size: .84rem; margin-top: 1.2rem; color: #b8d3df; }

/* ---------- Escritorio ---------- */
@media (min-width: 640px) {
  :root { --gut: 24px; }
  .cta-band { flex-direction: row; align-items: center; justify-content: space-between; }
  .pager a { padding: 1.1rem 1.4rem; }
  .grid.c2 { grid-template-columns: repeat(2, 1fr); }
  .grid.c3 { grid-template-columns: repeat(3, 1fr); }
  .banner { flex-direction: row; justify-content: space-between; align-items: center; padding: 1.2rem 1.6rem; }
  .pill { align-self: center; }
  .grid.c4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; padding: 0; max-width: none; }
  .hero-text { padding: 4rem 3rem 3rem max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut))); }
  .hero-img { margin: 0; border-top: 0; border-left: 6px solid var(--mint); min-height: 100%; }
  .hero-img img { height: 100%; aspect-ratio: auto; }
  .grid.c4 { grid-template-columns: repeat(4, 1fr); }
  .split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1rem; align-items: start; }
  .step { grid-template-columns: 1fr 1fr; align-items: start; }
  .flow { grid-template-columns: repeat(5, 1fr); }
  .flow li { flex-direction: column; align-items: flex-start; text-align: left; }
}
@media (min-width: 1080px) {
  .nav-toggle { display: none; }
  .nav { display: flex; position: static; background: transparent; padding: 0; align-items: center; gap: 1.2rem; }
  .nav a { border: 0; padding: .3rem 0; font-size: .95rem; }
  .nav a[aria-current="page"]:not(.btn) { box-shadow: 0 2px 0 var(--mint); }
  .nav .btn { margin: 0 0 0 .4rem; padding: .45rem 1.1rem; min-height: 40px; display: inline-flex; }
}
@media print { .site-header, .cta, .form { display: none; } }
