/* ══════════════════════════════════════════════
   BRANDS MARQUEE — patrón flex + translate loop
   Funciona en cualquier viewport sin depender de vw.
   ══════════════════════════════════════════════ */

.hero-h1 {
    font-family: 'Orbitron', sans-serif;
    overflow-wrap: break-word;
    word-break: normal;
}
@media (max-width: 767px) {
    .hero-h1 {
        font-size: clamp(1.8rem, 10vw, 3.2rem) !important;
        line-height: 1.1 !important;
        letter-spacing: -0.02em;
    }
}

.brands-strip {
    position: relative;
    background: #0E3659;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Contenedor: oculta lo que sobresale */
.brands-marquee {
    overflow: hidden;
    /* Fade suave en los bordes */
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 8%,
        black 92%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 8%,
        black 92%,
        transparent 100%
    );
}

/* Track: fila flex con todos los badges (×2 para loop seamless) */
.brands-ticker-track {
    display: flex;
    flex-direction: row;
    align-items: center;
    /* Velocidad: recorre su propio ancho en N segundos */
    animation: brands-scroll 22s linear infinite;
    will-change: transform;
    /* Ancho = contenido natural (no lo fijamos) */
    width: max-content;
}

/* Pausa al hover en dispositivos con cursor */
@media (hover: hover) {
    .brands-marquee:hover .brands-ticker-track {
        animation-play-state: paused;
    }
}

/* Respetar preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .brands-ticker-track {
        animation: none;
    }
}

/* Cada badge individual */
.brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 1rem;
    /* Tamaño responsive */
    width: clamp(110px, 18vw, 160px);
    height: clamp(52px, 10vw, 68px);
    padding: 0.6rem 1rem;
    margin: 0.75rem 0.6rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (hover: hover) {
    .brand-badge:hover {
        transform: scale(1.06);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    }
}

/* Imagen dentro del badge */
.brand-badge img {
    display: block;
    max-height: clamp(24px, 5vw, 36px);
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* Animación: mueve el track -50% de su ancho total.
   Como los badges están duplicados, -50% = exactamente un grupo → loop seamless. */
@keyframes brands-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Mobile: velocidad levemente más lenta para mayor legibilidad */
@media (max-width: 639px) {
    .brands-ticker-track {
        animation-duration: 24s; /* Un poco más rápido para mantener el dinamismo */
    }

    .brand-badge {
        width: clamp(100px, 30vw, 140px);
        height: 56px;
        padding: 0.6rem 0.85rem;
        margin: 0.5rem 0.4rem;
        border-radius: 0.75rem;
    }

    .brand-badge img {
        max-height: 28px;
    }
}


#noticias .news-card {
    border: 1px solid rgba(235, 239, 242, 0.1);
    background: rgba(19, 43, 64, 0.82);
    backdrop-filter: blur(8px);
    box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.65);
    transition: all 0.35s ease;
}

#noticias .news-card:hover {
    transform: translateY(-6px);
    border-color: #D97A1A;
    box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.72);
}

#noticias .news-kicker {
    letter-spacing: 0.35em;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 0.62rem;
}

#noticias .news-meta {
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

#diagnostico-express .scanner-line {
    height: 2px;
    background: #D97A1A;
    box-shadow: 0 0 15px #D97A1A;
    position: absolute;
    width: 100%;
    animation: scan 2s infinite linear;
}

@keyframes scan {
    0% {
        top: 0%;
    }

    100% {
        top: 100%;
    }
}

#diagnostico-express .btn-issue {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#diagnostico-express .btn-issue.active {
    background: #1A1D26;
    color: #ffffff;
    border-color: #D97A1A;
    transform: scale(1.05);
}

#diagnostico-express .diagnostico-card {
    box-shadow: 0 30px 60px -34px rgba(14, 54, 89, 0.45);
}

#diagnostico-express .diag-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    border-radius: 1rem;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    line-height: 1.25;
    text-transform: uppercase;
    font-weight: 800;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

@media (min-width: 640px) {
    #diagnostico-express .diag-cta {
        white-space: nowrap;
    }
}

#diagnostico-express .diag-cta--primary {
    background: #D97A1A;
    color: #1A1D26;
}

#diagnostico-express .diag-cta--primary:hover {
    background: #C46A1F;
    color: #EBEFF2;
}

#diagnostico-express .diag-cta--secondary {
    background: rgba(235, 239, 242, 0.06);
    color: #EBEFF2;
    border-color: rgba(235, 239, 242, 0.12);
}

#diagnostico-express .diag-cta--secondary:hover {
    background: rgba(235, 239, 242, 0.12);
}


