@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    background: url('../image/fondo_pagina.png') no-repeat center center fixed;
    background-size: cover;
    color: #2e7d32;
    margin: 0;
    justify-items: center;
}

header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    font-weight: 700;
    margin: 0;
    padding: 1rem 0;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.header-link {
    text-decoration: none;
    color: #2e7d32;
    transition: color 0.3s, text-shadow 0.3s;
}

.header-link:hover {
    color: #1b5e20;
    text-shadow: 0px 0px 8px #2e7d32;
}

h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    text-align: center;
    color: #2e7d32;
    font-weight: 500;
}

form .form-label {
    font-size: 1.2rem;
}

form .form-control {
    font-size: 1rem;
    padding: 0.75rem;
}

form .btn-primary {
    background-color: #2e7d32;
    border-color: #2e7d32;
    font-weight: 600;
    font-size: 1.2rem;
}

form .btn-primary:hover {
    background-color: #1b5e20;
    border-color: #1b5e20;
}

#moduleSys {
    margin-top: 150px;
}

.logo-ticker {
    width: 100%;
    text-align: center;
}

.logo-ticker-content {
    display: inline-flex;
    align-items: center; 
    justify-content: center;
    flex-wrap: nowrap;
    overflow: hidden;
}


.logo-image {
    height: 82px;
    width: auto;
    max-width: 624px; 
    margin: 5px 10px;
    transition: all 0.3s ease;
    object-fit: contain;
}

.empresa-nombre {
    font-size: 2rem; 
    font-weight: 900; 
    letter-spacing: 2px; 
    margin-left: 10px; 
    transition: all 0.3s ease; 
    background: none; 
    -webkit-background-clip: text; 
    background-clip: text; 
    color: transparent; 
}

/* Estilo específico para CENSA (sin degradado) */
.empresa-nombre.censa {
    background: none;
    color: #2E7D32; 
    -webkit-background-clip: initial;
    background-clip: initial;
    font-size: 2rem; 
    font-weight: 900; 
    letter-spacing: 2px;
}

.logo-ticker-content {
    animation: none;
}

/* ========================================
   RESPONSIVE DESIGN PARA LOGIN
   ======================================== */

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
        padding: 0.5rem 0;
    }

    h2 {
        font-size: 1.5rem;
        margin-top: 20px;
    }

    form .form-label {
        font-size: 1rem;
    }

    form .form-control {
        font-size: 0.9rem;
        padding: 0.6rem;
    }

    form .btn-primary {
        font-size: 1rem;
        padding: 0.6rem 1rem;
    }

    #moduleSys {
        margin-top: 100px;
        margin-left: 10px;
        margin-right: 10px;
    }

    .logo-image {
        height: 60px;
        width: auto;
        max-width: 400px;
        margin: 2px 5px;
    }

    .empresa-nombre {
        font-size: 1.5rem;
        letter-spacing: 1px;
        margin-left: 5px;
    }

    .empresa-nombre.censa {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
        padding: 0.3rem 0;
    }

    h2 {
        font-size: 1.3rem;
        margin-top: 15px;
    }

    form .form-label {
        font-size: 0.9rem;
    }

    form .form-control {
        font-size: 0.8rem;
        padding: 0.5rem;
    }

    form .btn-primary {
        font-size: 0.9rem;
        padding: 0.5rem 0.8rem;
    }

    #moduleSys {
        margin-top: 80px;
        margin-left: 5px;
        margin-right: 5px;
        padding: 15px 10px;
    }

    .logo-image {
        height: 50px;
        width: auto;
        max-width: 300px;
        margin: 1px 3px;
    }

    .empresa-nombre {
        font-size: 1.2rem;
        letter-spacing: 0.5px;
        margin-left: 3px;
    }

    .empresa-nombre.censa {
        font-size: 1.2rem;
        letter-spacing: 0.5px;
    }

    .logo-ticker {
        padding: 0 5px;
        overflow: hidden;
    }
    
    .logo-ticker-content {
        min-width: 0;
        flex-shrink: 1;
    }
}

@media (max-width: 400px) {
    .logo-image {
        height: 40px;
        width: auto;
        max-width: 250px;
    }

    .empresa-nombre {
        font-size: 1rem;
    }

    .empresa-nombre.censa {
        font-size: 1rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.1rem;
    }
}
