﻿

.contenedor-filtro {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: flex-start;
    padding: 0rem 0.5rem 0.5rem 0.5rem;
    width: 100%;
    margin: auto;
    max-width: 920px;
    margin-inline: auto;
}

.campo {
    flex: 1 1 1rem;
    width: 100%;
}

.campo--busqueda-ruta {
    position: relative;
}

.campo-icono-busqueda {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    pointer-events: none;
    opacity: 0.65;
}

.campo-icono-busqueda img{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}
.campo-btn-limpiar img {
    width: 60%;
    height: 60%;
    display: block;
    object-fit: contain;
}

.campo-btn-limpiar {
    position: absolute;
    right: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    opacity: 0.6;
}

.campo-btn-limpiar:hover {
    opacity: 0.9;
}

.campo input {
    width: 100%;
    padding: 0.7rem 2.2rem;
    font-size: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
    text-align: center;
    width: 100%;
    height: 2.4rem;
}

        .campo input::placeholder {
            color: #b4b4b4;
            opacity: 1;
        }

.campo.pvd-campo-ubigeo-wrap {
    position: relative;
}


.boton-buscar {
    flex: 1 1 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .boton-buscar button {
        padding: 0.5rem 10rem;
        font-size: 1rem;
        border: none;
        background-color: #e61f2d;
        color: white;
        border-radius: 0.5rem;
        cursor: pointer;
        width: 100%;
    }

        .boton-buscar button:hover {
            background-color: #e85157;
        }


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

.mensaje-error {
    text-align: center;
    font-weight: 400;
}

.pvd-resultados-cab {
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
    color: #000;  /*#6c6c6c; */
    margin-bottom: 0.5rem;
}

    .pvd-resultados-cab strong {
        /*color: #e85157;*/
        color: #fff;
        background: #DF1E29;
        border-radius: 0.7rem;
        padding: 0.2rem 0.8rem;
    }

.pvd-rv-resultado-unico {
    width: 100%;
}

.pvd-rv-carga {
    width: 100%;
    text-align: center;
    font-size: 0.88rem;
    color: #6c6c6c;
    padding: 1rem 0.5rem;
}

.pvd-rv-detalle {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    text-align: left;
    color: #2b2b2b;
    font-size: 0.875rem;
}

.pvd-rv-detalle__aviso {
    margin: 0;
    font-size: 0.8rem;
    color: #888;
    text-align: center;
}

.pvd-rv-ficha {
    background: #fff;
    border-radius: 0.65rem;
    padding: 1rem 1.1rem;
    box-sizing: border-box;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.pvd-rv-ficha__head {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.35rem 0.6rem;
}

.pvd-rv-ficha__label {
    margin: 0 0 0.2rem;
    font-size: 1rem;
    text-transform: uppercase;
    color: #888;
}

.pvd-rv-ficha__codigo {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #3d3d3d;
    line-height: 1.2;
}

.pvd-rv-ficha__sep {
    margin: 0.85rem 0;
    border: none;
    border-top: 1px solid #e4e6e7;
}

.pvd-rv-ficha__body {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.pvd-rv-ficha__tray {
    margin-top: 0.2rem;
    font-size: 0.9rem;
    color: #5f5e61;
    line-height: 1.35;
    grid-column: 1 / -1;
    margin-bottom:0;
}

.pvd-rv-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.45rem;
    padding: 0.2rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.pvd-rv-badge--nacional {
    background: #fef1f1;
    color: #ed3a49;
}


.pvd-rv-badge--vecinal {
    background: #dff0d8;
    color: #2f7d32;
}

.pvd-rv-badge--departamental {
    background: #d9eefb;
    color: #1f6fa9;
}

.pvd-rv-badge--default {
    background: #eceff3;
    color: #4f5b66;
}

.pvd-rv-ficha__tipo {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #3d3d3d;
}

.pvd-rv-ficha__fila {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pvd-rv-ficha__cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.6rem;
    align-items: center;
}

.pvd-rv-ficha__ubic-sola {
    width: 100%;
    min-width: 0;
}

.pvd-rv-ficha__fila--col {
    min-width: 0;
}


.pvd-rv-ficha__fila img {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    object-fit: contain;
    display: block;
}

.pvd-rv-ficha__texto {
    flex: 1;
    min-width: 0;
    font-size: 0.82rem;
    color: #5f5e61;
    line-height: 1.15;
    letter-spacing:-0.3px;
}


.pvd-rv-ico {
    flex-shrink: 0;
    width: 1.35rem;
    height: 1.35rem;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.pvd-rv-ico--pin {
    background-color: transparent;
}

.pvd-rv-ico--person {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

}

img.pvd-rv-ico--person {
    object-fit: contain;
}

#mapaUbicacion.pvd-rv-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;
}

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

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

#mapaUbicacion.pvd-rv-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;
}

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

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

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

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

#mapaUbicacion.pvd-rv-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;
}

#mapaUbicacion.pvd-rv-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-rv-intervenciones {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.pvd-rv-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    background: #dc353c;
    color: #fff;
    border-radius: 0.5rem;
    min-height: 2.5rem;
}

