:root {
    --Primary: #0088FF;
    --Secondary: #121212;
    --Bg-light: #f5f8ff;
    --font-main: "Plus Jakarta Sans", sans-serif;
    --font-main2: "Bricolage Grotesque", sans-serif;
    --font-main3: "Outfit", sans-serif;
    --font-main4: "Inter", sans-serif;
    --font-main5: "Rethink Sans", sans-serif;
}



body {
    color: var(--Text-secondary);
}


h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
    font-family: var(--font-main2);
    font-weight: 500;
    color: var(--Secondary);
}

.text-caption-1 {
    font-size: 15px;
    line-height: 22px;
}

.font-main {
    font-family: var(--font-main);
}

.font-3 {
    font-family: var(--font-main3);
}

.font-4 {
    font-family: var(--font-main4);
}

.font-5 {
    font-family: var(--font-main5);
}

.main-menu .navigation>li:hover>a {
    color: var(--Primary) !important;
}

.navigation .submenu li:hover>a {
    color: var(--Primary);
}

.main-menu .navigation>li:hover::after {
    color: var(--Primary) !important;
}

/* --- MEJORA PROFESIONAL DEL HEADER Y NAVEGACIÓN --- */

/* 1. Base del Menú Principal */
.header.style-9 .main-menu .navigation {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 40px !important; /* Spacing equilibrado entre pestañas */
    margin: 0 auto !important;
}

/* 2. Estilo de los Enlaces Principales */
.header.style-9 .navigation > li > a {
    position: relative !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--Secondary) !important;
    text-transform: none !important;
    letter-spacing: 0.2px !important;
    padding: 10px 0 !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: row !important; /* Forzar fila */
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important; /* Evitar que el texto o icono salten de línea */
}

/* 3. Efecto "Pro" de subrayado al hover */
.header.style-9 .navigation > li > a::before {
    content: "" !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 0 !important;
    height: 2px !important;
    background-color: var(--Primary) !important;
    transition: width 0.3s ease !important;
}

/* --- GALLERY LIGHTBOX IMPROVEMENTS --- */
.section-portfolio-5 .row {
    row-gap: 20px !important; /* Reducir separación entre filas */
}

.portfolio-item .img-style {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    height: auto !important; /* Permitir que el aspect-ratio del HTML mande */
}

