/* css/style.css - Versión Final */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@300;400;700&family=Oswald:wght@500;700&display=swap');

:root {
    --primary: #ff5100; /* COLOR INSTITUCIONAL (NARANJA SEGURIDAD) */
    --secondary: #2d2d2d; /* Gris Oscuro Industrial */
    --dark: #111111; /* Negro casi puro */
    --light: #f4f4f4;
    --text-grey: #6c757d;
}

body {
    font-family: 'Barlow', sans-serif;
    color: var(--secondary);
    overflow-x: hidden;
}

h1, h2, h3, h4, .navbar-brand {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   OVERRIDES (REEMPLAZO DE COLORES BOOTSTRAP)
   Fuerza al sistema a usar tu naranja en vez de rojo
   ========================================= */
.text-danger { color: var(--primary) !important; }
.bg-danger { background-color: var(--primary) !important; }
.border-danger { border-color: var(--primary) !important; }
.btn-danger {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 10px 0;
}

.nav-link {
    font-weight: 600;
    color: var(--secondary) !important;
    margin: 0 10px;
    position: relative;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary) !important;
}

/* Botón Personalizado (Estilo Industrial) */
.btn-primary-custom {
    background-color: var(--primary);
    color: white;
    padding: 10px 25px;
    border-radius: 0; 
    border: 2px solid var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary-custom:hover {
    background-color: white;
    color: var(--primary);
}

/* Hero Section */
.hero {
    height: 85vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
}

/* Capa oscura sobre el banner para legibilidad */
.hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    /* Degradado sutil de negro a transparente */
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    background-color: var(--primary);
    color: white;
    display: inline-block;
    padding: 5px 15px;
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Cards Servicios */
.service-box {
    background: white;
    padding: 40px 30px;
    border-bottom: 4px solid transparent;
    transition: 0.3s;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.service-box:hover {
    border-bottom: 4px solid var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.icon-box {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* Animaciones */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   CORRECCIÓN FOOTER (LETRAS BLANCAS)
   ========================================= */
footer .text-muted {
    color: rgba(255, 255, 255, 0.7) !important; /* Gris muy claro */
}
footer a:hover {
    color: var(--primary) !important;
}
footer .small {
    font-weight: 300;
}
@media (max-width: 991px) {
    /* 1. Ajustar el tamaño del Título Gigante */
    .hero-content h1 {
        font-size: 2.5rem; /* Letra más chica para que quepa */
        line-height: 1.2;  /* Mejor espaciado entre líneas */
        margin-top: 15px;
    }

    /* 2. Ajustar el subtítulo "Más de 20 años..." */
    .hero-subtitle {
        font-size: 0.9rem;
        padding: 5px 10px;
        margin-bottom: 15px;
        white-space: normal; /* Permite que el texto baje si es muy largo */
        display: inline-block;
    }

    /* 3. Darle más altura al banner para que no se corte */
    .hero {
        height: auto;       /* Altura automática según el texto */
        min-height: 100vh;  /* Mínimo toda la pantalla */
        padding-top: 100px; /* Espacio para que no choque con el menú */
        padding-bottom: 50px;
        text-align: center; /* Centrar todo en celular se ve mejor */
    }

    /* 4. Botones uno arriba del otro con espacio */
    .hero-content .btn {
        width: 100%;        /* Botones anchos fáciles de picar */
        margin-bottom: 15px;
        margin-right: 0 !important; /* Quitar margen derecho */
        display: block;
    }
}