/* Services Strip (Vertical Dark Cards - Centered & Filling) */
#services {
    padding-top: 80px !important; 
    padding-bottom: 100px;
    margin-top: 0; /* Resetting to 0 since image now reaches the edge */
    position: relative;
    z-index: 5;
}

.carousel-container {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 30px;
    scrollbar-width: none; 
    -ms-overflow-style: none;
    cursor: grab;
    display: flex;
    justify-content: center; /* Center the track if items fit */
}
.carousel-container::-webkit-scrollbar { display: none; }

.carousel-track {
    display: flex;
    gap: 20px;
    padding: 10px 0;
    max-width: 1400px; /* Limit width to keep centered look */
    width: 100%;
    justify-content: center; /* Center items inside track */
}

/* Vertical Strip Card */
.service-card-horizontal { 
    flex: 1 1 250px; /* Grow to fill space, min 250px */
    max-width: 300px; /* Don't get too wide */
    height: 480px;   
    background: #222; 
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column; 
    position: relative;
    transition: transform 0.3s, border-color 0.3s;
    scroll-snap-align: start;
    border: 1px solid #333;
}

.service-card-horizontal:hover {
    transform: translateY(-10px);
    border-color: var(--neon);
}

/* Image Section (Top) */
.sch-image {
    width: 100%;
    height: 220px; 
    position: relative;
    order: -1; /* Mueve la imagen a la parte superior visualmente en CSS Flexbox */
}

.sch-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.service-card-horizontal:hover .sch-image img {
    filter: grayscale(0%);
}

/* Content Section (Bottom) */
.sch-content {
    padding: 25px;
    height: 260px; /* Aumentado para acomodar textos largos */
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Permite que el contenedor de texto ocupe el resto del espacio */
    background: #1f1f1f;
}

.sch-content h3 {
    font-size: 18px;
    color: #fff;
    margin: 0 0 10px 0;
    font-weight: 600;
    line-height: 1.3;
}

.sch-desc {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 20px;
    line-height: 1.5;
}

.sch-link {
    font-size: 12px;
    color: var(--neon);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto; /* Push the link perfectly to the bottom regardless of text size */
}

.arrow {
    font-size: 18px;
    transition: transform 0.3s;
}

.service-card-horizontal:hover .arrow {
    transform: translateX(5px);
}

/* Responsive: Scroll on mobile */
@media (max-width: 1024px) {
    .carousel-container { justify-content: flex-start; } /* Left align on small screens to allow scroll */
    .carousel-track { justify-content: flex-start; padding-left: 20px; }
    .service-card-horizontal { flex: 0 0 260px; } /* Fixed width on mobile */
}
