/* ============================================================
   BOTÓN FLOTANTE INTELIGENTE - GASÓLEOS RIOTORTO
   ============================================================ */
/* Ocultar en PC */
@media (min-width: 768px) {
    .flotante-movil { display: none !important; }
}

/* Estilos Móvil */
@media (max-width: 767px) {
    .flotante-movil {
        position: fixed;
        bottom: 80px;
        right: 20px;
        z-index: 10000;
        display: flex;
        justify-content: flex-end; /* El ancla es la derecha */
        touch-action: none;
    }

    .boton-principal {
        background-color: #90FFBB !important; /* Verde Moeve */
        color: #047DBA !important;           /* Azul */
        padding: 12px;
        border-radius: 50px;
        display: flex;
        align-items: center;
        flex-direction: row-reverse; /* El icono se queda a la derecha del texto */
        box-shadow: 0px 4px 12px rgba(0,0,0,0.3);
        border: 2px solid #047DBA;
        transition: all 0.3s ease-in-out;
        max-width: 50px; /* Cerrado */
        height: 50px;
        box-sizing: border-box;
    }

    /* Cuando se abre */
    .flotante-movil.abierto .boton-principal {
        max-width: 300px; /* Espacio para el texto */
    }

    .icono {
        font-size: 20px;
        min-width: 24px;
        display: flex;
        justify-content: center;
    }

    .texto-wrapper {
        overflow: hidden;
        max-width: 0;
        opacity: 0;
        transition: all 0.3s ease;
        display: flex;
    }

    .flotante-movil.abierto .texto-wrapper {
        max-width: 200px;
        opacity: 1;
        margin-right: 10px; /* Espacio entre texto e icono */
    }

    .texto-desplegable {
        white-space: nowrap;
        font-weight: bold;
        font-size: 16px;
        color: #047DBA !important;
        text-decoration: none !important;
    }
}
/* ============================================================
   FIN BOTÓN FLOTANTE INTELIGENTE - GASÓLEOS RIOTORTO
   ============================================================ */