/* CSS Custom Properties - Color Palette */
:root {
    --color-blue: #0A3D91;
    --color-red: #D32F2F;
    --color-yellow: #FBC02D;
    --color-dark: #212529;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--color-dark);
}

/* Helper Classes */
.bg-blue { background-color: var(--color-blue) !important; }
.bg-red { background-color: var(--color-red) !important; }
.bg-yellow { background-color: var(--color-yellow) !important; }

.text-blue { color: var(--color-blue) !important; }
.text-red { color: var(--color-red) !important; }
.text-yellow { color: var(--color-yellow) !important; }

.btn-yellow {
    background-color: var(--color-yellow);
    border-color: var(--color-yellow);
    color: var(--color-blue);
    transition: all 0.3s ease;
}
.btn-yellow:hover {
    background-color: #f9a825;
    border-color: #f9a825;
    color: var(--color-blue);
    transform: translateY(-2px);
}

.btn-quote {
    background-color: var(--color-red);
    border-color: var(--color-red);
    border-radius: 50px;
    transition: all 0.3s ease;
}
.btn-quote:hover {
    background-color: #b71c1c;
    border-color: #b71c1c;
    transform: scale(1.05);
}

.divider {
    height: 4px;
    width: 60px;
    border-radius: 2px;
}

/* Header & Navbar */
.top-bar {
    font-size: 0.85rem;
}
.brand-logo {
    max-height: 60px;
    width: auto;
    object-fit: contain;
    transition: max-height 0.3s ease;
}

.navbar-nav .nav-link {
    color: var(--color-dark);
    margin: 0 10px;
    position: relative;
    transition: color 0.3s ease;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    color: var(--color-blue) !important;
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--color-red);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}
.navbar-nav .nav-link:hover::after, .navbar-nav .nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    min-height: 85vh;
    /* Deep blue gradient acting as fallback/overlay */
    background: linear-gradient(135deg, rgba(10, 61, 145, 0.9) 0%, rgba(33, 37, 41, 0.8) 100%), url('../img/redes-centralizadas-gpl.jpg') center/cover no-repeat;
    position: relative;
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    border-radius: 12px;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}
.icon-box {
    width: 80px;
    height: 80px;
    transition: transform 0.3s ease;
}
.service-card:hover .icon-box {
    transform: rotateY(180deg);
}

/* Process Section Hover Effects */
.process-card {
    transition: all 0.3s ease;
    border-radius: 8px;
    border: 1px solid transparent;
}

.process-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    background-color: rgba(255, 255, 255, 0.2); /* Efecto sutil de aclarado en fondo amarillo */
}

/* Utilities for Checkmark alignment */
.mt-n1 {
    margin-top: -0.25rem !important;
}

/* Quick Contact Section */
.quick-contact {
    position: relative;
    overflow: hidden;
}
.quick-contact::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(90deg, rgba(10,61,145,1) 0%, rgba(211,47,47,0.1) 100%);
    z-index: 0;
}
.quick-contact .container {
    position: relative;
    z-index: 1;
}

/* WhatsApp Button Pulse Effect */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(251, 192, 45, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(251, 192, 45, 0); }
    100% { box-shadow: 0 0 0 0 rgba(251, 192, 45, 0); }
}

.btn-yellow.shadow {
    animation: pulse 2s infinite;
}

/* Footer Links */
.footer-links a {
    transition: color 0.2s ease, padding-left 0.2s ease;
}
.footer-links a:hover {
    color: var(--color-yellow) !important;
    padding-left: 5px;
    opacity: 1 !important;
}

/* Media Queries */
@media (max-width: 991px) {
    .brand-logo {
        max-height: 50px;
    }
    .hero-section {
        min-height: auto;
        padding: 100px 0;
    }
    .navbar-nav {
        text-align: center;
        margin-top: 15px;
    }
    .navbar-collapse .d-flex {
        justify-content: center;
        margin-top: 15px;
    }
}



/* --- Process Section Full Width & Text Hover Effect --- */

/* Colores alternados sin cambios bruscos */
.bg-yellow-main {
    background-color: #FBC02D; /* Amarillo principal */
}

.bg-yellow-alt {
    background-color: #F2B621; /* Amarillo sutilmente más bajo/oscuro */
}

}
/* --- Process Section Full Width & Text Hover Effect --- */

/* 1. Colores alternados */
.bg-yellow-main {
    background-color: #FBC02D; 
}

.bg-yellow-alt {
    background-color: #F2B621; 
}

/* 3. Contenedor del texto (A este sí le damos la animación) */
.process-content {
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

/* 4. Efecto de elevación SOLO en el texto al pasar el cursor por el bloque */
.process-content:hover {
    transform: translateY(-8px); /* Eleva el texto 8px hacia arriba */
    text-shadow: 0px 10px 20px rgba(0, 0, 0, 0.15); /* Sombra suave para dar profundidad */
}

/* --- Diferenciación Competitiva: Image Wrapper --- */
.image-wrapper-left {
    position: relative;
    width: 100%;
}

.image-wrapper-left img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 600px; /* Limita la altura para que no se estire demasiado en monitores grandes */
    border-radius: 12px;
}

/* Modificamos los iconos de check para que coincidan con el diseño */
.bi-check-lg.text-dark {
    color: #333 !important;
}

/* Ajustes adicionales para espaciados en móviles */
@media (max-width: 991px) {
    .image-wrapper-left {
        margin-bottom: 2rem;
    }
}

/* --- Diferenciación Competitiva: Full Width Image --- */
.img-full-half {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* Asegura que la imagen se centre si se recorta */
}

/* --- Brand Representations (Cards Hover Effect) --- */
.brand-card {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-bottom: 4px solid transparent !important;
}

.brand-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
    border-bottom: 4px solid var(--color-red) !important; /* Aparece una línea roja abajo al pasar el mouse */
}

/* Limitador de ancho para párrafos centrados */
.max-w-700 {
    max-width: 700px;
}

/* --- Distribution Brands (Dynamic Boxes Effect) --- */
.dist-box {
    color: var(--color-blue);
    transition: all 0.3s ease;
    min-width: 130px;
    cursor: default; /* Puedes cambiar a 'pointer' si a futuro serán links */
}

.dist-box:hover {
    background-color: var(--color-blue) !important;
    color: var(--color-yellow) !important;
    border-color: var(--color-red) !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(10, 61, 145, 0.2) !important;
}

/* --- Internal Pages Hero Background (Corregido a 100% ancho) --- */
.bg-hero-internal {
    background-image: url('../img/redes-centralizadas-header.jpg');
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    width: 100%;
    max-width: 100vw;
    margin-left: 0 !important;
    padding-left: 0 !important;
    overflow: hidden;
}

/* --- Outline Blue Button --- */
.btn-outline-blue {
    color: var(--color-blue);
    border: 2px solid var(--color-blue);
    transition: all 0.3s ease;
}

.btn-outline-blue:hover {
    background-color: var(--color-blue);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(10, 61, 145, 0.15);
}