:root {
    /* paleta de colores original */
    --primary-dark: #003366;
    --accent-color: #00c3ff;
    --text-white: #ffffff;
    --bg-section: #f4f8fa;
    --bg-section-alt: #f3f8fb;
    --icon-bg-light: #e6f3fa;
    --text-muted-custom: #5a6779;

    /* SOBREESCRITURA DE BOOTSTRAP 5 */
    --bs-primary: var(--primary-dark);
    --bs-info: var(--accent-color);
    --bs-body-bg: var(--text-white);
    --bs-body-color: var(--text-muted-custom);

    --hero-header-offset: clamp(6.75rem, 14vw, 11rem);
}

/* * CLASES UTILITARIAS PERSONALIZADAS 
 * Para fondos y textos específicos que no encajan en el estándar de Bootstrap
 */
.bg-section-light {
    background-color: var(--bg-section) !important;
}

.bg-icon-light {
    background-color: var(--icon-bg-light) !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

.text-primary-dark {
    color: var(--primary-dark) !important;
}

.bg-accent {
    background-color: var(--accent-color) !important;
}

/* Opcional pero recomendado: Transiciones suaves globales para botones y enlaces */
a, button {
    transition: all 0.3s ease-in-out;
}

/* =========================================
   UTILIDADES Y COMPONENTES GLOBALES
========================================= */

/* ================ BADGE DE SECCIONES ================ */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0,195,255,.15);
    border: 1px solid rgba(0,195,255,.3);
    border-radius: 50px;
    color: var(--accent-color);
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(4px);
  }

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(0,195,255,.7);
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% { transform: scale(.95); box-shadow: 0 0 0 0 rgba(0,195,255,.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0,195,255,0); }
    100% { transform: scale(.95); box-shadow: 0 0 0 0 rgba(0,195,255,0); }
}

/* ================ BOTON PRIMARY REUTILIZABLE ================ */
.btn-primary-custom {
    background-color: var(--primary-dark);
    color: var(--text-white);
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: #002244;
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 51, 102, 0.3);
}
/* ================ BOTON ACCENT REUTILIZABLE ================ */
.btn-accent {
    background-color: var(--accent-color);
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background-color: #00a0d2;
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 195, 255, 0.3);
}

/* ================ BOTONES FLOTANTES ================ */

/* --- Botón Whatsapp Flotante --- */
.whatsapp-flotante {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    position: fixed;
    bottom: 6rem;
    right: 1rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
    font-size: 1.75rem;
    animation: whatsappPulse 2s infinite;
}

.whatsapp-flotante.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4),
                    0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6),
                    0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4),
                    0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-flotante:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6),
                0 0 30px rgba(37, 211, 102, 0.4);
    animation: none;
}

.whatsapp-flotante::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
}

.whatsapp-flotante:hover::before {
    transform: translate(-50%, -50%) scale(1.2);
}

.whatsapp-flotante i {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 1.75rem;
    animation: iconBounce 2s infinite;
    position: relative;
    z-index: 1;
}


@keyframes iconBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* --- Botón Scroll to Top --- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 1rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease-in-out;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    width: 50px;
    border-radius: 50%;
    background-color: var(--primary-dark);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    font-size: 28px;
    text-decoration: none;
}

.back-to-top-a:hover {
    background-color: var(--accent-color);
    color: #ffffff;
    transform: translateY(-3px);
}

@media (max-width: 767px) {

    .whatsapp-flotante {
        height: 42px;
        width: 42px;
        bottom: 4rem;
    }

    .back-to-top {
        bottom: 1rem;
    }

    .back-to-top-a {
        height: 42px;
        width: 42px;
        font-size: 24px;
    }
}

/* ================ HERO SECUNDARIO REUTILIZABLE ================ */
.hero-secundario {
    min-height: 30vh;
    background-color: var(--primary-dark);
    display: flex;
    flex-direction: column;
}

.hero-secundario-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-secundario-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(17, 24, 34, 0.5);
    z-index: 2;
}

