/* ─────────────────────────────────────────
   Sección Acerca de
───────────────────────────────────────── */

/* Eyebrow: línea + (opcional) punto + texto */
.eyebrow {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--acento);
    margin-bottom: 1rem;
}

.eyebrow::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 2px;
    background: var(--acento);
    flex-shrink: 0;
}

.eyebrow .dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--acento);
    flex-shrink: 0;
}

/* Título */
.acerca-titulo {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    color: var(--base);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 0 0 1.5rem;
}

.acerca-titulo em {
    font-style: italic;
    color: var(--acento-2);
    text-underline-offset: 5px;
    text-decoration-thickness: 2px;
}

/* Párrafo lead */
.acerca-lead {
    font-family: var(--display) !important;
    font-size: 1rem !important;
    color: var(--base) !important;
    line-height: 1.7 !important;
    margin: 0 0 1.75rem !important;
}

.acerca-lead b {
    font-weight: 700;
}

/* Lista numerada */
.acerca-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    border-top: 1px solid #e0d9d0;
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.acerca-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
}

.acerca-bullets .num {
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--acento);
    letter-spacing: 0.05em;
    flex-shrink: 0;
    padding-top: 0.15rem;
    min-width: 1.5rem;
}

.acerca-bullets li span:last-child {
    font-family: var(--display);
    font-size: 0.88rem;
    color: var(--ligero);
    line-height: 1.6;
}

.acerca-bullets li b {
    font-weight: 700;
    color: var(--base);
}

/* Footer: link + badge */
.acerca-footer {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    padding-top: 1.5rem;
    border-top: 1px solid #e0d9d0;
}

.acerca-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--display);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--acento);
    text-decoration: none;
    border-bottom: 2px solid var(--acento);
    padding-bottom: 0.1rem;
    transition: color 0.2s, border-color 0.2s;
}

.acerca-link:hover {
    color: var(--acento-2);
    border-color: var(--acento-2);
}

.acerca-link svg {
    transition: transform 0.2s;
}

.acerca-link:hover svg {
    transform: translateX(3px);
}

.acerca-metodo {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: var(--ligero);
    background: var(--bg);
    border: 1px solid #e0d9d0;
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
}

.acerca-metodo::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--acento-2);
    flex-shrink: 0;
}

/* ── Home mapa ── */
.home-mapa {
    width: 100%;
    overflow: hidden;
    position: relative;
}

#home-map {
    width: 100%;
    height: 600px;
}

/* ── Tarjeta flotante de filtros sobre el mapa ── */
.mapa-filtro-flotante {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 70%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(4px);
    border: 1px solid #eadfce;
    border-radius: 10px;
    padding: 8px 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.mapa-filtro-fila {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px;
}

.mapa-filtro-subfila {
    display: contents;
}

.mapa-filtro-campo {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 100px;
    min-width: 100px;
}

.mapa-filtro-campo--tipo {
    flex: 1.4 1 130px;
}

.mapa-filtro-campo label {
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ligero);
}

.mapa-filtro-campo input,
.mapa-filtro-campo select {
    width: 100%;
    font-family: var(--display);
    font-size: 0.76rem;
    color: var(--base);
    background: #fff;
    border: 1px solid #e0d9d0;
    border-radius: 6px;
    padding: 0.3rem 0.4rem;
    outline: none;
    transition: border-color 0.2s;
}

.mapa-filtro-campo input:focus,
.mapa-filtro-campo select:focus {
    border-color: var(--acento);
}

.mapa-filtro-btn {
    flex: 0 0 auto;
    font-family: var(--display);
    font-weight: 600;
    font-size: 0.76rem;
    white-space: nowrap;
    color: #fff;
    background: var(--acento);
    border: none;
    border-radius: 6px;
    padding: 0.35rem 0.9rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.mapa-filtro-btn:hover {
    opacity: 0.9;
}

.mapa-filtro-limpiar {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: var(--ligero);
    background: none;
    border: 1px solid #e0d9d0;
    border-radius: 6px;
    padding: 0;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.mapa-filtro-limpiar:hover {
    border-color: var(--acento);
    color: var(--acento);
}


.valores-section {
    background: var(--bg-2);
    border-top: 1px solid #eadfce;
    border-bottom: 1px solid #eadfce;
    padding: 4rem 0 !important;
    margin-top: 2rem;
}

/* ── Título ── */
.valores-title {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--base);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0;
}

.valores-title em {
    font-style: italic;
    color: var(--acento-2);
}

/* ── Header ── */
.valores-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.valores-header-left {
    flex: 1 1 0;
    min-width: 0;
}

.valores-sub {
    font-size: 0.92rem !important;
    max-width: 380px;
    text-align: right;
}

/* ── Grid ── */
.valores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0px;
    border: 1px solid #eadfce;
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg);
}

/* ── Tarjeta ── */
.valor {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2.25rem 1.75rem 2rem;
    background: var(--bg-2);
    border-right: 1px solid #eadfce;
    gap: 1rem;
    transition: background 0.25s;
}

