* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    width: 100%;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

/* Header gris - solo barra */
.header-gris {
    width: 100%;
    height: 38px;
    background-color: #333333;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

/* Contenedor principal para login */
.container {
    display: flex;
    height: 100vh;
    width: 100%;
    padding: 38px 20px 0 20px; /* Padding general con espacio en los lados */
}

.left-side {
    flex: 0 0 40%;
    background-color: #fff;
    padding: 40px;
    margin-right: 40px; /* Mayor espacio hacia la derecha */
}

.right-side {
    flex: 1;
    background-color: #f5f5f5;
    background-image: url('../images/0000resolucion_desktop.jpg');
    background-size: cover;
    background-position: left center; /* Muestra el lado izquierdo (el texto) */
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.desktop-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center; /* Mostrar imagen desde la derecha */
}

/* Sección de bienvenida */
.welcome-section {
    text-align: left;
    max-width: 340px;
}

.welcome-section h1 {
    color: #666666;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 400;
    letter-spacing: -0.5px;
}

.logo {
    max-width: 200px;
}

.logo img {
    width: 142%;
    height: auto;
}

.tabs-border {
    margin-top: 10px;
    margin-bottom: 20px;
}

.tabs-border img {
    height: auto;
}

/* Perfil del usuario */
.user-profile {
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-pic {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    overflow: hidden;
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h2 {
    color: #333333;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 4px;
}

.profile-info p {
    color: #666666;
    font-size: 13px;
    font-weight: 300;
    margin: 0;
}

/* Formulario de login */
.login-form {
    width: 100%;
    position: relative;
}

.form-row {
    display: flex;
    align-items: flex-start;
}

.input-block {
    flex: 2;
}

.input-block input {
    background: rgba(169, 169, 169, 0);
    color: #717170;
    font-size: 12px;
    font-weight: 400;
    border-radius: 2px;
    padding: 4px 12px;
    height: 30px;
    width: 282px;
    border: 1px solid #000;
    outline: none;
    font-family: 'Inter', sans-serif;
    margin-bottom: 10px;
}

.input-block input::placeholder {
    font-size: 12px;
    color: #999;
}

.input-block input[type="password"] {
    letter-spacing: normal;
}

.input-block input + input {
    margin-bottom: 15px;
}

.btn-continue {
    width: 282px;
    padding: 10px;
    background-color: #FDB813;
    border: none;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    margin-bottom: 15px;
}

.language-link {
    text-align: center;
    width: 282px;
    margin-top: 10px;
}

.language-link a.inactive {
    color: #999;
    font-size: 13px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    cursor: default;
    pointer-events: none;
}

.switch-user {
    text-align: center;
    width: 282px;
}

.switch-user a {
    color: #666666;
    font-size: 13px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}

.switch-user a:hover {
    text-decoration: underline;
}

/* Línea separadora vertical */
.vertical-separator {
    margin: 0 20px;
    display: flex;
    align-items: center;
    height: 100%;
}

.vertical-separator img {
    height: auto;
    width: 2px;
}

/* Links del formulario */
.links-block {
    flex: 1;
    padding-top: 5px;
}

.forgot-password,
.sync-token,
.renew-token {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    white-space: nowrap;
}

.forgot-password img,
.sync-token img,
.renew-token img {
    width: 14px;
    height: 14px;
    margin-right: 8px;
    vertical-align: middle;
}

.forgot-password a,
.sync-token a,
.renew-token a {
    color: #666666;
    text-decoration: none;
    font-size: 13px;
    line-height: 14px;
    display: inline-block;
    vertical-align: middle;
}

/* Overlay de carga */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(245, 245, 245, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #FDB813;
    border-top: 4px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer amarillo */
.footer-yellow {
    width: 100%;
    height: 38px;
    background-color: #FDB813;
    position: fixed;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #333333;
    padding: 0 20px;
}

.footer-content {
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footer-yellow a {
    color: #333333;
    text-decoration: none;
}

.footer-yellow a:hover {
    text-decoration: underline;
}

/* Estilos del Dashboard */
.dashboard-header {
    background-color: #FDB813;
    height: 52px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Layout del Dashboard */
.dashboard-layout {
    display: flex;
    height: 100vh;
    padding-top: 52px;
}

/* Menú lateral */
.sidebar {
    width: 266px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.menu-image {
    margin-left: -20px;
    width: 266px;
    margin-top: -20px;
}

.menu-image img {
    /*! width: 100%; */
    height: auto;
    display: block;
    padding: 20px 20px;
}

.sidebar-fill {
    flex-grow: 1;
    background-color: #3d4141;
    /*! margin-left: 29px; */
    width: 301px;
    margin-top: -25px;
}

/* Contenido principal del dashboard */
.dashboard-content {
    flex-grow: 1;
    height: 100%;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Footer del dashboard */
.dashboard-footer {
    position: fixed;
    bottom: 0;
    left: 289px; /* Ancho del sidebar */
    right: 0;
    background-color: #3d4141;
    padding: 10px 20px;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-footer {
    background: none;
    border: none;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.btn-footer:hover {
    text-decoration: underline;
    opacity: 1;
}

.copyright {
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    margin-left: 15px;
    opacity: 0.8;
}

.footer-whatsapp {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
}

.footer-whatsapp i {
    color: #25D366;
    font-size: 16px;
}

.footer-whatsapp span {
    opacity: 0.9;
}

/* Header izquierdo */
.header-left {
    display: flex;
    align-items: center;
    margin-left: -20px;
}

.logo-dashboard {
    height: 52px;
    display: flex;
}

.logo-dashboard img {
    height: 100%;
    width: auto;
}

/* Header derecho */
.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-section {
    color: #333333;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
}

.session-container {
    height: 52px;
    margin-right: -20px;
    display: flex;
    align-items: center;
}

.session-container img {
    height: 100%;
    width: auto;
}

/* ========================================
   RESPONSIVE DESIGN - MEDIA QUERIES
   ======================================== */

/* Tablets y pantallas medianas (hasta 1024px) */
@media screen and (max-width: 1024px) {
    .left-side {
        flex: 0 0 50%;
        padding: 30px 20px;
        margin-right: 20px;
    }
    
    .welcome-section {
        max-width: 100%;
    }
    
    .input-block input,
    .btn-continue {
        width: 100%;
        max-width: 250px;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .vertical-separator {
        display: none;
    }
    
    .links-block {
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid #e0e0e0;
    }
}

/* Tablets pequeñas y móviles grandes (hasta 768px) */
@media screen and (max-width: 768px) {
    body, html {
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .container {
        flex-direction: column;
        padding: 38px 15px 80px 15px;
        height: auto;
        min-height: 100vh;
    }
    
    .left-side {
        flex: 1;
        width: 100%;
        margin-right: 0;
        padding: 20px 15px;
        order: 1;
    }
    
    .right-side {
        flex: 0 0 250px;
        width: 100%;
        order: 2;
        margin-top: 20px;
        min-height: 250px;
    }
    
    .welcome-section h1 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .logo {
        max-width: 160px;
    }
    
    .logo img {
        width: 120%;
    }
    
    .tabs-border {
        margin-top: 8px;
        margin-bottom: 15px;
    }
    
    .tabs-border img {
        width: 100%;
        max-width: 200px;
    }
    
    .input-block input,
    .btn-continue,
    .switch-user {
        width: 100%;
        max-width: 100%;
    }
    
    .forgot-password,
    .sync-token,
    .renew-token {
        margin-bottom: 12px;
    }
    
    .forgot-password a,
    .sync-token a,
    .renew-token a {
        font-size: 12px;
    }
    
    .footer-yellow {
        height: auto;
        padding: 10px 15px;
        position: relative;
    }
    
    .footer-content {
        font-size: 9px;
        line-height: 1.4;
        white-space: normal;
    }
}

/* Móviles (hasta 480px) */
@media screen and (max-width: 480px) {
    .header-gris {
        height: 30px;
    }
    
    .container {
        padding: 30px 10px 60px 10px;
    }
    
    .left-side {
        padding: 15px 10px;
    }
    
    .right-side {
        flex: 0 0 200px;
        min-height: 200px;
        margin-top: 15px;
    }
    
    .welcome-section h1 {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .logo {
        max-width: 140px;
    }
    
    .logo img {
        width: 100%;
    }
    
    .tabs-border img {
        max-width: 180px;
    }
    
    .input-block input {
        font-size: 13px;
        height: 28px;
        padding: 3px 10px;
    }
    
    .btn-continue {
        padding: 8px;
        font-size: 13px;
    }
    
    .forgot-password img,
    .sync-token img,
    .renew-token img {
        width: 12px;
        height: 12px;
        margin-right: 6px;
    }
    
    .forgot-password a,
    .sync-token a,
    .renew-token a {
        font-size: 11px;
    }
    
    .footer-yellow {
        padding: 8px 10px;
    }
    
    .footer-content {
        font-size: 8px;
    }
}

/* Móviles muy pequeños (hasta 360px) */
@media screen and (max-width: 360px) {
    .container {
        padding: 30px 5px 60px 5px;
    }
    
    .left-side {
        padding: 10px 8px;
    }
    
    .right-side {
        flex: 0 0 180px;
        min-height: 180px;
    }
    
    .logo {
        max-width: 120px;
    }
    
    .tabs-border img {
        max-width: 160px;
    }
    
    .welcome-section h1 {
        font-size: 13px;
    }
    
    .input-block input {
        font-size: 12px;
        height: 26px;
    }
    
    .btn-continue {
        font-size: 12px;
        padding: 7px;
    }
    
    .footer-content {
        font-size: 7px;
    }
}