@font-face { font-family: Fredoka; src: url(/fonts/fredoka-latin.woff2) format('woff2'); font-weight: 300 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: Fredoka; src: url(/fonts/fredoka-latin-ext.woff2) format('woff2'); font-weight: 300 700; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Nunito; src: url(/fonts/nunito-latin.woff2) format('woff2'); font-weight: 200 1000; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: Nunito; src: url(/fonts/nunito-latin-ext.woff2) format('woff2'); font-weight: 200 1000; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #0E1B45; --navy: #002784; --navy-2: #0A3BA8; --cyan: #009AC3; --green: #0B8931; --yellow: #F6B100;
  --red: #C62828; --red-bg: #FDEDED; --ok-bg: #E6F4EA;
  --fondo: #F3F6FA; --linea: #E1E7F0; --suave: #5B6787;
  --radio: 20px; --sombra: 0 1px 2px rgba(14, 27, 69, .05), 0 8px 24px -12px rgba(14, 27, 69, .18);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--fondo); color: var(--ink); font: 16.5px/1.5 Nunito, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .boton, .accion b, .hero-cifra, .cifra, .marca span, .cifras b { font-family: Fredoka, Nunito, sans-serif; }
h1 { font-size: clamp(1.6rem, 5vw, 2rem); line-height: 1.15; font-weight: 600; margin: .25rem 0 .4rem; color: var(--navy); }
h2 { font-size: 1.2rem; font-weight: 600; margin: 0; color: var(--navy); }
main { max-width: 920px; margin: 0 auto; padding: 20px 16px 64px; }
a { color: var(--navy); }
b { font-weight: 800; }
small { font-weight: 600; }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.suave { color: var(--suave); margin: 0 0 18px; }
.nota { color: var(--suave); font-size: .92rem; margin: 14px 0 0; }
.vacio { color: var(--suave); text-align: center; padding: 28px 12px; background: #fff; border: 1.5px dashed var(--linea); border-radius: var(--radio); margin: 0; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* ---------- Cabecera ---------- */
.cabecera { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--linea); }
.cabecera-in { max-width: 920px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 12px; }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.marca img { height: 32px; width: auto; }
.marca span { font-weight: 600; font-size: 1.1rem; color: var(--navy); padding-left: 10px; border-left: 1.5px solid var(--linea); }
.cabecera nav { display: flex; gap: 2px; }
.cabecera nav a, .salir { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; text-decoration: none; font: inherit; font-weight: 700; font-size: .95rem; color: var(--suave); background: none; border: 0; cursor: pointer; }
.cabecera nav a:hover, .salir:hover { background: var(--fondo); color: var(--navy); }
.cabecera nav a[aria-current] { background: #E8EEFA; color: var(--navy); }
/* En el móvil la navegación va abajo, al alcance del pulgar. */
@media (max-width: 719px) {
  .cabecera { backdrop-filter: none; background: #fff; } /* el blur haría que la barra "fixed" se pegue a la cabecera */
  .salir span { display: none; }
  .cabecera nav { position: fixed; left: 0; right: 0; bottom: 0; justify-content: space-around; background: #fff; border-top: 1px solid var(--linea); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px -14px rgba(14, 27, 69, .35); }
  .cabecera nav a { flex-direction: column; gap: 2px; font-size: .72rem; padding: 6px 10px; border-radius: 14px; flex: 1; max-width: 110px; }
  .cabecera nav a .ico { width: 22px; height: 22px; }
  main { padding-bottom: 104px; }
}

/* ---------- Botones ---------- */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 1.05rem; font-weight: 600; padding: 12px 22px; min-height: 48px; border: 0; border-radius: 999px; background: var(--navy); color: #fff; cursor: pointer; text-decoration: none; transition: background .15s, transform .1s; }
.boton:hover { background: var(--navy-2); }
.boton:active { transform: scale(.98); }
.boton:disabled { background: #B9C3D6; cursor: not-allowed; transform: none; }
.boton.ancho { width: 100%; }
.boton.secundario { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--linea); }
.boton.secundario:hover { background: var(--fondo); }
.boton.pequeno { font-size: .9rem; padding: 8px 14px; min-height: 38px; }
.boton.peligro { background: #fff; color: var(--red); box-shadow: inset 0 0 0 1.5px #F2C4C4; }
.boton.peligro:hover { background: var(--red-bg); }
.fila-botones { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }
.volver { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font: inherit; font-weight: 700; color: var(--suave); margin-bottom: 6px; background: none; border: 0; padding: 6px 0; cursor: pointer; }
.titulo-con-boton { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Formularios ---------- */
.tarjeta { background: #fff; border-radius: var(--radio); padding: 20px; box-shadow: var(--sombra); }
.formulario, .campos { display: grid; gap: 16px; }
.estrecho { max-width: 460px; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; min-width: 0; }
fieldset.dos { grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 560px) { fieldset.dos { grid-template-columns: 1fr 1fr; } }
legend, label { font-weight: 800; font-size: .95rem; }
legend { padding: 0; margin-bottom: 8px; }
label { display: grid; gap: 6px; }
label small { color: var(--suave); font-weight: 600; }
input, select { font: inherit; font-size: 1rem; padding: 12px 14px; min-height: 48px; border: 1.5px solid var(--linea); border-radius: 14px; background: #fff; color: var(--ink); width: 100%; transition: border-color .15s, box-shadow .15s; }
select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235B6787' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; padding-right: 40px; }
input:focus, select:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(0, 154, 195, .15); outline: none; }
input::placeholder { color: #A3AEC4; }
.con-unidad { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.con-unidad input { max-width: 10rem; text-align: right; font-weight: 800; }
.con-unidad.grande input { font-family: Fredoka, Nunito, sans-serif; font-size: 1.5rem; max-width: 12rem; }
.pastillas { display: flex; flex-wrap: wrap; gap: 8px; }
.pastillas label { display: block; }
.pastillas input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pastillas span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--linea); font-weight: 700; cursor: pointer; background: #fff; transition: all .15s; }
.pastillas input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.pastillas input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* ---------- Avisos ---------- */
.aviso { display: flex; gap: 10px; align-items: flex-start; border-radius: 14px; padding: 12px 14px; margin: 0 0 16px; font-weight: 700; }
.aviso .ico { margin-top: 2px; }
.aviso p { margin: 2px 0; }
.aviso ul { margin: 0; padding-left: 18px; }
.aviso.error { background: var(--red-bg); color: var(--red); }
.aviso.ok { background: var(--ok-bg); color: #075E22; }
.clave { font: 700 1.5rem/1.3 ui-monospace, Consolas, monospace; letter-spacing: .04em; color: var(--ink); user-select: all; }

/* ---------- Entrar ---------- */
.cinta { display: block; width: 100%; height: clamp(70px, 16vw, 170px); }
.fondo-entrar { background: linear-gradient(180deg, #fff 0%, var(--fondo) 100%); }
.fondo-entrar main { padding-top: 0; }
.fondo-entrar > main > .cinta { position: fixed; top: 0; left: 0; z-index: 0; }
.entrar { position: relative; z-index: 1; max-width: 420px; margin: clamp(110px, 16vw, 150px) auto 0; text-align: center; }
.entrar-tarjeta { padding: 28px 24px 26px; }
.emblema { width: 98px; height: 112px; margin: -126px auto 8px; background: var(--navy); -webkit-mask: url(/emblema.png) center / contain no-repeat; mask: url(/emblema.png) center / contain no-repeat; filter: drop-shadow(0 6px 10px rgba(0, 39, 132, .15)); }
.entrar-tarjeta::before { content: ""; display: block; width: 140px; height: 140px; margin: -100px auto 0; border-radius: 50%; background: #fff; box-shadow: var(--sombra); }
.entrar h1 { margin: 6px 0 2px; font-size: 2rem; }
.entrar .suave { margin-bottom: 22px; }
.entrar form { text-align: left; }
.logo-pie { margin: 28px auto 0; opacity: .9; height: 44px; width: auto; }

/* ---------- Hero (inicio) ---------- */
.hero { position: relative; overflow: hidden; border-radius: 26px; background: var(--navy); color: #fff; padding: 26px 22px 30px; display: flex; align-items: center; gap: 18px; justify-content: space-between; box-shadow: 0 18px 40px -22px rgba(0, 39, 132, .7); }
/* Adorno: el galeón de AMET como marca de agua y, abajo, una franja con los colores del logo. */
.hero::before { content: ""; position: absolute; right: -28px; bottom: -44px; width: 230px; height: 262px; background: #fff; opacity: .07; -webkit-mask: url(/emblema.png) center / contain no-repeat; mask: url(/emblema.png) center / contain no-repeat; pointer-events: none; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--cyan) 0 45%, var(--green) 45% 75%, var(--yellow) 75% 100%); }
.hero-texto { position: relative; min-width: 0; }
.hero h1 { color: #fff; margin: 2px 0 12px; }
.hero-kicker { margin: 0; font-weight: 800; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #9FDDF0; }
.hero-etiqueta { margin: 0; font-weight: 700; color: #C9D6F5; }
.hero-cifra { margin: 0; font-size: clamp(2.6rem, 11vw, 3.6rem); line-height: 1.05; font-weight: 600; }
.hero-detalle { margin: 8px 0 0; color: #C9D6F5; font-size: .92rem; }
.hero-anillo { position: relative; flex: none; display: grid; place-items: center; }
.hero-anillo span { position: absolute; text-align: center; font: 600 1.5rem/1 Fredoka, sans-serif; }
.hero-anillo small { display: block; font: 700 .68rem/1.3 Nunito, sans-serif; color: #C9D6F5; text-transform: uppercase; letter-spacing: .06em; }
.anillo-fondo { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 10; }
.anillo-valor { fill: none; stroke: var(--cyan); stroke-width: 10; stroke-linecap: round; transition: stroke-dasharray .6s; }
.justo .anillo-valor { stroke: var(--yellow); }
.pasado .anillo-valor { stroke: #FF6B6B; }
.hero.pasado .hero-cifra { color: #FFB4B4; }
@media (max-width: 479px) { .hero { flex-direction: column; align-items: flex-start; } .hero-anillo { position: absolute; right: 18px; top: 58px; } .hero-anillo svg { width: 92px; height: 92px; } .hero-anillo span { font-size: 1.15rem; } .hero-anillo small { font-size: .58rem; } }
.cifras { display: flex; flex-wrap: wrap; gap: 10px; }
.cifras > * { background: rgba(255, 255, 255, .1); border-radius: 16px; padding: 10px 14px; min-width: 120px; color: #fff; text-decoration: none; }
.cifras a:hover { background: rgba(255, 255, 255, .18); }
.cifras b { display: block; font-size: 1.45rem; font-weight: 600; }
.cifras span { display: flex; align-items: center; gap: 4px; font-size: .85rem; color: #C9D6F5; font-weight: 700; }
@media (max-width: 479px) { .cifras { display: grid; grid-template-columns: 1fr 1fr; width: 100%; } .cifras > * { min-width: 0; } .cifras > :last-child { grid-column: span 2; } }

/* ---------- Acción principal ---------- */
.acciones { margin: 18px 0 8px; }
.accion { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radio); text-decoration: none; color: var(--ink); background: #fff; box-shadow: var(--sombra); transition: transform .15s; }
.accion:hover { transform: translateY(-2px); }
.accion .ico { width: 52px; height: 52px; padding: 13px; border-radius: 16px; stroke-width: 2.2; }
.accion.principal { background: var(--yellow); }
.accion.principal .ico { background: rgba(255, 255, 255, .55); color: var(--navy); }
.accion span { display: grid; }
.accion b { font-size: 1.2rem; font-weight: 600; color: var(--navy); }
.accion small { color: #5C4A12; }

/* ---------- Bloques y marcadores ---------- */
.bloque { margin-top: 26px; }
.bloque-cab { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.bloque-cab a { font-weight: 700; text-decoration: none; }
.rejilla { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.marcador { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: var(--radio); padding: 14px 16px; box-shadow: var(--sombra); }
.marcador .anillo-fondo { stroke: #EAF0F7; stroke-width: 12; }
.marcador .anillo-valor { stroke-width: 12; }
.marcador.pasado .anillo-valor { stroke: var(--red); }
.marcador h3 { margin: 0; font-size: 1.05rem; font-weight: 600; color: var(--navy); }
.marcador .cifra { margin: 0; font-size: 1.35rem; font-weight: 600; line-height: 1.2; color: var(--green); }
.marcador.justo .cifra { color: #A87700; }
.marcador.pasado .cifra { color: var(--red); }
.marcador .detalle { margin: 0; font-size: .82rem; color: var(--suave); font-weight: 600; }
.presupuestos { margin-top: 12px; display: grid; gap: 14px; }
.presupuestos h3 { margin: 0; font-size: 1.05rem; color: var(--navy); }
.filas-presupuesto { display: grid; gap: 8px 24px; }
@media (min-width: 620px) { .filas-presupuesto { grid-template-columns: 1fr 1fr; } .presupuestos .boton { justify-self: start; } }
.fila-presupuesto { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fila-presupuesto .con-unidad input { max-width: 8.5rem; }

/* ---------- Listado de facturas ---------- */
.facturas { list-style: none; margin: 0; padding: 6px; background: #fff; border-radius: var(--radio); box-shadow: var(--sombra); }
.facturas li + li { border-top: 1px solid var(--linea); }
.facturas a { display: flex; align-items: center; gap: 12px; padding: 12px 10px; text-decoration: none; color: var(--ink); border-radius: 14px; }
.facturas a:hover { background: var(--fondo); }
.concepto { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font: 600 1.05rem Fredoka, sans-serif; }
.c-comida { background: #FFF2CC; color: #8A6100; }
.c-material { background: #DDF2FA; color: #006A87; }
.c-transporte { background: #E8EEFA; color: var(--navy); }
.c-otros { background: #E4F3E8; color: #0B6B27; }
.f-texto { flex: 1; min-width: 0; display: grid; }
.f-texto b, .f-texto small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-texto small, .lista-cuentas small { color: var(--suave); }
.f-lado { display: grid; justify-items: end; gap: 3px; }
.insignia { font-size: .72rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.insignia.borrador { background: #FFF2CC; color: #7A5600; }
.insignia.revisado { background: var(--ok-bg); color: #075E22; }
.titulo-con-boton .insignia { font-size: .85rem; padding: 5px 12px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin: 6px -2px 2px; scrollbar-width: none; }
.chip { flex: none; padding: 7px 14px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--linea); text-decoration: none; font-weight: 700; font-size: .9rem; color: var(--suave); }
.chip[aria-current] { background: var(--navy); color: #fff; box-shadow: none; }
.resumen { margin: 10px 2px 12px; color: var(--suave); }

/* ---------- Subir ---------- */
.subir { display: grid; gap: 14px; }
.botones-subir { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.boton-grande { display: grid; place-items: center; gap: 10px; padding: 26px 12px; border-radius: var(--radio); background: var(--navy); color: #fff; font: 600 1.05rem Fredoka, sans-serif; text-align: center; cursor: pointer; box-shadow: 0 14px 30px -18px rgba(0, 39, 132, .8); transition: transform .15s; }
.boton-grande:hover { transform: translateY(-2px); }
.boton-grande .ico { width: 38px; height: 38px; }
.boton-grande.secundario { background: #fff; color: var(--navy); box-shadow: var(--sombra); }
.boton-grande:focus-within { outline: 3px solid var(--cyan); outline-offset: 2px; }
.miniaturas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.miniaturas:empty { display: none; }
.miniaturas li { position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--sombra); }
.miniaturas img { width: 100%; height: 100%; object-fit: cover; }
.miniaturas .es-pdf { display: grid; place-items: center; font: 600 1.2rem Fredoka, sans-serif; color: var(--red); background: var(--red-bg); }
.miniaturas .num { position: absolute; left: 6px; bottom: 6px; background: var(--navy); color: #fff; font-weight: 800; font-size: .8rem; border-radius: 999px; padding: 1px 8px; }
.miniaturas .quitar { position: absolute; right: 6px; top: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(14, 27, 69, .75); color: #fff; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.consejos { padding: 16px 18px; font-size: .95rem; }
.consejos p { margin: 0 0 6px; }
.consejos ul { margin: 0; padding-left: 20px; color: var(--suave); }
.cargando { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(243, 246, 250, .85); backdrop-filter: blur(4px); padding: 16px; }
.cargando[hidden] { display: none; }
.cargando .tarjeta { text-align: center; padding: 28px 32px; }
.cargando p { margin: 4px 0; }
.girando { width: 46px; height: 46px; margin: 0 auto 14px; border-radius: 50%; border: 5px solid #E3EAF5; border-top-color: var(--cyan); animation: girar .8s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .girando { animation-duration: 2s; } }

/* ---------- Revisar / detalle ---------- */
.revisar { display: grid; gap: 16px; align-items: start; }
@media (min-width: 820px) { .revisar { grid-template-columns: 300px 1fr; } .revisar .paginas { position: sticky; top: 76px; } }
.paginas { display: flex; gap: 10px; overflow-x: auto; }
@media (min-width: 820px) { .paginas { flex-direction: column; overflow: visible; } }
.pagina { flex: none; width: 160px; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--sombra); }
@media (min-width: 820px) { .pagina { width: 100%; } }
.pagina img { display: block; width: 100%; height: auto; }
.pagina.pdf { display: grid; place-items: center; gap: 8px; aspect-ratio: 3 / 4; color: var(--red); text-decoration: none; font-weight: 800; }
.pagina.pdf .ico { width: 48px; height: 48px; }
.datos { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0; }
.datos dt { color: var(--suave); font-weight: 700; }
.datos dd { margin: 0; font-weight: 700; }
.borrar { margin-top: 18px; text-align: center; }
.rechazo { max-width: 520px; margin: 24px auto; text-align: center; padding: 30px 24px; }
.rechazo-ico { width: 72px; height: 72px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: #FFF2CC; color: #A87700; }
.rechazo-ico .ico { width: 36px; height: 36px; }
.rechazo h1 { font-size: 1.6rem; }
.rechazo p { color: var(--suave); }

/* ---------- Cuentas ---------- */
.lista-cuentas { list-style: none; margin: 0; padding: 6px 16px; }
.lista-cuentas li { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.lista-cuentas li + li { border-top: 1px solid var(--linea); }
.avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #E8EEFA; color: var(--navy); font: 600 1.05rem Fredoka, sans-serif; }

/* ---------- Subvenciones ---------- */
.hero-kicker.oscuro { color: var(--cyan); margin-top: 0; }
.subvencion { margin-top: 16px; display: grid; gap: 10px; }
.subv-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.subv-cab .suave { margin: 2px 0 0; }
.subv-total { margin: 0; text-align: right; display: grid; }
.subv-total b { font: 600 1.5rem/1.1 Fredoka, sans-serif; color: var(--navy); }
.subv-total span { color: var(--suave); font-weight: 700; font-size: .88rem; }
.aviso.atencion { background: #FFF6DB; color: #6E5000; margin: 0; }
.aviso.atencion a { color: inherit; }
.descarga { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; text-decoration: none; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--linea); transition: background .15s; }
.descarga:hover { background: var(--fondo); }
.descarga > .ico:first-child { width: 42px; height: 42px; padding: 9px; border-radius: 12px; background: var(--red-bg); color: var(--red); }
.descarga.excel > .ico:first-child { background: var(--ok-bg); color: var(--green); }
.descarga > .ico:last-child { color: var(--suave); }
.descarga span { flex: 1; display: grid; min-width: 0; }
.descarga small { color: var(--suave); }
.descarga.excel { background: #F4FAF6; }
.resumen a { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; text-decoration: none; }
@media (max-width: 719px) { .cabecera nav a { font-size: .68rem; padding: 6px 4px; } }

/* ---------- Foto mejorada ---------- */
.lado-paginas { display: grid; gap: 8px; align-content: start; min-width: 0; }
@media (min-width: 820px) { .lado-paginas { position: sticky; top: 76px; } .revisar .paginas { position: static; } }
.lado-paginas .nota { margin: 0; font-size: .85rem; }
.casilla { display: flex; align-items: center; gap: 10px; font-weight: 700; background: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: var(--sombra); cursor: pointer; }
.casilla input { width: 22px; height: 22px; min-height: 0; accent-color: var(--navy); }
.pagina img { background: repeating-linear-gradient(45deg, #f3f6fa 0 8px, #fff 8px 16px); }

/* ---------- Cerrar el curso ---------- */
.fila-botones.izquierda { justify-content: flex-start; }
.paso { margin-top: 16px; display: grid; gap: 12px; }
.paso h2 { display: flex; align-items: center; gap: 10px; }
.paso p, .paso ul { margin: 0; }
.paso ul { padding-left: 20px; display: grid; gap: 4px; }
.num-paso { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-size: 1rem; }
.paso.peligro { box-shadow: var(--sombra), inset 0 0 0 2px #F2C4C4; }
.paso.peligro .num-paso { background: var(--red); }
.codigo { display: inline-block; font: 700 1.3rem/1 ui-monospace, Consolas, monospace; letter-spacing: .2em; background: var(--fondo); padding: 6px 10px; border-radius: 10px; margin-left: 4px; user-select: none; }
.boton.peligro-lleno { background: var(--red); }
.boton.peligro-lleno:hover { background: #A61F1F; }
.boton.peligro-lleno:disabled { background: #E3B5B5; }
