/* ==========================
   SECTORES
========================== */

.sectores{
    padding:100px 0;
    background:#050505;
    overflow:hidden;
    position:relative;
}

.section-header{
    text-align:center;
    margin-bottom:50px;
}

.section-header h2{
    font-size:40px;
    font-weight:800;
    color:#fff;
}

.section-header h2 span{
    color:#ff2b2b;
}

.section-header p{
    margin-top:10px;
    color:#a0a8b8;
}

/* ==========================
   SLIDER
========================== */

.slider{
    width:100%;
    overflow:hidden;
    position:relative;
}

.slide-track{
    display:flex;
    gap:18px;
    width:max-content;
    animation:scrollSectores 35s linear infinite;
}

.slider:hover .slide-track{
    animation-play-state:paused;
}

/* ==========================
   CARD
========================== */

.sector-card{
    width:180px;
    height:260px;
    flex-shrink:0;

    position:relative;

    border-radius:14px;
    overflow:hidden;

    border:1px solid rgba(255,255,255,.08);

    background:#111;

    transition:.4s;
}

.sector-card:hover{
    transform:translateY(-8px);
    border-color:rgba(255,0,0,.4);

    box-shadow:
    0 15px 40px rgba(255,0,0,.18);
}

.sector-card img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.overlay{
    position:absolute;
    inset:0;

    background:
    linear-gradient(
        to top,
        rgba(0,0,0,.95),
        rgba(0,0,0,.15)
    );
}

.sector-name{
    position:absolute;
    left:15px;
    right:15px;
    bottom:18px;

    color:white;
    font-weight:600;
    font-size:16px;
    text-align:center;
    z-index:2;
}

/* ==========================
   ANIMACIÓN INFINITA
========================== */

@keyframes scrollSectores{

    from{
        transform:translateX(0);
    }

    to{
        transform:translateX(-50%);
    }
}

@media(max-width:768px){

    .sectores{
        padding:70px 0;
    }

    .section-header h2{
        font-size:28px;
    }

    .sector-card{
        width:140px;
        height:210px;
    }

    .sector-name{
        font-size:14px;
    }

    .slide-track{
        animation-duration:25s;
    }
}