/* Estilos base */
body {
    font-size: 18px;
    background-color: #f8f9fa;
}

@media screen and (max-width: 768px) {

    table,
    tbody,
    tr {
        display: block;
    }

    thead {
        display: none;
    }

    tr {
        background: white;
        margin-bottom: 5px;
        border: 2px solid #dc3444;
        border-radius: 12px;
        padding: 10px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        /* Activamos Grid en la tarjeta */
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        /* Dos columnas iguales */
        gap: 10px;
    }

    /* La Clave (ID) ocupa las dos columnas arriba */
    td:nth-of-type(1) {
        grid-column: span 2;
        display: block;
        font-size: 1.8rem !important;
        font-weight: 800;
        color: #000;
        border-bottom: 2px solid #f0f0f0 !important;
        margin-bottom: 5px;
        padding: 0 0 5px 0 !important;
    }

    td:nth-of-type(1):before {
        content: "CODIGO: ";
        font-size: 0.9rem;
        color: #dc3444;
    }

    /* Las celdas de Movimiento (2 y 3) */
    td:nth-of-type(2),
    td:nth-of-type(3) {
        display: block;
        border: none !important;
        padding: 0 !important;
        font-size: 1.2rem !important;
        /* Texto grande */
        line-height: 1.2;
        word-break: break-word;
        /* Rompe palabras largas si es necesario */
    }

    /* Etiquetas arriba de cada columna */
    td:nth-of-type(2):before {
        content: "ESPAÑOL";
        display: block;
        font-size: 0.75rem;
        font-weight: bold;
        color: #666;
        margin-bottom: 4px;
    }

    td:nth-of-type(3):before {
        content: "INGLÉS";
        display: block;
        font-size: 0.75rem;
        font-weight: bold;
        color: #666;
        margin-bottom: 4px;
    }

    /* Ajuste del buscador */
    #miBuscador {
        font-size: 1.5rem !important;
        padding: 15px !important;
        margin-bottom: 10px;
    }
}