/* ===== MODERNIZACIÓN HOME — HelpGroup ===== */

/* --- Tipografía --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

body {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    background: #0d0d0d !important;
}

/* ===== NAVBAR MEJORADO ===== */

/* Base: negro sólido */
.navbar-inverse {
    background: #000 !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 84, 0, 0.12) !important;
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: box-shadow 0.35s ease;
    /* Cubre todo el ancho para evitar desbordamiento blanco */
    width: 100%;
    left: 0;
    right: 0;
}

/* Neutraliza el margin-right negativo de Bootstrap .navbar-right */
.navbar-inverse .navbar-right {
    margin-right: 0 !important;
}

/* Asegura que el header no muestre fondo blanco */
header {
    background: #000 !important;
    position: sticky;
    top: 0;
    z-index: 1030;
}

/* Scrolled: sigue negro, suma sombra */
.navbar-inverse.scrolled {
    background: #000 !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.7) !important;
}

/* Brand text: oculto en el nav — solo vive en el home hero */
.navbar-brand .brand-text {
    display: none;
}

/* Hamburger toggle */
.navbar-inverse .navbar-toggle {
    border-color: rgba(255, 255, 255, 0.18) !important;
    background: transparent !important;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.navbar-inverse .navbar-toggle:hover,
.navbar-inverse .navbar-toggle:focus {
    background: rgba(255, 84, 0, 0.1) !important;
    border-color: rgba(255, 84, 0, 0.45) !important;
}

.navbar-inverse .navbar-toggle .icon-bar {
    background-color: rgba(255, 255, 255, 0.75) !important;
    transition: background-color 0.2s ease;
}

.navbar-inverse .navbar-toggle:hover .icon-bar {
    background-color: #FF5400 !important;
}

/* Menú colapsado en mobile */
.navbar-inverse .navbar-collapse {
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    background: #000 !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}

/* ── Links (aplica mobile y desktop) ── */
.navbar-inverse .navbar-nav > li > a {
    font-family: 'Inter', sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 1.8px !important;
    text-transform: uppercase !important;
    color: rgba(255, 255, 255, 0.58) !important;
    transition: color 0.25s ease,
                box-shadow 0.3s cubic-bezier(0.23, 1, 0.32, 1) !important;
    background: transparent !important;
}

/* Hover / Focus / Active — sin fondo blanco de Bootstrap */
.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus,
.navbar-inverse .navbar-nav > li > a:active,
.navbar-inverse .navbar-nav > .open > a,
.navbar-inverse .navbar-nav > .open > a:hover,
.navbar-inverse .navbar-nav > .open > a:focus {
    color: #fff !important;
    background: transparent !important;
    background-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* Activo */
.navbar-inverse .navbar-nav > li.active > a,
.navbar-inverse .navbar-nav > li.active > a:hover,
.navbar-inverse .navbar-nav > li.active > a:focus {
    color: #FF5400 !important;
    background: transparent !important;
}

/* ── Desktop: layout flex + underline animado + pill CTA ── */
@media (min-width: 768px) {

    /* Navbar y logo — altura fija e igual en todas las páginas */
    .navbar-inverse {
        height: 130px !important;
        min-height: 130px !important;
    }

    .navbar-inverse .navbar-brand {
        padding: 0 !important;
        height: 130px !important;
        display: flex;
        align-items: center;
    }

    .navbar-inverse .navbar-brand img.brand-logo {
        height: 130px !important;
        width: auto;
        display: block;
        object-fit: contain;
    }

    /* Container flex: logo izquierda, nav centrado */
    .navbar-inverse .container {
        display: flex !important;
        align-items: center;
        height: 130px;
    }

    .navbar-inverse .navbar-header {
        float: none !important;
        flex-shrink: 0;
        height: 130px;
        display: flex;
        align-items: center;
    }

    .navbar-inverse .navbar-collapse {
        flex: 1;
        display: flex !important;
        align-items: center;
        justify-content: center;
        float: none !important;
        padding: 0 !important;
        margin: 0 !important;
        height: auto !important;
        max-height: none !important;
        border: none !important;
    }

    /* Flex centering: alinea todos los links a la misma altura */
    .navbar-inverse .navbar-collapse .navbar-nav {
        display: flex !important;
        align-items: center;
        float: none !important;
        margin: 0;
        height: 130px;
    }

    .navbar-inverse .navbar-collapse .navbar-nav > li {
        float: none !important;
        display: flex;
        align-items: center;
        height: 130px;
    }

    /* Underline naranja inset al hover/activo */
    .navbar-inverse .navbar-nav > li > a {
        box-shadow: inset 0 -3px 0 transparent;
        padding-left: 14px !important;
        padding-right: 14px !important;
        line-height: 1.4 !important;
        outline: none !important;
    }

    .navbar-inverse .navbar-nav > li > a:hover,
    .navbar-inverse .navbar-nav > li > a:focus {
        box-shadow: inset 0 -3px 0 #FF5400;
        outline: none !important;
    }

    .navbar-inverse .navbar-nav > li.active > a,
    .navbar-inverse .navbar-nav > li.active > a:hover,
    .navbar-inverse .navbar-nav > li.active > a:focus {
        box-shadow: inset 0 -3px 0 #FF5400;
    }

    /* Contacto → pill CTA naranja — sin margin, alineado por flex */
    .navbar-inverse .navbar-nav > li:last-child > a,
    .navbar-inverse .navbar-nav > li:last-child > a:link,
    .navbar-inverse .navbar-nav > li:last-child > a:visited {
        color: #fff !important;
        background: #FF5400 !important;
        border-radius: 6px;
        margin-left: 10px;
        padding: 10px 18px !important;
        line-height: 1 !important;
        box-shadow: 0 4px 18px rgba(255, 84, 0, 0.35) !important;
        transition: background 0.25s ease,
                    box-shadow 0.25s ease,
                    transform 0.2s ease !important;
    }

    .navbar-inverse .navbar-nav > li:last-child > a:hover {
        background: #e04800 !important;
        color: #fff !important;
        transform: translateY(-1px);
        box-shadow: 0 6px 24px rgba(255, 84, 0, 0.5) !important;
    }

    /* Sin underline inset en el pill */
    .navbar-inverse .navbar-nav > li:last-child > a,
    .navbar-inverse .navbar-nav > li:last-child > a:hover {
        box-shadow: 0 4px 18px rgba(255, 84, 0, 0.35) !important;
    }

    .navbar-inverse .navbar-nav > li:last-child > a:hover {
        box-shadow: 0 6px 24px rgba(255, 84, 0, 0.5) !important;
    }
}

/* ── Mobile: navbar y logo ── */
@media (max-width: 767px) {
    body header,
    .navbar-inverse {
        min-height: 80px !important;
        height: 80px !important;
    }

    .navbar-inverse .navbar-brand {
        height: 80px !important;
        padding: 0 10px !important;
    }

    .navbar-inverse .navbar-brand img.brand-logo {
        height: 72px !important;
    }
}

/* ── Mobile: links en lista vertical ── */
@media (max-width: 767px) {

    .navbar-inverse .navbar-nav > li > a {
        padding: 13px 20px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
        letter-spacing: 1.2px !important;
    }

    .navbar-inverse .navbar-nav > li > a:hover {
        background: rgba(255, 84, 0, 0.07) !important;
        color: #fff !important;
    }

    .navbar-inverse .navbar-nav > li:last-child > a {
        color: #FF5400 !important;
        background: transparent !important;
        font-weight: 700 !important;
    }
}

/* --- Hero carousel: overlay degradado y texto más impactante --- */
#myCarousel .fill {
    background-size: cover;
    background-position: center;
}

#myCarousel .item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.65) 0%,
        rgba(0, 0, 0, 0.25) 60%,
        rgba(255, 84, 0, 0.15) 100%
    );
    z-index: 1;
    pointer-events: none;
}