.valor:last-child {
    border-right: none;
}

.valor:hover {
    background: var(--bg);
}

/* ── Número fantasma ── */
.valor .num-marca {
    font-family: var(--display);
    font-weight: 800;
    font-size: 5rem;
    line-height: 0.9;
    letter-spacing: -0.05em;
    color: transparent;
    position: absolute;
    top: 1.1rem;
    right: 1.25rem;
    pointer-events: none;
    user-select: none;
    -webkit-text-stroke: 1px rgb(214, 200, 178);
    transition: color 0.3s, -webkit-text-stroke-color 0.3s;
}

.valor:hover .num-marca {
    -webkit-text-stroke-color: rgb(180, 210, 200);
}

/* ── Cabecera de tarjeta ── */
.valor-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    position: relative;
    z-index: 1;
}

/* ── Ícono ── */
.valor-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(15, 118, 110, 0.08);
    color: var(--acento-2);
    flex-shrink: 0;
}

/* ── Kicker (etiqueta de categoría) ── */
.valor-kicker {
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ligero);
}

/* ── Título compartido: tarjetas ── */
.valor h3,
.reporte-card h3 {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--base);
    margin: 0;
}

.valor h3 {
    line-height: 1.25;
    position: relative;
    z-index: 1;
}

/* ── Párrafo secundario compartido ── */
.valor p,
.reporte-card .extracto,
.valores-sub {
    font-family: var(--display);
    color: var(--ligero);
    line-height: 1.65;
    margin: 0;
}

.valor p {
    font-size: 0.82rem;
    position: relative;
    z-index: 1;
}

/* ── Footer de tarjeta ── */
.valor-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px dashed #eadfce;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.valor-footer .tag {
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--acento-2);
}

.valor-footer .arrow {
    font-size: 0.9rem;
    color: var(--ligero);
    transition: color 0.2s, transform 0.2s;
}

.valor:hover .valor-footer .arrow {
    color: var(--acento-2);
    transform: translateX(3px);
}





/* ── Reportes: tarjetas ── */
.reporte-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    background: var(--bg-2);
    border: 1px solid #eadfce;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.reporte-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(26, 77, 124, 0.10);
    border-color: #d0c4b0;
}

.reporte-card .img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.reporte-card .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.reporte-card:hover .img-wrap img {
    transform: scale(1.03);
}

.reporte-estado {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: var(--bg-2);
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
}

.reporte-estado.activo {
    color: var(--base);
}

.reporte-estado.activo::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--acento);
    flex-shrink: 0;
}

.reporte-body {
    padding: 1.25rem 1.4rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.reporte-meta {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ligero);
}

.reporte-meta .sep {
    color: #c0b8ae;
}

.reporte-card h3 {
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.reporte-card .extracto {
    font-size: 0.84rem;
}

.reporte-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #eadfce;
}

.reporte-footer .empresa {
    font-family: var(--mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--base);
}

.reporte-footer .leer {
    font-family: var(--mono);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--acento);
    transition: letter-spacing 0.2s;
}

.reporte-card:hover .reporte-footer .leer {
    letter-spacing: 0.14em;
}



/* ── Responsive ── */
@media (max-width: 900px) {
    .valores-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .valor:nth-child(2) {
        border-right: none;
    }
    .valor:nth-child(1),
    .valor:nth-child(2) {
        border-bottom: 1px solid #eadfce;
    }
}

@media (max-width: 768px) {
    #home-map { height: 70vh; }
    .mapa-hero-grid { grid-template-columns: 1fr; }
    .valores-header { flex-direction: column; align-items: flex-start; }
    .valores-sub { text-align: left; }
    .mapa-filtro-flotante { width: calc(100% - 32px); top: 10px; }
    .mapa-filtro-fila { flex-direction: column; align-items: stretch; }
    .mapa-filtro-subfila { display: flex; align-items: flex-end; gap: 8px; }
}

@media (max-width: 560px) {
    .valores-grid {
        grid-template-columns: 1fr;
    }
    .valor {
        border-right: none;
        border-bottom: 1px solid #eadfce;
    }
    .valor:last-child {
        border-bottom: none;
    }
}


.numeros {
    background-color: var(--base);
    color: var(--bg-2);
    font-family: var(--display);
    text-align: center;
}

.numeros h4 {
    font-size: var(--fs-xxl);
}

.numeros h5 {
    color: var(--bg-2);
}


/* ── Panel lateral del mapa ── */
.mapa-hero-grid {
    gap: 0;
}

.mapa-panel {
    display: flex;
    flex-direction: column;
    height: 600px;
    overflow-y: auto;
    border: 1px solid #e0d9d0;
    border-left: none;
    background: var(--bg-2);
}

@media (max-width: 768px) {
    .mapa-panel {
        height: auto;
        max-height: none;
        overflow-y: visible;
        border-left: 1px solid #e0d9d0;
        border-top: none;
    }
}

