﻿
#divResultadosIntervencion {
    margin-top: 0;
    font-size: 0.9rem;
    width: 100%;
    max-width: 920px;
    margin-inline: auto;
}


.pvd-int-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: inline-block;
}

#divResultadosIntervencion .pvd-tarjeta {
    align-items: center;
}

#divResultadosIntervencion .pvd-icono {
    width: 42px;
    height: 42px;
    margin-top: 0.5rem;
}

#divResultadosIntervencion .pvd-info {
    min-width: 0;
}

.pvd-int-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom:0.5rem;
}

.pvd-int-card-head__fill {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 1.1em;
}

.pvd-int-card-head h3 {
    margin: 0;
    color: #e1252f;
    font-size: 0.9rem;
    font-weight: 700;
}

.pvd-int-estado {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.3rem;
    padding: 0.23rem 0.72rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.pvd-int-estado--preinversion {
    background: #fff1dd;
    color: #f7a44f;
}

.pvd-int-estado--ejecucion {
    background: #e6f5e8;
    color: #2f8b47;
}

.pvd-int-estado--estudio {
    background: #e6f1ff;
    color: #2c6ecb;
}

.pvd-int-estado--default {
    background: #eef1f5;
    color: #5f6c78;
}

.pvd-int-denom {
    margin-top: 0.2rem;
    font-size: 0.88rem;
    line-height: 1.22;
    color: #3b4650;
    text-transform: uppercase;
    font-weight: 500;
}

.pvd-int-gerencia {
    font-size: 0.83rem;
    color: #6c7680;
}


.pvd-int-ubicacion {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.12rem;
    font-size: 0.75rem;
    color: #7a838d;
    text-transform: uppercase;
}

.pvd-int-ubicacion-ico {
    width: 0.78rem;
    height: 0.78rem;
    object-fit: contain;
    flex-shrink: 0;
}

.pvd-int-foot {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pvd-int-intervencion {
    display: block;
    flex: 1 1 0;
    min-width: 0;
    font-size: 0.78rem;
    color: #606972;
    font-weight: 500;
    line-height: 1.35;
    word-break: break-word;
}

.pvd-int-foot__accion {
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
    margin-left: auto;
}

#divResultadosIntervencion .btn-ver-detalle {
    border-color: #f2bcc1;
}

.pvd-int-icon-road {
    display: block;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    background-color: var(--pvd-legenda-via, #90a4ae);
    -webkit-mask: url('/images/intervencion/ruta.svg') no-repeat center / contain;
    mask: url('/images/intervencion/ruta.svg') no-repeat center / contain;
}

.pvd-int-icon-road--afirmado { --pvd-legenda-via: #512100; }

.pvd-int-icon-road--asfaltado { --pvd-legenda-via: #f70000; }

.pvd-int-icon-road--cns { --pvd-legenda-via: #f79100; }

.pvd-int-icon-road--mtto-per { --pvd-legenda-via: #00619b; }

.pvd-int-icon-road--mtto-rut { --pvd-legenda-via: #7f639b; }

#divResultadosIntervencion .pvd-int-card-head h3 {
    font-weight: 500;
}

.pvd-int-icon--via {
    background-color: var(--via-color, #8b8b8b);
    -webkit-mask: url('/images/intervencion/via.svg') no-repeat center / contain;
    mask: url('/images/intervencion/via.svg') no-repeat center / contain;
}

.pvd-int-mapa {
    position: relative;
    width: 100%;
    min-height: 20rem;
    border-radius: 0.65rem;
    overflow: hidden;
    border: none;
    background: #f4f6f8;
    box-sizing: border-box;
    margin-bottom: 1rem;
}

.pvd-int-mapa[hidden] {
    display: none !important;
    min-height: 0;
    margin-bottom: 0;
}

.pvd-int-mapa::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-sizing: border-box;
    border: 1px solid #e4e6e7;
    pointer-events: none;
    z-index: 2;
}

.pvd-int-mapa .google-maps-floating-button {
    position: absolute;
    right: 0.5rem;
    bottom: 1.6rem;
    z-index: 5;
    pointer-events: auto;
}

.pvd-int-mapa .google-maps-floating-button button {
    background: #fff;
    border: 1px solid #fff;
    border-radius: 40%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.pvd-int-mapa .google-maps-floating-button button:hover {
    background: #007cbf;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.pvd-int-mapa .google-maps-floating-button button img {
    display: block;
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.pvd-int-mapa .google-maps-floating-button button:hover img {
    filter: brightness(0) invert(1);
}

.pvd-int-mapa .view-point-floating-button {
    position: absolute;
    right: 0.5rem;
    bottom: 4.8rem;
    z-index: 5;
    pointer-events: auto;
}

.pvd-int-mapa .view-point-floating-button button {
    background: #fff;
    border: 1px solid #fff;
    border-radius: 40%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.pvd-int-mapa .view-point-floating-button button:hover {
    background: #007cbf;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}


.pvd-int-detalle-hoja {
    width: 100%;
    margin-top: 1rem;
    margin-bottom:1rem;
    padding: 0.75rem 0.85rem 1rem;
    box-sizing: border-box;
    background: #fff;
    border-radius: 0.65rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.pvd-int-detalle-progreso {
    width: 100%;
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem 0.85rem 1rem;
    box-sizing: border-box;
    background: #fff;
    border-radius: 0.65rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.pvd-int-detalle-hoja__titulo {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #3d3d3d;
}

.pvd-int-hoja {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pvd-int-hoja__sep {
    display: block;
    border: 0;
    border-top: 1px solid #d5d9df;
    margin: 0;
    flex-shrink: 0;
    width: calc(100% + 1.8rem);
    margin-left: -1rem;
}

.pvd-int-hoja__fila {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.75rem;
    padding: 0.55rem 0;
    font-size: 0.875rem;
}

.pvd-int-hoja__label {
    flex: 0 0 auto;
    min-width: 12rem;
    font-weight: 700;
    color: #666;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.pvd-int-hoja__valor {
    flex: 1 1 12rem;
    min-width: 0;
    color: #222;
    line-height: 1.4;
    word-break: break-word;
}

.pvd-int-hoja__fila--avance {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
}

.pvd-int-hoja__avance-col {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    width: 100%;
    max-width: 100%;
}

.pvd-int-hoja__avance-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
}

.pvd-int-hoja__label--avance {
    min-width: 0;
    font-size: 1.05rem;
    color: #4f5f73;
    letter-spacing: 0.01em;
}

.pvd-int-hoja__avance-bar {
    width: 100%;
    height: 0.55rem;
    border-radius: 999px;
    background: #eceef2;
    overflow: hidden;
}

.pvd-int-hoja__avance-fill {
    height: 100%;
    border-radius: 999px;
    background: #e61f2d;
    transition: width 0.35s ease;
}

.pvd-int-hoja__avance-pct {
    font-size: 0.9rem;
    line-height: 1;
    font-weight: 700;
    color: #e61f2d;
    letter-spacing: -0.01em;
}


.pvd-int-hoja__fecha-wrap {
    margin-top: 0.75rem;
    text-align: left;
}

.pvd-int-fases {
    margin-top: 0.2rem;
    padding-top: 0.45rem;
    border-top: none;
}

.pvd-int-fases__tit {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #4f5f73;
    text-align: center;
    margin-bottom: 1rem;
}

.pvd-int-fases__track {
    --pvd-fase-circ: 2rem;
    --pvd-fase-radio: calc(var(--pvd-fase-circ) / 2);
    --pvd-fase-barra: 5px;
    width: 100%;
}

.pvd-int-fases__steps-line {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
}

.pvd-int-fases__step-pack {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.pvd-int-fases__nodo {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.pvd-int-fases__join {
    flex: 1 1 0;
    min-width: 0.25rem;
    position: relative;
    align-self: stretch;
}

.pvd-int-fases__join::before {
    content: '';
    position: absolute;
    left: calc(-2 * var(--pvd-fase-radio));
    right: calc(-2 * var(--pvd-fase-radio));
    top: calc(var(--pvd-fase-radio) - (var(--pvd-fase-barra) / 2));
    height: var(--pvd-fase-barra);
    border-radius: 2px;
    z-index: 0;
}

.pvd-int-fases__join--ok::before {
    background: #6eb2a6;
}

.pvd-int-fases__join--pend::before {
    background: #d7ddd9;
}

.pvd-int-fases__circ {
    width: var(--pvd-fase-circ, 1.75rem);
    height: var(--pvd-fase-circ, 1.75rem);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.pvd-int-fases__circ--hecho {
    background: #17a15a;
    color: #fff;
    border: 2px solid #daf3e5;
    box-shadow: 0 0 0 2px rgba(23, 161, 90, 0.25);
}

.pvd-int-fases__check {
    font-size: 1rem;
    line-height: 1;
    font-weight: 700;
}

.pvd-int-fases__circ--activo {
    background: #fff;
    border: 3px solid #e61f2d;
    box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px #e61f2d, 0 0 0 3px rgba(230, 31, 45, 0.2);
}

.pvd-int-fases__circ--pend {
    background: #fff;
    border: 2px solid #b8bec8;
    color: #6b7280;
}

.pvd-int-fases__num {
    font-size: 0.75rem;
    font-weight: 700;
}

.pvd-int-fases__lbl {
    margin-top: 0;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #4f5f73;
    text-align: center;
    line-height: 1.2;
    max-width: 6.1rem;
}

.pvd-rv-ficha__denom {
    margin-top: 0.2rem;
    font-size: 0.9rem;
    color: #5f5e61;
    line-height: 1.35;
    margin-bottom: 0.2rem;
}

#divResultadosIntervencion .pvd-int-ficha-resumen {
    padding: 1rem 1.1rem;
    margin-bottom:0;
}

#divResultadosIntervencion .pvd-int-ficha-resumen__cab {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#divResultadosIntervencion .pvd-int-ficha-resumen__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    border-radius: 999px;
    padding: 0.38rem 0.85rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    line-height: 1.2;
    margin: 0 0 0.65rem;
}

#divResultadosIntervencion .pvd-int-ficha-resumen__badge-punto {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

#divResultadosIntervencion .pvd-int-ficha-resumen__badge--ejecucion {
    background: #e8f5e9;
    color: #2e7d32;
}

#divResultadosIntervencion .pvd-int-ficha-resumen__badge--preinversion {
    background: #fff8e6;
    color: #e65100;
}

#divResultadosIntervencion .pvd-int-ficha-resumen__badge--estudio {
    background: #e8f0fe;
    color: #1565c0;
}

#divResultadosIntervencion .pvd-int-ficha-resumen__badge--default {
    background: #eef1f5;
    color: #546e7a;
}

#divResultadosIntervencion .pvd-int-ficha-resumen__cui {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1d21;
    line-height: 1.25;
}

#divResultadosIntervencion .pvd-int-ficha-resumen__denom {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.38;
    color: #1a1d21;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

#divResultadosIntervencion .pvd-int-ficha-resumen__sep {
    margin: 0.85rem 0;
    border: none;
    border-top: 1px solid #e4e6e7;
}

#divResultadosIntervencion .pvd-int-ficha-resumen__meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#divResultadosIntervencion .pvd-int-ficha-resumen__fila {
    align-items: center;
}

#divResultadosIntervencion .pvd-int-ficha-resumen__pin {
    width: 1rem;
    height: 1rem;
    object-fit: contain;
    flex-shrink: 0;
    margin-top: 0.06rem;
}

#divResultadosIntervencion .pvd-int-ficha-resumen__ico-inter {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.05rem;
}

#divResultadosIntervencion .pvd-int-ficha-resumen__meta-txt {
    flex: 1;
    min-width: 0;
    font-size: 0.82rem;
    color: #6b7280;
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: -0.3px;
}

#divResultadosIntervencion .pvd-int-ficha-resumen__meta-txt--inter {
    text-transform: none;
    letter-spacing: normal;
}

#divResultadosIntervencion .pvd-int-ficha-resumen__inter-lbl {
    color: #6b7280;
    margin-right: 0.25rem;
}

.form-select:focus {
    border-color: #dc3545;
    outline: 0;
    box-shadow: 0 0 0 .25rem rgb(253 13 13 / 25%);
}

#panelAvanzadaIntervencion {
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem 0.75rem;
    width: 100%;
}