body #myCarousel .carousel-caption {
    z-index: 2;
    bottom: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    text-align: left;
    left: 8%;
    right: 30%;
    padding: 0;
    margin-bottom: 0 !important;
}

@media (max-width: 768px) {
    body #myCarousel .carousel-caption {
        left: 5% !important;
        right: 5% !important;
        text-align: center !important;
        top: 46% !important;
        width: auto !important;
        max-width: none !important;
    }

    #myCarousel .carousel-caption.slide-up--feature {
        right: 5% !important;
        left: 5% !important;
        width: auto !important;
        max-width: none !important;
    }

    #myCarousel .carousel-caption.slide-up--feature .slide-feature-card {
        padding: 22px 20px 24px;
        border-radius: 22px;
        width: 100%;
        max-width: none;
    }

    #myCarousel .carousel-caption.slide-up--feature .slide-pills {
        justify-content: center;
    }

    #myCarousel .carousel-control {
        display: none !important;
    }
}

@media (max-width: 768px) {
    #myCarousel .carousel-caption.slide-up--feature .banner_heading {
        font-size: 30px;
        line-height: 1.08;
        margin-bottom: 10px;
    }

    #myCarousel .carousel-caption.slide-up--feature .banner_txt {
        max-width: 100%;
        font-size: 13px;
        line-height: 1.45;
    }

    #myCarousel .carousel-caption.slide-up--feature .slide-pills {
        gap: 6px;
        margin-top: 12px;
    }

    #myCarousel .carousel-caption.slide-up--feature .slide-pills span {
        font-size: 10px;
        padding: 6px 10px;
    }

    #myCarousel .carousel-caption.slide-up--feature .slide-cta {
        margin-top: 16px;
        padding: 12px 22px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    body #myCarousel .carousel,
    body #myCarousel .carousel-inner {
        min-height: 500px;
        height: 74vh;
    }

    body #myCarousel .carousel-caption {
        top: 43% !important;
    }

    #myCarousel .carousel-caption.slide-up--feature .slide-feature-card {
        padding: 16px 12px 16px;
        border-radius: 18px;
    }

    #myCarousel .carousel-caption.slide-up--feature .slide-eyebrow {
        margin-bottom: 8px;
        font-size: 10px;
        letter-spacing: 1.2px;
    }

    #myCarousel .carousel-caption.slide-up--feature .banner_heading {
        font-size: 20px;
        line-height: 1.06;
        margin-bottom: 8px;
    }

    #myCarousel .carousel-caption.slide-up--feature .banner_txt {
        font-size: 11px;
        line-height: 1.32;
    }

    #myCarousel .carousel-caption.slide-up--feature .slide-pills {
        display: none;
    }

    #myCarousel .carousel-caption.slide-up--feature .slide-pills span {
        font-size: 8px;
        padding: 5px 7px;
    }

    #myCarousel .carousel-caption.slide-up--feature .slide-cta {
        width: 100%;
        max-width: 210px;
        margin-top: 14px;
        padding: 10px 14px;
        font-size: 12px;
    }

    #myCarousel .carousel-indicators {
        bottom: 18px;
    }
}

