/* =====================
   ESTILOS GENERALES
===================== */
body {
    font-family: "Segoe UI", Tahoma, sans-serif;
    margin: 0;
    padding: 0;
    background: #f8f9fa; /* gris claro */
}

/* =====================
   ENCABEZADO
===================== */
header {
    background: linear-gradient(to right, #008000, #ffffff, #ff0000); 
    /* Verde, Blanco, Rojo */
    color: #000;
    text-align: center;
    padding: 25px;
    border-bottom: 6px solid #006400;
}

header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px #ffffff;
}

/* =====================
   TABLA
===================== */
table {
    width: 95%;
    border-collapse: collapse;
    margin: 25px auto;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* CABECERAS */
th {
    background: #008000; /* Verde bandera */
    color: #fff;
    padding: 14px;
    text-align: center;
    font-size: 15px;
    text-transform: uppercase;
    border: 1px solid #000;
}

/* CELDAS */
td {
    border: 1px solid #ddd;
    padding: 14px;
    text-align: center;
    vertical-align: middle;
    font-size: 14px;
}

/* Filas alternas */
tr:nth-child(even) {
    background: #f2f2f2;
}

tr:nth-child(odd) {
    background: #ffffff;
}

/* Hover */
tr:hover {
    background: #ffe5e5; /* Rojo claro */
    transition: background 0.3s;
}

/* =====================
   IMÁGENES
===================== */
td img {
    width: 80px;
    height: auto;
    border-radius: 10px;
    border: 3px solid #008000; /* Verde */
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 768px) {
    th, td {
        font-size: 12px;
        padding: 8px;
    }

    td img {
        width: 60px;
    }

    header h1 {
        font-size: 18px;
        padding: 15px;
    }
}
a {
    text-decoration: none;   /* quita el subrayado */
    color: inherit;          /* hereda el color del padre */
}