.hero-secundario-grid {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 3;
    opacity: 0.1;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.5) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.5) 1px, transparent 1px);
    background-size: 50px 50px; /* Tamaño de cada cuadrito */
}

/* Badge oscuro transparente */
.badge-dark-outline {
    display: inline-flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 195, 255, 0.2);
    color: var(--accent-color);
    padding: 0.4rem 1.2rem;
    border-radius: 50rem;
    font-size: 0.85rem;
    backdrop-filter: blur(4px);
}

/* Estilos para sobrescribir los Breadcrumbs de Bootstrap */
.custom-breadcrumb {
    --bs-breadcrumb-divider-color: var(--footer-text-muted);
    font-size: 0.85rem;
}
.custom-breadcrumb .breadcrumb-item a {
    color: var(--footer-text-muted);
    text-decoration: none;
    transition: color 0.3s;
}
.custom-breadcrumb .breadcrumb-item a:hover {
    color: var(--accent-color);
}
.custom-breadcrumb .breadcrumb-item.active {
    color: var(--text-white);
}

/* ================ CTA REUTILIZABLE ================ */
.cta-generic-section {
    background-color: var(--footer-bg);
}

/* Línea inferior con degradado */
.cta-gradient-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent 5%, var(--accent-color) 50%, transparent 95%);
    opacity: 0.8;
}

/* Círculos decorativos del fondo */
.cta-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.03);
    background: radial-gradient(circle, rgba(255,255,255,0.02) 0%, transparent 70%);
    z-index: 1;
    box-shadow: 0 0 20px rgba(0, 195, 255, 0.1);
}

.cta-circle-left {
    width: 300px;
    height: 300px;
    top: 50%;
    left: -100px;
    transform: translateY(-50%);
}

.cta-circle-right {
    width: 400px;
    height: 400px;
    top: 50%;
    right: -150px;
    transform: translateY(-50%);
}

/* 
======================= ESTILOS HEADER =======================
*/
.nav-link-custom {
    border-radius: 15px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Hover y estado activo de links */
.nav-link-custom:hover, 
.nav-link-custom:focus,
.nav-item.dropdown:hover .nav-link-custom {
    background-color: var(--icon-bg-light);
    color: var(--primary-dark) !important;
}

/* Efectos items del dropdown */
.dropdown-item:hover {
    background-color: var(--bg-section);
    color: var(--primary-dark);
}

/* Asegurar que el offcanvas no se sobreponga raro si cambian los anchos */
@media (min-width: 1200px) { /* xl breakpoint en Bootstrap */
    .dropdown:hover .dropdown-menu {
        display: block; /* Muestra el dropdown al pasar el mouse en escritorio, no solo al hacer click */
    }
}

/* 
======================== ESTILOS FOOTER =======================
*/
/* --- VARIABLES DEL FOOTER --- */
:root {
    --footer-bg: #111822; 
    --footer-border: #1e293b;
    --footer-text-muted: #94a3b8;
    --social-bg: #1e293b;
}

.bg-footer {
    background-color: var(--footer-bg);
}

.text-footer-muted {
    color: var(--footer-text-muted) !important;
}

/* Títulos con la línea azul a la izquierda */
.footer-title {
    border-left: 3px solid var(--accent-color);
    padding-left: 10px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 1.5rem;
}

/* Enlaces del Footer */
.footer-link {
    color: var(--footer-text-muted);
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

.footer-link:hover {
    color: var(--text-white);
    padding-left: 5px;
}

/* Botones de Redes Sociales */
.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--social-bg);
    color: var(--footer-text-muted);
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.social-btn:hover {
    background-color: var(--accent-color);
    color: var(--text-white);
}

/* =========================================
   VISTA: INICIO
========================================= */

/* 
========== SECCION HERO ==========
*/
.hero-section {
    position: relative;
    min-height: max(600px, 100vh);
    min-height: max(600px, 100dvh);
    padding-top: var(--hero-header-offset);
    padding-bottom: 3rem;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--text-white);
}

