/* ============================================================
   SDN - Sport Distribution Network
   Estilos principales
   ============================================================ */

:root {
    --max-width: 1440px;

    --color-dark: #000000;
    --color-dark-2: #15171d;
    --color-blue: #1f5fff;
    --color-blue-deep: #0b3aa8;
    --color-yellow: #ffd21f;
    --color-gray: #8b9099;
    --color-light: #f5f6f8;
    --color-text: #e9ebef;

    --font-display: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.18);
    --shadow-hard: 0 28px 60px rgba(0, 0, 0, 0.35);
    --radius: 16px;
    --section-padding-x: clamp(20px, 4vw, 48px);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-text);
    /* Fondo de la "pantalla grande": oscuro */
    background: #000000;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
}

/* ============================================================
   SHELL: contenedor central máx 1440px (márgenes en pantallas grandes)
   ============================================================ */
.site-shell {
    max-width: var(--max-width);
    margin: 0 auto;
    background: var(--color-dark);
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

/* ============================================================
   HEADER / CABECERA
   ============================================================ */
/* Barra superior oculta (se conserva el markup por si se reutiliza después) */
.site-header {
    display: none;
    background: var(--color-dark);
    color: var(--color-text);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 26px 32px;
}

.header-example {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #c3c7cf;
}

/* ============================================================
   ESPACIO PARA EL LOGO (SVG)
   ============================================================ */
.logo-showcase {
    position: relative;
    overflow: hidden;
    background: var(--color-dark);
    padding: clamp(36px, 5vw, 64px) clamp(20px, 4vw, 48px) 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    /* Ocupa toda la primera pantalla (intro) a ancho completo */
    min-height: 100vh;
    min-height: 100dvh;
}

/* ---- Fondo de circuitos ---- */
.circuit {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0;
    pointer-events: none;
    /* Las líneas se desvanecen suavemente solo en el núcleo del logo */
    -webkit-mask-image: radial-gradient(ellipse 50% 45% at 50% 48%, rgba(0, 0, 0, 0) 8%, rgba(0, 0, 0, 0.55) 38%, rgba(0, 0, 0, 1) 58%);
    mask-image: radial-gradient(ellipse 50% 45% at 50% 48%, rgba(0, 0, 0, 0) 8%, rgba(0, 0, 0, 0.55) 38%, rgba(0, 0, 0, 1) 58%);
}

/* Líneas extra centradas: solo móvil */
.circuit-mobile {
    display: none;
}

/* Líneas en zona central y esquinas: escritorio */
.circuit-center,
.circuit-desktop-large {
    display: none;
}

@media (min-width: 1024px) {
    .logo-showcase {
        padding-left: clamp(24px, 3vw, 64px);
        padding-right: clamp(24px, 3vw, 64px);
    }

    .circuit {
        /* Máscara amplia: visible en centro y bordes, fade suave solo en el logo */
        -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 48%, rgba(0, 0, 0, 0) 6%, rgba(0, 0, 0, 0.6) 32%, rgba(0, 0, 0, 1) 58%);
        mask-image: radial-gradient(ellipse 90% 75% at 50% 48%, rgba(0, 0, 0, 0) 6%, rgba(0, 0, 0, 0.6) 32%, rgba(0, 0, 0, 1) 58%);
    }

    .circuit-center,
    .circuit-desktop-large {
        display: block;
    }

    .circuit-trace {
        stroke: rgba(255, 255, 255, 0.36);
    }

    .circuit-pulse {
        stroke: rgba(255, 255, 255, 0.68);
    }
}

.circuit-trace {
    fill: none;
    stroke: rgba(255, 255, 255, 0.32);
    stroke-width: 1.6;
}

.circuit-pulse {
    fill: none;
    stroke: rgba(255, 255, 255, 0.65);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 16 280;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.45));
}

.circuit-node {
    fill: rgba(255, 255, 255, 0.42);
    transform-box: fill-box;
    transform-origin: center;
}

/* Mini círculos en terminales de líneas (anillo muy tenue) */
.circuit-terminal {
    fill: none;
    stroke: rgba(255, 255, 255, 0.32);
    stroke-width: 1.2;
}

/* ---- Cajitas de envío (muy tenues) ---- */
.circuit-parcel {
    opacity: 0;
    fill: rgba(255, 255, 255, 0.9);
    transform-box: fill-box;
    transform-origin: center;
}