.pvd-rv-bar__titulo {
    font-size: 0.9rem;
}

.pvd-rv-bar__avatar {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-55%);
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: transparent center / cover no-repeat;
}

.pvd-rv-expansible {
    background: #fff;
    border-radius: 0.55rem;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.pvd-rv-expansible__sum {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem 0.85rem;
    cursor: pointer;
    list-style: none;
}

.pvd-rv-expansible__sum::-webkit-details-marker {
    display: none;
}

.pvd-rv-expansible__thumb {
    width: 2.5rem;
    height: 2.5rem;
}

.pvd-rv-expansible__thumb--proyecto {
    background-color: #ececec;
}

.pvd-rv-expansible__thumb--mantenimiento {
    background-color: #ececec;
}

.pvd-rv-expansible__col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.pvd-rv-expansible__tipo {
    font-size: 1rem;
    font-weight: 500;
    color: #3d3d3d;
}

.pvd-rv-expansible__monto {
    font-size: 1.8rem;
    color: #dc353c;
    line-height: 1.2;
}

.pvd-rv-expansible__fuente {
    font-size: 0.9rem;
    color: #999;
}

.pvd-rv-expansible__chev {
    flex-shrink: 0;
    align-self: center;
    width: 0.5rem;
    height: 0.5rem;
    margin-right: 0.35rem;
    border-right: 2px solid #8a8a8a;
    border-bottom: 2px solid #8a8a8a;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.pvd-rv-expansible[open] .pvd-rv-expansible__chev {
    transform: rotate(-135deg);
    margin-top: 0.2rem;
}

.pvd-rv-expansible__extra {
    padding: 0 1rem 0.75rem 1rem;
    font-size: 0.78rem;
    color: #5f5e61;
}

.pvd-rv-expansible__meta {
    margin: 0.5rem 0 0;
}

.pvd-rv-expansible__fecha-act {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0.4rem 0 0;
    padding: 0.2rem 0.5rem 0.2rem 0.5rem;
    font-size: 0.8rem;
    color: #6f6f6f;
    background: #f3f3f4;
    border-radius: 0.5rem;
}

.pvd-rv-expansible__fecha-act::before {
    content: '';
    width: 0.8rem;
    height: 0.8rem;
    flex-shrink: 0;
    opacity: 0.82;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") center / contain no-repeat;
}


.pvd-rv-interv-detalle-body {
    margin-top: 0.65rem;
}

.pvd-rv-interv-estado {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.45rem 0.65rem;
    border-radius: 0.5rem;
    margin: 0.65rem 0 0.5rem;
    letter-spacing: 0.02em;
    text-align: center;
}

.pvd-rv-interv-estado--vigente {
    background: #ffffff;
    color: #151515;
    border: 1px solid #ececec;
}

    .pvd-rv-interv-estado--vigente::before,
    .pvd-rv-interv-estado--vigente::after {
        content: none;
    }

    .pvd-rv-interv-estado--vigente .pvd-rv-interv-estado__titulo::before {
        content: "";
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #20b15a;
        flex: 0 0 10px;
    }

    .pvd-rv-interv-estado--vigente .pvd-rv-interv-estado__titulo::after {
        content: "ACTIVO";
        margin-left: 6px;
        padding: 4px 10px;
        border-radius: 999px;
        background: #e8f7ec;
        color: #22a55a;
        font-size: 0.78rem;
        font-weight: 700;
        line-height: 1;
    }

.pvd-rv-interv-estado--historico {
    background: #ffffff;
    color: #151515;
    border: 1px solid #ececec;
}

    .pvd-rv-interv-estado--historico::before,
    .pvd-rv-interv-estado--historico::after {
        content: none;
    }

    .pvd-rv-interv-estado--historico .pvd-rv-interv-estado__titulo::before {
        content: "";
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #8c8c8c;
        flex: 0 0 10px;
    }

    .pvd-rv-interv-estado--historico .pvd-rv-interv-estado__titulo::after {
        content: "COMPLETADO";
        margin-left: 6px;
        padding: 4px 10px;
        border-radius: 999px;
        background: #f2f2f2;
        color: #7a7a7a;
        font-size: 0.78rem;
        font-weight: 700;
        line-height: 1;
    }

.pvd-rv-interv-seccion {
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    background: #fff;
    margin-top: 10px;
    overflow: hidden;
}

.pvd-rv-interv-seccion__sum {
    list-style: none;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 10px;
    background: #fff;
}

.pvd-rv-interv-seccion__sum::-webkit-details-marker {
    display: none;
}

    .pvd-rv-interv-seccion__sum .pvd-rv-interv-estado {
        margin: 0;
        flex: 1;
        border-radius: 10px;
        min-height: 36px;
        padding: 0 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        font-size: 0.9rem;
        font-weight: 500;
        letter-spacing: 0;
    }

.pvd-rv-interv-estado__titulo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.pvd-rv-interv-estado__chev {
    width: 0.48rem;
    height: 0.48rem;
    border-right: 2px solid #5d5d5d;
    border-bottom: 2px solid #5d5d5d;
    transform: rotate(45deg);
    transition: transform .2s ease;
    flex-shrink: 0;
    margin-left: auto;
    margin-right: 2px;
}

.pvd-rv-interv-seccion[open] .pvd-rv-interv-estado__chev {
    transform: rotate(-135deg);
}

.pvd-rv-interv-seccion__body {
    padding: 0 0.6rem 0.4rem;
    background: #fff;
}

.pvd-rv-interv-card {
    border: 1px solid #e5e5e5;
    border-radius: 0.35rem;
    background: #fff;
    padding: 0.65rem;
    margin-bottom: 0.5rem;
}

.pvd-rv-interv-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem 0.75rem;
    font-size: 0.85rem;
    color: #333;
    align-items: baseline;
}