.mapa-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem 0.6rem;
    border-bottom: 1px solid #e0d9d0;
    flex-shrink: 0;
}

.mapa-panel-header .eyebrow {
    margin-bottom: 0;
}

.panel-cerrar-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    color: var(--ligero);
    padding: 0;
    transition: color 0.15s;
}
.panel-cerrar-btn:hover { color: var(--base); }

.mapa-panel-inc-detalle {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 0.75rem;
    flex: 1;
}

.mapa-panel-inc-titulo {
    font-family: var(--display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--base);
    line-height: 1.4;
}

.mapa-panel-inc-desc {
    font-size: 0.82rem;
    color: var(--ligero);
    line-height: 1.55;
    margin: 0;
}

.mapa-panel p {
    margin: 0;
}

.mapa-panel-inc-meta {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.3rem 0.75rem;
    font-family: var(--mono);
    font-size: 0.8rem;
    margin: 0;
}

.mapa-panel-inc-meta dt {
    color: var(--ligero);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    align-self: center;
}

.mapa-panel-inc-meta dd {
    margin: 0;
    color: var(--base);
    font-weight: 500;
    align-self: center;
}

.mapa-panel-inc-btn {
    display: block;
    text-align: center;
    background: var(--base);
    color: #fff;
    text-decoration: none;
    font-family: var(--display);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    margin-top: auto;
    transition: opacity 0.2s;
}

.mapa-panel-inc-btn:hover { opacity: 0.82; }

.mapa-panel-cargando {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--ligero);
}

.mapa-panel-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border-bottom: 1px solid #e0d9d0;
    background: var(--bg-2);
    transition: background 0.2s;
    min-height: 0;
    overflow: hidden;
}

.mapa-panel-card:last-child {
    border-bottom: none;
}

.mapa-panel-card:hover {
    background: var(--bg);
}

.mapa-panel-img {
    position: relative;
    height: 150px;
    flex-shrink: 0;
    overflow: hidden;
}

.mapa-panel-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.mapa-panel-card:hover .mapa-panel-img img {
    transform: scale(1.04);
}

.mapa-panel-placeholder {
    width: 100%;
    height: 100%;
    background: #e8e0d4;
}

.mapa-panel-body {
    flex: 1;
    padding: 0.85rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-height: 0;
}

.mapa-panel-body h3 {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--base);
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.mapa-panel-reportes {
    margin-top: auto;
    padding-top: 0.6rem;
    font-family: var(--mono);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ligero);
}

.mapa-panel-btn {
    margin-top: auto;
    padding-top: 0.6rem;
    font-family: var(--mono);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--acento);
    transition: letter-spacing 0.2s;
}

.mapa-panel-card:hover .mapa-panel-btn {
    letter-spacing: 0.14em;
}

.mapa-panel-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.mapa-panel-empty p {
    color: var(--ligero);
    font-size: 0.85rem;
    text-align: center;
    margin: 0;
}

/* ── Tarjeta de filtros (páginas públicas y panel comparten .filtro-*; el
   campo en sí usa el .form-group global de forms.css) ── */
.reportes-filtro {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--bg-2);
    border: 1px solid #eadfce;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}

.filtro-row {
    display: grid;
    gap: 1rem;
}

.filtro-row-2 {
    grid-template-columns: repeat(2, 1fr);
}

.filtro-row-3 {
    grid-template-columns: repeat(3, 1fr);
}

.filtro-full {
    width: 100%;
}

.filtro-btn-wrap label {
    visibility: hidden;
}

.filtro-submit {
    width: 100%;
    height: 35px;
    font-family: var(--display);
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    background: var(--acento);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.filtro-submit:hover {
    opacity: 0.9;
}

.filtro-acciones {
    display: flex;
    justify-content: flex-end;
}

.filtro-limpiar {
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ligero);
    text-decoration: none;
    border: 1px solid #eadfce;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: border-color 0.2s, color 0.2s;
}

.filtro-limpiar:hover {
    border-color: var(--acento);
    color: var(--acento);
}

@media (max-width: 768px) {
    .filtro-row-2,
    .filtro-row-3 {
        grid-template-columns: 1fr;
    }
}

/* ── Paginación (reportes.php, incidentes.php; con override en panel.css para el contexto de tarjeta) ── */
.paginacion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #eadfce;
}

.paginacion-info {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--ligero);
}

.paginacion-botones {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.paginacion-pagina {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--ligero);
    white-space: nowrap;
}

.paginacion-btn {
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--acento);
    text-decoration: none;
    border: 1px solid #eadfce;
    border-radius: 8px;
    padding: 0.45rem 0.9rem;
    transition: border-color 0.2s, background 0.2s;
}

.paginacion-btn:hover {
    border-color: var(--acento);
    background: rgba(15, 118, 110, 0.05);
}

.paginacion-btn--disabled {
    color: var(--ligero);
    opacity: 0.5;
    cursor: not-allowed;
}