/* ---- Glow detrás del logo ---- */
.logo-box {
    position: relative;
    z-index: 1;
}

.logo-glow {
    position: absolute;
    left: 50%;
    top: 50%;
    width: clamp(360px, 55vw, 640px);
    height: clamp(360px, 55vw, 640px);
    transform: translate(-50%, -50%) scale(0.6);
    background: radial-gradient(circle, rgba(31, 95, 255, 0.35) 0%, rgba(31, 95, 255, 0) 62%);
    filter: blur(14px);
    z-index: -1;
    opacity: 0;
    pointer-events: none;
}

.logo-svg {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 620px;
    height: auto;
    display: block;
    overflow: visible;
}

/* Trazos grandes de "SDN" que se dibujan en la intro */
.logo-svg .sdn-draw {
    stroke: #fff;
    stroke-width: 2;
}
.display-none {
    display: none;
}
.display-block {
    display: block;
}

/* Flecha "desliza hacia abajo" */
.scroll-down {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.6rem;
    text-decoration: none;
    transition: color 0.3s ease;
    animation: scrollBounce 2.2s ease-in-out infinite;
}

.scroll-down:hover {
    color: #ffffff;
}

.scroll-down-text {
    font-size: 0.72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: var(--font-display);
    font-weight: 600;
}

@keyframes scrollBounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 10px); }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-down { animation: none; }
}

.logo-box {
    width: 100%;
    max-width: 720px;
    min-height: clamp(160px, 22vw, 240px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-placeholder {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo central: máximo 500px de ancho */
.logo-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
}

/* ============================================================
   BLOQUE CLARO: datos + marcas a ancho completo
   ============================================================ */
.site-light {
    width: 100%;
    background: #ffffff;
}

/* ============================================================
   DATOS DUROS / ESTADÍSTICAS
   ============================================================ */
.stats-section {
    --stats-value-size: clamp(1.5rem, 2.2vw, 2rem);
    --stats-value-size-long: clamp(1.35rem, 1.9vw, 1.75rem);
    --stats-label-size: 0.72rem;
    --stats-gap: clamp(16px, 2.5vw, 28px);

    padding: clamp(40px, 5vw, 64px) var(--section-padding-x) clamp(24px, 3.5vw, 36px);
}

.stats-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--stats-gap);
    align-items: start;
}

.stats-item {
    text-align: center;
}

.stats-value {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--stats-value-size);
    line-height: 1.15;
    color: #3d4249;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
}

.stats-value--long {
    font-size: var(--stats-value-size-long);
}

.stats-label {
    font-family: var(--font-display);
    font-size: var(--stats-label-size);
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #6b7079;
    margin: 0;
    line-height: 1.4;
}

/* ============================================================
   SLIDER PRINCIPAL
   ============================================================ */
.slider-section {
    background: #ffffff;
    padding: clamp(28px, 4vw, 48px) var(--section-padding-x) clamp(20px, 3vw, 32px);
    display: flex;
    justify-content: center;
}

.slider-section--hidden {
    display: none !important;
}

#mainSlider {
    width: 100%;
    max-width: 1400px;
    border-radius: 7px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

/* La proporción del slider sigue la de los banners (1135x340) para que se vean completos */
#mainSlider,
.carousel-inner {
    aspect-ratio: 1135 / 340;
}

.carousel-item {
    height: 100%;
    position: relative;
}

.slide-link {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.slide-media {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #0c0d10;
}

.slide-picture {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
}

.slide-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* En móvil: mostrar la imagen completa sin recortar */
@media (max-width: 768px) {
    #mainSlider,
    .carousel-inner {
        aspect-ratio: 750 / 350;
    }

    .slide-img,
    .slide-video {
        object-fit: contain;
    }

    .slide-media {
        background: #f4f5f7;
    }
}

/* Video oculto hasta que cargue; si no hay archivo, queda la imagen */
.slide-video {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

/* Video solo en escritorio (≥769px) o solo en móvil (≤768px) */
@media (min-width: 769px) {
    .slide-video--mobile {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .slide-video--desktop {
        display: none !important;
    }

    .slide-picture--desktop {
        display: none;
    }
}

.slide-item.is-video-active.is-video-playing .slide-video {
    display: block;
}

.slide-item.is-video-active.is-video-playing .slide-picture {
    visibility: hidden;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 8, 12, 0.85) 0%, rgba(7, 8, 12, 0.55) 45%, rgba(7, 8, 12, 0.15) 100%);
}

.slide-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 14px;
    padding: 0 clamp(28px, 6vw, 90px);
    max-width: 720px;
    color: #fff;
}

