/* ==========================================================================
   @mentaliza: Alineación del menú a la derecha usando CSS GRID (Definitivo)
   ========================================================================== */
@media (min-width: 992px) {
    .menu-area .row.align-items-center {
        display: grid !important;
        grid-template-columns: max-content 1fr max-content !important;
        align-items: center !important;
    }
    
    .menu-area .logo {
        grid-column: 1 !important;
        margin: 0 !important;
    }
    
    .menu-area .nav-menu {
        grid-column: 2 !important;
        justify-self: end !important;
        padding-right: 30px !important;
        margin: 0 !important;
    }
    
    .menu-area .header-right-wrapper {
        grid-column: 3 !important;
        margin: 0 !important;
    }
}

.menu-area .nav-menu .main-menu ul li a:hover,
.menu-area .nav-menu .main-menu ul li.current-menu-item > a,
.menu-area .nav-menu .main-menu ul li.active > a {
    color: #788fa0 !important;
}

.main-menu ul li {
    margin-right: 30px !important;
}

.main-menu a {
    font-size: 17px !important;
}

.icon.spin { position: relative; }
.icon.spin img { opacity: 0 !important; }

.icon.spin::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("/wp-content/uploads/2026/02/ih-flechas-inversores-dark.svg") no-repeat center;
    background-size: 130% auto;
    transform: scale(1.15);
    transform-origin: center;
}

