﻿:root {
    --azul: #244f8a;
    --verde: #3dae3b;
    --amarillo: #FFCD00;
    --rojo: #96262C;
    --blanco: #FFFFFF;
    --gris-luz: #edf0f2;
    --shadow: 2px 5px 15px rgb(157, 167, 178);
    --Black: #101820;
    --gris: #dfe1df;
}

* /* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
*/
body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(to bottom, rgb(247, 251, 254), #e7ebed);
    color: #333;
}

.app-container {
    display: flex;
}

/* --- SIDEBAR --- */

/* --- SIDEBAR --- */
.sidebar {
    width: 350px;
    background: var(--azul);
    color: white;
    height: 100vh;
    padding-left: 1.5rem;
    position: sticky;
    top: 0;
    transition: 0.3s ease;
}

    .sidebar h3 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        color: var(--amarillo);
        text-transform: uppercase;
    }

    .sidebar select {
        width: 100%;
        padding: 10px;
        border-radius: 8px;
        border: none;
        margin-bottom: 1.5rem;
        /*background: rgba(255,255,255,0.1);*/
        color: #101820;
    }

/* --- MAIN CONTENT --- */
.content {
    flex: 1;
    padding: 2rem;
}

.search-wrapper {
    background: white;
    padding: 8px;
    border-radius: 10px;
    box-shadow: 2px 5px 15px rgb(207, 214, 222);
    display: flex;
    align-items: center;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
}

    .search-wrapper:focus-within {
        border-color: var(--azul);
    }

    .search-wrapper input {
        border: none;
        outline: none;
        width: 100%;
        margin-left: 1rem;
        font-size: 1rem;
    }

/* ===== HEADER INSTITUCIONAL ===== */
.header-institutional {
    background: linear-gradient(135deg, #215AA8 50%, #215AA8 100%);
    color: white;
    padding: 0;
    /* box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: fixed;*/
    text-align: left;
    z-index: 1000;
    border-bottom: 5px solid var(--amarillo);
    width: 100%;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
}

.logo-container {
    display: flex;
    align-items: center;
    /**/
}

    .logo-container img {
        height: 60px;
        width: auto;
        padding: 8px 15px;
        border-radius: 5px;
        text-align: center;
    }


.system-title {
    padding: 15px;
    border-left:2px solid #ffcd00;
}

    .system-title h1 {
        font-size: 24px;
        font-weight: 700;
        margin: 0;
        color: white;
        letter-spacing: 0.5px;
    }

    .system-title p {
        font-size: 13px;
        margin: 0;
        color: rgba(255,255,255,0.8);
        font-weight: 300;
        display:inherit;
    }

.main-header {
    padding: 10px;
    padding-top: 100px;
}

.results-container {
    margin: 30px;
   /* padding-left: 30px;
    padding-right: 30px;
    padding-bottom: 20px;*/
    border-radius: 30px;
    box-shadow: var(--shadow);
}

/* --- RESPONSIVE TABLE/CARDS --- */
.table {
    background-color: #fff;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgb(218, 223, 237, 0.08);
}

.table-header {
    display: grid;
    grid-template-columns: 1.3fr  1.6fr 1.5fr;
    padding: 1rem 3rem ;
    font-weight: bold;
    color: var(--azul);
    font-size: 18px;
}

.table-striped {
    background-color: #f8f9fa;
}

.employee-card {
    display: grid;
    grid-template-columns: 1.3fr 1.5fr 1.5fr;
    margin-bottom: 0.8rem;
    padding: 1.2rem;
    border-radius: 12px;
    align-items: center;
    box-shadow: 2px 5px 15px rgb(207, 214, 222);
   /* border-left: 3px solid #1ac7c7;*/
}

.sombra {
    border-radius: 12px;
    align-items: center;
    box-shadow: 2px 5px 15px rgb(207, 214, 222);
}

.logo {
    width: 200px;
    height: auto;
    /*object-fit: cover;*/
    /*/*margin: 10px;*/
    padding: 10px;
    text-align: center;
}

.avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    /*margin-right: 1rem;*/
    border: 2px solid var(--gris-luz);
    text-align:center;
}

.col-info {
    display: flex;
    align-items: center;
}

.full-name {
    display: block;
    color: var(--azul);
    font-size: 1.1rem;
    font-weight: 600;
}

.expediente {
    font-size: 0.9rem;
    padding-top: 10px;
    color: #777;
    font-weight: 700;
}


.badge-cargo {
    color: var(--Black);
    padding: 0px;
    font-size: 1rem;
}
.badge-Area {
    color: var(--Black);
    padding: 0px;
    font-size: 1rem;
}

.btn-call {
    color: var(--azul);
    font-weight: bold;
    text-decoration: none;
    font-size: 1rem;
}

.btn-email {
    color: var(--rojo);
    margin-right: 10px;
    font-size: 1rem;
}
.lblTitulo {
    font-size: 1.1rem;
    font-weight:bold;
}

