html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    background-color: #A164C2;
    color: black;
}
header {
    background-color: #F5004F;
    color: black;
    padding: 20px;
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

nav a {
    color: aqua;
    text-decoration: underline;
    font-weight: bold;
    padding: 5px 10px;
    transition: 0.2s;
}

nav a:hover {
    background-color: black;
    border-radius: 5px;
}
.tabla-container {
    background-color: bisque;
    width: 90%;
    max-width: 1100px;
    margin: 40px auto;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.titulo {
    text-align: center;
    color: #F5004F;
    margin-bottom: 20px;
    font-size: 28px;
}

table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 12px;
    background-color: white;
}

thead {
    background-color: #F5004F;
    color: white;
}

thead th {
    padding: 12px;
    font-size: 15px;
}

tbody tr {
    border-bottom: 1px solid #ddd;
}

tbody tr:hover {
    background-color: rgba(161, 100, 194, 0.2);
    transition: 0.2s;
}

td {
    padding: 12px;
    font-size: 14px;
}

.acciones a {
    display: inline-block;
    padding: 6px 10px;
    margin: 2px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    text-decoration: none;
    font-size: 13px;
    transition: 0.2s;
}

.acciones a:hover {
    transform: scale(1.07);
}

.acciones a:first-child {
    background-color: #A164C2;
}

/* Botón Eliminar */
.acciones a:last-child {
    background-color: #F5004F;
}

.no-registros {
    text-align: center;
    font-weight: bold;
    padding: 20px;
    color: black;
}

footer {
    color: white;
    background-color: #19191A;
    text-align: center;
    padding: 15px;
    margin-top: auto;
}

@media (max-width: 768px) {

    table {
        font-size: 13px;
    }

    .acciones a {
        font-size: 12px;
        padding: 5px 7px;
    }

    thead {
        display: none;
    }

    table, tbody, tr, td {
        display: block;
        width: 100%;
    }

    tr {
        margin-bottom: 15px;
        background: #fff;
        padding: 10px;
        border-radius: 10px;
        box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    }

    td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }

    td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        font-weight: bold;
    }
}