.slide-badge {
    display: inline-block;
    background: var(--color-yellow);
    color: #1b1d22;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
}

.slide-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1.8rem, 4.2vw, 3.4rem);
    line-height: 1.05;
    margin: 0;
    text-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}

.slide-text {
    font-size: clamp(0.95rem, 1.6vw, 1.2rem);
    color: #dfe2e8;
    max-width: 520px;
    margin: 0;
}

.slide-cta {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--color-blue);
    color: #fff;
    font-weight: 600;
    padding: 12px 26px;
    border-radius: 999px;
    transition: all 0.25s ease;
    box-shadow: 0 12px 28px rgba(31, 95, 255, 0.45);
}

.slide-link:hover .slide-cta {
    background: #fff;
    color: var(--color-blue);
    transform: translateX(6px);
}

.slide-link:hover .slide-cta i {
    transform: translateX(4px);
}

.slide-cta i {
    transition: transform 0.25s ease;
}

/* Controles e indicadores del carrusel */
.carousel-indicators [data-bs-target] {
    width: 36px;
    height: 4px;
    border-radius: 4px;
    border: 0;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.carousel-indicators .active {
    background: var(--color-yellow);
}

.carousel-control-prev,
.carousel-control-next {
    width: 7%;
    opacity: 0.9;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

/* Iconos de las flechas con disco oscuro para que se vean sobre banners claros */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(12, 13, 16, 0.55);
    border-radius: 50%;
    padding: 14px;
    background-size: 45% 45%;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

/* ============================================================
   SECCIÓN MARCAS
   ============================================================ */
.brands-section {
    background: transparent;
    padding: clamp(28px, 4vw, 48px) 0 clamp(48px, 6vw, 88px);
}

.brands-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--section-padding-x);
}

.section-heading {
    text-align: center;
    max-width: 640px;
    margin: 0 auto clamp(32px, 4vw, 56px);
}

.section-eyebrow {
    display: inline-block;
    color: var(--color-blue);
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.78rem;
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.6rem, 3.4vw, 2.6rem);
    color: #14161b;
    margin: 0 0 12px;
}

.section-subtitle {
    color: #5c616b;
    font-size: 1.02rem;
    margin: 0;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Grilla combinada: fila 1 = tarjetas con info, fila 2 = logos (en escritorio) */
.brands-grid-combo .brand-card {
    grid-row: 1;
}
.brands-grid-combo .brand-logo-card {
    grid-row: 2;
}

.brand-card {
    position: relative;
    min-height: 420px;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-soft);
    transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.4s ease;
    isolation: isolate;
}

.brand-card::after {
    /* zoom de la imagen al hacer hover */
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
    z-index: -2;
}

.brand-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hard);
}

.brand-card:hover::after {
    transform: scale(1.08);
}

.brand-card-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.brand-card-content {
    position: relative;
    padding: 28px;
    color: #fff;
}

.brand-card-tag {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
    backdrop-filter: blur(4px);
}

.brand-card-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 2rem;
    margin: 0 0 8px;
    line-height: 1;
}

.brand-card-title-img {
    height: 2rem;
    width: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
}

.brand-card-title.logo-full-market .brand-card-title-img {
    height: 3rem;
}

.brand-card-text {
    font-size: 0.96rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 16px;
    max-width: 320px;
}

.brand-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #fff;
    transform: translateY(6px);
    opacity: 0.85;
    transition: all 0.35s ease;
}

.brand-card:hover .brand-card-link {
    transform: translateY(0);
    opacity: 1;
}

.brand-card-link i {
    transition: transform 0.3s ease;
}

.brand-card:hover .brand-card-link i {
    transform: translateX(5px);
}