@media (max-width: 430px) {
    body #myCarousel .carousel,
    body #myCarousel .carousel-inner {
        min-height: 520px;
        height: 76vh;
    }

    body #myCarousel .carousel-caption {
        top: 41% !important;
        left: 6% !important;
        right: 6% !important;
    }

    #myCarousel .carousel-caption.slide-up--feature,
    #myCarousel .carousel-caption.slide-up--feature .slide-feature-card {
        width: 100% !important;
        max-width: 100% !important;
    }

    #myCarousel .carousel-caption.slide-up--feature .slide-feature-card {
        padding: 14px 12px 14px;
        min-height: 0;
    }

    #myCarousel .carousel-caption.slide-up--feature .slide-eyebrow {
        margin-bottom: 6px;
        padding: 5px 9px;
        font-size: 9px;
        letter-spacing: 1px;
    }

    #myCarousel .carousel-caption.slide-up--feature .banner_heading {
        font-size: 18px;
        line-height: 1.02;
        margin-bottom: 8px;
    }

    #myCarousel .carousel-caption.slide-up--feature .banner_txt {
        font-size: 10px;
        line-height: 1.3;
        max-width: 100%;
    }

    #myCarousel .carousel-caption.slide-up--feature .slide-cta {
        max-width: 190px;
        padding: 9px 12px;
        font-size: 11px;
        margin-top: 12px;
    }

    #myCarousel .carousel-indicators {
        bottom: 12px;
    }
}

#myCarousel .carousel-caption h1.banner_heading {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.15;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

#myCarousel .carousel-caption p.banner_txt {
    font-weight: 400;
    opacity: 0.92;
    text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

#myCarousel .carousel-caption.slide-up--feature {
    right: 12%;
    width: min(760px, 62vw);
    max-width: 760px;
}

#myCarousel .carousel-caption.slide-up--feature .slide-feature-card {
    width: 100%;
    max-width: 760px;
    padding: clamp(16px, 1.2vw, 18px) clamp(18px, 1.5vw, 20px) clamp(18px, 1.5vw, 20px);
    background: rgba(7, 10, 14, 0.66);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 26px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#myCarousel .carousel-caption.slide-up--feature .slide-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(255, 84, 0, 0.16);
    color: #ff8b42;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

#myCarousel .carousel-caption.slide-up--feature .slide-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

#myCarousel .carousel-caption.slide-up--feature .slide-pills span {
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.78);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

#myCarousel .carousel-caption.slide-up--feature .banner_heading {
    font-size: clamp(34px, 3.4vw, 46px);
    line-height: 1.06;
    margin-bottom: 12px;
}

#myCarousel .carousel-caption.slide-up--feature .banner_txt {
    font-size: clamp(13px, 1.15vw, 14px);
    line-height: 1.5;
    max-width: min(680px, 54vw);
}

#myCarousel .carousel-caption.slide-up--feature .slide-cta {
    margin-top: 18px;
}

@media (max-width: 1400px) {
    #myCarousel .carousel-caption.slide-up--feature {
        width: min(700px, 60vw);
    }
}

@media (max-width: 1200px) {
    #myCarousel .carousel-caption.slide-up--feature {
        width: min(620px, 58vw);
    }

    #myCarousel .carousel-caption.slide-up--feature .banner_txt {
        max-width: 100%;
    }
}

/* Botones CTA en slides */
.slide-cta {
    display: inline-block;
    margin-top: 28px;
    padding: 13px 36px;
    background: #FF5400;
    color: #fff !important;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none !important;
    border-radius: 4px;
    border: 2px solid #FF5400;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 20px rgba(255, 84, 0, 0.4);
}

.slide-cta:hover,
.slide-cta:focus {
    background: transparent;
    color: #fff !important;
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

/* Animación de entrada del caption */
@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

#myCarousel .item.active .carousel-caption {
    animation: none;
}

/* Quita la animación slide-up del banner principal */
body #myCarousel .slide-up {
    animation: none !important;
}

/* Ajuste visual del carrusel principal */
#myCarousel {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(255, 84, 0, 0.14), transparent 34%),
        linear-gradient(135deg, #060708 0%, #12151b 52%, #0b0d11 100%);
}

#myCarousel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: 0.28;
    pointer-events: none;
    z-index: 1;
}

#myCarousel .item {
    overflow: hidden;
}

#myCarousel .fill {
    position: relative;
    transform: scale(1.04);
}

#myCarousel .fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 50%, rgba(255, 84, 0, 0.22), transparent 30%),
        linear-gradient(90deg, rgba(7, 8, 11, 0.78) 0%, rgba(7, 8, 11, 0.48) 42%, rgba(7, 8, 11, 0.18) 72%, rgba(7, 8, 11, 0.6) 100%);
}

#myCarousel .fill--one {
    background-image:
        linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(255, 84, 0, 0.08)),
        url('../img/banner-slide-1.webp');
}

#myCarousel .fill--two {
    background-image:
        linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(36, 59, 107, 0.12)),
        url('../img/banner-slide-2.webp');
}

#myCarousel .fill--three {
    background-image:
        linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(255, 84, 0, 0.1)),
        url('../img/trabajo.png');
}

#myCarousel .item::before {
    background: linear-gradient(
        135deg,
        rgba(2, 2, 3, 0.78) 0%,
        rgba(8, 10, 14, 0.36) 50%,
        rgba(255, 84, 0, 0.12) 100%
    );
    z-index: 2;
}

body #myCarousel .carousel-caption {
    z-index: 3;
    padding: 28px 32px 30px;
    max-width: 720px;
    background: linear-gradient(135deg, rgba(8, 9, 12, 0.76), rgba(8, 9, 12, 0.34));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

body #myCarousel .carousel-caption h1.banner_heading {
    margin-bottom: 18px;
}

body #myCarousel .carousel-caption p.banner_txt {
    max-width: 580px;
    margin-bottom: 0;
}

#myCarousel .carousel-caption.slide-up--feature {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

#myCarousel .carousel-caption.slide-up--feature .slide-feature-card {
    background: linear-gradient(145deg, rgba(7, 10, 14, 0.84), rgba(15, 21, 32, 0.68));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 64px rgba(0, 0, 0, 0.38);
}

