/* Estilo inspirado en el portal real: cabecera blanca, menú de pestañas con borde de color,
   panorama y franja amarilla de mosaico con aros blancos. Sin fuentes externas (CSP). */
:root {
  --fondo: #ffffff; --superficie: #ffffff; --texto: #222; --muted: #5d636b; --borde: #e3e3e3;
  --amarillo: #f6c933; --amarillo-oscuro: #e9b91c;
  --c1: #f2c230; --c2: #e05a5a; --c3: #b06ad8; --c4: #e8a35c; --c5: #4bb38a;
  --acento: #8a4fb0; --ok: #1a7f37; --mal: #b42318;
  --aviso: #fff4ce; --aviso-texto: #5c4400;
  --pagina: #ddf4e4; --servidor: #dde8fb; --org: #f6e3ec;
  --titulos: "Signika", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--fondo); color: var(--texto); }
a { color: var(--acento); }
code { font-size: .9em; }
h1, h2, h3, .menu a, .acceso strong { font-family: var(--titulos); }
.contenedor { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

.aviso-maqueta { background: var(--aviso); color: var(--aviso-texto); padding: 6px 16px; text-align: center; font-size: .85rem; }

/* Cabecera: emblema centrado y menú de pestañas alineado a la derecha */
.cabecera { background: #fff; border-bottom: 1px solid var(--borde); box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.emblema { display: block; width: 64px; margin: 10px auto 6px; }
.emblema img { display: block; }
.menu { display: flex; flex-wrap: wrap; justify-content: flex-end; }
.menu a {
  padding: 18px 24px; color: #333; text-decoration: none; font-weight: 600;
  border: 1px solid var(--borde); border-top: 4px solid; border-bottom: 0; margin-left: -1px; background: #fff;
}
.menu a:hover, .menu a:focus-visible { background: #fafafa; }
.menu .c1 { border-top-color: var(--c1); } .menu .c2 { border-top-color: var(--c2); }
.menu .c3 { border-top-color: var(--c3); } .menu .c4 { border-top-color: var(--c4); }
.menu .c5 { border-top-color: var(--c5); }

/* Panorama */
.panorama { height: 240px; background: #c9d9e6 url("panorama.svg") center bottom / cover no-repeat; display: flex; align-items: flex-start; justify-content: center; }
.panorama-texto { text-align: center; margin-top: 28px; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.45); }
.panorama-texto h1 { margin: 0; font-size: clamp(1.8rem, 4.5vw, 3rem); }
.panorama-texto p { margin: 4px 0 0; font-weight: 600; }

/* Franja amarilla de mosaico con aros blancos sobre línea negra */
.mosaico {
  background-color: var(--amarillo);
  background-image:
    linear-gradient(rgba(0,0,0,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.07) 1px, transparent 1px);
  background-size: 14px 14px;
  padding-bottom: 32px;
}
.accesos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 88px 24px; } /* fila alta: el aro sube 64px sobre la línea */
.acceso { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; color: #111; position: relative; }
.acceso::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: #111; }
.aro { width: 128px; height: 128px; border-radius: 50%; border: 10px solid #fff; margin-top: -64px; position: relative; background: transparent; transition: transform .2s; }
.acceso:hover .aro, .acceso:focus-visible .aro { transform: scale(1.06); }
.acceso strong { font-size: 1.6rem; margin-top: 18px; text-shadow: 0 1px 0 #fff; }
.acceso span:last-child { font-weight: 700; text-shadow: 0 1px 0 #fff; }

/* Contenido */
.bloque { padding: 32px 16px; }
h2 { margin: 0 0 12px; font-size: 1.7rem; }
h2::after { content: ""; display: block; width: 64px; height: 4px; margin-top: 6px; background: linear-gradient(90deg, var(--c1) 20%, var(--c2) 20% 40%, var(--c3) 40% 60%, var(--c4) 60% 80%, var(--c5) 80%); }
.indicadores { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; }
.indicador { background: var(--superficie); border: 1px solid var(--borde); border-radius: 6px; padding: 10px 12px; }
.indicador span { font-weight: 700; margin-right: 6px; }
.indicador.ok span { color: var(--ok); }
.indicador.mal span { color: var(--mal); }
.indicador small { display: block; color: var(--muted); }

.tarjetas { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.tarjeta { background: var(--superficie); border: 1px solid var(--borde); border-top: 4px solid var(--amarillo-oscuro); border-radius: 4px; padding: 16px; }
.tarjeta h3 { margin: 0 0 6px; font-size: 1.15rem; }
.tarjeta p { margin: 0; color: var(--muted); }

.buscador { display: block; margin: 12px 0; font-weight: 600; }
input, textarea { display: block; width: 100%; margin-top: 4px; padding: 10px; font: inherit; color: var(--texto); background: #fff; border: 1px solid #cfcfcf; border-radius: 4px; }
.tabla { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--borde); }
.tabla th { background: var(--amarillo); }
.tabla th, .tabla td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--borde); }
@media (max-width: 560px) {
  .tabla thead { display: none; }
  .tabla tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--borde); }
  .tabla td { display: block; border: 0; padding: 2px 10px; }
  .tabla td:first-child { font-weight: 600; }
  .menu { justify-content: center; }
  .menu a { padding: 12px 14px; }
}

.formulario { display: grid; gap: 12px; max-width: 560px; }
.formulario label { font-weight: 600; }
.formulario .check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.formulario .check input { width: auto; margin-top: 5px; }
button { justify-self: start; padding: 10px 18px; font: inherit; font-weight: 700; border: 0; border-radius: 4px; background: var(--amarillo); color: #111; cursor: pointer; }
button:hover { background: var(--amarillo-oscuro); }
.privacidad { margin-top: 16px; max-width: 560px; }

.etq { display: inline-block; font-size: .75rem; font-weight: 600; padding: 1px 8px; border-radius: 999px; margin-right: 8px; color: var(--texto); }
.etq.pagina { background: var(--pagina); }
.etq.servidor { background: var(--servidor); }
.etq.org { background: var(--org); }
.reglas { padding-left: 1.4em; display: grid; gap: 10px; }
.reglas li { background: #fff; border: 1px solid var(--borde); border-radius: 4px; padding: 10px 12px; }
.reglas strong { margin-right: 4px; }
.reglas em { color: var(--muted); }

.pie { background: #222; color: #ddd; padding: 24px 0; font-size: .9rem; border-top: 6px solid var(--amarillo); }
.pie a { color: var(--amarillo); }