/* ---- Deporprive: azul y negro ---- */
.brand-deporprive {
    background-image: url('../assets/deporprive-img.webp'), linear-gradient(160deg, #1f5fff, #0c0d10);
}
.brand-deporprive .brand-card-overlay {
    background: linear-gradient(180deg, rgba(31, 95, 255, 0.05) 0%, rgba(12, 13, 16, 0.45) 45%, rgba(12, 13, 16, 0.95) 100%);
}
.brand-deporprive .brand-card-tag {
    background: rgba(31, 95, 255, 0.85);
    color: #fff;
}

/* ---- Kuest: negro y gris ---- */
.brand-kuest {
    background-image: url('../assets/kuest-img.webp'), linear-gradient(160deg, #2b2f38, #0c0d10);
}
.brand-kuest .brand-card-overlay {
    background: linear-gradient(180deg, rgba(139, 144, 153, 0.05) 0%, rgba(21, 23, 29, 0.5) 45%, rgba(8, 9, 11, 0.96) 100%);
}
.brand-kuest .brand-card-tag {
    background: rgba(139, 144, 153, 0.85);
    color: #0c0d10;
}

/* ---- Kuest PRO: azul/amarillo, fondo oscuro ---- */
.brand-kuestpro {
    background-image: url('../assets/kuest-pro.webp'), linear-gradient(160deg, #0b3aa8, #0c0d10);
    border: 1px solid rgba(255, 210, 31, 0.35);
}
.brand-kuestpro .brand-card-overlay {
    background: linear-gradient(180deg, rgba(11, 58, 168, 0.1) 0%, rgba(10, 11, 15, 0.55) 45%, rgba(6, 7, 10, 0.97) 100%);
}
.brand-kuestpro .brand-card-tag {
    background: rgba(124, 58, 237, 0.92);
    color: #fff;
}
.brand-kuestpro .brand-card-title span {
    color: var(--color-yellow);
}

/* ---- Bloque extra: recuadros solo con logo centrado ---- */
.brand-logo-card {
    position: relative;
    min-height: 200px;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(28px, 4vw, 52px);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-soft);
    transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.4s ease;
    isolation: isolate;
}

.brand-logo-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hard);
}

.brand-logo-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    transition: opacity 0.4s ease;
}

.brand-logo-img {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 240px;
    max-height: 92px;
    object-fit: contain;
    transition: transform 0.4s ease;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.4));
}

.brand-logo-card:hover .brand-logo-img {
    transform: scale(1.06);
}

/* Deporprive: azul */
.logo-deporprive {
    background-image: url('../assets/deporprive-img.webp'), linear-gradient(160deg, #1f5fff, #0c0d10);
}
.logo-deporprive .brand-logo-overlay {
    background: linear-gradient(150deg, rgba(31, 95, 255, 0.82), rgba(13, 45, 140, 0.78));
}

/* Kuest: negro */
.logo-kuest {
    background-image: url('../assets/kuest-img.webp'), linear-gradient(160deg, #2b2f38, #0c0d10);
}
.logo-kuest .brand-logo-overlay {
    background: linear-gradient(150deg, rgba(12, 13, 16, 0.78), rgba(20, 22, 28, 0.84));
}

/* Kuest PRO: amarillo (con leve oscuro al pie para que el logo blanco resalte) */
.logo-kuestpro {
    background-image: url('../assets/kuest-pro.webp'), linear-gradient(160deg, #f5c518, #b88a00);
}
.logo-kuestpro .brand-logo-overlay {
    background: linear-gradient(150deg, rgb(159 127 13 / 82%), rgba(214, 158, 0, 0.82));
}
.logo-kuestpro .brand-logo-img {
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.99));
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--color-dark);
    color: var(--color-text);
    padding: 40px 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-display);
    font-weight: 700;
}