.slide-cta {
    padding: 14px 36px;
    background: linear-gradient(135deg, #ff7a1a 0%, #ff5400 55%, #eb4a00 100%);
    letter-spacing: 0.9px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 14px 32px rgba(255, 84, 0, 0.3);
}

.slide-cta:hover,
.slide-cta:focus {
    background: linear-gradient(135deg, #ff8b42 0%, #ff5b0f 60%, #e04600 100%);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 18px 34px rgba(255, 84, 0, 0.34);
}

#myCarousel .carousel-control {
    width: 56px;
    height: 56px;
    line-height: 54px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 10, 14, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

#myCarousel .carousel-control:hover,
#myCarousel .carousel-control:focus {
    background: rgba(255, 84, 0, 0.18);
    border-color: rgba(255, 84, 0, 0.4);
    transform: translateY(-50%) scale(1.04);
}

#myCarousel .carousel-indicators {
    bottom: 26px;
}

#myCarousel .carousel-indicators li {
    width: 12px;
    height: 12px;
    margin: 0 6px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.1);
}

#myCarousel .carousel-indicators .active {
    background: #ff5400;
    border-color: #ff5400;
    box-shadow: 0 0 0 6px rgba(255, 84, 0, 0.16);
}

@media (max-width: 768px) {
    body #myCarousel .carousel-caption {
        padding: 22px 18px 24px;
        border-radius: 22px;
    }
}

/* --- Barra de stats (entre hero y features) --- */
#stats-bar {
    background: #0d0d0d;
    padding: 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.stats-bar-inner {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: stretch;
    gap: 0;
}

.stat-item {
    text-align: center;
    padding: 24px 16px;
    border-right: 1px solid rgba(255,255,255,0.08);
    transition: background 0.2s;
}

.stat-item:last-child {
    border-right: none;
}

.stat-item:hover {
    background: rgba(255, 84, 0, 0.08);
}

.stat-number {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 30px;
    font-weight: 800;
    color: #FF5400;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

@media (max-width: 1199px) {
    .stats-bar-inner {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .stat-item:nth-child(3),
    .stat-item:nth-child(6) {
        border-right: none;
    }
}

@media (max-width: 600px) {
    .stats-bar-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .stat-item:nth-last-child(-n + 2) {
        border-bottom: none;
    }
}

@media (max-width: 420px) {
    .stats-bar-inner {
        grid-template-columns: 1fr;
    }

    .stat-item {
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .stat-item:last-child {
        border-bottom: none;
    }
}

/* --- Features section: dark + glassmorphism --- */
body #features {
    background: #0d0d0d !important;
    padding: 90px 0 100px;
    position: relative;
    overflow: hidden;
}

/* fondo decorativo con gradiente sutil */
#features::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(255, 84, 0, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* Header */
.features-header {
    text-align: center;
    margin-bottom: 60px;
}

.features-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #FF5400;
    margin-bottom: 14px;
}

.features-title {
    font-family: 'Inter', sans-serif;
    font-size: 42px;
    font-weight: 800;
    color: #fff !important;
    margin: 0 0 16px;
    letter-spacing: -1px;
    line-height: 1.1;
}

.features-title span {
    color: #FF5400;
}

.features-sub {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
}

/* Grid de cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 991px) {
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin: 0 auto;
    }
    .features-title {
        font-size: 32px;
    }
}

/* Cards */
.feature-card {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 3px solid #FF5400;
    border-radius: 14px;
    padding: 44px 36px 40px;
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.35s ease,
                border-color 0.35s ease,
                background 0.35s ease;
    cursor: default;
    will-change: transform;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 84, 0, 0.5);
    box-shadow:
        0 0 0 1px rgba(255, 84, 0, 0.2),
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(255, 84, 0, 0.08);
}

/* Línea inferior animada */
.card-line {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, #FF5400, transparent);
    border-radius: 0 0 14px 14px;
    transition: width 0.4s ease;
}

.feature-card:hover .card-line {
    width: 100%;
}

/* Icono */
.feature-card-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 28px;
}

.feature-card-icon .fa {
    font-size: 30px;
    color: #FF5400 !important;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-card-icon .fa {
    transform: scale(1.15);
}

/* Ring pulsante */
.icon-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 84, 0, 0.25);
    background: rgba(255, 84, 0, 0.08);
    animation: ringPulse 2.5s ease-in-out infinite;
}

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

.feature-card:hover .icon-ring {
    border-color: rgba(255, 84, 0, 0.6);
    background: rgba(255, 84, 0, 0.14);
    animation: none;
    transform: scale(1.08);
}

/* Texto */
.feature-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #fff !important;
    margin: 0 0 14px;
}

.feature-card p {
    font-size: 14.5px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

/* --- Scroll-reveal --- */
.reveal-card {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1),
                transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
    transition-delay: var(--card-delay, 0ms);
}

.reveal-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- News section: dark theme --- */
#news {
    padding: 80px 0 90px;
    background: #111;
}

#news .section-heading h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
}

#news .section-heading p.subheading {
    color: rgba(255, 255, 255, 0.45);
}

#news .section-heading span {
    color: #FF5400;
}

.news-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s cubic-bezier(0.23,1,0.32,1), box-shadow 0.3s ease, border-color 0.3s ease;
    background: rgba(255,255,255,0.04);
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
    border-color: rgba(255, 84, 0, 0.35);
}

.news-card img {
    transition: transform 0.5s ease;
    width: 100%;
    object-fit: cover;
    height: 180px;
    display: block;
}

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

.news-card h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    padding: 0 16px;
    margin-top: 14px;
}

.news-card p {
    color: rgba(255,255,255,0.5);
    font-size: 13.5px;
    line-height: 1.65;
    padding: 0 16px 20px;
}

/* ===== FOOTER MODERNO ===== */

#top-header {
    background: #0f0f0f;
    border-top: 3px solid #FF5400;
    padding: 48px 0;
    position: relative;
}

#top-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,84,0,0.4), transparent);
}

/* Fila del footer: alinear verticalmente */
#top-header .row {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
}

#top-header .top-header-links {
    display: flex;
    align-items: center;
}