.hero-section .section-badge {
    margin-bottom: 1.35rem;
}

@media (max-width: 991.98px) {
    :root {
        --hero-header-offset: clamp(5.25rem, 12vw, 8.5rem);
    }

    .hero-section {
        padding-bottom: 2.5rem;
    }

    .hero-section .section-badge {
        margin-bottom: 1.1rem;
    }
}

/* Video de fondo */
.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: -2;
    object-fit: cover; /* Asegura que el video no se deforme */
}

/* Botón de control de audio del Hero */
.hero-audio-btn {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    width: 45px;
    height: 45px;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.hero-audio-btn:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Ajuste en móviles */
@media (max-width: 768px) {
    .hero-audio-btn {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* Capa oscura sobre el video para que el texto sea legible */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 20, 40, 0.9) 0%, rgba(0, 20, 40, 0.5) 100%);
    z-index: -1;
}

/* Tipografía del Hero */
.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem); /* Responsive font-size */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 300;
    color: #e2e8f0;
    max-width: 600px;
    margin-bottom: 2rem;
}

/* Controles del Slider */
.hero-nav-arrow {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}
.hero-nav-arrow:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}
.hero-arrow-left { left: 2rem; }
.hero-arrow-right { right: 2rem; }

@media (max-width: 768px) {
    .hero-nav-arrow {
        width: 40px;
        height: 40px;
    }
    
    .hero-arrow-left { 
        left: 0.5rem;
    }
    
    .hero-arrow-right { 
        right: 0.5rem; 
    }

    .hero-nav-arrow i {
        font-size: 1.5rem !important;
    }
}

/* Paginación */
.hero-pagination {
    display: flex;
    gap: 8px;
    margin-top: 3rem;
}
.hero-dot {
    width: 30px;
    height: 9px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.hero-dot.active {
    background-color: var(--accent-color);
}

/* Indicador de Scroll Inferior */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 10px;
}
.hero-scroll-dot {
    width: 6px;
    height: 10px;
    background-color: var(--accent-color);
    border-radius: 35%;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(15px); opacity: 0; }
}

