/********** Template CSS — Organizado y Corregido **********/

/* ============================================================
   1. VARIABLES GLOBALES
   ============================================================ */
:root {
    --primary: #0072B2;
    --secondary: #15ACE1;
    --light: #F4F7FE;
    --dark: #14183E;
    --tech-cyan: #00f2ff;
    --rojo: #C81609;

}
.text-primary{ 
    color: var(--primary) !important; 
}
.text-primary span{ 
    color: #ffffff !important; 
}


/* ============================================================
   FUENTES GLOBALES
   ============================================================ */
/* Metropolis Regular OTF */
@font-face {
  font-family: "Metropolis";
  src: url("../fonts/Metropolis-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

/* Metropolis Bold OTF */
@font-face {
  font-family: "Metropolis";
  src: url("../fonts/Metropolis-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

/* OPEN SANS LOCAL */
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/OpenSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("../fonts/OpenSans-Bold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

html {
  font-family: "Metropolis", system-ui, sans-serif;
}

p, li, blockquote {
  font-family: "Open Sans", sans-serif !important;
}

.video-frame-container {
    position: relative;
    width: 100%;
}
.video-aspect-ratio {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* o la que toque */
    overflow: hidden;     /* opcional si el vídeo se sale */
}

.video-aspect-ratio video {
    width: 100%;
    height: 100%;
    object-fit: cover;    /* o contain, como prefieras */
}
.video-aspect-ratio .planta-status {
    top: 10px;
    left: 10px;
    z-index: 2;
}

#unmuteBtn {
    z-index: 3;
}


/* ============================================================
   2. SPINNER
   ============================================================ */
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/* ============================================================
   3. BACK TO TOP
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: #00b4d8;
    color: white !important;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3);
}

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

.back-to-top:hover {
    background-color: #0077b6;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.5);
}


/* ============================================================
   4. TIPOGRAFÍA
   ============================================================ */
h1, h2, h3, .fw-bold {
    font-weight: 700 !important;
}

h4, h5, h6, .fw-medium {
    font-weight: 500 !important;
}

/* FIX: Unificado — letter-spacing consistente */
.fw-black {
    font-weight: 900;
    letter-spacing: 0.5px;
}

.text-gradient {
    background: linear-gradient(90deg, #161695, #4e4eff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-cyan     { color: var(--tech-cyan); }
.text-cyan-low { color: rgba(0, 242, 255, 0.7); letter-spacing: 1px; font-size: 0.8rem; text-transform: uppercase; }


/* ============================================================
   5. BOTONES
   ============================================================ */
.btn {
    font-weight: 500;
    transition: .5s;
}

/* FIX: Unificado — se usaba 38px y 45px; se estandariza en 45px */
.btn-square {
    width: 45px;
    height: 45px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50px;
    background-color: var(--primary);
}

.btn-sm-square {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50px;
    background-color: var(--primary);
}

.btn-lg-square {
    width: 48px;
    height: 48px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50px;
    background-color: var(--primary);
}

/* Efecto de brillo para botones */
.btn-primary, .btn-light, .btn-outline-light {
    position: relative;
    z-index: 1;
    overflow: hidden;
}
 .btn-outline-red {
    position: relative;
    z-index: 1;
    overflow: hidden;
    color: #ffffff;
    background-color: darkred;
}

.btn-primary:hover, .btn-light:hover {
    background: var(--tech-cyan) !important;
    border-color: var(--tech-cyan) !important;
    color: var(--dark) !important;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.6);
}

.btn-outline-light:hover {
    background: var(--tech-cyan) !important;
    border-color: var(--tech-cyan) !important;
    color: var(--dark) !important;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.6);
}
.btn-outline-red:hover {
     background: var(--tech-cyan) !important;
    border-color: var(--tech-cyan) !important;
    color: var(--dark) !important;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.6);
}



/* Resplandor que emerge desde el fondo */
.btn-primary::after, .btn-light::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.btn-primary:hover::after, .btn-light:hover::after {
    width: 300px;
    height: 300px;
}

.btn-contact {
    background-color: var(--rojo);
    color: white;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    padding: 6px 15px;
    font-size: 0.8rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    animation: entradaMenu 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.7s;
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 180, 216, 0.4);
}

.btn-download-pdf {
    display: inline-flex;
    align-items: center;
    padding: 12px 25px;
    background-color: transparent;
    color: #161695;
    border: 2px solid #161695;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-download-pdf i {
    font-size: 1.2rem;
}

.btn-download-pdf:hover {
    background-color: #161695;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(22, 22, 149, 0.2);
}

.btn-white {
    background: white;
    border: 1px solid #eee;
    color: #666;
}

.btn-check:checked + .btn-white {
    background-color: #161695;
    border-color: #161695;
    color: white;
}

.btn-top-access:hover {
    background-color: var(--primary);
    color: #fff !important;
    border-color: var(--primary);
}

/* Botón flotante de presupuesto */
.sticky-budget-btn {
    position: fixed;
    bottom: 90px;
    left: 30px;
    z-index: 999;
}

.btn-budget {
    display: block;
    background-color: var(--primary) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(22, 22, 149, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-budget:hover {
    transform: scale(0.9) translateY(-5px);
    background-color: var(--secondary);
    box-shadow: 0 15px 35px rgba(22, 22, 149, 0.4);
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-content i    { font-size: 0.9rem; }
.btn-content span { font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; }

.btn-parallax-submit {
    background: none;
    border: none;
    color: #00b4d8;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 2px;
    padding-left: 15px;
    transition: 0.3s ease;
}

.btn-parallax-submit:hover {
    color: #ffffff;
    transform: translateX(5px);
}


/* ============================================================
   6. TOP BAR
   ============================================================ */
 /* Contenedor principal */
        .top-bar {
            position: relative;
            top:0;
            width: 100%;
            padding-inline: clamp(1rem, 3vw, 5rem);
            z-index: 1050;
            background-color: #f8f9fa;
            border-bottom: 3px solid #e9ecef;
            font-size: clamp(0.75rem, 0.8vw, 0.9rem);
            /* FIX: se usa display:block con d-none d-lg-block en Bootstrap */
            padding-inline: 0 !important;
        }

        .top-bar .container-fluid {
            max-width: 99vw !important; 
            /* El !important es para ganar a los valores por defecto de Bootstrap */
            width: 100%;
            padding-left: 2rem !important;
            padding-right: 2rem !important;
            
            /* Eliminamos cualquier margen que Bootstrap pueda estar inyectando */
            margin-left: 0 !important;
            margin-right: 0 !important;
        }

        /* Forzamos a la fila (row) a usar todo el espacio */
        .top-bar .row {
            --bs-gutter-x: 0; /* Quita el espacio extra lateral de Bootstrap */
            width: 100%;
        }

        /* --- Columna izquierda: contacto --- */
        .top-bar-link {
            display: inline-flex !important;
            align-items: center;
            vertical-align: middle;
            color: #555;
            text-decoration: none;
            transition: color 0.25s ease; 
            gap: 6px;
            font-size: 12.5px;
            line-height: 1;
        }
        .top-bar-link i { 
            display: flex;
            align-items: center;
            height: 100%;
            margin-top: 1px;
            color: #161695; 
            font-size: 11px; 
        }
        .top-bar-link:hover { color: #161695; }

        .top-bar-link span {
            line-height: 1;
        }

        /* Separador entre email y teléfono */
        .top-bar-sep {
            width: 1px;
            height: 14px;
            background: #d0d0d0;
            display: inline-block;
            margin: 0 12px;
            vertical-align: middle;
        }

        /* --- Columna derecha: enlaces + acceso + idioma + RRSS --- */

        /* Enlace pequeño (Soporte, Proveedores) */
        .top-bar-link-small {
            color: #777;
            font-size: 11.5px;
            text-decoration: none;
            transition: color 0.2s;
        }
        .top-bar-link-small:hover { color: #161695; }

        /* Botón Área Cliente — protagonista del topbar */
        .btn-client-access {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            white-space: nowrap;
            background-color: var(--primary) !important;
            color: #ffffff !important;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.8px;
            text-transform: uppercase;
            text-decoration: none;
            padding: 5px 13px;
            border-radius: 20px;
            transition: all 0.3s ease;
            white-space: nowrap;
        }
        .btn-client-access:hover {
            background-color: var(--secondary) !important;
            transform: translateY(-1px);
            box-shadow: 0 3px 10px rgba(22, 22, 149, 0.25);
        }
        .btn-client-access i { font-size: 11px; }

        /* Iconos de Redes Sociales */
        .top-social-icons a {
            color: #aaa;
            font-size: 13px;
            margin-left: 10px;
            text-decoration: none;
            transition: color 0.2s ease, transform 0.2s ease;
            display: inline-block;
        }
        .top-social-icons a:first-child { margin-left: 0; }
        .top-social-icons a:hover {
            color: var(--primary);
            transform: translateY(-2px);
        }
        .lang-selector{
            top: 100% !important;
        }

        /* Selector de idioma */
        .flag-icon { width: 17px; vertical-align: middle; margin-right: 3px; }
        .lang-selector .nav-link {
            font-size: 11.5px;
            font-weight: 600;
            padding: 0 5px !important;
        }
        .lang-selector .nav-link:hover { color: #161695 !important; }
        
        .lang-selector .dropdown-menu {
            min-width: 130px;
            font-size: 12px;
            border: 1px solid #eee;
            box-shadow: 0 5px 15px rgba(0,0,0,0.08);
            border-radius: 8px;
            padding: 5px;

        }
        .lang-selector .dropdown-item {
            padding: 5px 10px;
            border-radius: 5px;
            font-weight: 600;
        }
        .lang-selector .dropdown-item:hover {
            background-color: #f0f2ff;
            color: #111111;
        }

        /* Divisor vertical genérico */
        .vdivider {
            display: inline-block;
            width: 1px;
            height: 16px;
            background: #ddd;
            margin: 0 12px;
            vertical-align: middle;
        }


/* ============================================================
   7. NAVBAR
   ============================================================ */

/* Estado inicial (transparente) */
.nav-wrap {
    position: fixed;
    top: 45px;
    left: 0;
    width: 100%;
    z-index: 1040;
    padding: 10px 0;
    background-color: transparent;
    border-bottom: 1px solid transparent;

    transition:
        top 0.4s ease,
        padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        background-color 0.4s ease,
        box-shadow 0.4s ease,
        border-bottom-color 0.4s ease,
        backdrop-filter 0.4s ease;
}

/* Logo navbar */
.logo-nav {
    height: clamp(70px, 5vh, 70px); /* El logo escala con la pantalla */
    width: auto;
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: height;
    animation: entradaLogo 1s ease-out forwards;
}


/* Estado scrolled */
.nav-wrap.scrolled {
       top: 0;                 /* ya sin !important */
    padding: 8px 0;         /* si quieres ligero “shrink”; si no, deja 10px */
    background-color: rgba(1, 42, 122, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-bottom-color: #161695;
}

.nav-wrap.scrolled .logo-nav   { height: 48px; }
.nav-wrap.scrolled .btn-contact { padding: 7px 20px; font-size: 0.75rem; background-color: #ffffff; color: #00b4d8; }

/* Links del navbar — FIX: añadido position: relative para anclar el ::after */
.navbar-nav .nav-link {
    z-index: 1040;
    position: relative;
    color: #ffffff !important;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: 0.3s ease;
    opacity: 0;
    animation: entradaMenu 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover { color: #00b4d8 !important; }

/* Línea bajo link activo */
.navbar-nav .nav-link.active::after {
    margin-top: 0.25em; /* ajusta si hace falta */
}
.navbar-nav .nav-link.active::before {
    content: '';
    display: block;
    transform: translateX(5%);
    width: 90%;
    height: 2px;
    background: #00b4d8;
    position: absolute;
    bottom: 5px;
    left: 0;
}

/* Retrasos en cascada */
.navbar-nav .nav-item:nth-child(1) .nav-link { animation-delay: 0.2s; }
.navbar-nav .nav-item:nth-child(2) .nav-link { animation-delay: 0.3s; }
.navbar-nav .nav-item:nth-child(3) .nav-link { animation-delay: 0.4s; }
.navbar-nav .nav-item:nth-child(4) .nav-link { animation-delay: 0.5s; }
.navbar-nav .nav-item:nth-child(5) .nav-link { animation-delay: 0.6s; }

/* Hamburguesa */
.navbar-toggler { 
    border: 1px solid #00b4d8 !important;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 6px;
    transition: all 0.3s ease;
}
.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 180, 216, 0.25);
}

/* ========================================
   MÓVIL: MENÚ LATERAL ELEGANTE DESDE DERECHA
   ======================================= */
@media (max-width: 991.98px) {

    .navbar-collapse {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        max-width: 90vw;
        height: 100vh;
        
        background: linear-gradient(135deg,rgba(6, 9, 24, 0.94) 0%, rgba(26, 31, 61, 0.94) 50%, rgba(15, 20, 40, 0.94) 100%);
        box-shadow: -8px 0 40px rgba(0,0,0,0.6);
        padding: 80px 0 40px;
        z-index: 9999;
        overflow-y: auto;
        scrollbar-width: none;
        transition: right 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
    }

    .navbar-collapse::-webkit-scrollbar { width: 0; height: 0; }

    .navbar-collapse.show { right: 0 !important; }

    .navbar-nav { padding: 0 !important; margin: 0; }

    .navbar-nav .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        opacity: 0;
        transform: translateX(30px);
        animation: slideInMenu 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }

    .navbar-nav .nav-item:nth-child(1) { animation-delay: 0.1s; }
    .navbar-nav .nav-item:nth-child(2) { animation-delay: 0.15s; }
    .navbar-nav .nav-item:nth-child(3) { animation-delay: 0.2s; }
    .navbar-nav .nav-item:nth-child(4) { animation-delay: 0.25s; }
    .navbar-nav .nav-item:nth-child(5) { animation-delay: 0.3s; }

    .navbar .navbar-nav .nav-link {
        width: 100%;
        padding: 16px 20px 16px 50px !important; /* espacio para icono */
        margin: 0 !important;
        font-size: 0.9rem !important;
        letter-spacing: 1px;
        border-radius: 0;
        opacity: 1 !important;
        animation: none !important;
        position: relative;
    }
    /* Icono base */
    .navbar .navbar-nav .nav-link::before {
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        font-size: 1rem;
        color: #00b4d8;
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
     /* Iconos por sección — ajusta nth-child según tu orden */
    .navbar-nav .nav-item:nth-child(1) .nav-link::before { content: "\f0c0"; } /* Nosotros: users */
    .navbar-nav .nav-item:nth-child(2) .nav-link::before { content: "\f2db"; } /* Servicios: microchip */
    .navbar-nav .nav-item:nth-child(3) .nav-link::before { content: "\f275"; } /* Sectores: sitemap */
    .navbar-nav .nav-item:nth-child(4) .nav-link::before { content: "\f1ea"; } /* Noticias: newspaper */

    /* PRIMER NIVEL — Servicios, Sectores... */
    .nav-item.dropdown > .dropdown-menu {
        display: block !important;        /* siempre block, controlamos con max-height */
        position: static !important;
        width: 100% !important;
        background: #ffffff !important;
        border: none !important;
        box-shadow: none !important;
        max-height: 0;
        overflow: hidden;
        padding: 0 !important;
        margin: 0 !important;
        transition: max-height 0.4s ease;
    }

    .nav-item.dropdown.show > .dropdown-menu {
        max-height: 1200px;
        padding: 8px 0 !important;
    }

    /* SUBMENÚS — Calidad, Verificación... */
    .dropdown-submenu > .dropdown-menu {
        display: block !important;
        position: static !important;
        width: 100% !important;
        background: #f8f9fa !important;
        border: none !important;
        box-shadow: none !important;
        max-height: 0;
        overflow: hidden;
        padding: 0 0 0 20px !important;
        margin: 0 !important;
        transition: max-height 0.35s ease;
    }

    .dropdown-submenu.show > .dropdown-menu {
        max-height: 800px;
        padding: 6px 0 6px 26px !important;
    }

    /* Items */
    .dropdown-menu .dropdown-item {
        color: #111111 !important;
        background: transparent !important;
        padding: 10px 16px 10px 32px !important;  /* espacio para la flecha */
        margin: 1px 6px !important;
        border-radius: 6px;
        border-left: 3px solid transparent;
        transition: all 0.25s ease;
        white-space: normal;
        display: block;
        position: relative;
        font-weight: 600;
    }
    /* Flecha › delante de cada item (sin Font Awesome) */
    .dropdown-menu .dropdown-item::before {
        content: "›";
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.1rem;
        color: var(--secondary);
        line-height: 1;
        transition: transform 0.2s ease;
    }

    .dropdown-menu .dropdown-item:hover {
        background: rgba(0, 180, 216, 0.08) !important;
        color: var(--secondary) !important;
        border-left-color: var(--secondary);
    }

    .dropdown-menu .dropdown-item:hover::before {
        transform: translateY(-50%) translateX(3px);
    }

    .dropdown-menu .dropdown-item.active {
        background: var(--secondary) !important;
        color: #fff !important;
        border-left-color: var(--secondary);
    }

    /* Los toggles de submenú tienen flecha giratoria, no › */
    .dropdown-submenu > .dropdown-item::before {
        content: "\f054"; /* chevron-right FA */
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        font-size: 0.65rem;
        color: #888;
        transition: transform 0.3s ease;
    }

    .dropdown-submenu.show > .dropdown-item::before {
        transform: translateY(-50%) rotate(90deg); /* gira al abrir */
    }

    /* ── Bloque extra (teléfono + RFQ + RRSS) ─────────── */
    .mobile-extra {
        width: 100%;
        padding: 40px 20px 30px;
        align-items: center;
        margin-top: 10px;
    }

    .mobile-extra-contact {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 20px;
    }

    .mobile-contact-tel,
    .mobile-contact-rfq {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 6px 7px;
        border-radius: 12px;
        font-size: 0.9rem;
        font-weight: 700;
        text-decoration: none;
        transition: all 0.25s ease;
    }

    .mobile-contact-tel {
        background: rgba(255,255,255,0.08);
        color: #ffffff;
        border: 1px solid rgba(255,255,255,0.15);
    }

    .mobile-contact-tel:hover {
        background: rgba(255,255,255,0.15);
        color: #ffffff;
    }

    .mobile-contact-rfq {
        background: #00b4d8;
        color: #ffffff;
        border: none;
    }

    .mobile-contact-rfq:hover {
        background: #0094b5;
        color: #ffffff;
        transform: translateY(-1px);
    }

    /* Redes */
    .mobile-extra-social {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 0.75rem; /* separación entre iconos */
        margin-top: 0.5rem;
    }

    .mobile-extra-social span {
        color: rgba(255,255,255,0.4);
        font-size: 0.75rem;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

    .mobile-extra-social a {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: 1px solid rgba(255,255,255,0.25);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        font-size: 0.9rem;
        transition: all 0.25s ease;
        text-decoration: none;
    }

    .mobile-extra-social a:hover {
        background: #0077b5; /* LinkedIn azul */
        border-color: #0077b5;
        transform: translateY(-2px);
    }

    /* Botón contacto flotante — quitar en favor del bloque extra */
    .btn-contact { display: none !important; }

    /* ── Animaciones ───────────────────────────────────── */
    @keyframes slideInMenu {
        to { opacity: 1; transform: translateX(0); }
    }
}




/* Dropdown (escritorio) */
@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        background-color: rgba(255, 255, 255, 0.98);
        border: 1px solid rgba(0,0,0,.08) !important;
        border-left: 4px solid var(--primary) !important;
        width: max-content;
        min-width: auto;
        top: 130%;
        opacity: 0;
        visibility: hidden;
        transition: all .4s cubic-bezier(0.165, 0.84, 0.44, 1);
        border-radius: 15px;
        box-shadow: 0 15px 40px rgba(0,0,0,0.12);
        padding: 6px;
        z-index: 1040;
    }

    .navbar .nav-item:hover > .dropdown-menu {
        top: 100%;
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    .dropdown-item {
        color: #444 !important;
        font-size: 15px;
        font-weight: 700;
        padding: 5px 20px;
        transition: 0.3s;
        white-space: nowrap;
        border-radius: 12px;
    }

    .dropdown-item:hover {
        background-color: var(--light);
        color: var(--secondary) !important;
        padding-left: 25px;
        transform: translateX(3px);
    }
    .dropdown-item.active {
        color: #ffffff !important;
    }
    .dropdown-item.active:hover {
        background-color: var(--light);
        color: var(--secondary) !important;
    }

    /* Submenú tercer nivel */
    .dropdown-submenu { position: relative; }

    .dropdown-submenu > .dropdown-menu {
        top: 0 !important;
        left: 120%;
    }

    .dropdown-submenu:hover > .dropdown-menu {
        left: 100%;
        visibility: visible;
        opacity: 1;
    }

    .dropdown-submenu > .dropdown-toggle::after {
        content: "\f105";
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        float: right;
        border: none;
        font-size: 10px;
        margin-top: 5px;
    }

    .modal-lg { max-width: 700px; }
}

/* ============================================================
   HEADER INDIVIDUAL DE CADA PÁGINA
   ============================================================ */

    /* 1. Header con curva sutil y Parallax */
    .page-header-refined {
        background: linear-gradient(rgba(15, 15, 90, 0.8), rgba(15, 15, 90, 0.8)), 
                    url('/img/index/fondos/bg-newsletter.jpg') center center no-repeat;
        background-size: cover;
        background-attachment: fixed;
        padding: 80px 0 40px 0;
        /* Curva mucho más pequeña y delicada al final */
        clip-path: ellipse(120% 100% at 50% 0%); 
        border-bottom: 4px solid #161695;
    }

    /* Fondos específicos por página */
    .page-compania .page-header-refined {
       background: linear-gradient(rgba(15, 15, 90, 0.4), rgba(15, 15, 90, 0.4)), 
                    url('/img/index/fondos/bg-compania.jpg') center center no-repeat;
        background-size: cover;
        background-attachment: fixed;
        padding: 80px 0 40px 0;
        /* Curva mucho más pequeña y delicada al final */
        clip-path: ellipse(120% 100% at 50% 0%); 
        border-bottom: 4px solid #161695;
    }
    .page-automocion .page-header-refined {
       background: linear-gradient(rgba(15, 15, 90, 0.4), rgba(15, 15, 90, 0.4)), 
                    url('/img/index/fondos/bg-automocion.jpg') center center no-repeat;
        background-size: cover;
        background-attachment: fixed;
        padding: 80px 0 40px 0;
        /* Curva mucho más pequeña y delicada al final */
        clip-path: ellipse(120% 100% at 50% 0%); 
        border-bottom: 4px solid #161695;
    }
    .page-electrodomestico .page-header-refined {
       background: linear-gradient(rgba(15, 15, 90, 0.4), rgba(15, 15, 90, 0.4)), 
                    url('/img/index/fondos/bg-electrodomestico.jpg') center center no-repeat;
        background-size: cover;
        background-attachment: fixed;
        padding: 80px 0 40px 0;
        /* Curva mucho más pequeña y delicada al final */
        clip-path: ellipse(120% 100% at 50% 0%); 
        border-bottom: 4px solid #161695;
    }
    .page-electromedicina .page-header-refined {
       background: linear-gradient(rgba(15, 15, 90, 0.4), rgba(15, 15, 90, 0.4)), 
                    url('/img/index/fondos/bg-electromedicina.jpg') center center no-repeat;
        background-size: cover;
        background-attachment: fixed;
        padding: 80px 0 40px 0;
        /* Curva mucho más pequeña y delicada al final */
        clip-path: ellipse(120% 100% at 50% 0%); 
        border-bottom: 4px solid #161695;
    }
    .page-elevacion .page-header-refined {
       background: linear-gradient(rgba(15, 15, 90, 0.4), rgba(15, 15, 90, 0.4)), 
                    url('/img/index/fondos/bg-elevacion.jpg') center center no-repeat;
        background-size: cover;
        background-attachment: fixed;
        padding: 80px 0 40px 0;
        /* Curva mucho más pequeña y delicada al final */
        clip-path: ellipse(120% 100% at 50% 0%); 
        border-bottom: 4px solid #161695;
    }
    .page-greenenergy .page-header-refined {
       background: linear-gradient(rgba(15, 15, 90, 0.4), rgba(15, 15, 90, 0.4)), 
                    url('/img/index/fondos/bg-greenenergy.jpg') center center no-repeat;
        background-size: cover;
        background-attachment: fixed;
        padding: 80px 0 40px 0;
        /* Curva mucho más pequeña y delicada al final */
        clip-path: ellipse(120% 100% at 50% 0%); 
        border-bottom: 4px solid #161695;
    }

    /* 2. Animación de flotación para imágenes */
    @keyframes float {
        0% { transform: translateY(0px); }
        50% { transform: translateY(-15px); }
        100% { transform: translateY(0px); }
    }
    .floating-img {
        animation: float 4s ease-in-out infinite;
    }

    html {
      scroll-behavior: smooth;
    }

    /* 2. Estilo del botón de scroll */
.scroll-down-btn {
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
}

.scroll-down-btn:hover {
    transform: translateY(5px);
}

/* 3. Animación de "Mouse" minimalista */
.mouse-icon {
    width: 26px;
    height: 42px;
    border: 2px solid #161695;
    border-radius: 15px;
    margin: 0 auto;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: #161695;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.6s infinite;
}

@keyframes scroll-wheel {
    0% { top: 8px; opacity: 1; }
    100% { top: 25px; opacity: 0; }
}

.scroll-down-btn span {
    letter-spacing: 2px;
    font-size: 10px;
}

#instalaciones {
    scroll-margin-top: 100px; /* Ajusta este valor al alto de tu header */
}



/* ============================================================
   8. HERO HEADER
   ============================================================ */
.hero-header {
    min-height: 100svh;
    margin-top: 0;
    padding: 60px 0 10px 0;
    position: relative;
    background-color: var(--dark);
    min-height: clamp(300px, 60vh, 700px);
    /*min-height: 100vh;
     FIX: Eliminado z-index duplicado — solo se declara una vez aquí */
    z-index: 1;
    background-image:
        radial-gradient(circle at center, rgba(6, 9, 24, 0.5) 0%, #060918 90%),
        url('https://images.unsplash.com/photo-1518770660439-4636190af475?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;

    /* Puntos del polígono:
       1. (0,0) - Esquina superior izquierda
       2. (100%, 0) - Esquina superior derecha
       3. (100%, 80%) - AQUÍ SUBE EL RECORTE (Derecha abajo)
       4. (0, 100%) - AQUÍ BAJA A 0 (Izquierda abajo, protegiendo tus botones)
    */
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 80px), 0 100%);
    
    /* Espacio arriba para compensar el recorte del 15% */
    padding-bottom: 120px;
}

/* Pulso de energía */
.hero-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 242, 255, 0.08) 50%, transparent 100%);
    background-size: 250% 250%;
    animation: electricScan 10s linear infinite;
    pointer-events: none;
    z-index: -1;
}


.hero-header h1 {
    /* Título responsive: mín 2rem, ideal 4% del ancho, máx 4rem */
    font-size: clamp(1.1rem, 3vw, 2.8rem);
    line-height: 1;
    font-weight: 800;
    margin-bottom: 1rem !important; /* Forzamos menos espacio abajo */
    letter-spacing: -0.02em; /* Junta un poco las letras para que se vea más elegante */
}

.hero-header p {
    font-size: clamp(0.8rem, 1.6vw, 1.2rem);
    line-height: 1.3;
    opacity: 0.9;
    margin-bottom: 1.2rem !important;
}

/* Imagen hero — FIX: Eliminado el 'filter' duplicado (se conserva el segundo) */
.hero-img-hover {
    max-width: 100%;
    transform: perspective(1000px) rotateY(-10deg) scale(1.1);
    filter: drop-shadow(0 0 40px rgba(0, 242, 255, 0.25));
    animation: elegantGrow 8s ease-in-out infinite;
    position: relative;
    z-index: 5;
    transform-origin: center center;
}

.hero-img-hover:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.3);
    transition: transform 0.5s ease;
}

/* Hero Premium (páginas interiores) */
.hero-premium {
    min-height: 90vh;
    background-color: #0a0a2e;
    position: relative;
    /* FIX: Eliminada la comilla doble extra al final de la URL */
    background-image:
        radial-gradient(circle at center, rgba(6, 9, 24, 0.5) 0%, #060918 90%),
        url('../img/index/fondos/bg-counter.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
    z-index: 1;
}

.premium::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 242, 255, 0.08) 50%, transparent 100%);
    background-size: 250% 250%;
    animation: electricScan 10s linear infinite;
    pointer-events: none;
    z-index: -1;
}

/* Page header (páginas interiores básicas) */
.page-header {
    background: linear-gradient(rgba(22, 22, 149, .8), rgba(22, 22, 149, .8)), url(../img/header-bg.jpg) center center no-repeat;
    background-size: cover;
}
  .hero-cards {
    margin-top: -40px !important;
    padding: 0 0 110px 0 !important;
    position: relative;
    z-index: 2;
}


/* Tarjeta individual */
.hero-service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: 
            radial-gradient(circle at 20% 50%, rgba(0, 180, 216, 0.08) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(1, 42, 122, 0.06) 0%, transparent 50%),
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M10 10 L50 10 L50 50 L10 50 Z' fill='none' stroke='%2300b4d8' stroke-width='0.3' opacity='0.15'/%3E%3Ccircle cx='10' cy='10' r='1.5' fill='%2300b4d8' opacity='0.2'/%3E%3Ccircle cx='50' cy='10' r='1.5' fill='%2300b4d8' opacity='0.2'/%3E%3Ccircle cx='10' cy='50' r='1.5' fill='%2300b4d8' opacity='0.2'/%3E%3Ccircle cx='50' cy='50' r='1.5' fill='%2300b4d8' opacity='0.2'/%3E%3Cline x1='30' y1='0' x2='30' y2='60' stroke='%23012a7a' stroke-width='0.2' opacity='0.1'/%3E%3Cline x1='0' y1='30' x2='60' y2='30' stroke='%23012a7a' stroke-width='0.2' opacity='0.1'/%3E%3C/svg%3E");
    background-color: #f0f6ff;
    border-radius: 16px;
    padding: 22px 12px 18px;
    text-decoration: none;
    color: #1a1a1a;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    top: 30px; /* sobresale del hero hacia el contenido siguiente */
    height: 100%;
}

.hero-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.2);
    color: var(--primary);
    text-decoration: none;
}

