﻿:root {
    --primary-color: #f9ae00;
    --dark-color: #1a1a1a;
    --light-gray: #f8f9fa;
}

body {
    font-family: 'Figtree', sans-serif;
    color: #333;
}

/* --- Navbar --- */
.navbar {
    transition: background-color 0.4s ease;
}

    .navbar.scrolled {
        background-color: rgba(255, 255, 255, 0.98) !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

.navbar-brand img {
    max-height: 60px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-item {
    margin: 0 0.8rem; /* Aumento de espaciado */
}

.nav-link {
    font-weight: 600;
    color: #555;
    transition: color 0.3s;
}

    .nav-link:hover, .nav-link.active {
        color: var(--primary-color);
    }

.navbar.navbar-dark .nav-link {
    color: rgba(255,255,255,0.85);
}

    .navbar.navbar-dark .nav-link:hover, .navbar.navbar-dark .nav-link.active {
        color: #fff;
    }


/* --- Equipo --- */
.team-card {
    text-align: center;
}

    .team-card img {
        width: 150px;
        height: 150px;
        object-fit: cover;
        border-radius: 50%;
        margin-bottom: 20px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        border: 5px solid #fff;
    }

    .team-card h5 {
        font-weight: 600;
    }

    .team-card p {
        color: #777;
        font-weight: 300;
    }

/* --- Aliados --- */
#aliados .ally-logo {
    max-width: 150px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

    #aliados .ally-logo:hover {
        filter: grayscale(0%);
        opacity: 1;
        transform: scale(1.1);
    }

/* --- Menú Móvil Moderno --- */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 380px;
        height: 100vh;
        background-color: #fff;
        box-shadow: -5px 0 15px rgba(0,0,0,0.15);
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

        .navbar-collapse.show {
            right: 0;
        }

    .navbar-nav {
        width: 100%;
        text-align: center;
    }

        .navbar-nav .nav-item {
            margin: 1.5rem 0;
        }

        .navbar-nav .nav-link {
            font-size: 1.5rem;
            color: var(--dark-color);
        }

    .navbar-toggler {
        z-index: 1050; /* Por encima de todo */
        border: none;
    }

        .navbar-toggler:focus {
            box-shadow: none;
        }

        .navbar-toggler.toggled .navbar-toggler-icon {
            background-image: none; /* Oculta el icono de hamburguesa */
        }

    .close-menu-btn {
        display: block;
        position: absolute;
        top: 20px;
        right: 25px;
        font-size: 2rem;
        color: #333;
        background: none;
        border: none;
    }
}

.close-menu-btn {
    display: none; /* Oculto en escritorio */
}

/* --- Botones --- */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

    .btn-primary:hover {
        background-color: #e09d00;
        border-color: #e09d00;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

    .btn-outline-primary:hover {
        background-color: var(--primary-color);
        color: #fff;
    }

/* --- Hero Section --- */
/* --- Hero Section con Video --- */
#hero {
    height: 95vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden; /* Oculta cualquier parte del video que se desborde */
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -100; /* Coloca el video detrás de todo */
    background-size: cover;
}

#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Oscurece el video para que el texto sea legible */
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.4));
    z-index: 1;
}

    #hero .container {
        position: relative;
        z-index: 2;
    }

    #hero h1 {
        font-size: 3.8rem;
        font-weight: 700;
        text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    }

    #hero .brand-text {
        color: var(--primary-color);
    }

    #hero p {
        font-size: 1.3rem;
        max-width: 700px;
        margin: 1.5rem auto 2.5rem;
    }

    #hero .btn-outline-primary {
        border-color: #fff;
        color: #fff;
    }

        #hero .btn-outline-primary:hover {
            background-color: #fff;
            color: var(--dark-color);
        }

/* --- Secciones Generales --- */
.section {
    padding: 80px 0;
}

.section-title {
    font-weight: 700;
    font-size: 2.8rem;
    margin-bottom: 50px;
    text-align: center;
}

.bg-light-gray {
    background-color: var(--light-gray);
}

