/* RAISI · raisi.saberesinternacionales.org — identidad propia de la red (azul marino, acción azul, dorado en detalles). */
:root {
  --navy: #0A1A3A; --navy-2: #13285a; --accion: #2457D6; --accion-osc: #1b45b0; --dorado: #B88A2B; --dorado-claro: #e2c27a;
  --texto: #1b2433; --suave: #5a6577; --borde: #dfe4ee; --fondo: #ffffff; --alterno: #f4f6fb;
  --radio: 14px; --sombra: 0 10px 30px rgba(10, 26, 58, .08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--texto); background: var(--fondo); line-height: 1.6; font-size: 1rem; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accion); }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .6rem; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; }
p { margin: 0 0 1rem; }
.caja { width: min(1180px, 100% - 32px); margin-inline: auto; }
.estrecha { width: min(860px, 100% - 32px); }
.saltar { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 50; }
.saltar:focus { left: 1rem; }
.sobretitulo { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; color: var(--dorado); margin-bottom: .4rem; }

/* Botones */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .75rem 1.3rem; border-radius: 10px; background: var(--accion); color: #fff; font-weight: 700; text-decoration: none; border: 2px solid var(--accion); transition: background .2s, border-color .2s; }
.boton:hover { background: var(--accion-osc); border-color: var(--accion-osc); }
.boton.-claro { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .7); color: #fff; }
.boton.-claro:hover { background: rgba(255, 255, 255, .22); }
.boton.-borde { background: transparent; color: var(--accion); }
.boton.-borde:hover { background: var(--alterno); }
.boton.-dorado { background: var(--dorado); border-color: var(--dorado); color: var(--navy); }
.boton.-dorado:hover { background: var(--dorado-claro); border-color: var(--dorado-claro); }
.acciones { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.4rem; }
.enlace { font-weight: 700; text-decoration: none; white-space: nowrap; }
.enlace::after { content: " →"; }

