﻿:root {
    --primary-color: #0F2267; /* Azul Obscuro */
    --secondary-color: #8FB8E4; /* Azul Claro institucional */
    --accent-color: #E41B3D; /* Rojo para detalles */
    --accent-red-lihgt: #D90404; /* Rojo light */
    --icon-dark: #f5f5f5; /* Texto principal fondos claros */
    --text-dark: #494949; /* Texto principal fondos claros */
    --text-secondary: #8FB8E4; /* Texto secundario fondos onscuros */
    --text-light: #FFFFFF; /* Texto claro */
    --bg-light: #FFF; /* Fondo claro */
    --border-radius-sm: 6px; /* Bordes redondeados pequeños */
    --border-radius-md: 12px; /* Bordes redondeados medianos */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1); /* Sombra suave */
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15); /* Sombra media */
}





@font-face {
    font-family: 'Garabito';
    src: url('fonts/Gabarito-VariableFont_wght.ttf') format('truetype');
    font-weight: 1 999; /* Esto habilita el rango completo de pesos para fuentes variables */
    font-style: normal;
    font-display: swap; /* Mejora el rendimiento de carga */
}

.credencial-container {
    width: 100%;
    max-width: 630px; /* Tamaño óptimo para credencial */
    margin: 2rem auto; /* Centrado con margen */
    background: var(--primary-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden; /* Oculta contenido que sobresale */
    /*    border: 3px solid var(--primary-color);
*/ font-family: Garabito, sans-serif;
    position: relative;
    color: var(--text-dark);
}

.logos-container {
    position: relative;
    justify-content: space-between;
    padding: 1rem 1rem 0;
    margin-top: 10px;
    display: flex;
}

.logo_izquierdo {
    width: auto;
    height: 70px;
    justify-self: start;
}

.logo_derecho {
    width: auto;
    height: 50px;
    justify-self: flex-end;
}

.credencial-body {
    position: relative;
    padding: .5rem;
}

    .credencial-body::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: radial-gradient(circle at 10% 20%, rgba(0, 51, 102, 0.03) 1px, transparent 1px), radial-gradient(circle at 90% 80%, rgba(0, 51, 102, 0.03) 1px, transparent 1px);
        background-size: 20px 20px;
        z-index: -1;
    }

.container {
    display: flex;
    padding: 10px;
    justify-content: space-between;
}

.photo-container {
    width: 30%;
    display: flex;
    justify-content: flex-end;
}

.user-photo {
    width: 94px;
    height: auto;
}

.user-name-container {
    align-content: center;
    width: 40%;
    text-align: left;
    font-family: 'Garabito';
    font-weight: 700; /* Puedes usar cualquier valor entre 1-999 */
    line-height: 1.4;
    text-align: left;
    margin: 0;
    padding: 0 20px;
}

.name {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-secondary);
    line-height: 1.1;
    word-break: break-word;
}




.nuc-container {
    width: 40%;
    align-content: center;
    padding: 20px;
}

.nuc-number {
    display: inline-block;
    text-align: center;
    padding: 0 5px;
    border: 3px solid #d9534f; /* Borde rojo grueso */
}

.nuc-label {
    font-size: 20px;
    letter-spacing: 1px;
    font-weight: bold;
    color: var(--text-light);
}


.qr-container {
    display: flex;
    text-align: center;
    margin-top: 20px;
    padding: 20px;
    border-top: 2px solid var(--secondary-color);
    justify-content: center;
    align-items: center;
}


.qr-label {
    width: 30%;
    font-size: 20px;
    letter-spacing: 1px;
    font-weight: bold;
    color: var(--text-light);
    padding: 10px;
}

.qr-icon {
    width: 40px;
    height: auto;
}

/* QR code styling */
.qr-code {
    width: 70px;
    height: auto;
    margin: 20px;
    background-color: white;
    border: 1px solid #ccc;
}

.border-inferior {
    position: absolute;
    bottom: -27px;
    height: 30px;
    width: 100%;
    position-area: bottom;
    background: linear-gradient( to right, var(--secondary-color) 60%, var(--accent-color) 40% )
}

.loginlogo {
    background-image: url('../../img/Business_Plan.png');
    background-color: var(--bg-light);
}

.auth-box {
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
}

.btn-login {
    background-color: var(--accent-red-lihgt);
    color: var(--bg-light);
    transition: all 0.3s ease;
    font-family: 'Garabito', sans-serif;
}

    .btn-login:hover {
        background-color: var(--accent-color);
        color: var(--bg-light);
        transform: translateY(-2px);
    }

#msgError {
    display: none;
    background-color: blue;
    color: #fff;
}


/* Estilos base del preloader */
.metadata-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Contenedor del contenido */
.preloader-content {
    text-align: center;
    max-width: 200px;
}

/* Estilos del logo animado */
.pulse-logo {
    width: 80px;
    height: 80px;
    animation: pulse 1.5s ease-in-out infinite;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Barra de progreso */
.progress-container {
    width: 100%;
    height: 4px;
    background: rgba(78, 115, 223, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: #4e73df;
    transition: width 0.3s ease;
}

/* Estado cuando está cargado */
.metadata-preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

/* Animación de pulso */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}