/* ==========================================================================
   SERVICIOS: Ajuste Ultra-Compacto (Estilo Figma)
   ========================================================================== */

.seccion-servicios {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 108svh;
    background: #000000;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    padding: 120px 0;
    /* Sincronizado con Nosotros y Capacidad */
}

.seccion-servicios .container-fluid {
    padding-left: var(--page-gutter) !important;
    /* Alineado con el logo del menú */
    padding-right: var(--page-gutter) !important;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto !important;
}

/* Indicador superior (Dot + Texto Pequeño) */
.servicios-label-header {
    margin-bottom: 48px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    width: fit-content;
    /* Limitamos el área de hover a la letra */
}

.ellipse-dot {
    width: 4.47px;
    height: 4.47px;
    background: #FFFFFF;
    /* Blanco puro solicitado */
    border-radius: 50%;
    transition: background 0.3s ease;
}

.inicio-label {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 18px;
    color: #FFFFFF;
    /* Blanco puro solicitado */
    text-transform: uppercase;
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

/* Efecto hover solicitado: al pasar por encima se pone amarillo */
.servicios-label-header {
    cursor: pointer;
    transition: all 0.3s ease;
}

.servicios-label-header:hover .ellipse-dot {
    background: #FCE700;
}

.servicios-label-header:hover .inicio-label {
    color: #FCE700;
}

/* Contenedor de la lista - Alineado con la etiqueta superior */
.servicios-list-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 !important;
    /* Alineado con el label (3rem del container) */
    margin: 0 !important;
    gap: 0 !important;
    width: 100%;
}

/* Reset de enlaces */
.servicio-link-clear {
    text-decoration: none !important;
    color: inherit;
    display: block;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

/* Fila de cada servicio */
.servicio-item-row {
    display: flex;
    align-items: center;
    gap: 0;
    /* Eliminado el gap para alineación perfecta al inicio */
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;
    transition: all 0.4s ease;
}

/* Títulos masivos y pegados */
.servicio-title-large {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: clamp(28px, 10vw, 140px);
    line-height: 0.8 !important;
    letter-spacing: -0.05em !important;
    text-transform: uppercase;
    color: #FFFFFF;
    margin: 0 !important;
    padding: 0 !important;
    transition: all 0.4s ease;
    text-align: left;
    display: block;
}

/* Solo amarillo en hover, no por defecto */
.servicio-item-row:hover .servicio-title-large {
    color: #FCE700;
}

/* Efecto de vídeo en hover */
.hover-video-wrapper {
    width: 0;
    height: 100px;
    overflow: hidden;
    opacity: 0;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    border-radius: 4px;
    flex-shrink: 0;
    margin: 0;
}

.hover-video {
    width: 180px;
    height: 100px;
    object-fit: cover;
}

.servicio-item-row:hover .hover-video-wrapper {
    width: 180px;
    opacity: 1;
    margin-right: 32px;
    /* El video empuja el texto al aparecer */
}

.servicio-item-row:hover .servicio-title-large {
    color: #FCE700;
    transform: translateX(10px);
}

/* Desactivar animación de vídeo en pantallas táctiles o pequeñas */
@media (hover: none) or (max-width: 992px) {
    .servicio-title-large {
        text-align: left;
        line-height: 1 !important; /* Más separado para leer normal */
        margin-bottom: 12px !important; /* Espacio extra real */
    }

    .hover-video-wrapper {
        display: none !important;
        height: 0 !important;
    }

    .servicio-item-row:hover .hover-video-wrapper {
        width: 0;
        opacity: 0;
        margin-right: 0;
    }

    .servicio-item-row:hover .servicio-title-large {
        transform: none;
    }
}

@media (max-width: 768px) {
    .seccion-servicios {
        min-height: 100vh;
        min-height: 100svh;
        min-height: 106svh;
        justify-content: center;
        padding: 88px 0;
    }

    .servicios-label-header {
        margin-bottom: 32px;
        gap: 12px;
    }

    .servicio-item-row {
        width: 100%;
    }

    .servicio-title-large {
        width: 100%;
        font-size: clamp(30px, 12vw, 64px);
        line-height: 0.92 !important;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 480px) {
    .seccion-servicios {
        min-height: 100vh;
        min-height: 100svh;
        min-height: 104svh;
        padding: 76px 0;
    }

    .servicio-title-large {
        font-size: clamp(26px, 11vw, 46px);
    }
}