/* Icono */
.hero-service-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), #00b4d8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.hero-service-card:hover .hero-service-icon {
    transform: scale(1.1) rotate(-5deg);
}

.hero-service-icon i {
    font-size: 1.2rem;
    color: #ffffff;
}

/* Texto */
.hero-service-card h6 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.2;
}

.hero-service-card small {
    font-size: 0.72rem;
    color: #888888;
    line-height: 1.3;
}

/* Compensar el top: 30px en la sección siguiente */
.hero-header + section,
.hero-header + div {
    padding-top: 5px !important;
}

/* ============================================================
   9. SECTION TITLE
   ============================================================ */


.section-title::before {
    position: absolute;
    content: "";
    width: 45px;
    height: 4px;
    bottom: 0;
    left: 0;
    background: var(--dark);
}

.section-title::after {
    position: absolute;
    content: "";
    width: 4px;
    height: 4px;
    bottom: 0;
    left: 50px;
    background: var(--dark);
}

.section-title.text-center::before { left: 50%; margin-left: -25px; }
.section-title.text-center::after  { left: 50%; margin-left: 25px; }

.section-title h6::before,
.section-title h6::after {
    position: absolute;
    content: "";
    width: 10px;
    height: 10px;
    top: 2px;
    left: 0;
    background: rgba(33, 66, 177, .5);
}

