/* =========================================
   site3.css - INVERSIONES MAC 
   Diseņo Final: Cubos de fondo, WhatsApp
   ========================================= */

:root {
    --mac-navy-solid: #224362;
    --mac-pink: #E6343E;
    --mac-gray-bg: #EAECEF;
    --mac-text-dark: #333333;
    --mac-text-light: #FFFFFF;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--mac-text-dark);
    line-height: 1.6;
    /* --- FONDO DE CUBOS --- */
    background-image: url("/media/fondo.png");
    background-repeat: repeat;
    /*
    background-color: #FAFAFA;
    background-attachment: fixed;*/
}

h1, h2, h3, h4, h5, h6 {
    color: var(--mac-navy-solid);
}

.section-title {
    font-weight: 800;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 15px;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 4px;
        background-color: var(--mac-pink);
    }

/* --- HEADER BAR --- */
    .navbar-mac {
    border-radius: 15px !important;
    padding: 0.5rem 1.5rem !important;
    transition: all 0.3s ease;
}

    .navbar-mac .nav-link {
        position: relative;
        padding: 0.5rem 0 !important;
        margin: 0 12px;
        color: var(--mac-text-dark) !important;
        transition: color 0.3s ease;
    }

        .navbar-mac .nav-link::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: 0;
            left: 0;
            background-color: var(--mac-pink);
            transition: width 0.3s ease;
        }

        .navbar-mac .nav-link.active {
            color: var(--mac-pink) !important;
        }

            .navbar-mac .nav-link.active::after {
                width: 100%;
            }

.btn-catalog-mac {
    background-color: var(--mac-navy-solid) !important;
    color: var(--mac-text-light) !important;
    border: none;
    font-weight: bold;
    font-size: 0.85rem;
    padding: 8px 24px;
    border-radius: 6px;
    transition: background-color 0.3s;
}

    .btn-catalog-mac:hover {
        background-color: var(--mac-pink) !important;
    }

/* =========================================
   HERO 
   ========================================= */
.hero-mac {
    height: 75vh;
    max-height: 600px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(110deg, rgba(34, 67, 98, 0.6) 30%, rgba(230, 52, 62, 0.6) 100%), #1A252F;
    padding: 0 !important;
}

.hero-full-img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover;
    animation: none !important;
}

.hero-text-col {
    background: transparent;
}

.hero-mac .text-white, .hero-mac h1, .hero-mac p {
    color: #fff !important;
}

/* --- NOSOTROS --- */
.about-mac {
    background: linear-gradient(110deg, rgba(34, 67, 98, 0.6) 30%, rgba(230, 52, 62, 0.6) 100%), #1A252F;
}

    .about-mac .section-title.text-white::after {
        background-color: #fff;
    }

.about-card-mac {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
}

    .about-card-mac img {
        width: 100%;
        height: 180px;
        object-fit: cover;
    }

/* --- SERVICIOS --- */
/* Eliminamos el bg-white del grid para que se vean las tarjetas individuales con sombra */
.services-grid-mac {
    display: flex;
    flex-wrap: wrap;
    border-radius: 10px;
    overflow: hidden;
    background: transparent;
}

.service-card-mac {
    flex: 1 1 25%;
    min-width: 250px;
    text-align: left;
    background: #fff;
    border-right: 1px solid #f2f2f2;
}

    .service-card-mac:last-child {
        border-right: none;
    }

    .service-card-mac img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

    .service-card-mac .card-body {
        padding: 30px;
    }

    .service-card-mac h4 {
        font-weight: 800;
        font-size: 1.15rem;
        margin-bottom: 12px;
        color: #000;
    }

    .service-card-mac p {
        font-size: 0.85rem;
        color: #666;
        line-height: 1.5;
    }

/* --- CLIENTES LOGOS --- */
.clients-mac {
    background: transparent;
}

    .clients-mac .logo-ticker {
        width: 100%;
        overflow: hidden;
        position: relative;
        padding: 20px 0;
    }

    .clients-mac .logo-ticker-track {
        display: flex;
        width: 200%;
        animation: scrollLogos 50s linear infinite;
    }

    .clients-mac .logo-item {
        flex: 0 0 calc(100% / 12);
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0 50px;
    }

        .clients-mac .logo-item img {
            max-height: 80px;
            width: auto;
            filter: grayscale(100%);
            opacity: 0.6;
            transition: all 0.3s ease;
        }

            /* FILTRO OSCURO EXCLUSIVO PARA IVC */
            .clients-mac .logo-item img.logo-darken {
                filter: grayscale(100%) brightness(0.2) !important;
                opacity: 0.9;
            }

            .clients-mac .logo-item img:hover {
                filter: grayscale(0%) brightness(1) !important;
                opacity: 1;
            }

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- CONTACTO --- */
.contact-banner-mac {
    background-color: #fff; /* Opcional, o transparent si prefieres que tenga fondo de cubos */
}

/* Ajuste para que las tarjetas de WA se eleven al pasar el mouse */
.hover-elevate {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .hover-elevate:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
    }

.contact-card-mac {
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    border: 1px solid #ddd;
}

.contact-info-text {
    text-align: left;
}

    .contact-info-text small {
        font-weight: 700;
        color: var(--mac-pink);
    }

    .contact-info-text h6 {
        margin-top: 5px;
        font-weight: bold;
        color: #000;
    }

    .contact-info-text p {
        margin: 0;
        font-size: 0.85rem;
        color: #444;
    }

.contact-card-mac .contact-icon {
    font-size: 2.8rem;
    color: rgba(34, 67, 98, 0.4);
}

/* --- FOOTER --- */
.footer-mac {
    background-color: #fff;
}

    .footer-mac .footer-logo {
        height: 60px;
        width: auto;
    }

.site-footer .social-icons a {
    color: #444;
    font-size: 1.6rem;
    margin: 0 12px;
    transition: color 0.3s;
    text-decoration: none !important;
}

        .footer-mac .social-icons a:hover {
            color: var(--mac-pink);
        }

    .footer-mac .location-text {
        color: #555;
        font-size: 0.95rem;
        font-weight: 500;
    }

.copyright-mac {
    background-color: var(--mac-navy-solid);
    color: #fff;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-mac {
        height: auto;
        min-height: 400px;
    }

        .hero-mac .hero-text-col {
            padding: 40px 0 !important;
        }

        .hero-mac .text-start {
            text-align: center !important;
            padding: 0 20px;
        }

        .hero-mac div[style*="max-width: 550px"] {
            max-width: 100% !important;
            margin: 0 auto;
        }

    .services-grid-mac {
        flex-direction: column;
    }

    .service-card-mac {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
}