/* Links de contacto */
#top-header .contact_links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 18px;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

#top-header .contact_links li {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

#top-header .contact_links li .fa {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 84, 0, 0.1);
    border: 1px solid rgba(255, 84, 0, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #FF5400 !important;
    flex-shrink: 0;
    transition: background 0.25s ease, border-color 0.25s ease;
}

#top-header .contact_links li:hover .fa {
    background: rgba(255, 84, 0, 0.2);
    border-color: rgba(255, 84, 0, 0.5);
}

#top-header .contact_links li a,
#top-header .contact_links li a:link,
#top-header .contact_links li a:visited {
    font-family: 'Inter', sans-serif !important;
    font-size: 13.5px !important;
    color: rgba(255, 255, 255, 0.65) !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

#top-header .contact_links li a:hover {
    color: #FF5400 !important;
}

/* Redes sociales */
#top-header .social_links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

#top-header .social {
    display: flex;
    justify-content: center;
    align-items: center;
}

#top-header .social_links li a,
#top-header .social_links li a:link,
#top-header .social_links li a:visited {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.55) !important;
    font-size: 20px;
    text-decoration: none !important;
    transition: background 0.25s ease,
                color 0.25s ease,
                border-color 0.25s ease,
                transform 0.2s ease;
}

#top-header .social_links li a .fa {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
    margin-right: 0 !important;
    margin-left: 0 !important;
    transform: translateX(0) translateY(0);
}

#top-header .social_links li a:hover {
    background: rgba(255, 84, 0, 0.15) !important;
    border-color: rgba(255, 84, 0, 0.5) !important;
    color: #FF5400 !important;
    transform: translateY(-3px);
}

/* Barra inferior */
#bottom-footer {
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 18px 0;
}

#bottom-footer .row {
    display: flex !important;
    align-items: center;
}

#bottom-footer .footer-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
}

#bottom-footer .footer-certificate {
    display: flex;
    align-items: center;
    justify-content: center;
}

#bottom-footer .copyright {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.3px;
    text-align: center;
}

#bottom-footer .copyright span {
    color: #FF5400;
    font-weight: 600;
}

#bottom-footer .footer-certificate img {
    height: 32px !important;
    opacity: 0.6;
    transition: opacity 0.25s ease;
    display: block;
}

#bottom-footer .footer-certificate img:hover {
    opacity: 1;
}

@media (max-width: 767px) {
    #top-header { padding: 36px 0; }
    #top-header .row { display: block !important; }
    #top-header .top-header-links { display: block; }
    #top-header .contact_links {
        flex-wrap: wrap;
        gap: 14px;
        justify-content: center;
    }
    #top-header .social_links { justify-content: center; margin-top: 20px; }
    #bottom-footer .copyright { text-align: center; margin-bottom: 10px; }
    #bottom-footer .footer-meta { gap: 12px; }
}

/* --- Home brand hero (solo index.html) --- */
#home-brand-hero {
    position: relative;
    background:
        linear-gradient(135deg, #090909 0%, #111214 52%, #0a0b0d 100%);
    overflow: hidden;
    padding: 80px 0 70px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 84, 0, 0.1);
}

#home-brand-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 28%, rgba(255, 84, 0, 0.14) 0%, transparent 28%),
        radial-gradient(circle at 82% 30%, rgba(255, 255, 255, 0.06) 0%, transparent 24%),
        radial-gradient(ellipse at 50% 110%, rgba(255, 84, 0, 0.14) 0%, transparent 65%);
    pointer-events: none;
    animation: heroGlowShift 16s ease-in-out infinite alternate;
}

#home-brand-hero::after {
    content: '';
    position: absolute;
    inset: -10%;
    background:
        linear-gradient(115deg, transparent 20%, rgba(255, 84, 0, 0.08) 48%, transparent 76%),
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 100% 100%, 28px 28px, 28px 28px;
    mix-blend-mode: screen;
    opacity: 0.45;
    transform: translate3d(0, 0, 0);
    pointer-events: none;
    animation: heroMeshDrift 22s linear infinite;
}

.home-brand-inner {
    position: relative;
    z-index: 2;
    perspective: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

@keyframes heroGlowShift {
    0% {
        transform: translate3d(-2%, 0, 0) scale(1);
        opacity: 0.9;
    }
    50% {
        transform: translate3d(2%, -1%, 0) scale(1.04);
        opacity: 1;
    }
    100% {
        transform: translate3d(0, 2%, 0) scale(1.02);
        opacity: 0.88;
    }
}

@keyframes heroMeshDrift {
    0% {
        transform: translate3d(-1.5%, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(1.5%, -1%, 0) scale(1.03);
    }
    100% {
        transform: translate3d(-1.5%, 1%, 0) scale(1);
    }
}

/* --- Keyframes banner home --- */
@keyframes brandEyebrowIn {
    from { opacity: 0; transform: translateY(-18px); letter-spacing: 10px; }
    to   { opacity: 0.9; transform: translateY(0);   letter-spacing: 4px;  }
}

@keyframes brandTitleIn {
    from { opacity: 0; transform: translateY(44px) scale(0.94); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

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

@keyframes brandGroupGlow {
    0%   { text-shadow: none; }
    40%  { text-shadow: 0 0 50px rgba(255,84,0,0.9), 0 0 100px rgba(255,84,0,0.5); }
    100% { text-shadow: 0 0 18px rgba(255,84,0,0.18); }
}

.home-brand-eyebrow {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #FF5400;
    margin-bottom: 18px;
    opacity: 0;
    animation: brandEyebrowIn 0.75s cubic-bezier(0.23, 1, 0.32, 1) 0.1s forwards;
    width: 100%;
    text-align: center;
}

.home-brand-title {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 96px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -4px;
    line-height: 1;
    margin: 0 0 22px;
    opacity: 0;
    animation: brandTitleIn 0.9s cubic-bezier(0.23, 1, 0.32, 1) 0.32s forwards;
    transform-origin: center;
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
                text-shadow 0.35s ease,
                filter 0.35s ease;
    will-change: transform;
    text-align: center;
}

.home-brand-title span {
    display: inline-block;
    color: #FF5400;
    animation: brandGroupGlow 1.6s ease 0.95s forwards;
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
                text-shadow 0.35s ease;
}

.home-brand-sub {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    color: rgba(255, 255, 255, 0.45);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0;
    animation: brandSubIn 0.7s ease 0.62s forwards;
    text-align: center;
}

@media (max-width: 991px) {
    .home-brand-title { font-size: 68px; letter-spacing: -2px; }
    #home-brand-hero { padding: 60px 20px 50px; }
}

@media (max-width: 600px) {
    .home-brand-title { font-size: 48px; letter-spacing: -1.5px; }
    #home-brand-hero { padding: 48px 20px 40px; }
    .home-brand-sub { font-size: 15px; }
}

@media (max-width: 480px) {
    #home-brand-hero {
        display: none;
    }

    body #myCarousel .carousel,
    body #myCarousel .carousel-inner {
        min-height: 540px;
        height: 78vh;
    }
}

/* --- Partners strip home --- */
#home-partners {
    background: #0d0d0d;
    padding: 28px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: relative;
}

#home-partners .carousel,
#home-partners .carousel .item,
#home-partners .carousel .item.active {
    background: transparent !important;
    box-shadow: none !important;
}

