/* --- Solución al deslizamiento lateral (Overflow) --- */

html, body {
    max-width: 100%;
    overflow-x: hidden; /* Corta cualquier contenido que sobresalga a la derecha */
    position: relative;
}

/* Forzar que el contenedor de eventos no rompa el ancho en móvil */
.ribas-custom-events-wrapper {
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* Ajuste para el iFrame de eventos en pantallas pequeñas */
@media screen and (max-width: 600px) {
    .ribas-custom-events-wrapper iframe {
        width: 100% !important;
        min-width: 100% !important;
    }
    
    /* Evitar que títulos muy largos empujen el margen */
    h1, h2, .cr-title {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}
/* --- BOTÓN PRINCIPAL WEB (ESTÁNDAR CORPORATIVO) --- */
.btn-ribas-principal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #1e293b;
    color: #ffffff !important;
    padding: 12px 28px; /* Proporciones estándar y equilibradas */
    text-decoration: none !important;
    border-radius: 4px; /* Curva sutil, aspecto formal */
    font-weight: 600;
    font-size: 1rem; /* Tamaño de fuente corporativo (aprox. 16px) */
    line-height: 1.5;
    transition: all 0.3s ease;
    border: 1px solid #0f172a;
    cursor: pointer;
}

/* Flecha automática */
.btn-ribas-principal::after {
    content: "\2192"; 
    margin-left: 8px; /* Separación ajustada al nuevo tamaño */
    font-size: 1.1rem; /* Ligeramente mayor que el texto para destacar */
    transition: transform 0.3s ease;
}

/* Efecto Hover corporativo */
.btn-ribas-principal:hover {
    background-color: #0f172a;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12); /* Sombra elegante y contenida */
    transform: translateY(-1px); /* Elevación muy discreta */
    color: #ffffff !important;
}

/* Movimiento de la flecha al pasar el cursor */
.btn-ribas-principal:hover::after {
    transform: translateX(4px); /* Desplazamiento corto y profesional */
}
/* --- BOTÓN SECUNDARIO WEB (Transparente con borde oscuro) --- */
.btn-ribas-secundario {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px; /* Espacio entre el texto y el icono */
    padding: 16px 32px;
    border: 1.5px solid #111827 !important; /* Borde oscuro */
    background: transparent !important; /* Fondo transparente */
    color: #111827 !important; /* Texto oscuro */
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    text-transform: uppercase;
    transition: all 0.3s ease;
    width: fit-content;
    cursor: pointer;
}

/* Efecto al pasar el ratón: fondo oscuro y texto blanco */
.btn-ribas-secundario:hover {
    background: #111827 !important;
    color: #ffffff !important;
}

/* --- (Opcional) Comportamiento en móviles --- */
/* Si quieres que en móviles este botón ocupe todo el ancho de la pantalla, usa esta regla: */
@media (max-width: 768px) {
    .btn-ribas-secundario {
        width: 100%;
    }
}