.portfolio-item .img-style img {
    transition: all 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-item:hover .img-style img {
    transform: scale(1.1);
    filter: brightness(0.8);
}

.portfolio-item .custom-cursor {
    background-color: var(--Primary) !important;
    color: white !important;
    width: 80px !important;
    height: 80px !important;
    font-size: 24px !important;
    border-radius: 50% !important;
    box-shadow: 0 10px 25px rgba(0, 136, 255, 0.4) !important;
}

.portfolio-item .custom-cursor i {
    font-size: 30px;
}

/* Ajuste para Magnific Popup */
.mfp-with-zoom .mfp-container,
.mfp-with-zoom.mfp-bg {
    opacity: 0;
    backface-visibility: hidden;
    transition: all 0.3s ease-out;
}

.mfp-with-zoom.mfp-ready .mfp-container {
    opacity: 1;
}
.mfp-with-zoom.mfp-ready.mfp-bg {
    opacity: 0.8;
}

.mfp-with-zoom.mfp-removing .mfp-container,
.mfp-with-zoom.mfp-removing.mfp-bg {
    opacity: 0;
}

.mfp-counter {
    font-family: var(--font-main);
    color: #ccc;
    font-size: 14px;
}

.mfp-title {
    font-family: var(--font-main2);
    font-weight: 500;
}

/* Fix Lightbox Scroll */
body.mfp-active {
    overflow: hidden !important;
    height: 100vh !important;
    width: 100% !important;
    position: fixed !important; /* Bloqueo total del scroll de fondo */
}

.mfp-bg {
    background: #000;
    opacity: 0.9 !important;
    top: 76px !important; /* Sellado perfecto con el header */
    height: calc(100vh - 76px) !important;
    position: fixed !important;
}

.mfp-wrap {
    z-index: 99999 !important;
    top: 76px !important; /* Sellado perfecto con el header */
    height: calc(100vh - 76px) !important;
    position: fixed !important;
    overflow: hidden !important;
}

.mfp-container {
    padding: 0 50px !important;
    height: 100% !important;
    top: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.mfp-content {
    vertical-align: middle !important;
    max-height: 100% !important;
}

.mfp-figure {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

.mfp-img {
    max-height: calc(100vh - 180px) !important;
    width: auto !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 auto !important;
    object-fit: contain !important;
}

/* Botón cerrar X */
.mfp-close {
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    position: fixed !important;
    right: 20px !important;
    top: 90px !important;
    background: var(--Primary) !important;
    color: white !important;
    opacity: 1 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    z-index: 100001 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
    transition: all 0.3s ease !important;
}

.mfp-close:hover {
    transform: scale(1.1);
    background: #0056ff !important;
}

/* Flechas de navegación flotantes (sin círculos) */
.mfp-arrow {
    opacity: 0.7 !important;
    background: transparent !important; /* Quitar fondo */
    width: 60px !important;
    height: 60px !important;
    top: 50% !important;
    margin-top: -30px !important;
    transition: all 0.3s ease !important;
    border: none !important; /* Quitar borde */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.mfp-arrow:hover {
    opacity: 1 !important;
    transform: scale(1.2) !important;
    background: transparent !important;
}

.mfp-arrow:before, .mfp-arrow:after {
    border: none !important;
    margin: 0 !important;
    position: static !important;
    display: block !important;
}

.mfp-arrow-left:after {
    content: "\e995" !important;
    font-family: 'icomoon' !important;
    color: white !important;
    font-size: 32px !important; /* Flecha más grande al no tener círculo */
}

.mfp-arrow-right:after {
    content: "\e999" !important;
    font-family: 'icomoon' !important;
    color: white !important;
    font-size: 32px !important; /* Flecha más grande al no tener círculo */
}

.mfp-arrow-left { left: 20px !important; }
.mfp-arrow-right { right: 20px !important; }

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    width: 150px;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

/* Botón flotante de WhatsApp - Perfeccionado */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px; /* Distancia equilibrada desde abajo */
    left: 25px; /* Misma distancia desde la izquierda */
    background-color: transparent; /* Fondo transparente ya que la imagen tiene su propio círculo */
    z-index: 999999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 0 !important;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
}

.whatsapp-float img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 50%; /* Asegurar que la imagen se vea circular */
}

@media (max-width: 767px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 20px;
    }
}

.header.style-9 .navigation > li:hover > a::before {
    width: 100% !important;
}

.header.style-9 .navigation > li:hover > a {
    color: var(--Primary) !important;
}

/* 4. ELIMINAR DISTANCIA DEL ICONO DE SERVICIOS (FLECHA) */
.header.style-9 .navigation > li.has-child {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Quitar el after del li y ponerlo bajo control estricto */
.header.style-9 .navigation > li.has-child::after {
    display: none !important;
}

/* Añadir la flecha directamente al final del texto "Servicios" */
.header.style-9 .navigation > li.has-child > a::after {
    content: "\e906" !important;
    font-family: "icomoon" !important;
    font-size: 10px !important;
    margin-left: 8px !important; /* Distancia controlada */
    font-weight: 700 !important;
    display: inline-block !important;
    transition: transform 0.3s ease !important;
    color: inherit !important;
    line-height: 1 !important;
}

.header.style-9 .navigation > li.has-child:hover > a::after {
    transform: rotate(180deg) !important; /* Animación pro al abrir */
}

/* 5. Desactivar animaciones molestas de Splitting en el header */
.header.style-9 .navigation .toggle,
.header.style-9 .navigation .text {
    display: inline !important;
    width: auto !important;
    transform: none !important;
    opacity: 1 !important;
}

.header.style-9 .navigation .char {
    display: inline !important;
    transform: none !important;
    transition: none !important;
}

/* 6. Submenú Desplegable "Pro" */
.header.style-9 .navigation .submenu {
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(15px) !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
    padding: 10px 0 !important;
    min-width: 220px !important;
    visibility: hidden !important;
    opacity: 0 !important;
    transition: all 0.3s ease !important;
}

.header.style-9 .navigation > li.has-child:hover .submenu {
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateX(-50%) translateY(5px) !important;
}

.header.style-9 .navigation .submenu li a {
    padding: 12px 20px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: var(--Secondary) !important;
    display: block !important;
    border: none !important;
}

.header.style-9 .navigation .submenu li a:hover {
    background: var(--Bg-light) !important;
    color: var(--Primary) !important;
    padding-left: 25px !important;
}


.main-menu .current-menu>a,
.main-menu .current-menu-item>a {
    color: var(--Primary) !important;
}

.main-menu .current-menu.has-child::after,
.main-menu .current-menu-item.has-child::after {
    color: var(--Primary) !important;
}

.tf-btn {
    color: var(--White);
}

.text_primary {
    color: var(--Text-primary);
}

.tf-btn.btn-bg-white {
    color: var(--Text-primary);
}

.shape-linear-circle {
    background: linear-gradient(180deg, #0088FF 0%, rgba(255, 255, 255, 0) 100%);

    border-radius: 50%;
    display: block;
    aspect-ratio: 1/1;
    max-width: 200px;
    width: 100%;
}

.section-about-5 .image {
    position: relative;
    overflow: hidden;
    border-radius: 40px;
    max-width: 520px;
    margin: 0 auto;
}

.section-about-5 .image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: inherit;
}

.section-about-5 .shape-dynamic-circle {
    position: absolute;
    top: 22%;
    left: 14%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(0, 136, 255, 0.18);
    box-shadow: 0 0 0 4px rgba(0, 136, 255, 0.12);
    animation: pulseGlow 4s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 1;
}

@keyframes pulseGlow {
    0% {
        transform: scale(0.92);
        opacity: 0.8;
        box-shadow: 0 0 0 4px rgba(0, 136, 255, 0.12);
    }
    100% {
        transform: scale(1.14);
        opacity: 0.35;
        box-shadow: 0 0 0 18px rgba(0, 136, 255, 0);
    }
}

/* Invertir elementos section-book-appointment-2 */
.section-book-appointment-2 .row {
    flex-direction: row-reverse;
}

.section-vision {
    background-color: #e8f3ff;
}

.section-vision .heading-section .title,
.section-vision .heading-section .desc,
.section-vision .heading-section .sub {
    color: #102b55;
}

.section-vision .icon-box.style-2 .icon {
    width: 110px;
    height: 110px;
    margin: 0 auto 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0, 136, 255, 0.12);
}

/* Títulos más grandes */
.service-detail-2 h4 {
    font-size: 32px !important;
    font-weight: 700 !important;
}

.service-detail-2 h5 {
    font-size: 28px !important;
    font-weight: 600 !important;
}

.passive h4 {
    font-size: 36px !important;
}

.box-icon h5 {
    font-size: 26px !important;
}

.section-vision .icon-box.style-2 .icon i {
    color: #0056ff;
    font-size: 72px;
}

/* Header estilo 9 - mejora visual y submenú */
.header.style-9 {
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 18px 40px rgba(15, 79, 255, 0.08) !important;
    z-index: 100000 !important; /* Asegurar que esté sobre el lightbox */
}
.header.style-9 .header-inner {
    padding: 14px 24px !important;
}
.header.style-9 .main-menu .navigation > li > a {
    color: #0f4fff !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
}
.header.style-9 .main-menu .navigation > li:hover > a {
    color: #062fc3 !important;
}
.header.style-9 .navigation li.has-child::after {
    color: #0f4fff !important;
    font-size: 12px;
    margin-left: 6px;
}
.header.style-9 .main-menu .navigation > li > .submenu {
    top: calc(100% + 10px) !important;
    left: 0 !important;
    min-width: 280px !important;
    max-width: 340px !important;
}
.header.style-9 .navigation .submenu {
    background: #ffffff !important;
    border-radius: 14px !important;
    box-shadow: 0 24px 50px rgba(15, 79, 255, 0.12) !important;
    padding: 8px 0 !important;
    border: 1px solid rgba(15, 79, 255, 0.12) !important;
}
.header.style-9 .navigation .submenu li a {
    color: #0f4fff !important;
    padding: 14px 22px !important;
    font-weight: 600 !important;
    text-align: left !important;
    white-space: nowrap !important;
}
.header.style-9 .navigation .submenu li:hover > a {
    background: rgba(15, 79, 255, 0.06) !important;
    color: #062fc3 !important;
}
.header.style-9 .navigation .submenu li:not(:last-child) {
    border-bottom: 1px solid rgba(15, 79, 255, 0.08) !important;
}
.header.style-9 .navigation li.has-child {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}
.header.style-9 .navigation li.has-child::after {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin-left: 0 !important;
}


.section-vision .icon-box.style-2 .title {
    color: #0a2b68;
}

.section-about-3.section-vision {
    background-color: #e8f3ff;
}

.section-about-3.section-vision .heading-section .sub,
.section-about-3.section-vision .heading-section .title {
    color: #102b55;
}

.section-about-3.section-vision .box-icon.style-3 .icon {
    width: 110px;
    height: 110px;
    margin: 0 auto 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0, 136, 255, 0.12);
}

