.carrusel-servicios 
{
    position: relative;
    overflow: hidden;
    width: 100%;
    /* Asegura altura mínima si no carga la imagen */
    min-height: 500px; 
    padding: 0;
    background-color: #f0f0f0; 
}

.carrusel-contenedor 
{
    display: flex;
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    width: 100%;
    height: 100%;
    will-change: transform;
}

.slide 
{
    flex: 0 0 100%;
    position: relative;
    box-sizing: border-box;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide img 
{
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    border-radius: 0;
}

.descripcion 
{
   position: absolute;
    bottom: 0;
    left: 0;
    transform: none;
    background: rgba(255, 255, 255, 0.7);
    padding: 0px 20px 30px;
    border-radius: 0;
    width: 100%;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.descripcion h3 
{
    margin: 0 0 8px;
    font-size: 1.3rem;
    color: #000000;
    text-align: center;
    font-weight: 600;
}

.descripcion ul 
{
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    list-style: none;
}

.descripcion li 
{
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
    color: #ffffff;
    white-space: nowrap;
    padding: 4px 8px;
    background: #000000;
    border-radius: 4px;
}

/* ESTILOS BASE DE BOTONES (Escritorio) */
.carrusel-btn 
{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    color: #000000;
    padding: 12px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    font-size: 1.2rem;
    opacity: 0.9;
    transition: all 0.3s ease;
    border: none;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.carrusel-btn:hover 
{
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-50%) scale(1.05);
    opacity: 1;
}

.izquierda 
{
    left: 15px;
}

.derecha 
{
    right: 15px;
}

/* MEDIA QUERY TABLETS */
@media (max-width: 768px) 
{
    .carrusel-servicios 
    {
        min-height: 300px; 
    }

    .descripcion 
    {
        bottom: 0;
        left: 0;
        width: 100%;
        transform: none;
        border-radius: 0;
        padding: 0px 2px 4px; 
        background: rgba(255, 255, 255, 0.7); 
    }
    
    .descripcion h3 
    {
        font-size: 0.8rem; 
        margin-bottom: 4px;
        font-weight: bold;
    }
    
    .descripcion ul 
    {
        gap: 4px; 
        margin: 0 auto;
        max-width: 100%;
        padding: 0 2px;
    }
    
    .descripcion li 
    {
        font-size: 0.55rem; 
        padding: 2px 4px; 
        border-radius: 2px;
    }
    
    .carrusel-btn 
    {
        padding: 8px; 
        font-size: 0.9rem; 
        width: 32px; 
        height: 32px; 
    }
    
    .izquierda 
    {
        left: 10px; 
    }
    
    .derecha {
        right: 10px; 
    }
}

/* MEDIA QUERY MÓVILES (Aquí está el cambio solicitado) */
@media (max-width: 480px) 
{
    /* 1. AJUSTE DE ALTURA: Se mantiene para evitar el espacio blanco */
    .carrusel-servicios 
    {
        min-height: auto !important; 
        height: auto !important;
        background-color: transparent;
    }

    .carrusel-contenedor 
    {
        height: auto !important;
    }

    .slide 
    {
        height: auto !important;
        display: block; 
    }

    .slide img 
    {
        width: 100%;
        height: auto !important; 
        max-height: none;
        object-fit: contain;
    }

    /* 2. AJUSTE DE DESCRIPCIÓN (Texto más pequeño para móviles) */
    .descripcion 
    {
        padding: 5px 10px 10px 10px;
        position: absolute;
        bottom: 0;
    }
    
    .descripcion h3 
    {
        font-size: 0.8rem;
        margin-bottom: 2px;
    }
    
    .descripcion ul 
    {
        gap: 3px;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: center;
        padding-bottom: 3px;
    }
    
    .descripcion li 
    {
        font-size: 0.55rem;
        padding: 1px 4px;
        white-space: nowrap;
    }
    
    /* 3. BOTONES: Estilo Escritorio (Circulares) pero ajustados */
    .carrusel-btn {
        top: 50%;
        transform: translateY(-50%);
        
        width: 32px;  /* Ligeramente más pequeños que en PC (40px -> 32px) */
        height: 32px;
        padding: 0;   /* Centrado automático con flex */
        font-size: 0.9rem;
        
        /* Estilo idéntico al de escritorio */
        border-radius: 50%; 
        background: rgba(255, 255, 255, 0.7); 
        color: #000000;
        backdrop-filter: blur(5px);
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .carrusel-btn:hover {
        background: rgba(255, 255, 255, 0.9);
        transform: translateY(-50%) scale(1.05);
    }
    
    .izquierda {
        left: 5px; /* Pequeño margen para no pegar al borde */
    }
    
    .derecha {
        right: 5px; /* Pequeño margen para no pegar al borde */
    }
    
    .descripcion ul::-webkit-scrollbar {
        height: 2px;
    }
}