.hp {
    --hp-teal: #00adc7;
    --hp-teal-texto: #00788a;
    --hp-teal-oscuro: #005f6d;
    --hp-teal-suave: #dff3f6;
    --hp-verde-texto: #097a64;
    --hp-texto: #212529;
    --hp-texto-3: #5c6469;
    --hp-borde: #e1e6ea;
    --hp-fondo: #f2f2f2;
    --hp-blanco: #fff;
    --hp-velo: 0, 32, 30;

    padding-bottom: 4rem;
    background: var(--hp-fondo);
}

.hp a { cursor: pointer; }
.hp a:focus-visible { outline: 3px solid var(--hp-teal-texto); outline-offset: 3px; }

.hp .hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: 27rem; padding: 3.5rem 0 6rem; background: var(--hp-teal-oscuro); color: var(--hp-blanco); }
.hp .hero__foto { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hp .hero__velo { position: absolute; inset: 0 auto 0 0; z-index: -1; width: min(100%, 56rem); background: linear-gradient(to right, rgba(var(--hp-velo), 0.66), rgba(var(--hp-velo), 0.4) 55%, rgba(var(--hp-velo), 0)); }
.hp .hero__velo i { position: absolute; inset: 0; }
.hp .hero__velo i:nth-child(1) { backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); mask-image: linear-gradient(to left, transparent 0%, #000 25%, #000 50%, transparent 75%); -webkit-mask-image: linear-gradient(to left, transparent 0%, #000 25%, #000 50%, transparent 75%); }
.hp .hero__velo i:nth-child(2) { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); mask-image: linear-gradient(to left, transparent 25%, #000 50%, #000 75%, transparent 100%); -webkit-mask-image: linear-gradient(to left, transparent 25%, #000 50%, #000 75%, transparent 100%); }
.hp .hero__velo i:nth-child(3) { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); mask-image: linear-gradient(to left, transparent 50%, #000 75%); -webkit-mask-image: linear-gradient(to left, transparent 50%, #000 75%); }
.hp .hero__velo i:nth-child(4) { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); mask-image: linear-gradient(to left, transparent 70%, #000 95%); -webkit-mask-image: linear-gradient(to left, transparent 70%, #000 95%); }
.hp .hero__contenido { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }
.hp .hero__marca { margin: 0 0 0.75rem; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #c9f1f7; }
.hp .hero__titulo { max-width: 22ch; margin: 0 0 1rem; font-size: clamp(2rem, 1.3rem + 2.2vw, 3rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; color: var(--hp-blanco); text-wrap: balance; }
.hp .hero__bajada { max-width: 52ch; margin: 0 0 1.75rem; font-size: 1.125rem; line-height: 1.5; color: #f1f7f8; text-wrap: pretty; }
.hp .hero__acciones { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hp .hero__boton { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0.7rem 1.25rem; border: 1px solid rgba(255, 255, 255, 0.75); border-radius: 8px; color: var(--hp-blanco); font-weight: 700; text-decoration: none; text-shadow: none; transition: background-color 150ms, transform 150ms; }
.hp .hero__boton:hover { background: rgba(255, 255, 255, 0.14); color: var(--hp-blanco); }
.hp .hero__boton:active { transform: scale(0.96); }
.hp .hero__boton--principal { background: var(--hp-blanco); border-color: var(--hp-blanco); color: var(--hp-teal-texto); }
.hp .hero__boton--principal:hover { background: #e6f6f9; color: var(--hp-teal-oscuro); }
.hp .hero__boton:focus-visible { outline: 3px solid var(--hp-blanco); outline-offset: 3px; }

.hp .sec { padding-top: 3.5rem; }
.hp .sec__titulo { font-size: 1.75rem; font-weight: 700; color: var(--hp-texto); margin: 0 0 0.35rem; }
.hp .sec__bajada { color: var(--hp-texto-3); font-size: 1.0625rem; margin: 0 0 1.5rem; max-width: 60ch; }
.hp .cabeza { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; }
.hp .ver-mas { color: var(--hp-teal-texto); font-weight: 700; text-decoration: none; white-space: nowrap; }
.hp .ver-mas:hover { text-decoration: underline; text-underline-offset: 3px; }
.hp .estado { display: inline-block; font-size: 0.8125rem; font-weight: 700; padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--hp-borde); color: var(--hp-texto-3); text-shadow: none; }
.hp .estado--publicado { background: var(--hp-teal-suave); color: var(--hp-teal-oscuro); }
.hp .rotulo { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--hp-texto-3); margin: 0 0 0.6rem; }
.hp .caja { background: var(--hp-blanco); border-radius: 12px; padding: 1.5rem; height: 100%; }
.hp .caja h3 { font-size: 1.375rem; font-weight: 700; color: var(--hp-texto); margin: 0.5rem 0 0.35rem; }
.hp .caja p { color: var(--hp-texto-3); }

.hp .tarjeta-enlace { position: relative; }
.hp .tarjeta-enlace a.cubre::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.hp .tarjeta-enlace:has(a.cubre:focus-visible) { outline: 3px solid var(--hp-teal-texto); outline-offset: 3px; }
.hp .tarjeta-enlace a.cubre:focus-visible { outline: none; }
.hp .foto { display: block; width: 100%; height: 100%; object-fit: cover; }

.hp .puertas { position: relative; z-index: 2; margin-top: 1.5rem; background: var(--hp-blanco); border-radius: 12px; box-shadow: 0 8px 24px rgba(27, 46, 94, 0.08); padding: 1.5rem; }
.hp .puertas__titulo { font-size: 1.125rem; font-weight: 700; color: var(--hp-texto); margin: 0 0 1rem; }
.hp .puertas__lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.hp .puerta { display: flex; flex-direction: column; gap: 0.25rem; height: 100%; padding: 1rem 1.1rem; border: 1px solid var(--hp-borde); border-radius: 10px; text-decoration: none; color: var(--hp-texto); transition: border-color 150ms, background-color 150ms; }
.hp .puerta:hover { border-color: var(--hp-teal-texto); background: var(--hp-teal-suave); }
.hp .puerta__escala { font-size: 1.25rem; font-weight: 700; color: var(--hp-teal-texto); }
.hp .puerta__cifra { display: flex; align-items: baseline; gap: 0.4rem; margin-top: 0.35rem; }
.hp .puerta__cifra b { font-size: 2rem; line-height: 1; color: var(--hp-teal-texto); font-variant-numeric: tabular-nums; }
.hp .puerta__cifra span { color: var(--hp-texto-3); font-size: 0.9375rem; }
.hp .puerta__detalle { color: var(--hp-texto-3); font-size: 0.9375rem; }
.hp .puerta--vacia { background: #fafafa; }
.hp .puerta--vacia .puerta__escala { color: var(--hp-texto-3); }

.hp .mosaico { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.hp .placa { position: relative; overflow: hidden; border-radius: 12px; min-height: 15rem; background: #0b494c; }
.hp .placa img { position: absolute; inset: 0; transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1); }
.hp .placa.tarjeta-enlace:hover img { transform: scale(1.03); }
.hp .placa__texto { position: absolute; inset: auto 0 0 0; padding: 1.5rem; color: var(--hp-blanco); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }
.hp .placa__texto h3 { color: var(--hp-blanco); font-size: 1.5rem; font-weight: 700; margin: 0 0 0.25rem; }
.hp .placa__texto h3 a { color: var(--hp-blanco); text-decoration: none; }
.hp .placa__texto div { font-size: 1rem; max-width: 42ch; }
.hp .placa .estado { margin-bottom: 0.5rem; }
.hp .placa__cifras { list-style: none; margin: 0.75rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.hp .placa__cifras b { display: block; font-size: 1.75rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hp .placa__cifras span { font-size: 0.875rem; color: #e3f1f1; }

/* Desenfoque progresivo: cada capa suma blur en su tramo de la máscara; el velo deja el texto blanco en AA sobre fotos claras */
.hp .desenfoque { position: absolute; inset: auto 0 0 0; height: 58%; pointer-events: none; background: linear-gradient(to top, rgba(var(--hp-velo), 0.55), rgba(var(--hp-velo), 0.25) 45%, rgba(var(--hp-velo), 0)); }
.hp .desenfoque i { position: absolute; inset: 0; }
.hp .desenfoque i:nth-child(1) { backdrop-filter: blur(1px); -webkit-backdrop-filter: blur(1px); mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 30%, transparent 45%); -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 30%, transparent 45%); }
.hp .desenfoque i:nth-child(2) { backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); mask-image: linear-gradient(to bottom, transparent 15%, #000 30%, #000 45%, transparent 60%); -webkit-mask-image: linear-gradient(to bottom, transparent 15%, #000 30%, #000 45%, transparent 60%); }
.hp .desenfoque i:nth-child(3) { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); mask-image: linear-gradient(to bottom, transparent 30%, #000 45%, #000 60%, transparent 75%); -webkit-mask-image: linear-gradient(to bottom, transparent 30%, #000 45%, #000 60%, transparent 75%); }
.hp .desenfoque i:nth-child(4) { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); mask-image: linear-gradient(to bottom, transparent 45%, #000 60%, #000 75%, transparent 90%); -webkit-mask-image: linear-gradient(to bottom, transparent 45%, #000 60%, #000 75%, transparent 90%); }
.hp .desenfoque i:nth-child(5) { backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); mask-image: linear-gradient(to bottom, transparent 60%, #000 80%); -webkit-mask-image: linear-gradient(to bottom, transparent 60%, #000 80%); }

.hp .ndc { display: grid; gap: 1.5rem; background: var(--hp-blanco); border-radius: 12px; padding: 1.5rem; }
.hp .ndc__global > b { display: block; font-size: 3.5rem; line-height: 1; color: var(--hp-verde-texto); font-variant-numeric: tabular-nums; }
.hp .ndc__global > span { color: var(--hp-texto-3); }
.hp .ndc__global > p { color: var(--hp-texto-3); font-size: 0.9375rem; margin: 0.75rem 0 0; }
.hp .ejes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.hp .eje__cab { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.9375rem; color: var(--hp-texto); margin-bottom: 0.25rem; }
.hp .eje__cab b { font-variant-numeric: tabular-nums; }
.hp .pista { height: 10px; border-radius: 999px; background: var(--hp-borde); overflow: hidden; }
.hp .pista span { display: block; height: 100%; background: var(--hp-verde-texto); border-radius: 999px; }

.hp .apilada { display: flex; height: 22px; border-radius: 4px; overflow: hidden; gap: 2px; background: var(--hp-blanco); }
.hp .apilada span { display: block; height: 100%; }
.hp .t-aprobado, .hp .t-resultados { background: var(--hp-verde-texto); }
.hp .t-revisado { background: var(--hp-teal-texto); }
.hp .t-enviado { background: var(--hp-teal); }
.hp .t-observado, .hp .t-sin-avance { background: var(--hp-texto-3); }
.hp .t-borrador, .hp .t-futuro { background: var(--hp-borde); }
.hp .leyenda { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; margin: 0.6rem 0 0; padding: 0; font-size: 0.875rem; color: var(--hp-texto-3); }
.hp .leyenda li { display: flex; align-items: center; gap: 0.4rem; }
.hp .leyenda i { width: 0.75rem; height: 0.75rem; flex: none; border-radius: 2px; }
.hp .leyenda b { font-variant-numeric: tabular-nums; }

.hp .rendicion { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.hp .rendicion .caja h3 { font-size: 1.125rem; margin: 0 0 0.25rem; }
.hp .rendicion__total { display: flex; align-items: baseline; gap: 0.4rem; margin-bottom: 0.75rem; color: var(--hp-texto-3); }
.hp .rendicion__total b { font-size: 2rem; line-height: 1; color: var(--hp-texto); font-variant-numeric: tabular-nums; }

.hp .sectores { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); }
.hp .sector { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; height: 100%; padding: 0.9rem 1rem; border-radius: 10px; background: var(--hp-blanco); font-size: 0.9375rem; color: var(--hp-texto-3); border: 1px solid transparent; }
.hp .sector img { width: 36px; height: 36px; opacity: 0.45; }
.hp .sector__nombre { font-weight: 700; color: var(--hp-texto); line-height: 1.3; }
.hp .sector .estado { margin-top: auto; }
.hp a.sector { text-decoration: none; border-color: var(--hp-teal-texto); }
.hp a.sector img { opacity: 1; }
.hp a.sector:hover { background: var(--hp-teal-suave); }

.hp .territorio { display: grid; gap: 1rem; }
.hp .placa--territorio { min-height: 17rem; }

@media (min-width: 768px) {
    .hp .mosaico { grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; }
    .hp .mosaico > :first-child { grid-row: span 2; }
    .hp .territorio { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 992px) {
    .hp .puertas { margin-top: -3.5rem; }
    .hp .ndc { grid-template-columns: 17rem 1fr; gap: 2.5rem; }
}

@media (max-width: 767.98px) {
    .hp .hero { min-height: auto; padding: 2.5rem 0 3rem; }
    .hp .hero__velo { width: 100%; background: rgba(var(--hp-velo), 0.55); }
}

@media (max-width: 575.98px) {
    .hp .hero__boton { flex: 1 1 100%; }
    .hp .puertas { padding: 1.25rem 1rem; }
    .hp .puertas__lista { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
    .hp .puerta { padding: 0.8rem 0.85rem; }
    .hp .puerta__escala { font-size: 1.0625rem; }
    .hp .puerta__cifra b { font-size: 1.625rem; }
    .hp .puerta__detalle { font-size: 0.8125rem; }
}

@media (prefers-reduced-motion: reduce) {
    .hp .hero__boton, .hp .placa img { transition: none; }
    .hp .hero__boton:active, .hp .placa.tarjeta-enlace:hover img { transform: none; }
}