.header-right .header-btn span.fa-headphones { color: #ffffff !important; }
.header-right .header-btn:hover span.fa-headphones { color: #2d363d !important; }

.choose-section.style-4 .milestone .milestone-item .value {
    font-size: 35px !important;
    font-weight: 700 !important;
}

/* --- CAMBIO DE ASTERISCO POR ISOTIPO INVESTHOME --- */
.sub-title span .asterisk::before { display: none !important; content: none !important; }

.sub-title span .asterisk {
    width: 440px; 
    height: 440px;
    display: inline-block;
    background-image: url('https://app-world-izz.mentaliza.dev/wp-content/uploads/2026/02/investhome-favicon-w-feb26.png');
    background-size: contain; 
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    background-color: transparent !important; 
}

/* --- ARREGLO DE ALINEACIÓN LISTA DE SERVICIOS --- */
.service-single-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.service-single-item .item-left {
    flex: 0 0 35% !important; 
    max-width: 35% !important;
    padding-right: 30px !important; 
}

.service-single-item .item-left .item-wrap {
    width: 100%;
    display: flex;
    align-items: center;
}

.service-single-item .item-right {
    flex: 1 !important; 
    padding-left: 20px !important;
}

@media (max-width: 768px) {
    .service-single-item .item-left,
    .service-single-item .item-right {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        text-align: left !important;
        padding: 0 !important;
        margin-bottom: 15px;
    }
    
    .service-single-item .item-left .item-wrap {
        justify-content: flex-start !important;
    }
}

.service-single-item .icon img { filter: brightness(0) invert(1) !important; opacity: 1 !important; }
.expert-card { display: none !important; }
.icon-arrow-up-right { filter: brightness(0) invert(1) !important; color: #ffffff !important; }
.choose-image-wrapper .thumb { overflow: visible !important; }

.choose-image-wrapper .thumb img {
    width: 100% !important;        
    height: auto !important;       
    object-fit: contain !important;
    object-position: right center !important;
    max-width: 100%;
}

.choose-image-wrapper .thumb { position: relative !important; right: 0 !important; }
i.icon-arrow-up-right { overflow: visible !important; display: inline-block !important; padding-right: 10px !important; }
i.icon-arrow-up-right::before { overflow: visible !important; }

/* 404 */
.error-inner, .error-inner h2, .error-inner p, .error-inner .error-title, .error-inner .error-description { color: #ffffff !important; }
.error-section.bg-theme2 { background-color: transparent !important; }

.error-inner .theme-btn {
    background-color: #788fa0 !important;
    border-color: #788fa0 !important;
    color: #ffffff !important;
}

.error-section .p-top-right, .error-section .bg-path__shape { display: none !important; }
.error-inner .theme-btn .effect-1 { color: #ffffff !important; }

.error-inner .theme-btn:hover { background-color: #788fa0 !important; border-color: #788fa0 !important; opacity: 0.9; }
.error-inner .theme-btn i { color: #ffffff !important; }

.brands-slider .brand-item img {
    max-height: 70px !important;
    min-height: 70px !important;
    height: auto !important; width: auto !important;
    object-fit: contain !important;
}

.brands-slider .brand-item { display: flex; align-items: center; justify-content: center; }

/* ==========================================
   ESTILOS MAPA LEAFLET Y POPUP 
   ========================================== */

.leaflet-container a.leaflet-popup-close-button { display: none !important; }

#projects-map {
    height: 64vh;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
}

.map_projects h2 { margin-bottom: 20px; }
.map_projects { margin-top: 90px; }

/* Marker custom base */
.custom-marker {
    width: 100%; 
    height: 100%;
    background-color: rgba(29, 27, 32, 0.10); 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Tamaño controlado del isotipo */
.custom-marker img {
    width: 18px !important; 
    height: 18px !important;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* HOVER Y ACTIVO */
.leaflet-marker-icon:hover .custom-marker,
.custom-marker.active {
    background-color: #788fa0 !important; 
    transform: scale(1.1); 
}

.leaflet-marker-icon:hover .custom-marker img,
.custom-marker.active img {
    filter: brightness(0) invert(1) !important;
}

/* --- POPUP STYLING (Basado en la captura) --- */
.leaflet-popup-content-wrapper { border-radius: 0 !important; padding: 0 !important; background: transparent !important; box-shadow: none !important; }
.leaflet-popup-tip { display: none !important; } 
.leaflet-popup-content { width: 280px !important; font-family: "Montserrat", sans-serif; margin: 0 !important; }

.popup-card {
    width: 100%;
    background: #ffffff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    font-family: "Montserrat", sans-serif;
}

.popup-card .popup-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.popup-card .popup-body {
    padding: 20px;
    background: white;
    text-align: left;
}

.popup-card .popup-title {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #111;
}

.popup-card .contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #111;
}

.popup-card .contact-row a {
    color: #4a8bbf; /* Azul de la captura */
    text-decoration: none;
}

.popup-card .contact-row a:hover {
    text-decoration: underline;
}

.popup-card .contact-row svg {
    color: #111;
    min-width: 16px;
}

.popup-card .share-row {
    margin-top: 15px;
}

.popup-card .more-details {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    font-size: 1rem;
    color: #2c363d;
    text-decoration: none;
    font-weight: 500;
}

.popup-card .more-details svg {
    transition: transform 0.2s ease;
}

.popup-card .more-details:hover svg {
    transform: translate(3px, -3px);
}


/* PORTFOLIO @mentaliza */
.details-image-box.overlay-anim1 { display: none !important; }
.details-image.br-10.overflow-hidden.mb-30.overlay-fade { display: none !important; }
.case-wrapper .text .icon i.icon-arrow-up-right { filter: none !important; color: #788fa0 !important; }

/* ABOUT US @mentaliza */
.feature-single-box { height: 100% !important; display: flex; flex-direction: column; }
.feature-single-box:hover .icon img, .feature-single-box:hover .icon { filter: brightness(0) invert(1) !important; }
.process-step .line .circle { background-color: #ffffff !important; border-color: #788fa0 !important; }
.process-step:hover .line .circle, .process-step .line .circle:hover { background-color: #788fa0 !important; border-color: #788fa0 !important; }
.row.gx-0.gy-25.image_load { display: none !important; }

/* SERVICIOS @mentaliza */
.service-single-box { height: 100% !important; }
.service-single-box .inner-box { height: 100% !important; display: flex; flex-direction: column; }
.service-single-box .inner-box .text { flex-grow: 1; }
.service-single-box .inner-box .service-btn { margin-top: auto; align-self: flex-start; }
.service-single-box .theme-btn, .service-single-box .service-btn { display: none !important; }

.service-single-box .icon .icon-switch, .service-single-box .icon i {
    filter: brightness(0) saturate(100%) invert(18%) sepia(18%) saturate(913%) hue-rotate(155deg) brightness(92%) contrast(92%) !important;
    -webkit-filter: brightness(0) saturate(100%) invert(18%) sepia(18%) saturate(913%) hue-rotate(155deg) brightness(92%) contrast(92%) !important;
    transition: all 0.3s ease;
}

.service-single-box:hover .icon .icon-switch, .service-single-box:hover .icon i, .service-single-box:hover .inner-box .icon {
    filter: brightness(0) saturate(100%) invert(60%) sepia(15%) saturate(701%) hue-rotate(162deg) brightness(89%) contrast(88%) !important;
    -webkit-filter: brightness(0) saturate(100%) invert(60%) sepia(15%) saturate(701%) hue-rotate(162deg) brightness(89%) contrast(88%) !important;
}

.service-single-box .path__shape, .service-single-box:hover .path__shape { display: none !important; background: none !important; background-color: transparent !important; }

/* ==========================================
   Alinear últimas cajas de Core Philosophy a la derecha
   ========================================== */
@media (min-width: 992px) {
    /* Atacamos a la fila específica de esa sección */
    .elementor-widget-nexta-feature .feature-section .row.gy-30 {
        justify-content: flex-end !important;
    }
}

/* INVERSORES */
.service-section.style-5 .container { max-width: 1600px !important; width: 96% !important; }

@media (min-width: 992px) {
    .service-section.style-5 .row { display: flex !important; flex-wrap: wrap !important; }
    .service-section.style-5 .row > div { flex: 0 0 25% !important; max-width: 25% !important; display: flex !important; }
}

.service-section.style-5 .service-box-five { display: flex !important; flex-direction: column !important; width: 100% !important; height: 100% !important; position: relative; }
.service-section.style-5 .service-box-five .inner-box { display: flex !important; flex-direction: column !important; flex: 1 !important; height: 100% !important; }
.service-section.style-5 .service-box-five .text { flex-grow: 1 !important; }
.service-section.style-5 .service-btn, .service-section.style-5 .theme-btn { display: none !important; }
.service-section.style-5 .path__shape { display: none !important; }

.service-section.style-5 .icon-switch {
    filter: brightness(0) saturate(100%) invert(18%) sepia(18%) saturate(913%) hue-rotate(155deg) brightness(92%) contrast(92%) !important;
}

.service-section.style-5 .service-box-five:hover .icon-switch {
    filter: brightness(0) saturate(100%) invert(60%) sepia(15%) saturate(701%) hue-rotate(162deg) brightness(89%) contrast(88%) !important;
}