.home-partner-slide {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    padding: 0 48px;
}

.home-partner-logo {
    display: block;
    height: 44px;
    max-width: 150px;
    width: auto;
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-partner-logo--lg {
    height: 56px;
    max-width: 170px;
    padding: 6px 14px;
}

.home-partner-logo:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    border-color: rgba(255,84,0,0.4);
}

.home-partner-ctrl {
    background: none !important;
    color: rgba(255,255,255,0.4) !important;
    text-shadow: none !important;
    opacity: 1 !important;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    transition: color 0.2s ease;
}

.home-partner-ctrl:hover {
    color: #FF5400 !important;
}

.home-partner-ctrl.left { left: 0; }
.home-partner-ctrl.right { right: 0; }

@media (max-width: 767px) {
    .home-partner-slide {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
        padding: 0 30px;
    }
    .home-partner-logo {
        flex: 0 1 40%;
        height: 36px;
        max-width: 120px;
    }
}

/* --- CTA home (antes del footer) --- */
#home-cta {
    background: #0d0d0d;
    padding: 70px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.home-cta-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 56px 52px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.home-cta-card::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 440px;
    height: 440px;
    background: radial-gradient(circle, rgba(255,84,0,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.home-cta-text {
    flex: 1;
    min-width: 260px;
    position: relative;
    z-index: 1;
}

.home-cta-text h2 {
    font-family: 'Inter', sans-serif;
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
    letter-spacing: -0.3px;
}

.home-cta-text p {
    color: rgba(255,255,255,0.5);
    font-size: 16px;
    line-height: 1.65;
    margin: 0;
}

.home-cta-action {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.btn-home-cta,
.btn-home-cta:link,
.btn-home-cta:visited {
    display: inline-block;
    padding: 16px 44px;
    background: #FF5400;
    color: #fff !important;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none !important;
    border-radius: 8px;
    border: 2px solid #FF5400;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 24px rgba(255,84,0,0.4);
}

.btn-home-cta:hover {
    background: transparent;
    color: #FF5400 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255,84,0,0.2);
}

@media (max-width: 767px) {
    .home-cta-card {
        padding: 36px 24px;
        flex-direction: column;
        align-items: flex-start;
    }
    .home-cta-text h2 { font-size: 22px; }
    .home-cta-action { width: 100%; }
    .btn-home-cta {
        width: 100%;
        text-align: center;
        display: block;
        box-sizing: border-box;
    }
}

/* --- Scroll smooth global --- */
html {
    scroll-behavior: smooth;
}

/* --- Accesibilidad: focus visible --- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #FF5400;
    outline-offset: 3px;
}

/* --- Mobile hardening: home hero/carousel --- */
@media (max-width: 767px) {
    #home-brand-hero {
        display: none !important;
    }

    body #myCarousel .carousel,
    body #myCarousel .carousel-inner {
        height: 78vh !important;
        min-height: 560px !important;
    }

    body #myCarousel .carousel-caption {
        left: 6% !important;
        right: 6% !important;
        top: 44% !important;
        width: auto !important;
        max-width: none !important;
        padding: 0 !important;
        margin-bottom: 0 !important;
    }

    #myCarousel .carousel-caption.slide-up--feature {
        left: 6% !important;
        right: 6% !important;
        width: auto !important;
        max-width: none !important;
    }

    #myCarousel .carousel-caption.slide-up--feature .slide-feature-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 16px 14px 18px !important;
        border-radius: 18px !important;
    }

    #myCarousel .carousel-caption.slide-up--feature .slide-eyebrow {
        margin-bottom: 8px !important;
        padding: 5px 10px !important;
        font-size: 9px !important;
        letter-spacing: 1px !important;
    }

    #myCarousel .carousel-caption.slide-up--feature .banner_heading {
        font-size: 20px !important;
        line-height: 1.04 !important;
        margin-bottom: 8px !important;
    }

    #myCarousel .carousel-caption.slide-up--feature .banner_txt {
        font-size: 11px !important;
        line-height: 1.35 !important;
        max-width: 100% !important;
    }

    #myCarousel .carousel-caption.slide-up--feature .slide-pills {
        display: none !important;
    }

    #myCarousel .carousel-caption.slide-up--feature .slide-cta {
        width: 100% !important;
        max-width: 200px !important;
        padding: 10px 14px !important;
        margin-top: 14px !important;
        font-size: 12px !important;
    }

    #myCarousel .carousel-indicators {
        bottom: 14px !important;
    }
}

