﻿body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #F5F5F5;
    color: #333;
    margin: 0;
}

/* === FOOTER === */
.footer-inn {
    background: #37474F;
    color: #ECEFF1;
    text-align: center;
    padding: 36px 20px 26px;
    font-family: 'Segoe UI', sans-serif;
    border-top: 2px solid rgba(255,255,255,0.08);
    font-size: 16px;
}

    .footer-inn small {
        display: block;
        color: #CFD8DC;
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 6px;
    }

    .footer-inn strong {
        color: #FFFFFF;
        font-weight: 600;
    }

    .footer-inn a {
        color: #FFFFFF;
        text-decoration: none;
        font-weight: 500;
    }

        .footer-inn a:hover {
            text-decoration: underline;
        }

    .footer-inn i {
        color: #ECEFF1;
        font-size: 17px;
        margin-right: 6px;
    }

.footer-version-bar {
    width: 100%;
    background: linear-gradient(180deg, #263238 0%, #1E272D 100%);
    padding: 10px 26px;
    padding-right: 60px; /* ← mueve el texto a la derecha */
    color: rgba(255,255,255,0.82);
    font-size: 15px;
    text-align: right;
    border-top: 1px solid rgba(255,255,255,0.12);
    letter-spacing: 0.3px;
}




/* CONTENIDO */
.content-metrologia {
    margin-left: 100px;
    padding: 1rem 3rem;
    min-height: calc(100vh - 160px);
    background-color: #F4F6F9;
}

    .content-metrologia h3 {
        color: #031f34;
        font-weight: 700;
        font-size: 1.9rem;
        margin-bottom: 0.5rem;
    }

    .content-metrologia h4 {
        color: #031f34;
        font-weight: 600;
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

.intro-metrologia p {
    font-size: 1rem;
    color: #394B59;
    line-height: 1.6;
    margin-bottom: 1rem;
    padding-left: .2rem;
}

.card-metrologia {
    background: #FFFFFF;
    padding: 1.6rem;
    border-radius: 15px;
    border: 1px solid #E1E7EF;
    box-shadow: 0 3px 12px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.tabla-controles {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.total-registros {
    margin-right: auto;
    font-size: 14px;
    font-weight: 600;
    color: #2b3e4a;
}

.select-filas {
    padding: 4px 6px;
    font-size: 14px;
    border: 1px solid #bbb;
    border-radius: 4px;
    width: 60px;
}

.input-busqueda {
    padding: 5px 8px;
    font-size: 14px;
    width: 180px;
    border: 1px solid #bbb;
    border-radius: 4px;
}

    .input-busqueda:focus,
    .select-filas:focus {
        outline: none !important;
        border-color: #80bdff !important;
        box-shadow: 0 0 4px rgba(0, 123, 255, 0.4) !important;
        transition: 0.15s ease-in-out;
    }

.card-metrologia .tabla tbody tr:hover {
    background-color: #E8F2FF !important;
    box-shadow: inset 0 0 0 9999px rgba(0, 95, 204, 0.07);
}

/* === TABLA  === */
.tabla {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    color: #1F2F45;
}

    .tabla thead th {
        background: #E7EEF7 !important;
        color: #102A43;
        font-weight: 700;
        padding: 14px;
        text-align: center;
        border-bottom: 2px solid #CDD7E3;
        border-right: 1px solid #D5DDE6;
    }

        .tabla thead th:last-child {
            border-right: none !important;
        }

    .tabla thead tr:nth-of-type(1) th {
        background-color: #27689d !important; 
        color: #ffffff !important;
        font-weight: 600;
    }

    .tabla tbody td {
        padding: 12px 10px;
        border-bottom: 1px solid #DDE3EC;
        vertical-align: top;
        border-right: 1px solid #E1E6ED;
    }

        .tabla tbody td:last-child {
            border-right: none;
        }

    .tabla tbody tr:nth-child(odd) {
        background-color: #FFFFFf !important;
    }

    .tabla tbody tr:nth-child(even) {
        background-color: #F3F7FC !important;
    }

    .tabla tbody tr:hover {
        background-color: #E8F2FF !important;
        box-shadow: inset 0 0 0 9999px rgba(0, 95, 204, 0.07);
        transition: 0.15s ease-in-out;
    }

.subtabla {
    width: 100%;
    border-collapse: collapse;
}

    .subtabla td {
        padding: 4px 6px;
        border-bottom: 1px solid #ddd;
    }

.subparametro {
    font-size: 13px;
}

.table-responsive {
    border: 1px solid #D5DDE6;
    border-radius: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: normal; 
}

.tabla-controles {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.total-registros {
    margin-right: auto;
    font-size: 14px;
    font-weight: 600;
    color: #2b3e4a;
}

.select-filas {
    padding: 4px 6px;
    font-size: 14px;
    border: 1px solid #bbb;
    border-radius: 4px;
    width: 60px;
}

.input-busqueda {
    padding: 5px 8px;
    font-size: 14px;
    width: 180px;
    border: 1px solid #bbb;
    border-radius: 4px;
}
    .input-busqueda:focus,
    .select-filas:focus {
        outline: none !important;
        border-color: #80bdff !important;
        box-shadow: 0 0 4px rgba(0, 123, 255, 0.4) !important;
        transition: 0.15s ease-in-out;
    }


.card-metrologia .tabla tbody tr:hover {
    background-color: #E8F2FF !important;
    box-shadow: inset 0 0 0 9999px rgba(0, 95, 204, 0.07);
}

/* ===== CONTACTO ===== */
.contacto-lab {
    background: #FFFFFF;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #E0E7F1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

    .contacto-lab strong {
        color: #031f34;
    }

    .contacto-lab a {
        color: #005A9C;
        font-weight: 600;
        text-decoration: none;
    }

        .contacto-lab a:hover {
            text-decoration: underline;
        }

.titulo-seccion {
    font-size: 1.6rem;
    color: #002A5A;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.subtitulo-seccion {
    font-size: 1rem;
    color: #5A6A7A;
}

/* === HEADER === */
.banner {
    position: relative;
    width: calc(100% - 240px);
    margin-left: 240px;
    min-height: 250px; 
    padding-top: 50px; 
    padding-bottom: 70px; 

    background-color: #fff;
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: flex-start;

    text-align: center;
    overflow: hidden;
    font-family: Arial, sans-serif;
    z-index: 5;
}


    .banner img {
        position: absolute;
        top: 0;
        left: 0;
        width: 115%;
        height: 122%;
        object-fit: cover;
        opacity: 0.55; 
        z-index: 1;
    }

    .banner::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.45);
        z-index: 2;
    }

.banner-linea {
    width: 100%;
    height: 48px;
    background: linear-gradient(90deg, #2F6BA9, #428BCA, #2F6BA9);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute; 
    bottom: 0; 
    left: 0;
    z-index: 10; 
    box-shadow: 0 -2px 8px rgba(0,0,0,0.12);

}

    .banner-linea::after {
        content: attr(data-categoria);
        font-size: 1.35rem;
        font-weight: 700;
        color: white;
        letter-spacing: .4px;
    }

.ribbon {
    position: absolute;
    top: 10px; 
    left: 40px;
    width: 300px; 
    height: 100%;
    display: flex;
    align-items: flex-start; 
    justify-content: flex-start;
    z-index: 6;
}

    .ribbon img {
        width: 270px; 
        height: auto;
        margin-top: 10px; 
    }

.title {
    position: relative;
    font-weight: 700;
    color: #002A5A;
    text-align: center;
    z-index: 6;
    font-size: 2.6rem;
    margin-top: 0px;
    margin-bottom: 14px;
    letter-spacing: 0.6px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.banner-redes-sociales {
    position: absolute;
    top: 15px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 6;
}

    .banner-redes-sociales a {
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
    }

    .banner-redes-sociales i {
        color: #000;
        font-size: 20px;
        transition: all 0.3s ease;
    }

    .banner-redes-sociales a:hover i {
        transform: scale(1.3);
    }

.icono-facebook:hover i {
    color: #1877F2;
}

.icono-instagram:hover i {
    color: #E1306C;
}

.icono-youtube:hover i {
    color: #FF0000;
}

.icono-linkedin:hover i {
    color: #006097;
}

.icono-inn img {
    width: 26px;
    margin-left: -23px;
    height: auto;
    opacity: 0.95;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.icono-inn:hover img {
    transform: scale(1.15);
    opacity: 1;
}

.banner.expanded {
    width: 100% !important;
    margin-left: 0 !important;
    transition: all 0.35s ease;
}

#mainContent.expanded {
    margin-left: -50px !important; 
    width: calc(100% + 10px) !important;
    max-width: calc(100% + 10px) !important;
    transition: all 0.35s ease;
}

#sidebar.hidden ~ #btnToggleSidebar {
    left: 12px !important;
}


#sidebar {
    transition: transform .35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

    #sidebar.hidden {
        transform: translateX(-260px);
    }

#mainContent,
.banner {
    transition: margin-left .35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.expanded {
    margin-left: 0 !important;
}
.banner {
    transition: margin-left 0.45s cubic-bezier(0.25, 0.8, 0.25, 1),
                width 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#btnToggleSidebar {
    transition: all 0.3s ease-in-out;
}

#btnToggleSidebar:hover {
    transform: scale(1.08) rotate(2deg);
}

/*PDF*/

.certificados-container {
    padding: 20px 0;
}

.titulo-certificados {
    font-size: 18px;
    font-weight: 700;
    color: #012b45;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
}

.certificados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.certificado-card {
    background: #ffffff;
    border: 1px solid #d7e1ea;
    border-radius: 12px;
    padding: 20px 14px;
    text-align: center;
    cursor: pointer;
    transition: 0.25s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 150px;
}

.certificado-card:hover {
    background: #f3f8fc;
    border-color: #9bb7c9;
    transform: translateY(-3px);
}

.certificado-card i {
    font-size: 32px;
    color: #b40000;
    margin-bottom: 10px;
}

.certificado-card span {
    font-size: 13px;
    font-weight: 600;
    color: #012b45;
    line-height: 1.3;
}

.certificado-card-cmc {
    background: #ffffff;
    border: 1px solid #d7e1ea;
    border-radius: 12px;
    padding: 20px 14px;
    text-align: center;
    cursor: pointer;
    transition: 0.25s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 150px;
    width: 320px; 
    margin: 0 ;
}

    .certificado-card-cmc:hover {
        background: #f3f8fc;
        border-color: #9bb7c9;
        transform: translateY(-3px);
    }

    .certificado-card-cmc i {
        font-size: 32px;
        color: #b40000;
        margin-bottom: 10px;
    }

    .certificado-card-cmc span {
        font-size: 13px;
        font-weight: 600;
        color: #012b45;
        line-height: 1.3;
    }

.pdf-wrapper {
    margin: 40px auto;
    max-width: 92%;
    border-radius: 14px;
    border: 2px solid #c8d5e2;
    background: #f7fafc;
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
    overflow: hidden;
}

.pdf-header {
    background: #3490dc !important;
    color: #ffffff;
    padding: 14px 24px;
    font-weight: 600;
    border-bottom: 1px solid #2f78b5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pdf-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: 0.2s;
}

.pdf-header .btn-close:hover {
    opacity: 1;
    transform: scale(1.15);
}

.pdf-body {
    background: #e9eff4;
    padding: 20px;
}

.pdf-view-area {
    background: #1e1e1e;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 78vh;
}

.visor-pdf {
    width: 100%;
    height: calc(78vh);
    border: none;
}

.pdf-footer {
    background: #f7fafc;
    border-top: 1px solid #d3dde7;
    padding: 14px 22px;
    display: flex;
    justify-content: flex-end;
}

.btn-cerrar {
    background: #3490dc;
    color: #ffffff;
    font-weight: 600;
    border-radius: 8px;
    padding: 8px 20px;
    border: none;
    transition: 0.25s;
}

.btn-cerrar:hover {
    background: #2678b8;
    color: #fff;
}

/* =======================================================
   📱 RESPONSIVE (máx 1024px)
   ======================================================= */
@media (max-width: 1024px) {

    #sidebar {
        position: fixed;
        left: -260px;
        height: 90vh;
        width: 240px !important;
        background-color: #0A2F45;
        z-index: 9999;
        transition: left 0.3s ease;
    }

    .menu-header {
        padding: 32px 18px !important; 
        height: auto !important;
    }

    .menu-header-title {
        font-size: 13px !important;
    }

    .menu-header-sub {
        font-size: 12px !important;
    }

    .menu-linea {
        background: linear-gradient(90deg, #2F6BA9, #428BCA, #428BCA) !important;
        border-bottom: none !important;
    }

    #mainContent.expanded,
    .banner.expanded {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 820px !important; 
    }

    .btnToggleSidebar {
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 10000;
        background: #0A2F45;
        color: #fff;
        font-size: 22px;
        padding: 8px 12px;
        border-radius: 8px;
        border: none;
    }

    #sidebar.hidden + #btnToggleSidebar {
        left: 15px !important;
    }

    #sidebar:not(.hidden) + #btnToggleSidebar {
        left: 250px !important; 
    }

    .banner {
        width: 100% !important;
        margin-left: 0 !important;
        height: 140px !important;
    }

    .banner-linea::after {
        font-size: 1rem !important;
    }

    .title {
        display: none !important;
    }

    .content-metrologia {
        margin-left: 0 !important;

    }

    .table-responsive {
        overflow-x: auto !important;
        white-space: nowrap !important;
    }

    .tabla th,
    .tabla td {
        width: 110px !important;
        min-width: 110px !important;
        max-width: 110px !important;
        padding: 4px 4px !important;
        font-size: 11px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
        vertical-align: middle !important;
    }

    .tabla th {
        font-size: 11px !important;
        font-weight: 600;
        line-height: 1.2;
        padding: 6px 4px !important;
    }

    .tabla-controles {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .input-busqueda {
        width: 100% !important;
    }

    .certificado-card {
        height: auto !important;
    }

    .pdf-wrapper {
        max-width: 100% !important;
    }
}


/* =======================================================
    RESPONSIVE (máx 480px)
   ======================================================= */
@media (max-width: 480px) {

    @media (max-width: 480px) {

        #mainContent,
        .content-metrologia {
            margin-left: 0 !important;
            width: 100% !important;
            max-width: 100% !important;
            padding: 0 12px !important;
        }

        .card-metrologia {
            width: 100% !important;
            padding: 15px 14px !important;
            border-radius: 14px;
        }

        .table-responsive {
            padding-right: 14px;
        }
    }

    @media (max-width: 768px) {

        #mainContent,
        .content-metrologia {
            margin-left: 0 !important;
            width: 100% !important;
            max-width: 100% !important;
            font-size: 12px;
        }

        .banner {
            width: 100% !important;
            margin-left: 0 !important;
        }

        #btnToggleSidebar {
            left: 15px !important;
            z-index: 10000;
        }

        #mainContent.expanded,
        .banner.expanded {
            margin-left: 0 !important;
            width: 100% !important;
            max-width: 100% !important;
        }
    }
}

@media (max-width: 1024px) {
    .footer-inn {
        padding: 16px 12px !important; 
    }

        .footer-inn small {
            font-size: 13px !important;
            line-height: 1.4 !important;
        }


    .footer-version-bar {
        font-size: 13px !important;
        padding: 4px 0 !important;
        padding-right: 18px !important; 
    }
}

@media (max-width: 480px) {
    .footer-inn {
        padding: 11px 8px !important;
    }

        .footer-inn small {
            font-size: 11px !important;
            line-height: 1.35 !important;
        }

    .footer-version-bar {
        font-size: 11px !important;
        padding: 4px 0 !important;
        padding-right: 18px !important;
    }
}

@media (max-width: 1024px) {
    .footer-inn i.fa-solid {
        font-size: 11px !important;
        width: 11px !important;
        height: 11px !important;
        line-height: 11px !important;
    }
}

@media (max-width: 480px) {
    .footer-inn i.fa-solid {
        font-size: 10px !important;
        width: 10px !important;
        height: 10px !important;
        line-height: 10px !important;
    }
}

@media (min-width: 900px) and (max-width: 1024px) {
    #mainContent.expanded,
    .banner.expanded,
    #mainContent,
    .content-metrologia {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
    }
}


/* =======================================================
   Laboratorio / Capacidades
   ======================================================= */

@media (max-width: 1024px) {
    .titulo-lab {
        font-size: 18px !important;
    }

    .subtitulo-lab {
        font-size: 17px !important;
    }
}

@media (max-width: 768px) {
    .titulo-lab {
        font-size: 16px !important;
    }

    .subtitulo-lab {
        font-size: 15px !important;
    }
}

@media (max-width: 480px) {
    .titulo-lab {
        font-size: 15px !important;
    }

    .subtitulo-lab {
        font-size: 14px !important;
    }
}


/* =======================================================
   Descripcion
   ======================================================= */

@media (max-width: 1024px) {
    .intro-metrologia {
        font-size: 15px !important;
        line-height: 1.55 !important;
    }

        .intro-metrologia p {
            font-size: 15px !important;
            line-height: 1.55 !important;
        }
}

@media (max-width: 768px) {
    .intro-metrologia,
    .intro-metrologia p {
        font-size: 14px !important;
        line-height: 1.50 !important;
    }
}

@media (max-width: 480px) {
    .intro-metrologia,
    .intro-metrologia p {
        font-size: 13px !important;
        line-height: 1.48 !important;
    }
}


@media (max-width: 480px) {
    .intro-metrologia {
        padding-top: 15px !important;
        margin-top: 10px !important;
    }
}

@media (max-width: 1024px) {
    .banner-linea {
        padding: 4px 6px !important;
    }

        .banner-linea::after {
            font-size: 17px !important; 
            line-height: 1.2 !important;
        }
}

@media (max-width: 768px) {
    .banner-linea {
        padding: 3px 4px !important;
    }

        .banner-linea::after {
            font-size: 15px !important;
        }
}

@media (max-width: 480px) {
    .banner-linea {
        padding: 2px 3px !important;
    }

        .banner-linea::after {
            font-size: 14px !important;
            line-height: 1.15 !important;
        }
}


/* ====================================================
   Certificados
   ==================================================== */

@media (max-width: 1024px) {

    .titulo-certificados {
        font-size: 18px !important;
        margin-bottom: 14px !important;
    }

        .titulo-certificados i {
            font-size: 18px !important;
        }

    .certificado-card {
        padding: 14px 12px !important;
        font-size: 14px !important;
        height: auto !important;
        margin-bottom: 12px !important;
    }

        .certificado-card i {
            font-size: 32px !important;
            margin-bottom: 8px !important;
        }

    .certificados-grid {
        gap: 14px !important;
        justify-content: start !important;
    }
}

@media (max-width: 768px) {

    .titulo-certificados {
        font-size: 16px !important;
        line-height: 1.2 !important;
    }

        .titulo-certificados i {
            font-size: 16px !important;
        }

    .certificado-card {
        padding: 12px 10px !important;
        font-size: 13px !important;
        margin-bottom: 10px !important;
    }

        .certificado-card i {
            font-size: 28px !important;
            margin-bottom: 6px !important;
        }

    .certificados-grid {
        gap: 10px !important;
        justify-content: start !important;
    }
}

@media (max-width: 480px) {

    .titulo-certificados {
        font-size: 13px !important;
        text-align: center !important;
    }

        .titulo-certificados i {
            font-size: 13px !important;
        }

    .certificado-card {
        padding: 10px 8px !important;
        font-size: 12px !important;
        margin-bottom: 8px !important;
        border-radius: 10px !important;
    }

        .certificado-card i {
            font-size: 24px !important;
            margin-bottom: 6px !important;
        }

    .certificados-grid {
        display: flex !important;
        justify-content: flex-start !important;
        gap: 24px !important;
        flex-wrap: wrap !important;
    }

    .certificado-card-cmc {
        width: 360px !important;
        min-width: 360px !important;
        max-width: 360px !important;
        flex: none !important;
    }



















}