.fade-text-enter-active, .fade-text-leave-active {
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-text-enter {
    opacity: 0;
    transform: translateY(10px);
}
.fade-text-leave-to {
    opacity: 0;
    transform: translateY(-10px);
}

/* ================== SECCION SECTORES ============= */
.sectores-section {
    background-color: var(--bg-section);
    font-family: inherit;
}

/* Tipografía del encabezado */
.sectores-subtitle {
    color: var(--accent-color);
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.sectores-title {
    color: var(--primary-dark);
    font-size: 2.5rem;
    letter-spacing: -0.5px;
}

.sectores-desc {
    color: var(--text-muted-custom);
    font-size: 1.1rem;
}

/* Tarjetas */
.sector-card {
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    background-color: var(--text-white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efecto hover general para la tarjeta */
.sector-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.sector-card .card-title {
    color: var(--primary-dark);
}

.sector-card .card-text {
    color: var(--text-muted-custom);
    line-height: 1.6;
}

/* Contenedor del icono */
.icon-box {
    width: 80px;
    height: 80px;
    background-color: var(--icon-bg-light);
    color: var(--primary-dark);
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    transition: all 0.3s ease;
}

/* Efecto hover */
.sector-card:hover .icon-box,
.sector-card.active-card .icon-box {
    background: linear-gradient(
    to bottom right,
    var(--accent-color),
    var(--primary-dark)
    );
    color: var(--text-white);
}

/* ================== SECCION NOSOTROS ============= */
/* fondo degradado */
.about-section {
    background-color: var(--bg-section);
    background-image:
        linear-gradient(
            135deg,
            rgba(0,51,102,0.25) 0%,
            rgba(153,187,221,0.35) 40%,
            rgba(204,224,240,0.5) 70%,
            rgba(242,248,252,0.9) 100%
        ),
        radial-gradient(
            circle at 20% 30%,
            rgba(255,255,255,0.4) 0%,
            transparent 40%
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(102,153,204,0.25) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 40% 80%,
            rgba(179,204,230,0.2) 0%,
            transparent 60%
        );
    font-family: inherit;
}

/* Tipografía de títulos y textos */
.about-subtitle {
    color: var(--accent-color);
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.about-title {
    color: var(--primary-dark);
    font-size: 2.5rem;
    letter-spacing: -0.5px;
}

.about-desc {
    color: var(--text-muted-custom);
    line-height: 1.7;
    font-size: 0.95rem;
}

.image-wrapper {
    padding: 20px;
}

.image-wrapper img {
    border-radius: 0.5rem;
    object-fit: cover;
}

/* Bordes en L decorativos */
.decor-top-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 120px;
    height: 120px;
    border-top: 3px solid var(--primary-dark);
    border-left: 3px solid var(--primary-dark);
    border-top-left-radius: 1.5rem;
    z-index: 0;
}

.decor-bottom-right {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 120px;
    height: 120px;
    border-bottom: 3px solid var(--primary-dark);
    border-right: 3px solid var(--primary-dark);
    border-bottom-right-radius: 1.5rem;
    z-index: 0;
}

/* Tarjeta flotante "20+ Años" */
.experience-badge {
    bottom: -10px;
    right: -10px;
    min-width: 220px;
    border-radius: 0.5rem;
    @media (max-width: 768px) {
        bottom: -20px;
        right: 10px;
        min-width: 200px;
    }
}

.badge-icon {
    background-color: hsla(195, 85%, 45%, 0.81);
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
}

/* ================== SECCION SERVICIOS ============= */
/* Contenedor principal */
.servicios-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    background-color: var(--bg-section);
    overflow: hidden;
}

.servicios-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(45deg, transparent 49%, #e5e7eb 49%, #e5e7eb 51%, transparent 51%),
        linear-gradient(-45deg, transparent 49%, #e5e7eb 49%, #e5e7eb 51%, transparent 51%);
    background-size: 40px 40px;
    -webkit-mask-image: radial-gradient(
        ellipse 100% 80% at 50% 100%,
        #000 50%,
        transparent 90%
    );
    mask-image: radial-gradient(
        ellipse 100% 80% at 50% 100%,
        #000 50%,
        transparent 90%
    );
    pointer-events: none;
}

/* Tarjetas de Servicio */
.service-card {
    border-radius: 1rem;
    border: 1px solid #f0f4f8;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    background-color: var(--text-white);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* resplandor de la esquina inferior derecha */
.service-card::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 195, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.service-card .card-title {
    color: var(--primary-dark);
}

.service-card .card-text {
    color: var(--text-muted-custom);
    line-height: 1.6;
}

.icon-box-sm {
    width: 60px;
    height: 60px;
    background-color: var(--icon-bg-light);
    color: var(--primary-dark);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.3s ease;
}

/* Efectos Hover */
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    background-color: #f8fbfe;
}

/* Mostrar el resplandor y cambiar color del icono en hover */
.service-card:hover::after,
.service-card.active-card::after {
    opacity: 1;
}

.service-card:hover .icon-box-sm,
.service-card.active-card .icon-box-sm {
    background: linear-gradient(
    to bottom right,
    var(--accent-color),
    var(--primary-dark)
    );
    color: var(--text-white);
}

/* ================== SECCION ALIADOS =================== */
.aliados-section {
    background: linear-gradient(to bottom right,
            #003366db,
            var(--primary-dark));
    overflow: hidden;
}

.ticker-wrapper {
    width: 100%;
    position: relative;
    display: flex;
    overflow: hidden;
    /* Máscara para que los extremos se difuminen hacia transparente */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    padding: 1rem 0 2rem 0;
}

/* Pista que se mueve */
.ticker-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: scrollTicker 35s linear infinite; /* Duracion de la animacion */
}

.ticker-wrapper:hover .ticker-track {
    animation-play-state: paused;
}

/* tarjeta individual */
.ticker-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 1rem;
    padding: 1.5rem 2.5rem;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

/* Efecto hover individual por tarjeta */
.ticker-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 195, 255, 0.15);
}

.ticker-item .brand-logo-img {
    height: 5vh;
    width: auto;
    object-fit: contain;
}

.ticker-item:hover .brand-logo-img {
    transform: scale(1.05);
}

@keyframes scrollTicker {
    0% {
        transform: translateX(0);
    }

    100% {
        /* Se desplaza exactamente la mitad de su ancho total (un grupo entero) más la mitad del gap (0.75rem) para encajar perfecto */
        transform: translateX(calc(-50% - 0.75rem));
    }
}

/* ================== SECCION NOTICIAS =================== */
.noticias-section {
    background-color: var(--bg-section);
}

.news-card {
    border-radius: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05) !important;
}

