* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Mulish, "Segoe UI", system-ui, Arial, sans-serif; color: #1b1f22; min-height: 100vh; }
.fondo { display: flex; flex-direction: column; align-items: center; position: relative; overflow-x: hidden;
  background: linear-gradient(150deg, #04505e 0%, #105e6e 55%, #123038 100%) fixed; }
.fondo::before, .fondo::after { content: ""; position: fixed; background: url("marca.png") no-repeat center / contain; opacity: .07; pointer-events: none; z-index: 0; }
.fondo::before { width: 260px; height: 240px; left: -50px; top: 100px; }
.fondo::after { width: 420px; height: 380px; right: 0; bottom: -20px; }
.fondo > * { position: relative; z-index: 1; }
.fondo footer { color: #8fd3e4; font-size: .8rem; font-weight: 700; padding: 24px; }
.portal header { margin-top: 32px; background: #fff; border-radius: 16px; padding: 6px 18px; }
.portal header img { height: 44px; display: block; }
.portal main { flex: 1; display: flex; flex-direction: column; justify-content: center; text-align: center; width: 100%; max-width: 1280px; padding: 32px; }
.portal h1 { color: #fff; font-size: 2.2rem; }
.sub { color: #8fd3e4; margin: 8px 0 34px; }
.rejilla { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.tarjeta { width: 230px; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 28px 18px 24px;
  background: #f3f6f7; border-top: 6px solid var(--c); border-radius: 24px; color: inherit; text-decoration: none;
  box-shadow: 0 12px 28px rgba(0,0,0,.18); transition: transform .15s; }
.tarjeta:hover, .tarjeta:focus-visible { transform: translateY(-5px); }
.tarjeta:focus-visible { outline: 3px solid #f4a750; }
.icono { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 700; }
.icono img { width: 100%; height: 100%; object-fit: cover; }
.tarjeta strong { font-size: 1.2rem; }
.detalle { font-size: .85rem; color: #444; min-height: 3em; }
.tarjeta em { font-style: normal; font-size: .75rem; font-weight: 700; color: #004650; padding: 5px 16px; border-radius: 20px; }
.tarjeta:hover em { background: #004650; color: #fff; }
.centrado { justify-content: center; padding: 70px 16px 16px; }
.volver { position: absolute !important; top: 24px; left: 5%; color: #fff; text-decoration: none; background: rgba(255,255,255,.15); padding: 5px 16px; border-radius: 20px; font-size: .8rem; font-weight: 700; }
.caja { width: 100%; max-width: 400px; background: #f3f6f7; border-radius: 24px; padding: 32px; text-align: center; margin: auto 0; box-shadow: 0 20px 45px rgba(0,0,0,.25); }
.caja img { height: 40px; }
.caja h1 { font-size: 1.7rem; margin: 10px 0 6px; }
.caja p { font-size: .9rem; color: #444; margin-bottom: 12px; }
.caja label { display: block; text-align: left; font-size: .75rem; font-weight: 700; margin-top: 14px; }
input, select { font: inherit; font-size: .9rem; padding: 9px 12px; border: 1px solid #bcc7cb; border-radius: 10px; background: #fff; }
.caja input { display: block; width: 100%; margin-top: 4px; }
button { font: inherit; font-weight: 700; border: 0; border-radius: 10px; background: #004650; color: #fff; padding: 10px 18px; cursor: pointer; }
.caja button { width: 100%; margin-top: 18px; }
button.secundario { background: #fff; color: #004650; border: 1px solid #bcc7cb; padding: 6px 12px; font-size: .8rem; }
.error { color: #a02020 !important; font-weight: 700; }
.aviso { color: #126e81; font-weight: 700; margin-bottom: 12px; }
.app { display: grid; grid-template-columns: 260px 1fr; background: #f8fafb; }
aside { background: #004650; color: #fff; padding: 22px 16px; display: flex; flex-direction: column; gap: 18px; }
aside > img { height: 40px; align-self: flex-start; background: #fff; border-radius: 8px; padding: 2px 8px; }
nav { flex: 1; }
nav a { display: block; color: #8fd3e4; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: .9rem; }
nav > a { color: #fff; font-weight: 700; }
nav a:hover, nav a.activa { background: #105e6e; color: #fff; }
summary { cursor: pointer; font-weight: 700; padding: 10px 12px; font-size: .9rem; }
details a { margin-left: 12px; }
.quien { font-weight: 700; font-size: .85rem; }
.quien small { display: block; color: #8fd3e4; }
.contenido { display: flex; flex-direction: column; min-width: 0; }
.barra { background: #fff; border-bottom: 1px solid #ccd5d8; padding: 14px 32px; display: flex; justify-content: flex-end; }
.contenido main { flex: 1; padding: 32px; }
.contenido footer { background: #fff; border-top: 1px solid #ccd5d8; padding: 16px 32px; font-size: .8rem; display: flex; justify-content: space-between; }
.ceja { font-size: .7rem; letter-spacing: .08em; color: #004650; }
.contenido h1 { font-size: 2rem; margin-bottom: 24px; }
.indicadores { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.indicadores section, .panel { background: #fff; border: 1px solid #ccd5d8; border-radius: 12px; padding: 20px; }
.indicadores h2 { font-size: .75rem; color: #444; }
.indicadores strong { display: block; font-size: 2.2rem; }
.indicadores small { color: #666; }
.panel { margin-bottom: 20px; overflow-x: auto; }
.panel h2 { font-size: 1.1rem; margin-bottom: 14px; }
.panel ul { padding-left: 18px; font-size: .85rem; overflow-wrap: anywhere; }
table { width: 100%; border-collapse: collapse; font-size: .85rem; }
th, td { text-align: left; padding: 11px 10px; border-bottom: 1px solid #e6ebed; }
th { font-size: .72rem; text-transform: uppercase; background: #f2f4f5; }
.alta, .linea { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 760px) { .app { display: block; } .contenido main { padding: 20px; } .tarjeta { width: 100%; max-width: 320px; } }