.pvd-rv-interv-label {
    font-weight: 700;
    color: #666;
    margin-right: 0.2rem;
}

.pvd-rv-interv-valor {
    color: #222;
}

.pvd-rv-interv-cargando,
.pvd-rv-interv-sin-datos,
.pvd-rv-interv-error {
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
    color: #666;
}

.pvd-rv-interv-error {
    color: #b00020;
}

/*@media (max-width: 520px) {
    .pvd-rv-interv-grid {
        grid-template-columns: 1fr;
    }
}*/


.pvd-rv-interv-campo--num {
    grid-column: 1 / -1;
}


.pvd-rv-interv-numero-wrap {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    width: 100%;
    min-width: 0;
}

.pvd-rv-interv-numero-fila {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.pvd-rv-interv-numero-fila .pvd-rv-interv-valor--num {
    /*flex: 0 0 auto;*/
    min-width: 0;
}

.pvd-rv-interv-numero-fila .pvd-rv-interv-ver-detalle-btn {
    flex-shrink: 0;
    white-space: nowrap;
    height: auto;
    min-height: 1.6rem;
    line-height: 1;
}

.pvd-rv-interv-ver-detalle-btn:disabled {
    opacity: 0.65;
    cursor: default;
}

.pvd-rv-interv-seccion .pvd-rv-interv-card:first-child {
    margin-top: 0.15rem;
}

.pvd-rv-lista-modal__dialog {
    max-width: 420px;
    margin: 1rem auto;
    align-content: center;
    max-height: min(76vh, 680px);
}

.pvd-rv-lista-modal {
    border: none;
    border-radius: 0.65rem;
    overflow: hidden;
    box-shadow: 0 0.35rem 1.25rem rgba(0, 0, 0, 0.18);
    max-height: min(76vh, 680px);
    display: flex;
    flex-direction: column;
}

.pvd-rv-lista-modal__cab {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1rem 0.65rem;
    border-bottom: 1px solid #ececec;
    background: #fff;
}

.pvd-rv-lista-modal__volver {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 50%;
    background: #dc353c;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s ease, transform 0.1s ease;
}

.pvd-rv-lista-modal__volver:hover {
    background: #c02a30;
}

.pvd-rv-lista-modal__volver-ico {
    display: block;
    width: 0.55rem;
    height: 0.55rem;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    margin-left: 0.15rem;
}

.pvd-rv-lista-modal__titulos {
    min-width: 0;
    flex: 1;
    padding-top: 0.15rem;
}

.pvd-rv-lista-modal__titulo {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #111;
}

.pvd-rv-lista-modal__sub {
    margin: 0.2rem 0 0;
    font-size: 0.82rem;
    color: #777;
}

.pvd-rv-lista-modal__cuerpo {
    padding: 0.75rem 1rem 1.25rem;
    background: #f6f6f6;
    overflow-y: auto;
    max-height: calc(min(76vh, 680px) - 5rem);
}

.pvd-rv-lista-item {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    padding: 0.75rem;
    margin-bottom: 0.65rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 0.45rem;
}

.pvd-rv-lista-item:last-child {
    margin-bottom: 0;
}

.pvd-rv-lista-item__ico {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    opacity: 0.55;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='1.5'%3E%3Cpath d='M4 21V8l8-5 8 5v13'/%3E%3Cpath d='M9 21V12h6v9'/%3E%3C/svg%3E") center / contain no-repeat;
}

.pvd-rv-lista-item__txt {
    min-width: 0;
    flex: 1;
    font-size: 0.78rem;
    color: #555;
    line-height: 1.35;
}

.pvd-rv-lista-item__cui {
    margin: 0 0 0.2rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: #111;
}

.pvd-rv-lista-item__fase {
    margin: 0 0 0.15rem;
    font-size: 0.72rem;
    color: #666;
}

.pvd-rv-lista-item__monto {
    margin: 0 0 0.35rem;
}

.pvd-rv-lista-item__ubi {
    margin: 0;
    font-size: 0.72rem;
    color: #999;
}

.pvd-rv-lista-modal__vacio {
    text-align: center;
    padding: 1.5rem 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

.pvd-rv-lista-modal__spinner {
    width: 2rem;
    height: 2rem;
    margin: 1.75rem auto;
    border: 3px solid rgba(220, 53, 69, 0.18);
    border-top-color: #e52d3d;
    border-radius: 50%;
    animation: pvd-rv-lista-spinner 0.75s linear infinite;
}

@keyframes pvd-rv-lista-spinner {
    to {
        transform: rotate(360deg);
    }
}

.pvd-accion {
    flex-shrink: 0;
    display: flex;
    align-self: stretch;
    align-items: flex-end;
    margin-left: auto;
}

.btn-ver-detalle {
    border: 1px solid #f4b7bc;
    background: #fff;
    color: #e1252f;
    border-radius: 0.5rem;
    height: 1.6rem;
    padding: 0 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

    .btn-ver-detalle:hover {
        background: #fff5f6;
    }