.section-title h6::after { top: 5px; left: 3px; }

/* Borde vertical primary al lado del título */
.main-title {
    position: relative;
    padding-left: 24px;
    display: inline-block;
}

.main-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary), #00b4d8);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(0, 180, 216, 0.4);
}

/* Borde vertical primary al lado del título */
.main-title-right {
    position: relative;
    text-align: right;
    padding-right: 24px;
    display: inline-block;
}

.main-title-right::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary), #00b4d8);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(0, 180, 216, 0.4);
}

/* ============================================================
   10. ABOUT
   ============================================================ */
.about-img {
    position: relative;
    overflow: hidden;
}

.about-img::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url(../img/index/fondos/bg-about-img.png) top left no-repeat;
    background-size: contain;
}

/* Pilares */
.pilar-item {
    padding: 20px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    border: 1px solid rgba(19, 99, 198, 0.1);
    height: 100%;
    text-align: justify;
}

.pilar-item:hover {
    transform: translateY(-10px);
    border-color: var(--tech-cyan);
    box-shadow: 0 15px 40px rgba(0, 242, 255, 0.15);
}

.pilar-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light);
    color: var(--primary);
    border-radius: 15px;
    transition: 0.4s;
}

.pilar-item:hover .pilar-icon,
.pilar-mini:hover .pilar-icon {
    background: var(--primary);
    color: #ffffff;
    transform: rotateY(360deg);
}