/* --- Tarjetas (Servicios, Clientes) --- */
.custom-card {
    background: #fff;
    border: none;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

    .custom-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    }

    .custom-card .icon {
        font-size: 3rem;
        color: var(--primary-color);
        margin-bottom: 20px;
    }

    .custom-card h3 {
        font-weight: 600;
        margin-bottom: 15px;
    }
/* --- Sección de Explorar (Rediseño v2) --- */
.explore-card-v2 {
    background-color: var(--primary-color);
    border-radius: 15px;
    padding: 30px;
    text-decoration: none;
    color: var(--dark-color); /* Letras oscuras sobre fondo amarillo */
    display: flex;
    align-items: center;
    transition: all 0.4s ease;
    height: 100%;
    border: 2px solid var(--primary-color);
}

    .explore-card-v2:hover {
        background-color: #fff; /* Fondo blanco al hacer hover */
        color: var(--dark-color);
        transform: translateY(-8px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    }

    .explore-card-v2 .explore-card-icon {
        font-size: 2.5rem;
        margin-right: 20px;
        color: var(--dark-color);
        transition: all 0.4s ease;
    }

    .explore-card-v2:hover .explore-card-icon {
        color: var(--primary-color); /* El icono se vuelve amarillo en hover */
    }

    .explore-card-v2 .explore-card-content {
        flex-grow: 1; /* El contenido ocupa el espacio restante */
    }

    .explore-card-v2 h3 {
        font-weight: 700;
        font-size: 1.4rem;
        margin: 0 0 5px 0;
    }

    .explore-card-v2 p {
        margin: 0;
        opacity: 0.8;
    }

    .explore-card-v2 .arrow {
        font-size: 1.8rem;
        transition: transform 0.3s ease;
        margin-left: 15px;
    }

    .explore-card-v2:hover .arrow {
        transform: translateX(8px);
        color: var(--primary-color); /* La flecha también cambia de color */
    }

/* --- Blog Section --- */
.blog-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    transition: all 0.3s ease;
    height: 100%;
}

    .blog-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    }

    .blog-card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

.blog-card-content {
    padding: 25px;
}

    .blog-card-content h4 {
        font-weight: 600;
    }

/* --- Ubicacion (Mapa) --- */
#ubicacion iframe {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* --- Footer --- */
footer {
    background-color: #222;
    color: #ccc;
    padding-top: 60px;
    padding-bottom: 20px;
}

    footer h5 {
        color: #fff;
        font-weight: 600;
        margin-bottom: 20px;
    }

    footer a {
        color: #ccc;
        text-decoration: none;
        transition: color 0.3s;
    }

        footer a:hover {
            color: var(--primary-color);
        }

    footer .social-icons a {
        font-size: 1.5rem;
        margin-right: 15px;
    }

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    margin-top: 40px;
}

/* --- Animaciones --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

    .animate-on-scroll.visible {
        opacity: 1;
        transform: translateY(0);
    }
/* --- Banner para Páginas Internas --- */
#page-banner {
    height: 45vh; /* Altura del banner, más pequeño que el hero */
    min-height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

    #page-banner::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0.35));
        z-index: 1;
    }

    #page-banner .container {
        position: relative;
        z-index: 2;
    }

    #page-banner h1 {
        font-size: 3.5rem;
        font-weight: 700;
        text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    }

/* Estilos para Breadcrumbs en el banner */
.breadcrumb {
    justify-content: center;
    --bs-breadcrumb-bg: transparent; /* Fondo transparente */
    --bs-breadcrumb-divider-color: rgba(255,255,255,0.6);
}

.breadcrumb-item a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-weight: 500;
}

    .breadcrumb-item a:hover {
        color: #fff;
    }

.breadcrumb-item.active {
    color: #fff;
    font-weight: 600;
}

/* --- Burbuja Flotante de WhatsApp --- */
#whatsapp-bubble {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25D366; /* Color oficial de WhatsApp */
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem; /* Tamaño del ícono */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000; /* Asegura que esté por encima de todo */
    text-decoration: none;
    transition: all 0.3s ease;
    animation: bounceIn 0.8s ease-out;
}

    #whatsapp-bubble:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    }

/* Animación de entrada para la burbuja */
@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    60% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}