#panelAvanzadaIntervencion[style*="display: flex"],
#panelAvanzadaIntervencion[style*="display: grid"] {
    display: grid !important;
}

    #panelAvanzadaIntervencion .combo-filtro {
        width: 100%;
        margin-top: 0;
    }

    #panelAvanzadaIntervencion .pvd-campo-ubigeo-wrap {
        grid-column: 1 / -1;
        margin-top: 0;
    }

.campo--toggle-busqueda-avanzada {
    margin-top: 0;
}

.pvd-busqueda-avanzada-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    width: 100%;
    min-height: 2.4rem;
    padding: 0.5rem 0.9rem;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: #2f3337;
    text-align: left;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pvd-busqueda-avanzada-toggle:hover {
    border-color: rgba(0, 0, 0, 0.12);
}

.pvd-busqueda-avanzada-toggle:focus {
    outline: none;
}

.pvd-busqueda-avanzada-toggle:focus-visible {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgb(220 53 69 / 18%);
}

.pvd-busqueda-avanzada-toggle__izq {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.pvd-busqueda-avanzada-toggle__icono {
    width: 1.15rem;
    height: 1.15rem;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.pvd-busqueda-avanzada-toggle__etiqueta {
    font-weight: 400;
    line-height: 1.25;
    color: #5f5e61;
}

.pvd-busqueda-avanzada-toggle__chevron {
    flex-shrink: 0;
    width: 0.85rem;
    height: 0.85rem;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%232f3337' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' d='M2 5l6 6 6-6'/%3E%3C/svg%3E") no-repeat center / contain;
    transition: transform 0.2s ease;
}

.pvd-busqueda-avanzada-toggle--abierto .pvd-busqueda-avanzada-toggle__chevron {
    transform: rotate(180deg);
}

#panelAvanzadaIntervencion .combo-filtro--con-limpiar {
    position: relative;
    width: 100%;
}

#panelAvanzadaIntervencion .combo-filtro--con-limpiar .form-select {
    padding-right: 3.1rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23a8afb7' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.65rem center;
    background-size: 0.72rem 0.72rem;
}

#panelAvanzadaIntervencion .combo-filtro--con-limpiar .form-select.pvd-combo--vacio {
    color: #a8afb7;
}

#panelAvanzadaIntervencion .combo-filtro--con-limpiar .form-select:not(.pvd-combo--vacio) {
    color: #2f3337;
}

#panelAvanzadaIntervencion .combo-filtro--con-limpiar .campo-btn-limpiar--combo {
    right: 1.85rem;
    z-index: 2;
    opacity: 0.65;
}