/* Franja de servicios y cabecera */
.franja-red { background: var(--navy); color: #c9d3e8; font-size: .8rem; }
.franja-red .caja { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; padding: .45rem 0; align-items: center; justify-content: flex-end; }
.franja-red a { color: #fff; text-decoration: none; font-weight: 600; }
.franja-red a:hover { color: var(--dorado-claro); }
.cabecera { background: #fff; border-bottom: 1px solid var(--borde); position: relative; z-index: 10; }
.cabecera-fila { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; }
.marca { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--navy); }
.marca b { display: block; font-size: 1.45rem; font-weight: 800; letter-spacing: .06em; line-height: 1; }
.marca small { display: block; font-size: .68rem; color: var(--suave); line-height: 1.25; margin-top: .2rem; }
.marca.-clara { color: #fff; } .marca.-clara small { color: #b9c4dc; }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .2rem; }
.menu a:not(.boton) { display: block; padding: .5rem .75rem; border-radius: 8px; color: var(--navy); text-decoration: none; font-weight: 600; font-size: .95rem; }
.menu a:not(.boton):hover { background: var(--alterno); }
.menu a[aria-current="page"]:not(.boton) { color: var(--accion); box-shadow: inset 0 -2px 0 var(--dorado); border-radius: 0; }
.menu .boton { margin-left: .5rem; padding: .55rem 1rem; }
.menu-boton { display: none; background: var(--navy); color: #fff; border: 0; border-radius: 8px; padding: .55rem .95rem; font: inherit; font-weight: 700; cursor: pointer; }
@media (max-width: 900px) {
  .menu-boton { display: inline-block; }
  .menu { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--borde); box-shadow: var(--sombra); display: none; }
  .menu.-abierto { display: block; }
  .menu ul { flex-direction: column; align-items: stretch; padding: .5rem 16px 1rem; }
  .menu a[aria-current="page"]:not(.boton) { box-shadow: inset 3px 0 0 var(--dorado); }
  .menu .boton { margin: .5rem 0 0; }
}

/* Portada */
.portada { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.portada-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.portada::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 26, 58, .92) 0%, rgba(10, 26, 58, .55) 70%, rgba(10, 26, 58, .3) 100%); }
.portada-texto { position: relative; z-index: 1; padding: clamp(3.5rem, 9vw, 6.5rem) 0; max-width: 760px; margin-left: max(16px, (100% - 1180px) / 2); }
.portada h1 { color: #fff; }
.portada p { color: #dbe3f3; font-size: 1.08rem; }
.portada .sobretitulo { color: var(--dorado-claro); }

/* Cifras */
.cifras { background: var(--navy-2); color: #fff; }
.cifras ul { list-style: none; margin: 0 auto; padding: 1.4rem 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.cifras li { text-align: center; padding: .4rem; border-left: 1px solid rgba(255, 255, 255, .12); }
.cifras li:first-child { border-left: 0; }
.cifras b { display: block; font-size: 2rem; font-weight: 800; color: var(--dorado-claro); line-height: 1.1; }
.cifras span { font-size: .85rem; color: #c9d3e8; }
@media (max-width: 600px) { .cifras li { border-left: 0; } }

/* Secciones */
.seccion { padding: clamp(2.6rem, 6vw, 4.2rem) 0; }
.seccion.-alterna { background: var(--alterno); }
.encabezado { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: clamp(2.4rem, 6vw, 3.6rem) 0; }
.encabezado h1 { color: #fff; } .encabezado p { color: #dbe3f3; max-width: 720px; margin: 0; } .encabezado .sobretitulo { color: var(--dorado-claro); }
.titulo-fila { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.titulo-fila h2 { margin: 0; }
.sub { margin-top: 2.2rem; font-size: 1.35rem; }
.nota { color: var(--suave); font-size: .9rem; margin-top: 1.2rem; }

/* Qué hacemos */
.objetivos { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.objetivos li { background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); padding: 1.3rem; box-shadow: var(--sombra); }
.objetivos .num { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--navy); color: var(--dorado-claro); font-weight: 800; font-size: .9rem; margin-bottom: .6rem; }
.objetivos b { display: block; font-size: 1.1rem; color: var(--navy); }
.objetivos p { margin: .3rem 0 0; color: var(--suave); }

/* Áreas */
.areas { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .7rem; }
.areas a { display: flex; justify-content: space-between; align-items: center; gap: .6rem; background: #fff; border: 1px solid var(--borde); border-left: 4px solid var(--accion); border-radius: 10px; padding: .85rem 1rem; text-decoration: none; color: var(--navy); font-weight: 700; }
.areas a:hover { border-left-color: var(--dorado); }
.areas small { color: var(--suave); font-weight: 500; white-space: nowrap; }

/* Publicaciones */
.libros { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.2rem; }
.libros a { display: flex; flex-direction: column; gap: .35rem; height: 100%; text-decoration: none; color: var(--texto); background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); padding: .9rem; box-shadow: var(--sombra); transition: transform .2s; }
.libros a:hover { transform: translateY(-3px); }
.libros img { aspect-ratio: 2 / 3; width: 100%; object-fit: cover; border-radius: 8px; margin-bottom: .4rem; }
.libros b, .articulos b { color: var(--navy); line-height: 1.3; }
.etiqueta { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--dorado); }
.autores { font-size: .85rem; color: var(--suave); }
.articulos { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .7rem; }
.articulos a { display: flex; flex-direction: column; gap: .2rem; text-decoration: none; color: var(--texto); background: #fff; border: 1px solid var(--borde); border-radius: 10px; padding: 1rem 1.2rem; }

/* Investigadores */
.miembros { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.miembro { background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); box-shadow: var(--sombra); display: flex; flex-direction: column; }
.miembro > a:first-child { display: flex; gap: .9rem; align-items: center; padding: 1rem; text-decoration: none; color: var(--texto); flex: 1; }
.miembro img, .avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar { display: grid; place-items: center; background: var(--navy); color: var(--dorado-claro); font-weight: 800; font-size: 1.2rem; }
.miembro-texto { display: flex; flex-direction: column; min-width: 0; font-size: .87rem; color: var(--suave); }
.miembro-texto b { color: var(--navy); font-size: 1rem; overflow-wrap: anywhere; }
.miembro-texto em { font-style: normal; font-size: .72rem; font-weight: 700; color: var(--dorado); text-transform: uppercase; letter-spacing: .06em; }
.orcid { font-size: .78rem; padding: .5rem 1rem; border-top: 1px solid var(--borde); text-decoration: none; color: var(--accion); }
[hidden] { display: none !important; }
.filtros { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: flex-end; margin-bottom: 1.4rem; }
.filtros label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .85rem; color: var(--navy); flex: 1 1 240px; }
.filtros input, .filtros select { font: inherit; padding: .65rem .8rem; border: 1px solid var(--borde); border-radius: 10px; background: #fff; }
.filtros-cuenta { margin: 0; color: var(--suave); font-size: .9rem; flex: 0 0 auto; }

/* Agenda */
.eventos { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.eventos li { display: flex; gap: 1rem; background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); padding: 1rem 1.2rem; }
.dia { flex: none; width: 64px; text-align: center; background: var(--navy); color: #c9d3e8; border-radius: 10px; padding: .45rem 0; text-transform: uppercase; font-size: .75rem; font-weight: 700; }
.dia b { display: block; font-size: 1.6rem; color: #fff; line-height: 1.1; }
.eventos b { display: block; color: var(--navy); }
.eventos p { margin: .3rem 0; color: var(--suave); font-size: .92rem; }

/* Estado vacío */
.aviso-vacio { background: #fff; border: 1px dashed #b8c3da; border-radius: var(--radio); padding: 1.6rem; text-align: center; color: var(--suave); }
.aviso-vacio b { display: block; color: var(--navy); font-size: 1.1rem; margin-bottom: .3rem; }
.aviso-vacio p { margin: 0 auto; max-width: 560px; }
.aviso-vacio .boton { margin-top: 1rem; }

/* Servicios */
.servicios { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.servicios a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--texto); border: 1px solid var(--borde); border-top: 4px solid var(--navy); border-radius: var(--radio); padding: 1.3rem; background: #fff; box-shadow: var(--sombra); }
.servicios a:hover { border-top-color: var(--dorado); }
.servicios b { color: var(--navy); font-size: 1.1rem; }
.servicios p { color: var(--suave); flex: 1; margin: .4rem 0 .8rem; }
.servicios span { font-weight: 700; color: var(--accion); }
.servicios span::after { content: " →"; }

/* Llamado */
.llamado { background: linear-gradient(135deg, var(--navy) 0%, #1a3474 100%); color: #fff; padding: 2.6rem 0; }
.llamado-fila { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.llamado h2 { color: #fff; margin-bottom: .3rem; } .llamado p { margin: 0; color: #dbe3f3; }

/* Sobre la red */
.mv { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.mv > div { background: var(--alterno); border-radius: var(--radio); padding: 1.5rem; border-left: 4px solid var(--dorado); }
.mv h2 { font-size: 1.3rem; } .mv p { margin: 0; }
.valores { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .9rem; }
.valores li { border: 1px solid var(--borde); border-radius: 12px; padding: 1rem 1.1rem; }
.valores b { color: var(--navy); } .valores p { margin: .25rem 0 0; color: var(--suave); font-size: .92rem; }
.documentos { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .6rem; }
.documentos a { display: flex; align-items: center; gap: .8rem; background: #fff; border: 1px solid var(--borde); border-radius: 10px; padding: .8rem 1rem; text-decoration: none; color: var(--navy); }
.documentos small { margin-left: auto; color: var(--suave); }
.pdf { background: #b3261e; color: #fff; font-size: .7rem; font-weight: 800; padding: .25rem .4rem; border-radius: 4px; }
.tramite { list-style: none; margin: 1.2rem 0 0; padding: 0; counter-reset: paso; display: grid; gap: .6rem; }
.tramite li { counter-increment: paso; display: flex; justify-content: space-between; gap: 1rem; align-items: center; border: 1px solid var(--borde); border-radius: 10px; padding: .8rem 1rem; }
.tramite li::before { content: counter(paso); flex: none; width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center; background: var(--alterno); color: var(--navy); font-weight: 800; font-size: .85rem; }
.tramite b { flex: 1; color: var(--navy); font-weight: 600; }
.tramite span { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--suave); white-space: nowrap; }
.tramite .-en-curso span { color: var(--accion); } .tramite .-en-curso::before { background: var(--accion); color: #fff; }
.tramite .-hecho span { color: var(--dorado); } .tramite .-hecho::before { background: var(--dorado); color: #fff; }
.registro-num { font-size: 1.1rem; }
.pasos { list-style: none; margin: 0; padding: 0; counter-reset: paso; display: grid; gap: 1rem; }
.pasos li { counter-increment: paso; position: relative; padding: 1.2rem 1.2rem 1.2rem 4rem; border: 1px solid var(--borde); border-radius: var(--radio); }
.pasos li::before { content: counter(paso); position: absolute; left: 1.1rem; top: 1.1rem; width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--dorado-claro); font-weight: 800; }
.pasos b { color: var(--navy); font-size: 1.05rem; } .pasos p { margin: .3rem 0 0; color: var(--suave); }

/* Pie */
.pie { background: var(--navy); color: #c9d3e8; padding: 3rem 0 1.2rem; font-size: .92rem; }
.pie-rejilla { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.pie h2 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .8rem; }
.pie ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.pie a { color: #fff; text-decoration: none; } .pie a:hover { color: var(--dorado-claro); }
.pie .marca { margin-bottom: 1rem; }
.pie-creditos { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 2.2rem; padding-top: 1rem; font-size: .78rem; color: #9fb0d0; }
.pie-creditos p { margin: .2rem 0; } .pie-creditos a { color: #c9d3e8; text-decoration: underline; }
@media (max-width: 800px) { .pie-rejilla { grid-template-columns: 1fr 1fr; } .pie-rejilla > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .pie-rejilla { grid-template-columns: 1fr; } .tramite li { flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
