/* ============================================================
   LPRL IMPLANTACIÓN - ESTILO COMÚN
   Clase común: .lprl_implantacion
   ============================================================ */

.lprl_implantacion {
    --lprl-implantacion-color-principal: var(--nav_a_hover_COLOR, #0076A5);
    --lprl-implantacion-color-principal-suave: #d7edf7;
    --lprl-implantacion-color-texto: #1f2937;
    --lprl-implantacion-color-texto-suave: #6b7280;
    --lprl-implantacion-color-borde: rgba(0, 118, 165, .14);
    --lprl-implantacion-color-fondo: #f8fbfd;
    --lprl-implantacion-color-blanco: #ffffff;
    --lprl-implantacion-color-ok: #31bcaa;
    --lprl-implantacion-color-alerta: #e0af28;
    --lprl-implantacion-color-error: #900;

    max-width: 1380px;
    margin: 0 auto;
    padding: 24px;
    color: var(--lprl-implantacion-color-texto);
}


/* ============================================================
   CABECERA COMÚN
   ============================================================ */

.lprl_implantacion>.lprl_implantacion_cabecera {
    position: relative;
    overflow: hidden;
    padding: 26px;
    margin: 20px 0 22px 0;
    background: linear-gradient(135deg, var(--lprl-implantacion-color-principal) 0%, #118ab2 58%, #8fd9cf 100%);
    color: var(--lprl-implantacion-color-blanco);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .12);
}

.lprl_implantacion>.lprl_implantacion_cabecera:before,
.lprl_implantacion>.lprl_implantacion_cabecera:after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .10);
    pointer-events: none;
}

.lprl_implantacion>.lprl_implantacion_cabecera:before {
    width: 170px;
    height: 170px;
    top: -70px;
    right: -35px;
}

.lprl_implantacion>.lprl_implantacion_cabecera:after {
    width: 110px;
    height: 110px;
    bottom: -35px;
    left: -15px;
}

.lprl_implantacion .lprl_implantacion_cabecera h1 {
    position: relative;
    z-index: 1;
    margin: 0 0 8px 0;
    font-size: 2rem;
    font-weight: 700;
    color: var(--lprl-implantacion-color-blanco);
}

.lprl_implantacion .lprl_implantacion_cabecera p {
    position: relative;
    z-index: 1;
    margin: 0;
    opacity: .95;
    max-width: 900px;
    color: var(--lprl-implantacion-color-blanco);
}


/* ============================================================
   RESUMEN / KPIS COMUNES
   ============================================================ */

.lprl_implantacion .lprl_implantacion_resumen {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 12px;
    margin: 0 0 22px 0;
}

.lprl_implantacion .lprl_implantacion_kpi {
    background: var(--lprl-implantacion-color-blanco);
    border: 1px solid var(--lprl-implantacion-color-borde);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 10px 24px rgba(13, 31, 61, .07);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    text-align: center;
}

.lprl_implantacion .lprl_implantacion_kpi:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(13, 31, 61, .10);
    border-color: rgba(0, 118, 165, .24);
}

.lprl_implantacion .lprl_implantacion_kpi span {
    display: block;
    font-size: .86rem;
    color: var(--lprl-implantacion-color-texto-suave);
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: .03em;
    font-weight: 700;
}

.lprl_implantacion .lprl_implantacion_kpi strong {
    display: block;
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--lprl-implantacion-color-texto);
    line-height: 1;
}


/* ============================================================
   PANEL COMÚN
   ============================================================ */

.lprl_implantacion .lprl_implantacion_panel {
    background: var(--lprl-implantacion-color-fondo);
    border: 1px solid var(--lprl-implantacion-color-borde);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 8px 20px rgba(0, 118, 165, .05);
}


/* ============================================================
   TARJETAS COMUNES
   ============================================================ */

.lprl_implantacion .lprl_implantacion_tarjeta {
    background: var(--lprl-implantacion-color-blanco);
    border-radius: 20px;
    border: 1px solid var(--lprl-implantacion-color-borde);
    box-shadow: 0 12px 26px rgba(13, 31, 61, .08);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.lprl_implantacion .lprl_implantacion_tarjeta:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(13, 31, 61, .11);
    border-color: rgba(0, 118, 165, .28);
}