@media (max-width: 430px) {
    body #myCarousel .carousel,
    body #myCarousel .carousel-inner {
        height: 80vh !important;
        min-height: 580px !important;
    }

    body #myCarousel .carousel-caption {
        top: 42% !important;
    }

    #myCarousel .carousel-caption.slide-up--feature .banner_heading {
        font-size: 18px !important;
    }

    #myCarousel .carousel-caption.slide-up--feature .banner_txt {
        font-size: 10px !important;
    }

    #myCarousel .carousel-caption.slide-up--feature .slide-cta {
        max-width: 186px !important;
        font-size: 11px !important;
    }
}

/* --- Home hero final: same card system as the feature slide --- */
#home-brand-hero {
    display: none !important;
}

#myCarousel .carousel-caption.slide-up--primary {
    left: 6% !important;
    right: auto !important;
    width: min(860px, 68vw) !important;
    max-width: 860px !important;
}

#myCarousel .slide-feature-card--primary {
    min-height: 0;
    padding: 20px 26px 22px !important;
}

#myCarousel .slide-up--primary .banner_heading {
    font-size: clamp(32px, 3vw, 42px) !important;
    line-height: 1.02 !important;
    max-width: 22ch;
    margin-bottom: 10px !important;
}

#myCarousel .slide-up--primary .banner_txt {
    font-size: clamp(13px, 1.05vw, 14px) !important;
    line-height: 1.45 !important;
    max-width: 72ch !important;
}

#myCarousel .slide-up--primary .slider_btn {
    margin-top: 14px;
}

@media (max-width: 1366px) {
    .navbar-inverse .navbar-brand img.brand-logo {
        height: 110px !important;
    }

    .navbar-inverse .navbar-nav > li > a {
        font-size: 10px !important;
        letter-spacing: 1.4px !important;
        padding-left: 11px !important;
        padding-right: 11px !important;
    }

    .navbar-inverse .navbar-nav > li:last-child > a,
    .navbar-inverse .navbar-nav > li:last-child > a:link,
    .navbar-inverse .navbar-nav > li:last-child > a:visited {
        padding: 9px 14px !important;
        margin-left: 8px;
    }

    #myCarousel .carousel-caption.slide-up--primary {
        width: min(760px, 64vw) !important;
        max-width: 760px !important;
    }
}

@media (max-width: 1200px) {
    .navbar-inverse .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .navbar-inverse .navbar-brand img.brand-logo {
        height: 96px !important;
    }

    .navbar-inverse .navbar-nav > li > a {
        font-size: 9px !important;
        letter-spacing: 1.1px !important;
        padding-left: 9px !important;
        padding-right: 9px !important;
    }

    .navbar-inverse .navbar-nav > li:last-child > a,
    .navbar-inverse .navbar-nav > li:last-child > a:link,
    .navbar-inverse .navbar-nav > li:last-child > a:visited {
        padding: 8px 12px !important;
        margin-left: 6px;
    }

    #myCarousel .carousel-caption.slide-up--primary {
        width: min(700px, 62vw) !important;
        max-width: 700px !important;
        left: 6% !important;
    }

    #myCarousel .slide-up--primary .banner_heading {
        font-size: clamp(29px, 2.9vw, 36px) !important;
        max-width: 20ch;
    }

    #myCarousel .slide-up--primary .banner_txt {
        max-width: 62ch !important;
    }
}

@media (max-width: 767px) {
    #myCarousel .carousel-caption.slide-up--primary {
        left: 6% !important;
        right: 6% !important;
        width: auto !important;
        max-width: none !important;
    }

    #myCarousel .slide-feature-card--primary {
        padding: 18px 16px 20px !important;
        border-radius: 22px !important;
    }

    #myCarousel .slide-up--primary .banner_heading {
        font-size: clamp(28px, 8.5vw, 38px) !important;
        line-height: 1.02 !important;
        max-width: 100% !important;
        margin-bottom: 10px !important;
    }

    #myCarousel .slide-up--primary .banner_txt {
        font-size: 13px !important;
        max-width: 100% !important;
    }

    #myCarousel .slide-up--primary .slide-cta {
        width: 100% !important;
        max-width: 230px !important;
    }
}

/* --- Dashboard operativo --- */
#ops-dashboard {
    position: relative;
    padding: 36px 0 92px;
    background:
        radial-gradient(circle at top left, rgba(255, 84, 0, 0.16), transparent 34%),
        linear-gradient(180deg, #0b0e14 0%, #11151d 100%);
}

#ops-dashboard::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.ops-dashboard-shell {
    position: relative;
    z-index: 1;
    padding: 28px;
    border-radius: 30px;
    background: linear-gradient(160deg, rgba(10, 14, 20, 0.96), rgba(17, 24, 35, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.ops-dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.ops-dashboard-eyebrow {
    margin: 0 0 10px;
    color: #ff8b42;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.ops-dashboard-header h2 {
    margin: 0 0 10px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: clamp(28px, 3.2vw, 42px);
    font-weight: 800;
    line-height: 1.05;
}

.ops-dashboard-header h2 span {
    color: #ff5b0f;
}

.ops-dashboard-sub {
    margin: 0;
    max-width: 700px;
    color: rgba(255,255,255,0.72);
    font-size: 16px;
    line-height: 1.55;
}

.ops-dashboard-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.88);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2dd881;
    box-shadow: 0 0 0 6px rgba(45, 216, 129, 0.12);
}

.ops-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.ops-kpi-card,
.ops-panel {
    background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 22px;
}

.ops-kpi-card {
    padding: 18px 18px 16px;
}

.ops-kpi-label {
    display: block;
    margin-bottom: 10px;
    color: rgba(255,255,255,0.68);
    font-size: 13px;
    letter-spacing: 0.4px;
}