.section-about-3.section-vision .box-icon.style-3 .icon i {
    color: #0056ff;
    font-size: 72px;
}

.section-about-3.section-vision .box-icon.style-3 .title {
    color: #0a2b68;
}
/* Ensures the blue CTA panel in limpieza-profesional fills more width */
.service-detail-2 .section-cta {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 32px !important;
    padding-right: 32px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.service-detail-2 .section-cta .tf-btn {
    min-width: 220px;
    background: #ffffff !important;
    color: #0056ff !important;
    box-shadow: 0 18px 45px rgba(0, 41, 107, 0.12);
    border: none !important;
}
.service-detail-2 .section-cta .tf-btn:hover {
    background: rgba(255, 255, 255, 0.94) !important;
    color: #0056ff !important;
}

/* Alineado centrado para la sección "Por qué elegirnos" en limpieza-profesional */
.service-detail-2 .passive.v2 {
    text-align: center;
}
.service-detail-2 .passive.v2 .tf-grid-layout {
    justify-content: center;
    justify-items: center;
}
.service-detail-2 .passive.v2 .box-icon.style-3 {
    align-items: center;
    text-align: center;
}
.service-detail-2 .passive.v2 .box-icon.style-3 .title {
    margin: 0 auto 10px;
}
.service-detail-2 .passive.v2 .box-icon.style-3 .icon {
    margin: 0 auto 16px;
}