.pilar-item h5 { margin-bottom: 5px; font-weight: 700; }
.pilar-item p  { margin: 0; color: #666; }

.pilar-mini {
    padding: 15px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
    text-align: center;
    transition: 0.3s;
    height: 100%;
}

.pilar-mini:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.pilar-mini h6 {
    color: #1a1d20;
    font-weight: 800;
    font-size: 0.85rem;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.pilar-mini i { font-size: 1.4rem; }

.bg-primary-transparent {
    background: rgba(0, 180, 216, 0.8);
    backdrop-filter: blur(5px);
}


/* ============================================================
   11. SERVICES / CASES
   ============================================================ */

/* Slider Servicios */
.swiper-servicios {
    padding: 1px 0 25px 0 !important;
}

/* Hacer las flechas más pequeñas y elegantes */
.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 20px !important;
    font-weight: bold;
}

/* Personalizar puntitos de paginación */
.swiper-pagination-bullet-active {
    background: var(--primary) !important;
}

.case-item img { 
    transition: .5s;
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.case-item:hover img { transform: scale(1.2); }

.case-overlay {
    position: absolute;
    padding: 30px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    background: linear-gradient(rgba(20, 24, 62, 0), var(--dark));
    z-index: 1;
}

.case-overlay small {
    display: inline-block;
    padding: 3px 15px;
    color: #FFFFFF;
    background: rgba(20, 24, 62, .7);
    border-radius: 25px;
    margin-bottom: 15px;
}

.case-overlay span.btn:hover {
    color: var(--primary);
    background: #FFFFFF;
    border-color: #FFFFFF;
}

/* Tarjetas flip */
.bg-transparent,
.row.bg-transparent {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.flip-card {
    background-color: transparent;
    height: 280px;
    perspective: 1500px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner { transform: rotateY(180deg); }

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
    border: 1px solid #ededed;
}

.flip-card-front {
    background: #ffffff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.flip-card-front i    { font-size: 2.5rem; color: #1a1d20; margin-bottom: 15px; transition: 0.3s; }
.flip-card-front h4   { font-size: 0.95rem; font-weight: 900; text-transform: uppercase; color: #1a1d20; letter-spacing: 1px; }
.flip-card:hover .flip-card-front i { color: #00b4d8; }

.flip-card-back { background: linear-gradient(145deg, #e9ecef, #f8f9fa); transform: rotateY(180deg); }
.flip-card-back h5 { font-size: 0.85rem; font-weight: 800; color: #1a1d20; margin-bottom: 10px; }
.flip-card-back p  { font-size: 0.8rem; color: #495057; }


/* ============================================================
   12. COUNTER / STATS (PARALLAX)
   ============================================================ */
.counter-parallax {
    position: relative;
    padding: 40px 0;
    background-image: url('../img/index/fondos/bg-counter.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}

.counter-parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 29, 32, 0.2);
    z-index: 1;
}

.counter-section {
    border: 1px solid rgba(0, 242, 255, 0.2);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

/* FIX: Corregida opacidad de 1.4 → 1 (máximo válido) */
.counter {
    text-shadow: 0 0 15px rgba(0, 242, 255, 1);
    font-family: 'Courier New', Courier, monospace;
}

.counter-value {
    font-size: 3rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 5px;
    letter-spacing: -1px;
    display: block;
}

.metric-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #00b4d8;
    letter-spacing: 2px;
    opacity: 0.8;
}

.metric-box { padding: 20px 10px; transition: transform 0.3s ease; }
.metric-box:hover { transform: translateY(-5px); }

.border-end-custom { border-right: 1px solid rgba(255, 255, 255, 0.1); }

.stats-item i { transition: 0.5s; }
.stats-item:hover i { transform: scale(1.2) translateY(-5px); color: #fff; }



/* ============================================================
   13. BLOG
   ============================================================ */
.blog-item {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid #f0f0f0;
}

.blog-item:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.blog-img { position: relative; height: 220px; }

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-item:hover .blog-img img { transform: scale(1.1); }

.blog-date {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: var(--primary);
    color: #ffffff;
    padding: 5px 15px;
    font-weight: 800;
    font-size: 0.8rem;
    border-radius: 5px;
}

.blog-text { padding: 25px; }

.blog-title {
    color: #1a1d20 !important;
    font-weight: 900;
    font-size: 1.15rem;
    line-height: 1.4;
    margin-bottom: 15px;
    transition: 0.3s;
}

.blog-item:hover .blog-title { color: var(--primary) !important; }

.blog-text p {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ============================================================
   14. EQUIPO
   ============================================================ */
.team-ultra-mini {
    background: #fff;
    border-radius: 15px;
    border: 1px solid #eee;
    transition: 0.3s ease;
    height: 100%;
    overflow: hidden;
    padding-top: 25px;
}

.team-ultra-mini:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-color: #d1d1f7;
}

.team-photo-wrapper {
    width: 50%;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 50%;
    border: 4px solid #f8f9fa;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.team-ultra-mini:hover .team-photo-wrapper {
    border-color: #161695;
    transform: scale(1.05);
}

.team-photo-wrapper img { width: 100%; height: 100%; object-fit: cover; }

.team-meta h6 { font-size: 0.9rem; font-weight: 700; }

.team-quote {
    font-size: 0.75rem;
    color: #666;
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 10px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.team-links-compact { opacity: 0.5; transition: 0.3s; }
.team-ultra-mini:hover .team-links-compact { opacity: 1; }

.team-links-compact a        { color: #888 !important; margin: 0 8px; font-size: 14px; transition: 0.3s; }
.team-links-compact a:hover  { color: #161695 !important; transform: scale(1.2); }


/* ============================================================
   15. GALERÍA
   ============================================================ */
.gallery-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 4 / 3;
    cursor: pointer;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.gallery-icon {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(22, 22, 149, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.5s;
    color: white;
    font-size: 24px;
}

.gallery-thumb:hover img          { transform: scale(1.1); }
.gallery-thumb:hover .gallery-icon { opacity: 1; }

.lb-container { border-radius: 10px !important; }


/* ============================================================
   16. FAQ / ACORDEÓN — FIX: Bloques duplicados unificados
   ============================================================ */
/* FIX: Unificados los dos bloques de .accordion-item */
.accordion-item {
    background-color: #ffffff;
    border: none;
    border-radius: 12px !important;
    overflow: hidden;
    transition: 0.3s;
}

.accordion-item:hover { transform: translateX(5px); }

.accordion-button {
    font-size: 1.05rem;
    transition: 0.3s ease;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,.125);
    background-color: #fafafa;
}

/* FIX: Unificados los dos bloques de .accordion-button:not(.collapsed) */
.accordion-button:not(.collapsed) {
    color: var(--primary) !important;
    background-color: rgba(22, 22, 149, 0.05);
    box-shadow: none;
}

/* FIX: Unificados los dos bloques de .accordion-button::after */
.accordion-button::after {
    filter: grayscale(1);
    transform: scale(0.8);
    background-size: 1rem;
}

.accordion-body { line-height: 1.6; font-size: 0.95rem; }


/* ============================================================
   17. NEWSLETTER / PARALLAX
   ============================================================ */
.newsletter-parallax {
    position: relative;
    padding: 50px 0;
    background-image: url('../img/index/fondos/bg-newsletter.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 29, 32, 0.85);
    z-index: 1;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.newsletter-parallax .form-control::placeholder { color: rgba(255, 255, 255, 0.3) !important; }

.legal-box {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: 10px;
}

.form-check-input {
    background-color: transparent;
    border-color: #00b4d8;
}

.form-check-input:checked {
    background-color: #00b4d8;
    border-color: #00b4d8;
}
.form-check-input a{
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}


/* ============================================================
   18. CONTACTO
   ============================================================ */
.contact-card {
    background: linear-gradient(145deg, #f8f9ff 0%, #ffffff 50%, #f0f4ff 100%) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 15px;
}

.contact-card:hover {
    background: linear-gradient(145deg, #f0f4ff 0%, #ffffff 50%, #e8f0ff 100%) !important;
    border-color: rgba(22, 22, 149, 0.2) !important;
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(22, 22, 149, 0.1) !important;
}

.border-dashed-2 { border: 2px dashed #dee2e6; }
.backdrop-blur   { backdrop-filter: blur(10px); }

.map-container {
    filter: grayscale(1) contrast(1.1);
    border-radius: 20px;
    overflow: hidden;
}

.upload-zone { border: 2px dashed #161695; transition: 0.3s; }
.upload-zone:hover { background-color: #f0f2ff !important; }

.modal-content.rounded-20 { border-radius: 25px; }

.modal-body .form-control,
.modal-body .form-select {
    background-color: #f8f9fa;
    border: 1px solid #eee;
    font-size: 0.9rem;
}

.modal-body .form-control:focus {
    background-color: #fff;
    border-color: #161695;
    box-shadow: none;
}

.form-floating > .form-control:focus,
.form-floating > .form-control:not(:placeholder-shown) {
    padding-top: 1.625rem;
    padding-bottom: .625rem;
}

.list-group-item.active {
    background-color: #161695;
    border-color: #161695;
}

#faqContact .accordion-item {
    border: none !important;
    background: rgba(255,255,255,0.9) !important;
    border-radius: 12px !important;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    overflow: hidden;
}

#faqContact .accordion-button {
    background: transparent !important;
    border: none !important;
    color: #1a1d20 !important;
    font-weight: 600 !important;
    padding: 16px 20px !important;
    font-size: 0.95rem;
}

#faqContact .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #161695 0%, #00b4d8 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(22,22,149,0.3) !important;
}

#faqContact .accordion-button::after {
    filter: brightness(0) invert(1);
}

#faqContact .accordion-body {
    background: rgba(248,249,255,0.8) !important;
    color: #495057 !important;
    padding: 20px !important;
    font-size: 0.9rem;
    border-top: 1px solid rgba(22,22,149,0.1) !important;
}


/* ── CONPANIA  EVOLUCIÓN ───────────────────────────────────────── */
.evolution-section {
    background: #f8faff;
    position: relative;
}

/* ── Wrapper general ───────────────────────────────── */
.timeline-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 0 20px;
}

/* Línea vertical central */
.timeline-wrapper::before {
    content: '';
    position: absolute;
    left: 100px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom,
        var(--primary),
        #00b4d8 50%,
        rgba(0, 180, 216, 0.2) 100%);
}

/* ── Cada item ─────────────────────────────────────── */
.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item-last {
    margin-bottom: 0;
}

/* ── Año ───────────────────────────────────────────── */
.timeline-year {
    width: 90px;
    flex-shrink: 0;
    text-align: right;
    padding-right: 10px;
    padding-top: 16px;
}

.timeline-year span {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.7;
    line-height: 1;
    display: block;
}

.timeline-year-active span {
    opacity: 1;
    color: #00b4d8;
    font-size: 1.5rem;
}

/* ── Punto ─────────────────────────────────────────── */
.timeline-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid var(--primary);
    flex-shrink: 0;
    margin-top: 18px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.timeline-dot-active {
    background: #00b4d8;
    border-color: #00b4d8;
    box-shadow: 0 0 0 5px rgba(0, 180, 216, 0.2),
                0 0 0 10px rgba(0, 180, 216, 0.1);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 0 5px rgba(0,180,216,0.2), 0 0 0 10px rgba(0,180,216,0.1); }
    50%       { box-shadow: 0 0 0 8px rgba(0,180,216,0.15), 0 0 0 16px rgba(0,180,216,0.05); }
}

/* ── Tarjeta ───────────────────────────────────────── */
.timeline-card {
    flex: 1;
    background: #ffffff;
    border-radius: 16px;
    padding: 22px 24px;
    margin-left: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    border-left: 4px solid transparent;
    transition: all 0.35s ease;
    position: relative;
}

.timeline-card:hover {
    transform: translateX(6px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-left-color: var(--primary);
}

.timeline-card-active {
    background: linear-gradient(135deg, #f0f8ff, #e8f7fb);
    border-left-color: #00b4d8 !important;
    box-shadow: 0 8px 30px rgba(0, 180, 216, 0.15);
}

.timeline-card h5 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.timeline-card p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* ── Icono dentro de la tarjeta ────────────────────── */
.timeline-card-icon {
    float: right;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), #00b4d8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 16px;
    margin-bottom: 8px;
}

.timeline-card-icon i {
    color: #ffffff;
    font-size: 1rem;
}

.timeline-icon-active {
    background: linear-gradient(135deg, #00b4d8, #0090aa);
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.4);
}

/* ── Badge "Hoy" ───────────────────────────────────── */
.badge-now {
    display: inline-block;
    background: #00b4d8;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 10px;
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 575.98px) {
    .timeline-wrapper::before {
        left: 70px;
    }

    .timeline-year {
        width: 60px;
    }

    .timeline-year span {
        font-size: 1.1rem;
    }

    .timeline-card {
        padding: 16px 16px;
        margin-left: 14px;
    }

    .timeline-card-icon {
        width: 34px;
        height: 34px;
    }

    .timeline-card-icon i {
        font-size: 0.85rem;
    }
}

/* ============================================================
   19. FOOTER
   ============================================================ */

.footer {
    max-width: 98vw !important; /* Casi todo el ancho */
    width: 100%;
    background: url(../img/index/footer.png) center center no-repeat;
    background-size: contain;
    font-family: "Open Sans", sans-serif !important;  
    font-size: 0.9rem !important;
    line-height: 1.5;
}

.logo-footer {
    height: 65px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.footer h6 {
     font-family: "Open Sans", sans-serif !important;
     color: rgba(255,255,255,.5);  
 }

.footer a {
    text-decoration: none;
    color: rgba(255,255,255,.5);
}

.footer a:hover {
    color: var(--secondary);
}

.footer a.enlaces {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    transition: .3s;
}

.footer p{
  margin-bottom: 0.6rem !important;
  margin-bottom: 0.6rem !important;
}

.footer .enlaces {
    display: block;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    margin-bottom: 5px;
    transition: 0.3s;
}

.footer .enlaces::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .enlaces:hover {
    letter-spacing: 0.8px;
    box-shadow: none;
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.5);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 40px;
    transition: .3s;
}

.footer .btn.btn-social:hover { color: var(--primary); }


/* FIX: rgba(256...) corregido a rgba(255...) */
.footer .copyright {
    padding: 25px 0;
    font-size: 14px;
    border-top: 1px solid #373636;
}

.footer .copyright a       { color: rgba(255,255,255,.5); }
.footer .copyright a:hover { color: #FFFFFF; }

@media (min-width: 576px) {  /* móviles grandes / vertical-tablet pequeña */ }

@media (min-width: 768px) {  /* tablet */ }

@media (min-width: 992px) {  /* portátil pequeño / MAC 13' */ }


@media (min-width: 1200px) { /* escritorio grande */ 


}

@media (min-width: 1400px) { /* pantallas muy grandes / wide */ 

}






/* ============================================================
   20. UTILIDADES
   ============================================================ */
/* FIX: Unificado — se conserva una sola declaración */
.rounded-20 { border-radius: 20px; }

.shadow-sm   { box-shadow: 0 .125rem .25rem rgba(0,0,0,.075) !important; }
.shadow-blue { box-shadow: 0 10px 30px rgba(22, 22, 149, 0.4); }

.hover-lift { transition: transform 0.3s ease, box-shadow 0.3s ease; }
/* FIX: 'shadow' no es una propiedad CSS válida, corregido a 'box-shadow' ↑ */
.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.1) !important;
}

.bg-soft-primary { background-color: rgba(22, 22, 149, 0.1); padding: 15px; display: inline-block; }
.bg-soft-danger  { background-color: rgba(220, 53, 69, 0.1);  padding: 15px; display: inline-block; }

.tech-info-divider {
    background-color: #f8f9fa;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.tech-item {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.65rem;
    letter-spacing: 1px;
}

.tech-item .label { color: #888; font-weight: 400; margin-right: 5px; }
.tech-item .value { color: #1a1d20; font-weight: 700; }

.active-status {
    color: #28a745 !important;
    position: relative;
    padding-left: 12px;
}

.active-status::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: #28a745;
    border-radius: 50%;
    animation: blink 2s infinite;
}

.value-divider {
    background-color: #fbfbfb;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.value-divider i { font-size: 1.2rem; opacity: 0.8; color: var(--primary); }
.value-divider .col-md-4:hover i { transform: scale(1.1); color: #1a1d20 !important; transition: 0.3s; }

.grayscale {
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.4s ease;
    max-height: 80px;
    width: auto;
    display: block;
    margin: 0 auto;
}

.partner-logo:hover .grayscale { filter: grayscale(0%); opacity: 1; transform: scale(1.05); }

.grayscale-logos .cert-item {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.grayscale-logos .cert-item img {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}
.grayscale-logos .cert-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.grayscale-logos .cert-item:hover { filter: grayscale(0%); opacity: 1; transform: scale(1.05); }
.cert-item p { color: #666; font-size: 0.75rem; }

.border-end-md   { /* solo en escritorio — ver media query */ }
.border-end-custom { border-right: 1px solid rgba(255, 255, 255, 0.1); }
.border-start-custom { /* solo en escritorio — ver media query */ }

/* Slider compacto */
#compactSlider { border: 1px solid #eee; }
#compactSlider .carousel-item img { filter: saturate(0.8); transition: transform 0.5s ease; }
#compactSlider:hover .carousel-item img { transform: scale(1.03); }

.carousel-control-prev-icon,
.carousel-control-next-icon { background-size: 50% 50%; }


/* ============================================================
   21. MEDIA QUERIES GLOBALES
   ============================================================ */
@media (max-width: 768px) {
    .border-end-custom { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding-bottom: 20px; }
    .counter-value     { font-size: 2.2rem; }
    .grayscale-logos   { gap: 30px !important; }
    .cert-item img     { max-height: 50px !important; }
}

@media (min-width: 768px) {
    .border-end-md       { border-right: 1px solid #eee; }
    .border-start-custom { border-left: 1px solid rgba(255, 255, 255, 0.1); }
}


/* ============================================================
   22. ANIMACIONES (@keyframes)  — FIX: electricScan deduplicado
   ============================================================ */
@keyframes entradaLogo {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes entradaMenu {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* FIX: Eliminada la copia duplicada de electricScan */
@keyframes electricScan {
    0%   { background-position: -200% -200%; }
    100% { background-position: 200% 200%; }
}

@keyframes elegantGrow {
    0%, 100% { transform: perspective(1000px) rotateY(-10deg) rotateX(0deg) scale(1.1); }
    50%       { transform: perspective(1000px) rotateY(-5deg)  rotateX(2deg)  scale(1.2); }
}

@keyframes bounce-slow {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

.animate-bounce-slow { animation: bounce-slow 4s infinite ease-in-out; }

@keyframes blink {
    0%   { opacity: 1; }
    50%  { opacity: 0.3; }
    100% { opacity: 1; }
}

/* ============================================================
   23. COOKIES
   ============================================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3000;
    background: #111827;
    color: #fff;
    padding: 12px 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.cookie-banner .cookie-text {
    max-width: 70%;
}
.cookie-banner .cookie-actions {
    white-space: nowrap;
}

.dropdown-item.bg-primary {
    color: #ffffff !important;
}
.dropdown-item.bg-primary:hover {
    color: #ffffff !important;
    background-color: #0d4f8f !important;
}

/* --- ESTILO LED DE ESTADO (Parpadeo Suave) --- */
.status-led-green {
    width: 10px;
    height: 10px;
    background-color: #28a745; /* Verde éxito Bootstrap */
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(40, 167, 69, 0.7);
    animation: ledStatusBlink 2.5s infinite ease-in-out;
}

@keyframes ledStatusBlink {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 8px rgba(40, 167, 69, 0.9);
    }
    50% {
        opacity: 0.2;
        transform: scale(0.95);
        box-shadow: 0 0 2px rgba(40, 167, 69, 0.2);
    }
}

/* --- AJUSTES GENERALES --- */
.rounded-20 { border-radius: 20px !important; }
.backdrop-blur { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.ls-1 { letter-spacing: 1px; }

/* Para asegurar jerarquía */
.z-index-1 { z-index: 1; }
.z-index-2 { z-index: 2; }
.z-index-3 { z-index: 3; }
.z-index-10 { z-index: 10; }

/* --- LED DE ESTADO AZUL (ANÁLISIS) --- */
.status-led-blue {
    width: 10px;
    height: 10px;
    background-color: #ffffff; /* Blanco sobre fondo azul */
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    animation: ledStatusBlink 2s infinite ease-in-out;
}

/* --- ANIMACIÓN BARRAS DE DATOS --- */
@keyframes barGrow {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.4); }
}

/* Reutilizamos el parpadeo que ya definimos pero con el color de fondo adecuado */
@keyframes ledStatusBlink {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(0.9);
    }
}

.backdrop-blur { 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px); 
}

/* --- LED DE ESTADO NARANJA (CONTROL TÉRMICO) --- */
.status-led-orange {
    width: 10px;
    height: 10px;
    background-color: #fd7e14; /* Naranja térmico */
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(253, 126, 20, 0.6);
    animation: ledStatusBlink 1.5s infinite ease-in-out;
}

/* Tipografía técnica para lecturas */
.fw-mono {
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
}

/* Reutilización del parpadeo con ajuste de velocidad */
@keyframes ledStatusBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.9); }
}

.bg-soft-success {
    background-color: rgba(40, 167, 69, 0.15);
}

.rounded-20 { border-radius: 20px !important; }

/* LED Azul de Procesamiento Data */
.status-led-blue {
    width: 8px;
    height: 8px;
    background-color: #0d6efd;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(13, 110, 253, 0.8);
    animation: ledStatusBlink 2s infinite ease-in-out;
}

/* Estilo de módulos de tecnología */
.rounded-15 { border-radius: 15px !important; }
.leading-tight { line-height: 1.25; }

/* Efecto hover en los insights */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Badges suaves */
.bg-soft-primary { background-color: rgba(13, 110, 253, 0.1) !important; }
.bg-soft-secondary { background-color: rgba(108, 117, 125, 0.1) !important; }
.bg-soft-dark { background-color: rgba(33, 37, 41, 0.1) !important; }

/* Reutilización de animación de parpadeo */
@keyframes ledStatusBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.9); }
}


.whatsapp-float {
    position: fixed;
    bottom: 90px;
    right: 30px;
    z-index: 9998;
}

.whatsapp-float a {
    display: block;
    width: 50px;
    height: 50px;
    background: #25d366;
    color: #ffffff;
    border-radius: 50%;
    text-align: center;
    line-height: 52px;
    font-size: 32px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float a:hover {
    transform: scale(1.2) translateY(-5px);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    text-decoration: none;
    color: #ffffff;
}

/* Animación sutil */
@keyframes pulse-whatsapp {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Ocultar en móvil si prefieres (opcional) */
@media (max-width: 991.98px) {
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
    }
    .whatsapp-float a {
        width: 56px;
        height: 56px;
        line-height: 58px;
        font-size: 28px;
    }
}

/* Contenedor lateral de pestañas */
.side-tabs {
    position: fixed;
    top: 79%;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9998; /* por debajo del navbar, por encima del contenido */
}

/* Estilo base de cada pestaña */
.side-tab {
    position: relative;
    right: -140px; /* oculta parte de la pestaña, solo se ve la oreja */
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    min-width: 180px;
    border-radius: 999px 0 0 999px;
    border: none;
    cursor: pointer;
    background: #ffffff;
    color: #111111;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: right 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

/* Iconos dentro de la pestaña */
.side-tab i {
    font-size: 1rem;
}

/* Hover: se desliza hacia dentro */
.side-tab:hover {
    right: 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
    transform: translateX(-2px);
}

/* Colores específicos */
.side-tab-whatsapp {
    background: #25d366;
    color: #ffffff;
}

.side-tab-whatsapp i {
    font-size: 1.2rem;
}

.side-tab-budget {
    background: #00b4d8;
    color: #ffffff;
}

/* Asegurar que el botón "subir arriba" mantiene su esquina inferior derecha */
#backToTop {
    z-index: 9999; /* ligeramente por encima de las pestañas si se solaparan */
}


/* ==========================================================================
   AJUSTES RESPONSIVE FINOS (AÑADIDOS PARA MÓVIL/TABLET)
   ========================================================================== */

/* DESACTIVAR PARALLAX EN MÓVIL Y TABLET PARA EVITAR SALTOS */
@media (max-width: 1024px) {
  .hero-header,
  .page-header-refined,
  .newsletter-parallax,
  .counter-parallax {
    background-attachment: scroll !important;
    background-position: center center !important;
  }
  .text-mobile-justify {
        text-align: left;
    }
}

/* AJUSTES PARA TABLETS (< 992px) */
@media (max-width: 991.98px) {
  
  .hero-header {
    /* En móvil suavizamos el recorte al 5% para que no "coma" mucho espacio arriba */
        min-height: 100svh;
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%);
        padding-top: 60px !important;
        padding-bottom: 20px;
    
  }
  .hero-header h1 {
        font-size: 1.4rem;
    }
    .text-mobile-justify {
        text-align: left;
    }
}

/* AJUSTES PARA MÓVILES (< 768px) */
@media (max-width: 767.98px) {
  .hero-header {
    /* En móvil suavizamos el recorte al 5% para que no "coma" mucho espacio arriba */
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%);
        padding-top: 80px !important;
        padding-bottom: 20px;
  }

    .hero-header h1 {
        font-size: 2.2rem;
    }

    .main-title {
        padding-left: 18px;
        font-size: 2.2rem;
    }
    
    .main-title::before {
        width: 3px;
    }

    .text-mobile-justify {
        text-align: justify;
        text-justify: inter-word; /* Mejora el espaciado entre palabras */
    }

    .top-bar {
        
         background-color: #eef1f3;
    }

    /* 1. Header con curva sutil y Parallax */
    .page-header-refined {
        background: linear-gradient(rgba(15, 15, 90, 0.8), rgba(15, 15, 90, 0.8)), 
                    url('/img/index/fondos/bg-newsletter.jpg') center center no-repeat;
        background-size: cover;
        background-attachment: fixed;
        padding: 80px 0 15px 0;
        /* Curva mucho más pequeña y delicada al final */
        clip-path: ellipse(125% 100% at 50% 0%); 
        border-bottom: 4px solid #161695;
    }

      .carousel-item img {
        height: 225px !important;
      }

      .pilar-item,
      .team-ultra-mini {
        text-align: left !important;
      }

      .cookie-banner {
        flex-direction: column;
        text-align: center;
      }
      .cookie-banner .cookie-text {
        max-width: 100% !important;
        margin-bottom: 10px;
      }
      
      .hero-cards {
            margin-top: 0px !important;
        padding: 10px 0 35px 0 !important;
        }

    .hero-cards > [class*="col-"] {
            flex: 0 0 33.333% !important;
            max-width: 33.333% !important;
        }
    .hero-service-card {
        top: 0;
        padding: 16px 8px 14px;
    }

    .hero-service-icon {
        width: 48px;
        height: 48px;
    }

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

    .hero-service-card h6 {
        font-size: 0.8rem;
    }
    .navbar-collapse{
        width: 290px;
    }
    .navbar .navbar-nav .nav-link{
       font-size: 0.8rem !important;
    }
    .dropdown-menu .dropdown-item {
        font-size: 14px;
        padding: 4px 16px 4px 32px !important;  /* espacio para la flecha */
    }
    .nav-item.dropdown > .dropdown-menu {
        width: 98% !important;
    }

    .footer .footer-menu a {
        margin-right: 5px;
        padding-right: 5px;
        border-right: 1px solid rgba(255, 255, 255, .1);
    }

    .footer .footer-menu a:last-child {
        margin-right: 0;
        padding-right: 0;
        border-right: none;
    }
}

/* AJUSTES PARA MÓVILES PEQUEÑOS (< 576px) */
@media (max-width: 575.98px) {
    .hero-header h1 {
        font-size: 1.6rem;
    }
  .btn {
    font-size: 0.85rem !important;
    padding: 0.5rem 1rem !important;
  }

  .hero-header {
    padding-top: 140px !important;
    padding-bottom: 20px !important;
  }

}

@media (max-width: 380px) {
    .hero-header h1 {
        font-size: 1.4rem;
    }
}





