/* ==========================================================================
   BRAIN LAB ESTUDIO — SECCIÓN SITIOS WEB (MINIMALISTA / ESTILO HERO)
   Diseño de 2 columnas:
   - Izquierda: Título tipo Hero, descripción, CTA y mini-carrusel de logos
   - Derecha: Carrusel interactivo de proyectos web
   ========================================================================== */

.bl-web-section {
    position: relative;
    overflow: hidden;
    padding: 80px 0 100px;
    background-color: transparent;
    color: var(--text-main, #ffffff);
}

.bl-web-glow-bg {
    position: absolute;
    top: 50%;
    left: 20%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background-color: rgba(96, 165, 250, 0.07);
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
}

/* Layout en Grid de 2 columnas */
.bl-web-grid-layout {
    display: flex;
    flex-direction: column;
    gap: 48px;
    position: relative;
    z-index: 2;
}

@media (min-width: 992px) {
    .bl-web-grid-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 56px;
        align-items: center;
    }
}

/* =========================================
   COLUMNA IZQUIERDA
   ========================================= */
.bl-web-left-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.bl-web-left-col .badge {
    margin-bottom: 4px;
}

.bl-web-hero-title {
    font-size: 2.3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #ffffff;
    margin: 0;
}

@media (min-width: 640px) {
    .bl-web-hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1200px) {
    .bl-web-hero-title {
        font-size: 3.4rem;
    }
}

.bl-web-hero-desc {
    color: var(--text-muted, #94a3b8);
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 520px;
    margin: 0;
}

.bl-web-cta-wrapper {
    margin-top: 6px;
    margin-bottom: 10px;
}

.bl-web-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    width: auto;
    padding: 14px 28px;
}

/* Mini carrusel / Marquee de logos de marcas colaboradoras */
.bl-web-brands-section {
    width: 100%;
    max-width: 520px;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bl-web-brands-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--text-muted, #64748b);
}

.bl-web-brands-track-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.bl-web-brands-track {
    display: flex;
    gap: 14px;
    width: max-content;
    animation: brandsMarquee 20s linear infinite;
}

.bl-web-brands-track:hover {
    animation-play-state: paused;
}

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

    100% {
        transform: translateX(-50%);
    }
}

.bl-brand-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.bl-brand-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.bl-brand-item img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 4px;
}

.bl-brand-icon-box {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
    font-size: 16px;
}

.bl-brand-item span {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-main, #e2e8f0);
}

/* =========================================
   COLUMNA DERECHA: CARRUSEL DE SITIOS WEB
   ========================================= */
.bl-web-right-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    min-width: 0;
}

.bl-web-carousel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
    gap: 12px;
}

.bl-web-carousel-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bl-web-counter {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 9999px;
    background: rgba(96, 165, 250, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.28);
    color: #93c5fd;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-left: 6px;
}

.bl-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #38bdf8;
    box-shadow: 0 0 10px #38bdf8;
    animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.6;
    }
}

.bl-web-nav-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.bl-web-nav-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bl-web-swipe-hint {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #93c5fd;
    letter-spacing: 0.02em;
    user-select: none;
    transition: color 0.2s ease;
}

.bl-web-swipe-hint i {
    font-size: 0.88rem;
    color: #60a5fa;
    animation: swipeHandNudge 2s ease-in-out infinite;
}

@keyframes swipeHandNudge {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(4px);
    }
}

.bl-web-nav-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.bl-web-nav-btn:hover {
    background: #ffffff;
    color: #050505;
    transform: translateY(-2px);
}

@keyframes nextBtnPulseCue {

    0%,
    100% {
        transform: translateX(0) scale(1);
    }

    30% {
        transform: translateX(5px) scale(1.08);
        border-color: rgba(96, 165, 250, 0.7);
        box-shadow: 0 0 12px rgba(96, 165, 250, 0.5);
    }

    60% {
        transform: translateX(-2px) scale(0.98);
    }
}

.bl-web-nav-btn.pulse-cue {
    animation: nextBtnPulseCue 1.15s ease-in-out;
}

/* Animación de rebote sutil al entrar / llegar a la sección */
@keyframes webPeekBounce {
    0% {
        transform: translateX(0);
    }

    28% {
        transform: translateX(-52px);
    }

    55% {
        transform: translateX(10px);
    }

    75% {
        transform: translateX(-4px);
    }

    100% {
        transform: translateX(0);
    }
}

.bl-web-carousel-track.peek-bounce {
    animation: webPeekBounce 1.15s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

/* Track del carrusel web */
.bl-web-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 24px;
}

.bl-web-carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
}

.bl-web-carousel-track::-webkit-scrollbar {
    display: none;
}

/* Tarjeta individual de Sitio Web */
.bl-web-card {
    flex: 0 0 100%;
    min-width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}



.bl-web-card-image {
    width: 100%;
    height: 220px;
    position: relative;
    background: #0b0f17;
    overflow: hidden;
}

@media (min-width: 640px) {
    .bl-web-card-image {
        height: 260px;
    }
}

.bl-web-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.bl-web-card:hover .bl-web-card-image img {
    transform: scale(1.05);
}

.bl-web-card-overlay {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
}

.bl-web-tag {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 50px;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.bl-web-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    justify-content: space-between;
}

.bl-web-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.bl-web-card-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5px;
    object-fit: contain;
}

.bl-web-card-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.bl-web-card-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 2px 0;
    line-height: 1.2;
}

.bl-web-card-url {
    font-size: 0.8rem;
    color: #60a5fa;
    font-family: monospace;
}

.bl-web-card-desc {
    color: var(--text-muted, #94a3b8);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}

.bl-web-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.bl-web-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #050505;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.2s ease;
    width: 100%;
    justify-content: center;
}

@media (min-width: 480px) {
    .bl-web-card-btn {
        width: auto;
    }
}

.bl-web-card-btn:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.25);
}

/* Dots del carrusel */
.bl-web-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

.bl-web-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bl-web-dot:hover {
    background: rgba(255, 255, 255, 0.45);
}

.bl-web-dot.active {
    width: 26px;
    border-radius: 10px;
    background: #60a5fa;
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
}

/* Modo claro automático */
@media (prefers-color-scheme: light) {
    .bl-web-card {
        background: #ffffff;
        border-color: rgba(15, 23, 42, 0.08);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    }

    .bl-web-hero-title {
        color: #0f172a;
    }

    .bl-web-card-title {
        color: #0f172a;
    }

    .bl-brand-item {
        background: rgba(15, 23, 42, 0.04);
        border-color: rgba(15, 23, 42, 0.08);
    }

    .bl-brand-item span {
        color: #0f172a;
    }

    .bl-web-card-btn {
        background: #0f172a;
        color: #ffffff;
    }

    .bl-web-nav-btn {
        background: rgba(15, 23, 42, 0.05);
        border-color: rgba(15, 23, 42, 0.1);
        color: #0f172a;
    }

    .bl-web-swipe-hint {
        color: #2563eb;
    }

    .bl-web-counter {
        background: rgba(37, 99, 235, 0.1);
        border-color: rgba(37, 99, 235, 0.25);
        color: #2563eb;
    }

    .bl-web-dot {
        background: rgba(15, 23, 42, 0.2);
    }

    .bl-web-dot.active {
        background: #2563eb;
        box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
    }
}