.news-card .img-wrapper {
    border-top-left-radius: 1.5rem !important;
    border-top-right-radius: 1.5rem !important;
}

.news-card .img-wrapper img {
    transition: transform 0.5s ease;
}

.news-card:hover .img-wrapper img {
    transform: scale(1.05);
}

.date-badge {
    top: 1.25rem;
    left: 1.25rem;
    border: 1px solid rgba(0, 195, 255, 0.3);
    background-color: var(--accent-color);
    box-shadow: 0 4px 10px rgba(0, 195, 255, 0.3);
}

.read-more-link {
    color: var(--accent-color);
    transition: color 0.3s ease;
}

.read-more-link:hover {
    color: var(--primary-dark);
}

/* ================== SECCION MAPA =================== */
.map-area iframe{
    display:block;
    width:100%;
    height:45vh;
}

/* =========================================
   VISTA: NOSOTROS
========================================= */

/* ================ SECCION QUIENES SOMOS ================ */
/* Tarjeta flotante de experiencia */
.experience-card {
    bottom: 0;
    right: 0;
    transform: translate(-30%, 35%);
    z-index: 2;
    min-width: 220px;
}

@media (max-width: 991px) {
    .experience-card {
        transform: translate(0, 15%);
        right: 5%;
    }
}

/* Botón secundario sutil (Habla con un especialista) */
.btn-light-custom {
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-muted-custom);
    transition: all 0.3s ease;
}

.btn-light-custom:hover {
    background-color: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--primary-dark);
}

/* ================ SECCION DIFERENCIADORES ================ */

.feature-card {
    border: 1px solid transparent !important;
    border-radius: 12px;
    transition: all 0.3s ease-in-out;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1) !important;
    border-color: var(--accent-color) !important;
}

/* ================ SECCION FOLOSOFIA ================ */
/* Caja del Ícono */
.filosofia-icon-box {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-dark) 100%);
    color: var(--text-white);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
}

/* Tarjeta Base */
.filosofia-card {
    transition: all 0.4s ease;
    border: 1px solid transparent !important;
}

.filosofia-card:hover {
    border-color: rgba(148, 163, 184, 0.4) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-5px);
}

/* Esquina decorativa inferior derecha (Oculta por defecto) */
.filosofia-corner {
    position: absolute;
    bottom: 25px;
    right: 25px;
    width: 40px;
    height: 40px;
    border-bottom: 2px solid var(--accent-color);
    border-right: 2px solid var(--accent-color);
    border-bottom-right-radius: 12px;
    
    opacity: 0;
    transition: all 0.4s ease;
    transform: translate(-15px, -15px);
}

.filosofia-card:hover .filosofia-corner {
    opacity: 0.5;
    transform: translate(0, 0);
}

/* ================ SECCION NUESTROS VALORES ================ */

/* Tarjeta Base de Valor */
.valor-card {
    transition: all 0.3s ease;
    border: 1px solid transparent !important;
    z-index: 1;
    overflow: hidden;
}