.ops-kpi-value {
    display: block;
    color: #fff;
    font-size: clamp(28px, 2.7vw, 40px);
    font-weight: 800;
    line-height: 1;
}

.ops-kpi-trend {
    display: block;
    margin-top: 10px;
    color: rgba(255,255,255,0.62);
    font-size: 12px;
}

.ops-kpi-trend--up {
    color: #7de2a7;
}

.ops-dashboard-grid {
    display: grid;
    grid-template-columns: 1.45fr 1.05fr 0.9fr;
    gap: 14px;
}

.ops-panel {
    padding: 18px;
    min-width: 0;
}

.ops-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
}

.ops-panel-head h3 {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    min-width: 0;
}

.ops-panel-badge,
.ops-panel-link {
    color: #ff8b42;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.ops-bars {
    display: grid;
    gap: 14px;
}

.ops-bar-row {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.78);
    font-size: 13px;
}

.ops-bar-row strong {
    color: #fff;
    font-size: 13px;
}

.ops-bar {
    height: 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
}

.ops-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ff7a1a, #ff5400);
}

.ops-alert-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ops-alert-list li {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
}

.ops-alert-list li > div {
    min-width: 0;
}

.ops-alert-list strong {
    display: block;
    margin-bottom: 4px;
    color: #fff;
    font-size: 14px;
    line-height: 1.35;
}

.ops-alert-list span {
    color: rgba(255,255,255,0.65);
    font-size: 12px;
    line-height: 1.45;
}

.ops-alert-level {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    justify-self: flex-start;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px !important;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.ops-alert-level--high {
    background: rgba(255, 84, 0, 0.18);
    color: #ff8b42 !important;
}

.ops-alert-level--medium {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.82) !important;
}

.ops-ticket-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.ops-ticket-stats div {
    padding: 14px 10px;
    border-radius: 18px;
    background: rgba(255,255,255,0.04);
    text-align: center;
}

.ops-ticket-stats strong {
    display: block;
    color: #fff;
    font-size: 28px;
    line-height: 1;
}

.ops-ticket-stats span {
    display: block;
    margin-top: 8px;
    color: rgba(255,255,255,0.66);
    font-size: 12px;
}

.ops-ticket-foot {
    margin-top: 14px;
    color: rgba(255,255,255,0.72);
    font-size: 13px;
}

.ops-ticket-foot strong {
    color: #fff;
}

.lang-switcher-item {
    display: flex !important;
    align-items: center;
    margin-left: 14px;
}

.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
}

.lang-switcher-btn {
    min-width: 42px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.lang-switcher-btn:hover,
.lang-switcher-btn:focus {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    outline: none;
}

.lang-switcher-btn.is-active {
    background: linear-gradient(135deg, #ff7a1a, #ff5400);
    color: #fff;
    box-shadow: 0 10px 20px rgba(255, 84, 0, 0.24);
}

@media (max-width: 1199px) {
    .ops-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ops-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .lang-switcher-item {
        margin-left: 8px;
    }
}

@media (max-width: 1360px) {
    .ops-panel-head {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .ops-alert-list li {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .ops-alert-level {
        justify-self: flex-start;
        min-width: 0;
    }
}

@media (max-width: 767px) {
    #ops-dashboard {
        padding: 24px 0 72px;
    }

    .ops-dashboard-shell {
        padding: 18px;
        border-radius: 24px;
    }

    .ops-dashboard-header {
        flex-direction: column;
    }

    .ops-panel-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .ops-dashboard-sub {
        font-size: 14px;
    }

    .ops-kpis,
    .ops-ticket-stats {
        grid-template-columns: 1fr;
    }

    .ops-bar-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .ops-alert-list li {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .ops-alert-level {
        justify-self: flex-start;
        min-width: 0;
    }

    .lang-switcher-item {
        display: block !important;
        margin: 12px 0 0 !important;
        padding: 0 15px 15px !important;
    }

    .lang-switcher {
        width: 100%;
        justify-content: center;
        padding: 8px;
    }

    .lang-switcher-btn {
        flex: 1 1 0;
        max-width: 92px;
    }
}

/* --- Mobile navbar hardening --- */
@media (max-width: 767px) {
    body header,
    .navbar-inverse,
    body .navbar {
        height: 80px !important;
        min-height: 80px !important;
        line-height: normal !important;
    }

    .navbar-inverse .container {
        position: relative;
        height: 80px !important;
    }

    .navbar-inverse .navbar-header {
        float: none !important;
        height: 80px !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .navbar-inverse .navbar-brand,
    body .navbar-brand {
        height: 80px !important;
        min-height: 80px !important;
        padding: 8px 0 !important;
        margin: 0 auto !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0 !important;
        overflow: visible !important;
    }

    .navbar-inverse .navbar-brand img.brand-logo,
    .navbar-brand img.brand-logo {
        height: 54px !important;
        max-height: 54px !important;
        width: auto !important;
        max-width: min(42vw, 150px) !important;
        object-fit: contain !important;
        display: block !important;
        margin: 0 auto !important;
    }

    .navbar-brand .brand-text {
        display: none !important;
    }

    .navbar-inverse .navbar-toggle,
    body .navbar-toggle {
        position: absolute !important;
        right: 0 !important;
        top: 50% !important;
        transform: translateY(-50%);
        margin: 0 12px 0 0 !important;
    }
}

@media (max-width: 480px) {
    body header,
    .navbar-inverse,
    body .navbar,
    .navbar-inverse .container,
    .navbar-inverse .navbar-header,
    .navbar-inverse .navbar-brand,
    body .navbar-brand {
        height: 72px !important;
        min-height: 72px !important;
    }

    .navbar-inverse .navbar-brand img.brand-logo,
    .navbar-brand img.brand-logo {
        height: 46px !important;
        max-height: 46px !important;
        max-width: min(40vw, 132px) !important;
    }
}