@media (max-width: 1300px) {
    .avatar {
        margin: 0 0 10px 0;
        height: 80px;
        width: 80px;
    }
    .lblTitulo {
        font-size:.9rem;
    }
    .logo {
        width: 170px;
        height: 80px;
        /*object-fit: cover;*/
        /*/*margin: 10px;*/
        padding: 10px;
        text-align: center;
    }
}

/* --- MEDIA QUERIES (MÓVIL) --- */
@media (max-width: 900px) {
    .lblTitulo {
        text-align:center;
        font-size: 1rem;
    }
    .avatar {
        margin: 0 0 10px 0;
        height: 80px;
        width: 80px;
    }

    .sidebar {
        position: fixed;
        left: -100%;
        z-index: 1000;
    }

        .sidebar.active {
            left: 0;
        }

    .table-header {
        display: none;
    }
    /* Ocultar cabecera en móvil */

    .employee-card {
        grid-template-columns: 1fr; /* Una sola columna */
        gap: 10px;
        text-align: center;
    }

    .col-info {
        flex-direction: column;
    }



    

    .mobile-filter-btn {
        display: block;
        position: fixed;
        bottom: 20px;
        right: 20px;
        background: var(--azul);
        color: white;
        padding: 15px 25px;
        border-radius: 50px;
        border: none;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        z-index: 9999;
    }
}

@media (min-width: 993px) {
    .mobile-filter-btn, .close-sidebar {
        display: none;
    }
    .system-title p {
       /* display: none;*/
    }

}
@media (max-width: 730px) {
    .logo {
        width: 130px;
        height: 70px;
        /*object-fit: cover;*/
        /*/*margin: 10px;*/
        padding: 10px;
        margin:0px;
        text-align: center;
    }
    .system-title p {
        display: none;
    }
}
    /*footer*/

    .contact-item {
        display: flex;
        align-items: flex-start;
        gap: 5px;
        margin-bottom: 0px;
        font-size: 1.1rem;
    }

        .contact-item i {
            font-size: 1.1rem;
            min-width: 20px;
            margin-top: 0px; /* Ajuste fino para alineación vertical */
        }

        .contact-item p {
            color: #344d65;
        }

            .contact-item p a:hover {
                text-decoration: underline;
            }

        .contact-item a {
            font-size: 1.1rem;
            line-height: 1.2;
        }

    .address-block {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

        .address-block p {
            margin: 0;
            line-height: 1.2;
            color: #344d65;
            font-size: 1rem;
        }

            .address-block p a {
                color: #344d65;
            }

                .address-block p a:hover {
                    color: #0e25d7;
                }

    /*=========================================================================
 25. Top social icon
=========================================================================*/


    .social-top {
        display: block;
        float: right;
        height: 50px;
        overflow: hidden;
    }

        .social-top a {
            background-color: transparent;
            width: 50px;
            height: 50px;
            display: inline-block;
            font-family: "FontAwesome";
            font-size: 16px;
            font-style: normal;
            font-weight: normal;
            float: left;
            text-decoration: none;
            transition: background-color .2s linear, color .2s linear;
        }

            .social-top a:hover {
                color: #fff;
            }

            .social-top a:before {
                display: table-cell;
                text-align: center;
                vertical-align: middle;
            }

            .social-top a.bi-twitter-x {
                color: #101820;
                font-size: 30px;
                width: 45px;
                height: 45px;
                padding: 5px 6px;
                margin: 2px;
            }

                .social-top a.bi-twitter-x:hover {
                    color: #fff;
                    border: 2px solid #101820;
                    /*background-color: #101820;               */
                }

                .social-top a.bi-twitter-x:before {
                    color: #101820;
                    background-color: transparent;
                }



            .social-top a.bi-facebook {
                /*color: #fff;*/
                font-size: 32px;
                background-color: #215AA8;
                width: 45px;
                height: 45px;
                padding: 5px 6px;
                margin: 2px;
            }

                .social-top a.bi-facebook:before {
                    color: #fff;
                }

                .social-top a.bi-facebook:hover {
                    color: #215AA8;
                    border: 1px solid #ffcd00;
                }

            .social-top a.bi-youtube {
                font-size: 32px;
                background-color: #fff;
                width: 45px;
                height: 45px;
                padding: 4px;
                margin: 2px;
            }

                .social-top a.bi-youtube:before {
                }

                .social-top a.bi-youtube:hover {
                    border: 2px solid #96262c;
                }


    .card {
        background: white;
        padding: 20px;
        margin: 30px;
        border: 1px solid rgb(207, 214, 222);
        box-shadow: 5px 5px 5px 5px rgb(195, 211, 239, 0.30);
        border-radius: 20px;
    }

    .card-title {
        font-weight: 600;
        margin-bottom: 15px;
    }

    .containerTrans {
        width: 100%;
        padding: 30px;
        background: #ffffff7e;
        border-radius: 15px;
        box-shadow: 2px 2px 2px 6px rgb(212, 206, 206, 0.05);
        opacity: 50;
        border: 1px solid rgb(235, 237, 241);
    }
  
      