/* Hero con imagen de fondo */
.hero-section {
    background-image: url('/wp-content/themes/cms/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
}

/* Overlay oscuro */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
}

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

/* Logo en hero */
.hero-logo {
    /* filter: brightness(1) invert(1); /* Logo blanco si es oscuro */
    animation: fadeInRight 1s ease;
}

/* Animación de entrada */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-logo {
        max-width: 60% !important;
        margin-top: 2rem;
    }
}
#altura {
    background-image: url('/wp-content/themes/cms/images/altura-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    background-attachment: fixed;
}

/* Overlay oscuro para que el texto se lea bien */
#altura::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

#altura .container {
    position: relative;
    z-index: 2;
}
#integral {
    background-image: url('/wp-content/themes/cms/images/integral-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
}

/* Overlay oscuro - CORREGIDO (sin espacio entre #integral y ::before) */
#integral::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

#integral .container {
    position: relative;
    z-index: 2;
}

/* ==========================================
NAVBAR
========================================== */
.navbar {
    background-color: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 0.8rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.4rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

/* Logo */
.navbar-brand img {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

.navbar.scrolled .navbar-brand img {
    height: 35px;
}

/* Links del menú */
.navbar-nav .nav-link {
    font-weight: 500;
    color: #333 !important;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary) !important;
}

/* Subrayado animado */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

/* Botón de contacto en el menú */
.navbar .btn-primary {
    box-shadow: 0 4px 6px rgba(190, 50, 50, 0.2);
    transition: all 0.3s ease;
}

.navbar .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(190, 50, 50, 0.3);
}

/* Responsive móvil */
@media (max-width: 992px) {
    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: 8px;
        margin-top: 10px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }
    
    .navbar-nav .nav-link::after {
        display: none;
    }
}

/* ==========================================
FOOTER
========================================== */
.footer {
    background: #0a0a0a;
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 2rem;
    border-top: 3px solid var(--primary);
}

/* Títulos */
.footer-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* Descripción */
.footer-description {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Redes Sociales */
.footer-social {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(190, 50, 50, 0.4);
}

/* Listas de enlaces */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    position: relative;
    padding-left: 0;
}

.footer-links a::before {
    content: '›';
    margin-right: 6px;
    color: var(--primary);
    font-weight: bold;
    transition: margin 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 8px;
}

.footer-links a:hover::before {
    margin-right: 10px;
}

/* Contacto */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact li i {
    color: var(--primary);
    font-size: 1.1rem;
    margin-top: 3px;
    width: 20px;
    text-align: center;
}

/* Newsletter */
.footer-newsletter {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-newsletter p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-newsletter .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 6px;
}

.footer-newsletter .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.footer-newsletter .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(190, 50, 50, 0.2);
}

/* Línea divisoria */
.footer-divider {
    border-color: rgba(255, 255, 255, 0.08);
    margin: 2.5rem 0;
}

/* Copyright */
.footer-copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Legal */
.footer-legal {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #fff;
}

/* ==========================================
RESPONSIVE FOOTER
========================================== */
@media (max-width: 992px) {
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-legal {
        justify-content: flex-start;
        margin-top: 0.5rem;
        gap: 1rem;
    }
    
    .footer-title::after {
        left: 0;
    }
}

@media (max-width: 768px) {
    .footer {
        text-align: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-contact li {
        justify-content: center;
    }
    
    .footer-legal {
        justify-content: center;
        margin-top: 0.5rem;
    }
    
    .footer-newsletter form {
        flex-direction: column;
    }
}