/* assets/css/accesos_rapidos.css */

/* ==========================================================================
   CINTA DE ACCESOS RÁPIDOS - EFECTO ISLA CON MÁSCARA ALPHA (CORREGIDO)
   ========================================================================== */

/* La sección principal como isla flotante centrada al 90% */
.accesos-rapidos-section {
    width: 90%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    background-color: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
}

/* Contenedor principal del Marquee */
.marquee-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding-top: 15px;
    padding-bottom: 15px;

    /* SOLUCIÓN DEFINITIVA: Máscara de desvanecimiento por transparencia real.
       Hacemos que el contenedor se vuelva invisible un 8% en los extremos de forma orgánica */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

/* LA PISTA ANIMADA */
.marquee-track {
    display: flex;
    width: max-content;
    animation: scrollContinuo 40s linear infinite;
}

/* Enlaces contenedores */
.acceso-item-link {
    text-decoration: none !important;
    color: inherit;
}

/* El elemento individual */
.acceso-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 180px;
    margin: 0 20px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* El círculo del ícono (Apagado) */
.acceso-icono-wrapper {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background-color: #faf8f9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: #8c8c8c;
    font-size: 1.6rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

/* Título debajo del ícono */
.acceso-titulo {
    font-size: 0.8rem;
    font-weight: 700;
    color: #555555;
    letter-spacing: 0.03em;
    line-height: 1.3;
    transition: color 0.3s ease;
}


/* ==========================================================================
   INTERACCIONES (HOVER EFFECT)
   ========================================================================== */

/* Al pasar el mouse por la sección, se congela el movimiento */
.marquee-container:hover .marquee-track {
    animation-play-state: paused;
}

/* El botón completo se eleva limpiamente sin cortarse */
.acceso-item:hover {
    transform: translateY(-6px);
}

/* El ícono se enciende en morado institucional y expande su aura */
.acceso-item:hover .acceso-icono-wrapper {
    background-color: #662445;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(102, 36, 69, 0.3), 0 0 0 5px rgba(102, 36, 69, 0.12);
}

/* El texto cambia a morado */
.acceso-item:hover .acceso-titulo {
    color: #662445;
}


/* ==========================================================================
   ANIMACIÓN MATEMÁTICA
   ========================================================================== */
@keyframes scrollContinuo {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}