/* ================================
   ESTILOS GENERALES
================================== */
body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

/* ================================
   HEADER
================================== */
header {
    background: black;
    color: white;
    text-align: center;
    padding: 18px;
    font-size: 22px;
    font-weight: bold;
    border-radius: 0 0 12px 12px;
}

/* ================================
   CONTENEDOR TABLA
================================== */
.padre {
    padding: 15px;
    display: flex;
    justify-content: center;
}

/* ================================
   TABLA
================================== */
table {
    width: 100%;
    max-width: 1100px;
    border-collapse: collapse;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
    vertical-align: middle;
    font-size: 15px;
    word-wrap: break-word;
}

/* Encabezados */
th {
    background: red;
    color: white;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: bold;
}

/* Filas alternadas */
tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* ================================
   IMÁGENES
================================== */
img {
    width: 70px;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s;
}

img:hover {
    transform: scale(1.1);
}

/* ================================
   RESPONSIVE
================================== */
@media (max-width: 768px) {
    header {
        font-size: 18px;
        padding: 15px;
    }

    th, td {
        font-size: 13px;
        padding: 8px;
    }

    td:nth-child(4) { /* Bibliografía más espacio en móvil */
        text-align: justify;
    }

    img {
        width: 60px;
    }
}

@media (max-width: 480px) {
    header {
        font-size: 16px;
        padding: 12px;
    }

    th, td {
        font-size: 12px;
        padding: 6px;
    }

    td:nth-child(4) { /* Bibliografía aún más cómoda */
        font-size: 12px;
        text-align: justify;
    }

    img {
        width: 50px;
    }
}
a {
    text-decoration: none;   /* quita el subrayado */
    color: inherit;          /* hereda el color del padre */
}
