:root {
    --industrial-yellow: #FF0000;
    --dark-blue: #071640; 
}

body {
    font-family: 'alumnisansr', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 22px;
}

/* Navbar: Fondo blanco y texto negro */
.navbar {
    background-color: #FFFFFF !important;
    border-bottom: 1px solid #eee;
    font-size: 24px;
    font-family: 'alumnisansb', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar .nav-link {
    color: #000000 !important;
}

/* Forzar color blanco en el botón de contacto para Escritorio */
.btn-contactanos {
    color: #FFFFFF !important;
    background-color: var(--industrial-yellow) !important;
    border: none;
    font-weight: bold;
    padding: 8px 20px !important;
    border-radius: 5px;
}

.btn-warning, .btn-siguiente {
    background-color: var(--industrial-yellow) !important;
    color: #FFFFFF !important;
    border: none;
    font-weight: bold;
}

/* Footer: Color corporativo azul */
footer {
    background-color: var(--dark-blue) !important;
}

.hero-section {
    position: relative;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../img/fondo1.jpg');
    height: 80vh;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-overlay-img {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 100%;
    z-index: 1;
}

.hero-overlay-img img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.card:hover {
    border-left: 5px solid var(--industrial-yellow) !important;
    transition: 0.3s;
}

footer h5 {
    color: var(--industrial-yellow);
    border-bottom: 2px solid var(--industrial-yellow);
    display: inline-block;
    margin-bottom: 20px;
}

/* Declaración de Fuentes */
@font-face {
    font-family: 'alumnisansb';
    src: url('../fonts/alumnisans-bold.ttf') format('truetype');
}
@font-face {
    font-family: 'alumnisansr';
    src: url('../fonts/alumnisans-regular.ttf') format('truetype');
}

@font-face {
    font-family: 'gothicb';
    src: url('../fonts/alumnisans-bold.ttf') format('truetype');
}
@font-face {
    font-family: 'gothicr';
    src: url('../fonts/alumnisans-regular.ttf') format('truetype');
}

/* --- OPTIMIZACIONES DE PANTALLA --- */

/* Ajustes para Tablets y Portátiles pequeños */
@media (max-width: 991px) {
    .navbar { font-size: 20px; }
    .hero-overlay-img { height: 70%; opacity: 0.5; } /* Reducir imagen para que no tape el texto */
    .display-4 { font-size: 2.5rem; }
}

/* Ajustes para Móviles */
@media (max-width: 767px) {
    body { font-size: 18px; }
    
    /* En móvil el botón CONTACTANOS pierde el fondo rojo y el texto blanco */
    .btn-contactanos {
        background-color: transparent !important;
        color: #000000 !important;
        padding: 10px 0 !important;
        font-weight: normal;
    }
    
    .hero-overlay-img { display: none; } /* Ocultamos la imagen lateral en móviles para legibilidad */
    .hero-section { text-align: center; height: auto; padding: 100px 0; }
    .hero-text { margin: 0 auto; }
}

@media (max-width: 500px) {
    .navbar {
        font-family: 'alumnisansr', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }
}