.footer-logo {
    height: 40px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.footer-brand-name {
    color: var(--color-text);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.footer-social {
    display: flex;
    gap: 14px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 1.1rem;
    transition: all 0.25s ease;
}

.footer-social a:hover {
    background: var(--color-blue);
    color: #fff;
    transform: translateY(-3px);
}

.footer-copy {
    margin: 0;
    font-size: 0.85rem;
    color: #6b7079;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .brands-section {
        padding-top: clamp(20px, 4vw, 32px);
        padding-bottom: clamp(40px, 6vw, 64px);
    }

    .brands-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        margin: 0 auto;
        gap: 16px;
    }

    .brand-card {
        min-height: 340px;
    }

    /* En móvil: una sola columna, cada logo justo debajo de su tarjeta */
    .brands-grid-combo .brand-card,
    .brands-grid-combo .brand-logo-card {
        grid-row: auto;
    }

    /* Bloques de solo-logo más angostos y bajos en móvil */
    .brands-grid-combo .brand-logo-card {
        min-height: 120px;
        width: 100%;
        justify-self: center;
        margin-bottom: 20px;
    }

    .brands-grid-combo .brand-logo-img {
        max-height: 64px;
    }

    /* Imágenes de fondo específicas para móvil (sube los archivos a assets/) */
    .brand-deporprive {
        background-image: url('../assets/deporprive-img-mobile.webp'), url('../assets/deporprive-img.webp'), linear-gradient(160deg, #1f5fff, #0c0d10);
    }
    .brand-kuest {
        background-image: url('../assets/kuest-img-mobile.webp'), url('../assets/kuest-img.webp'), linear-gradient(160deg, #2b2f38, #0c0d10);
    }
    .brand-kuestpro {
        background-image: url('../assets/kuest-pro-mobile.webp'), url('../assets/kuest-pro.webp'), linear-gradient(160deg, #0b3aa8, #0c0d10);
    }
    .logo-deporprive {
        background-image: url('../assets/deporprive-img-mobile-2.webp'), url('../assets/deporprive-img.webp'), linear-gradient(160deg, #1f5fff, #0c0d10);
    }
    .logo-kuest {
        background-image: url('../assets/kuest-img-mobile-2.webp'), url('../assets/kuest-img.webp'), linear-gradient(160deg, #2b2f38, #0c0d10);
    }
    .logo-kuestpro {
        background-image: url('../assets/kuest-pro-mobile-2.webp'), url('../assets/kuest-pro.webp'), linear-gradient(160deg, #f5c518, #b88a00);
    }
}

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

    .stats-item:nth-child(4),
    .stats-item:nth-child(5) {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding-x: clamp(16px, 4.5vw, 20px);
    }

    .stats-section {
        --stats-value-size: clamp(1.4rem, 4.5vw, 1.65rem);
        --stats-value-size-long: clamp(1.25rem, 4vw, 1.5rem);
        --stats-label-size: 0.68rem;
        --stats-gap: clamp(20px, 4vw, 28px);

        padding: clamp(32px, 7vw, 48px) var(--section-padding-x) clamp(18px, 3.5vw, 24px);
    }

    .brands-section {
        padding-top: clamp(20px, 4vw, 32px);
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(24px, 5vw, 36px);
    }

    .stats-item:last-child {
        grid-column: 1 / -1;
    }

    .slider-section {
        padding-top: clamp(20px, 4vw, 28px);
        padding-bottom: clamp(16px, 3vw, 24px);
    }

    #mainSlider {
        max-width: 100%;
        border-radius: var(--radius);
        box-shadow: var(--shadow-soft);
    }

    /* Flechas más grandes para el toque */
    .carousel-control-prev,
    .carousel-control-next {
        width: 14%;
    }
    /* Logo: ocupa un poco más de ancho útil */
    .logo-svg {
        max-width: 92%;
    }

    /* Circuitos en móvil: mostramos líneas centrales y relajamos la máscara
       para que se aprecien en la franja visible (el SVG hace slice al centro) */
    .circuit-mobile {
        display: block;
    }
    .circuit {
        -webkit-mask-image: radial-gradient(ellipse 80% 38% at 50% 46%, rgba(0, 0, 0, 0) 8%, rgba(0, 0, 0, 1) 46%);
        mask-image: radial-gradient(ellipse 80% 38% at 50% 46%, rgba(0, 0, 0, 0) 8%, rgba(0, 0, 0, 1) 46%);
    }
    /* Un poco más visibles en móvil */
    .circuit-mobile .circuit-trace {
        stroke: rgba(255, 255, 255, 0.34);
    }
}

@media (max-width: 520px) {
    .brand-card {
        min-height: 300px;
    }
    .brand-card-content {
        padding: 22px;
    }
    .brand-card-text {
        font-size: 0.9rem;
    }
    /* Flecha "desliza": un poco más arriba para no chocar con barras del navegador */
    .scroll-down {
        bottom: 18px;
    }
}