.valor-card:hover {
    border-color: rgba(0, 195, 255, 0.4) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05) !important;
    transform: translateY(-5px);
}

/* Número Gigante de Fondo */
.valor-number {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--primary-dark);
    opacity: 0.04;
    z-index: -1;
    line-height: 1;
    transition: opacity 0.3s ease;
}

.valor-card:hover .valor-number {
    opacity: 0.08;
}

/* Caja de Ícono de Valor */
.valor-icon-box {
    width: 65px;
    height: 65px;
    background-color: var(--icon-bg-light);
    color: var(--accent-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem auto;
}

.valor-card:hover .valor-icon-box {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-dark) 100%);
    color: var(--text-white);
}

/* =========================================
   VISTA CONTACTO
========================================= */

/* ================ SECCION CONTACTO ================ */
/* Estilos de Inputs Personalizados */
.form-control-custom {
    background-color: var(--bg-section);
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: var(--text-muted-custom);
    transition: all 0.3s ease;
}

.form-control-custom:focus {
    background-color: var(--text-white);
    border-color: rgba(0, 195, 255, 0.5); /* Borde sutil color accent */
    box-shadow: 0 0 0 4px rgba(0, 195, 255, 0.1); /* Efecto glow suave */
    color: var(--primary-dark);
}

.form-control-custom::placeholder {
    color: #a0aec0;
}

/* Tarjetas de Información Laterales */
.contact-info-card {
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    cursor: pointer; /* Cambia el cursor como en tu imagen */
    transition: all 0.3s ease;
}

/* Pseudo-elemento para la línea de degradado inferior (oculta por defecto) */
.contact-info-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--primary-dark) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Efectos al hacer Hover */
.contact-info-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

.contact-info-card:hover::after {
    opacity: 1; /* Muestra el degradado */
}

/* ================ SECCION UBICACION ================ */

/* Contenedor del Mapa */
.map-container {
    position: relative;
    padding-bottom: 30%; /* ALTURA DEL MAPA */
    height: 0;
    overflow: hidden;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Tarjeta de CTA para WhatsApp */
.whatsapp-cta-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-cta-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08) !important;
}

.whatsapp-cta-card .btn:hover {
    background: linear-gradient(90deg, #1e293b 0%, var(--primary-dark) 100%) !important; /* Invertimos el gradiente */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsividad para móviles */
@media (max-width: 767px) {
    .map-container {
        padding-bottom: 75%;
    }
    
    .whatsapp-cta-card {
        text-align: center;
    }
}

/* =========================================
   VISTA PTAR
========================================= */

/* ============= SECCIÓN: PROCESO ============= */

/* Tarjeta Base */
.proceso-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    position: relative;
    overflow: visible; 
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.proceso-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 195, 255, 0.3);
}

/* Número Flotante Circular */
.proceso-num {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    background-color: var(--primary-dark);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: bold;
    z-index: 2;
}

/* Icon box */
.proceso-icon-box {
    width: 60px;
    height: 60px;
    background-color: #eaf4f8;
    color: var(--primary-dark);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.proceso-card:hover .proceso-icon-box {
    background-color: var(--accent-color);
    color: var(--text-white);
}

/* Flecha Conectora entre tarjetas */
.proceso-arrow {
    position: absolute;
    top: 50%;
    right: -14px;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-color: #fff;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 3;
}

/* ================ SECCIÓN: SOLUCIONES PTAR ================*/

.cursor-pointer {
    cursor: pointer;
}

.solucion-img-card {
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.solucion-img-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.06) !important;
    border-color: rgba(0, 195, 255, 0.3) !important;
}

.icon-circle {
    width: 2.5vh;
    height: 2.5vh;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-dark) 100%);
    color: var(--text-white);
    flex-shrink: 0;
}

.icon-circle i {
    font-size: 1.1rem;
}

