/* Contenedor principal */
.seccion-lloros {
    padding: 20px;
    max-width: 900px;
    margin: auto;
}

.titulo-pagina-lloro { 
    text-align: center; 
    color: #1a237e; 
    letter-spacing: 0px;
    margin-top: 100px;
}

.mister-nombre {font-weight: bold;}
.styled-table tr{
    box-shadow: 0 6px 10px rgba(0,0,0,0.05);
}

/* Botones de Jornada (Burbujas) */
.contenedor-burbujas {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.burbuja-jornada {
    background: #f8f9fa;
    border: 2px solid #1a237e;
    color: #1a237e;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.burbuja-jornada:hover, 
.burbuja-jornada.active {
    background: #1a237e;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(26, 35, 126, 0.2);
}

/* Tabla y Scroll */
.tabla-puntos-equipo-scroll {
    width: 100%; 
    max-height: 600px;
    padding: 0 15px;
    margin: 20px auto 40px;
    box-sizing: border-box;
    overflow-y: auto;
    border-radius: 12px;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.bloque-jornada {
    display: none; /* Se activa por JS */
    animation: aparecer 0.4s ease-out;
}

/* Estilo de los Lloros (Bocadillos) */
.lista-lloros {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lista-lloros li {
    background: #fff8f8;
    border-left: 5px solid #ff4b5c;
    margin-bottom: 1px;
    padding: 12px;
    font-style: italic;
    border-radius: 0 8px 8px 0;
    position: relative;
}

.lista-lloros li::before {
    content: "📢 ";
    font-style: normal;
}

.col-mister { width: 30%; }

@keyframes aparecer {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    /* 1. Quitamos el scroll lateral innecesario y ajustamos márgenes */
    .table-wrapper {
        overflow-x: visible; 
    }

    .tabla-puntos-equipo-scroll {
        margin-top: 20px !important;
        background: transparent;
    }

    /* 2. Convertimos la tabla en bloques verticales */
    .styled-table, 
    .styled-table thead, 
    .styled-table tbody, 
    .styled-table tr, 
    .styled-table td {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
    }

    /* 3. Ocultamos la cabecera original (Mister | Motivo) */
    .styled-table thead {
        display: none;
    }

    /* 4. Cada fila es ahora una "tarjeta" con sombra */
    .styled-table tr {
        background: white;
        margin-bottom: 5px;
        border-radius: 12px;
        border: 1px solid #e0e0e0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
        overflow: hidden;
    }

    /* 5. El nombre del Mister (Cabecera de la tarjeta) */
    .mister-nombre {
        background-color: #1a237e; /* Azul liga */
        color: white !important;
        padding: 12px 15px !important;
        font-weight: bold;
        font-size: 1rem;
        border-bottom: 2px solid #ff4b5c; /* Detalle en rojo */
    }

    /* 6. El bloque de los motivos (Debajo) */
    .col-motivos, .styled-table td:last-child {
        padding: 15px !important;
    }

    .lista-lloros li {
        font-size: 0.9rem;
        margin-bottom: 10px;
        background: #fdfdfd;
        border-left: 4px solid #ff4b5c;
        padding: 10px;
    }
}