.lprl_implantacion .lprl_implantacion_tarjeta_header {
    background: linear-gradient(90deg, var(--lprl-implantacion-color-principal), #1490c1);
    color: var(--lprl-implantacion-color-blanco);
    border: 0;
    padding: 15px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.lprl_implantacion .lprl_implantacion_tarjeta_header strong {
    color: var(--lprl-implantacion-color-blanco);
    font-size: 1rem;
    line-height: 1.25;
}

.lprl_implantacion .lprl_implantacion_tarjeta_body {
    padding: 18px;
}

.lprl_implantacion .lprl_implantacion_tarjeta_footer {
    background: var(--lprl-implantacion-color-blanco);
    border-top: 1px solid var(--lprl-implantacion-color-borde);
    padding: 14px 18px;
    text-align: right;
}


/* ============================================================
   ESTADOS COMUNES
   ============================================================ */

.lprl_implantacion .lprl_implantacion_estado {
    display: inline-block;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: .74rem;
    letter-spacing: .02em;
    font-weight: 700;
    width: 30%;
}

.lprl_implantacion .lprl_implantacion_estado_ok {
    background: var(--lprl-implantacion-color-ok);
    color: var(--lprl-implantacion-color-blanco);
}

.lprl_implantacion .lprl_implantacion_estado_alerta {
    background: var(--lprl-implantacion-color-alerta);
    color: var(--lprl-implantacion-color-blanco);
}

.lprl_implantacion .lprl_implantacion_estado_pendiente {
    background: #6b7280;
    color: var(--lprl-implantacion-color-blanco);
}

.lprl_implantacion .lprl_implantacion_estado_suave {
    background: var(--lprl-implantacion-color-blanco);
    color: var(--lprl-implantacion-color-texto-suave);
    border: 1px solid var(--lprl-implantacion-color-borde);
}

.lprl_implantacion .lprl_implantacion_estado_info {
    background: var(--lprl-implantacion-color-principal-suave);
    color: var(--lprl-implantacion-color-principal);
    border: 1px solid rgba(0, 118, 165, .18);
}


/* ============================================================
   BOTONES COMUNES
   ============================================================ */

.lprl_implantacion .lprl_implantacion_boton {
    border-radius: 12px;
    padding: 10px 15px;
    font-weight: 700;
    letter-spacing: .02em;
    background: var(--lprl-implantacion-color-principal);
    border: 1px solid var(--lprl-implantacion-color-principal);
    color: var(--lprl-implantacion-color-blanco);
    box-shadow: 0 8px 18px rgba(0, 118, 165, .20);
    transition: all .18s ease;
    cursor: pointer;
}

.lprl_implantacion .lprl_implantacion_boton:hover {
    background: var(--lprl-implantacion-color-principal-suave);
    border-color: var(--lprl-implantacion-color-principal);
    color: var(--lprl-implantacion-color-principal);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 118, 165, .12);
}


/* ============================================================
   ALERTAS COMUNES
   ============================================================ */

.lprl_implantacion .lprl_implantacion_alerta {
    background: #fff8e8;
    color: var(--lprl-implantacion-color-alerta);
    border: 1px solid rgba(224, 175, 40, .35);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 8px 20px rgba(224, 175, 40, .08);
}


/* ============================================================
   RESPONSIVE COMÚN
   ============================================================ */

@media (max-width: 992px) {
    .lprl_implantacion .lprl_implantacion_resumen {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }
}

@media (max-width: 576px) {
    .lprl_implantacion {
        padding: 16px;
    }

    .lprl_implantacion>.lprl_implantacion_cabecera {
        padding: 22px;
    }

    .lprl_implantacion .lprl_implantacion_resumen {
        grid-template-columns: 1fr;
    }

    .lprl_implantacion .lprl_implantacion_panel {
        padding: 12px;
    }

    .lprl_implantacion .lprl_implantacion_tarjeta_header {
        align-items: flex-start;
        flex-direction: column;
    }

    .lprl_implantacion .lprl_implantacion_tarjeta_footer {
        text-align: left;
    }

    .lprl_implantacion .lprl_implantacion_boton {
        width: 100%;
    }
}


/* ============================================================
   LPRL IMPLANTACIÓN - FORMULARIO MEDIDAS EMERGENCIA EN MODAL
   ============================================================ */

.lprl_me_swal_popup {
    max-width: 1200px !important;
}

.lprl_me_formulario {
    text-align: left;
    color: var(--lprl-implantacion-color-texto, #1f2937);
}

.lprl_me_centro_info {
    background: #f8fbfd;
    border: 1px solid rgba(0, 118, 165, .14);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

.lprl_me_centro_info strong {
    display: block;
    color: var(--nav_a_hover_COLOR, #0076A5);
    font-size: 1.05rem;
}

.lprl_me_centro_info span {
    display: block;
    color: #6b7280;
    margin-top: 3px;
}

.lprl_me_tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.lprl_me_tab {
    border: 1px solid rgba(0, 118, 165, .18);
    background: #ffffff;
    color: var(--nav_a_hover_COLOR, #0076A5);
    border-radius: 999px;
    padding: 9px 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all .18s ease;
}

.lprl_me_tab:hover,
.lprl_me_tab.activo {
    background: var(--nav_a_hover_COLOR, #0076A5);
    color: #ffffff;
}

.lprl_me_tab_contenido {
    display: none;
}

.lprl_me_tab_contenido.activo {
    display: block;
}

.lprl_me_tab_contenido h3 {
    margin: 0 0 14px 0;
    color: var(--nav_a_hover_COLOR, #0076A5);
    font-weight: 700;
}

.lprl_me_bloque {
    background: #ffffff;
    border: 1px solid rgba(0, 118, 165, .14);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 14px;
    box-shadow: 0 8px 18px rgba(0, 118, 165, .06);
}

.lprl_me_bloque h4 {
    margin: 0 0 12px 0;
    color: #1f2937;
    font-weight: 700;
    font-size: 1rem;
}

.lprl_me_bloque h4 small {
    color: #6b7280;
    font-weight: 400;
}

.lprl_me_subbloque {
    border: 1px solid rgba(0, 118, 165, .10);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    background: #f8fbfd;
}

.lprl_me_grid_2,
.lprl_me_grid_3 {
    display: grid;
    gap: 10px;
}

.lprl_me_grid_2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lprl_me_grid_3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lprl_me_campo {
    margin-bottom: 10px;
}

.lprl_me_campo label {
    display: block;
    font-weight: 700;
    color: #374151;
    margin-bottom: 5px;
}

.lprl_me_campo input,
.lprl_me_campo select {
    width: 100%;
    border: 1px solid rgba(0, 118, 165, .18);
    border-radius: 10px;
    padding: 9px 10px;
    color: var(--nav_a_hover_COLOR, #0076A5);
    background: rgba(215, 237, 247, .35);
    box-sizing: border-box;
}

.lprl_me_campo input:focus,
.lprl_me_campo select:focus {
    outline: 0;
    border-color: var(--nav_a_hover_COLOR, #0076A5);
    box-shadow: 0 0 0 3px rgba(0, 118, 165, .12);
    background: #ffffff;
}

.lprl_me_checks {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.lprl_me_checkbox {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border: 1px solid rgba(0, 118, 165, .12);
    border-radius: 10px;
    background: #f8fbfd;
    cursor: pointer;
}

.lprl_me_checkbox input {
    width: 17px;
    height: 17px;
    accent-color: var(--nav_a_hover_COLOR, #0076A5);
}

.lprl_me_checkbox span {
    color: #1f2937;
    font-weight: 600;
}

.lprl_me_detalle_si_no {
    display: none;
    margin-top: 10px;
}

.swal2-validation-message {
    text-align: left;
}

@media (max-width: 800px) {

    .lprl_me_grid_2,
    .lprl_me_grid_3 {
        grid-template-columns: 1fr;
    }

    .lprl_me_tabs {
        flex-direction: column;
    }

    .lprl_me_tab {
        width: 100%;
    }
}

/* ============================================================
   LPRL IMPLANTACIÓN - UX/UI FORMULARIO MEDIDAS EMERGENCIA
   Versión compacta, suave e intuitiva
   ============================================================ */

.lprl_me_swal_popup {
    max-width: 1180px !important;
    width: 98% !important;
    height: calc(100vh - 26px) !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 22px !important;
}

.lprl_me_swal_popup .swal2-title {
    margin: 0 !important;
    padding: 16px 22px 10px 22px !important;
    color: var(--nav_a_hover_COLOR, #0076A5) !important;
    font-size: 1.45rem !important;
    font-weight: 700 !important;
    border-bottom: 1px solid rgba(0, 118, 165, .10);
}

.lprl_me_swal_popup .swal2-html-container,
.lprl_me_swal_html {
    height: calc(100vh - 78px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 14px 18px 18px 18px !important;
    text-align: left !important;
    background: #f7fbfd;
}

.lprl_me_swal_popup .swal2-actions {
    position: sticky;
    bottom: 0;
    z-index: 20;
    background: #ffffff;
    border-top: 1px solid rgba(0, 118, 165, .10);
    margin: 0 !important;
    padding: 12px 18px !important;
}

.lprl_me_swal_popup .swal2-confirm,
.lprl_me_swal_popup .swal2-cancel {
    border-radius: 12px !important;
    padding: 9px 18px !important;
    font-weight: 700 !important;
}

.lprl_me_formulario {
    position: relative;
    text-align: left;
    color: #1f2937;
}

.lprl_me_centro_info {
    position: sticky;
    top: -14px;
    z-index: 30;
    background: #ffffff;
    border: 1px solid rgba(0, 118, 165, .12);
    border-radius: 16px;
    padding: 11px 14px;
    margin-bottom: 10px;
    box-shadow: 0 8px 18px rgba(0, 118, 165, .08);
}

.lprl_me_centro_info strong {
    display: block;
    color: var(--nav_a_hover_COLOR, #0076A5);
    font-size: 1rem;
    line-height: 1.25;
}

.lprl_me_centro_info span {
    display: block;
    color: #6b7280;
    margin-top: 2px;
    font-size: .88rem;
}

.lprl_me_tabs {
    position: sticky;
    top: 58px;
    z-index: 29;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(0, 118, 165, .12);
    border-radius: 16px;
    padding: 8px;
    margin-bottom: 12px;
    box-shadow: 0 8px 18px rgba(0, 118, 165, .07);
    backdrop-filter: blur(6px);
}

.lprl_me_tab {
    flex: 1 1 180px;
    border: 1px solid rgba(0, 118, 165, .14);
    background: #ffffff;
    color: var(--nav_a_hover_COLOR, #0076A5);
    border-radius: 999px;
    padding: 8px 11px;
    font-weight: 700;
    font-size: .86rem;
    cursor: pointer;
    transition: all .18s ease;
}

.lprl_me_tab:hover,
.lprl_me_tab.activo {
    background: var(--nav_a_hover_COLOR, #0076A5);
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(0, 118, 165, .18);
}

.lprl_me_tab_contenido {
    display: none;
    padding-top: 4px;
}

.lprl_me_tab_contenido.activo {
    display: block;
}

.lprl_me_tab_contenido h3 {
    margin: 0 0 10px 0;
    color: var(--nav_a_hover_COLOR, #0076A5);
    font-weight: 700;
    font-size: 1.14rem;
}

.lprl_me_bloque {
    background: #ffffff;
    border: 1px solid rgba(0, 118, 165, .11);
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 10px;
    box-shadow: 0 6px 15px rgba(0, 118, 165, .045);
}

.lprl_me_bloque h4 {
    margin: 0 0 8px 0;
    color: #1f2937;
    font-weight: 700;
    font-size: .98rem;
}

.lprl_me_bloque h4 small {
    color: #6b7280;
    font-weight: 500;
    font-size: .78rem;
}

.lprl_me_subbloque {
    border: 1px solid rgba(0, 118, 165, .09);
    border-radius: 14px;
    padding: 10px;
    margin-bottom: 8px;
    background: #f8fbfd;
}

.lprl_me_subbloque:last-child {
    margin-bottom: 0;
}

.lprl_me_subbloque_titulo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.lprl_me_subbloque_titulo h5 {
    margin: 0;
    color: #1f2937;
    font-size: .95rem;
    font-weight: 700;
}

.lprl_me_subbloque_orden {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(0, 118, 165, .10);
    color: var(--nav_a_hover_COLOR, #0076A5);
    font-size: .72rem;
    font-weight: 700;
}

.lprl_me_ayuda {
    margin: 0 0 8px 0;
    color: #6b7280;
    font-size: .84rem;
    line-height: 1.35;
}

.lprl_me_grid_2,
.lprl_me_grid_3 {
    display: grid;
    gap: 8px;
}

.lprl_me_grid_2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lprl_me_grid_3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lprl_me_campo {
    margin-bottom: 8px;
}

.lprl_me_campo:last-child {
    margin-bottom: 0;
}

.lprl_me_campo label {
    display: block;
    font-weight: 700;
    color: #374151;
    margin-bottom: 4px;
    font-size: .82rem;
}

.lprl_me_campo input,
.lprl_me_campo select {
    width: 100%;
    border: 1px solid rgba(0, 118, 165, .16);
    border-radius: 10px;
    padding: 8px 9px;
    color: #1f2937;
    background: #ffffff;
    box-sizing: border-box;
    font-size: .88rem;
    min-height: 38px;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.lprl_me_campo input::placeholder {
    color: #9ca3af;
}

.lprl_me_campo input:focus,
.lprl_me_campo select:focus {
    outline: 0;
    border-color: var(--nav_a_hover_COLOR, #0076A5);
    box-shadow: 0 0 0 3px rgba(0, 118, 165, .10);
    background: #ffffff;
}

.lprl_me_checks {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.lprl_me_checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 9px;
    border: 1px solid rgba(0, 118, 165, .10);
    border-radius: 11px;
    background: #ffffff;
    cursor: pointer;
    transition: all .16s ease;
}

.lprl_me_checkbox:hover {
    border-color: rgba(0, 118, 165, .25);
    background: #f4fbff;
}

.lprl_me_checkbox input {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    accent-color: var(--nav_a_hover_COLOR, #0076A5);
}

.lprl_me_checkbox span {
    color: #1f2937;
    font-weight: 600;
    font-size: .88rem;
    line-height: 1.25;
}

.lprl_me_detalle_si_no {
    display: none;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(0, 118, 165, .16);
}

#me_otras_descripcion_wrap {
    padding: 8px 9px 0 28px;
}

.lprl_me_proc_otras_item {
    background: #ffffff;
    border-left: 4px solid var(--nav_a_hover_COLOR, #0076A5);
}

.lprl_me_loader {
    min-height: 230px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--nav_a_hover_COLOR, #0076A5);
}

.lprl_me_loader div {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--nav_a_hover_COLOR, #0076A5), #31bcaa);
    animation: lprlMeLoaderPulse 1.1s infinite ease-in-out;
    margin-bottom: 12px;
}

.lprl_me_loader p {
    margin: 0;
    font-weight: 700;
    font-size: .92rem;
}

.swal2-validation-message {
    text-align: left;
    border-radius: 12px !important;
    font-size: .9rem !important;
}

@keyframes lprlMeLoaderPulse {
    0% {
        transform: scale(.92);
        opacity: .72;
    }

    50% {
        transform: scale(1.06);
        opacity: 1;
    }

    100% {
        transform: scale(.92);
        opacity: .72;
    }
}

@media (max-width: 800px) {
    .lprl_me_swal_popup {
        width: 98% !important;
        height: calc(100vh - 10px) !important;
    }

    .lprl_me_swal_popup .swal2-html-container,
    .lprl_me_swal_html {
        height: calc(100vh - 72px) !important;
        padding: 12px !important;
    }

    .lprl_me_centro_info {
        top: -12px;
    }

    .lprl_me_tabs {
        top: 56px;
        flex-direction: column;
    }

    .lprl_me_tab {
        width: 100%;
        flex: 1 1 auto;
    }

    .lprl_me_grid_2,
    .lprl_me_grid_3 {
        grid-template-columns: 1fr;
    }

    .lprl_me_subbloque_titulo {
        align-items: flex-start;
        flex-direction: column;
    }
}