/* Fondo de cuadrícula para las imágenes */
.grid-bg-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image:
        linear-gradient(to right, rgba(0, 195, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 195, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 0;
}

/* =========================================
   VISTA CONTRA INCENDIOS
========================================= */

/* ================ SECCIÓN: PRODUCTOS ================*/

/* Título con línea vertical a la izquierda */
.title-vertical-line {
    border-left: 4px solid var(--primary-dark);
}

/* Tarjeta de Equipo */
.equipo-card {
    border-top: 4px solid #e2e8f0 !important;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    transition: all 0.3s ease;
}

.transition-colors {
    transition: color 0.3s ease;
}

.transition-transform {
    transition: transform 0.3s ease;
}

.equipo-card:hover {
    border-top-color: var(--accent-color) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-5px);
}

/* El título cambia al color Accent */
.equipo-card:hover .equipo-title {
    color: var(--accent-color) !important;
}

.equipo-card:hover .leer-mas-btn i {
    transform: translateX(4px);
}

/* Fondo de la imagen */
.equipo-img-wrapper {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* =========================================
   VISTA BOMBEO PUBLICO GENERAL
========================================= */

.btn-transparent {
    background-color: transparent;
    color: var(--text-muted-custom);
}

.btn-transparent:hover {
    color: var(--primary-dark);
    background-color: rgba(0,0,0,0.02);
}

.transition-all {
    transition: all 0.3s ease;
}

/* Tarjeta de Producto Hogar */
.producto-hogar-card {
    border-top: 3px solid var(--accent-color) !important;
    border-bottom: 3px solid transparent !important; /* Espacio reservado para el hover */
    border-radius: 12px;
    transition: all 0.3s ease;
}

.producto-img-wrapper {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.producto-hogar-card:hover {
    border-bottom: 3px solid var(--primary-dark) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-5px);
}

.fade-list-enter-active, .fade-list-leave-active {
    transition: all 0.4s ease;
}
.fade-list-enter, .fade-list-leave-to {
    opacity: 0;
    transform: translateY(20px);
}

.fade-list-leave-active {
    position: absolute;
}

/* =========================================
   VISTA BOMBEO INDUSTRIAL
========================================= */

/* Tarjeta Industrial */
.producto-ind-card {
    border-bottom: 4px solid transparent !important;
    transition: all 0.3s ease;
}

.producto-ind-card:hover {
    border-bottom: 4px solid var(--accent-color) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-5px);
}

.producto-ind-card:hover .transition-colors {
    color: var(--accent-color) !important;
}

/* Botón Outline Personalizado (Para WhatsApp) */
.btn-outline-light-custom {
    border: 1px solid rgba(0,0,0,0.1);
    color: var(--text-muted-custom);
    background-color: transparent;
    transition: all 0.3s ease;
}

.btn-outline-light-custom:hover {
    border-color: var(--primary-dark);
    color: var(--primary-dark);
    background-color: rgba(0,0,0,0.02);
}

/* =========================================
   VISTA BLOG
========================================= */

.blog-card {
    transition: box-shadow 0.4s ease, transform 0.4s ease;
    border: 1px solid rgba(0,0,0,0.03) !important;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(0, 195, 255, 0.1) !important;
}

.blog-card:hover h4.transition-colors {
    color: var(--accent-color) !important;
}

.blog-img-wrapper img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.blog-card:hover .blog-img-wrapper img {
    transform: scale(1.03);
}

.blog-card:hover .leer-mas-btn i {
    transform: translateX(3px);
}

/* =========================================
   VISTA ARTICULO INDIVIDUAL
========================================= */

.article-main-image {
    border: 4px solid var(--text-white);
}

/* Tipografía del contenido principal */
.article-content {
    font-size: 1.1rem;
    color: #475569;
}

/* Estilos internos para el HTML que viene de la BD */
.article-content h2, 
.article-content h3, 
.article-content h4 {
    color: var(--primary-dark);
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul, 
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.article-content a:hover {
    text-decoration: underline;
}

.article-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 1.5rem;
    font-style: italic;
    color: #64748b;
    background-color: #f8fafc;
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 2rem 0;
}