/* ==========================================================================
   PANTALLA: SERVICIOS (DISEÑO ZIG-ZAG)
   ========================================================================== */

.service-family-section {
    background-color: var(--bg-dark);
    padding: 100px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    scroll-margin-top: 10px; 
}

.service-family-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.service-tag {
    color: #E53935;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 15px;
}

.service-family-header h2 {
    color: #FFFFFF;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.service-family-header p {
    color: #94A3B8;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* --- Bloques Alternados (Zig-Zag) --- */
.service-feature {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
}

.service-feature:last-child {
    margin-bottom: 0;
}

/* Invierte el orden para que la imagen quede a la izquierda */
.service-feature.reverse {
    flex-direction: row-reverse;
}

.sf-text {
    flex: 1;
}

.sf-text h3 {
    color: #FFFFFF;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.sf-text p {
    color: #94A3B8;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.sf-text ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sf-text ul li {
    color: #CBD5E1;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    position: relative;
    padding-left: 25px;
}

/* Viñetas personalizadas en rojo */
.sf-text ul li::before {
    content: "\f058"; /* Icono de Check de FontAwesome (Asegúrate de tener FontAwesome cargado) */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #E53935;
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 1.1rem;
}

.sf-text ul li strong {
    color: #FFFFFF;
}

.sf-image {
    flex: 1;
    position: relative;
}

/* Estilo para las imágenes */
.sf-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); /* Sombra elegante */
    border: 1px solid rgba(255, 255, 255, 0.05); /* Borde súper sutil */
    transition: transform 0.3s ease;
}

.sf-image:hover img {
    transform: scale(1.02); /* Pequeño zoom al pasar el mouse */
}

/* --- Responsividad para móviles --- */
@media (max-width: 992px) {
    .service-feature, 
    .service-feature.reverse {
        flex-direction: column; /* En tabletas y celulares, la imagen va arriba del texto */
        gap: 40px;
        margin-bottom: 80px;
    }
    
    .sf-image {
        order: -1; /* Obliga a la imagen a estar siempre arriba del texto en móviles */
        width: 100%;
    }
}

/* --- Carrusel de Imágenes en Zig-Zag --- */
.sf-carousel-wrapper {
    flex: 1;
    width: 100%;
}

.sf-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    aspect-ratio: 4 / 3; /* Mantiene un tamaño uniforme para todas las fotos */
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.4s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* <--- Esto ajusta la imagen completa sin cortar nada */
    background-color: #0b0c10; /* Asegura que la foto llene el espacio sin deformarse */
}

/* Botones del Carrusel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(11, 12, 16, 0.7);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: #E53935;
    border-color: #E53935;
}

.prev-btn { left: 15px; }
.next-btn { right: 15px; }

/* Puntitos (Dots) */
.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: #E53935; /* Color rojo ORDI para el puntito activo */
}
