/* ===== GENERAL ===== */
body {
    background-color: black;
    color: lightgray;
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
}

/* ===== ID TITULO (h1) ===== */
#titulo {
    background-color: #8b321b;
    color: black;
    font-family: 'Times New Roman', serif;
    text-align: center;
    padding: 20px;
    margin: 0;
}

/* ===== CLASE SECCION (section) ===== */
.seccion {
    background-color: #5394aa;
    padding: 15px;
    margin: 30px 0 0 0;
    width: 100%;
    box-sizing: border-box;
}

.seccion h2 {
    color: black;
    font-weight: bold;
    text-align: center;
    margin: 0;
}

/* ===== CLASE MARGEN (div de cada sección) ===== */
.margen {
    margin: 20px auto;
    text-align: center;
}

/* ===== PÁRRAFO ===== */
p {
    margin: 20px 50px;
    text-align: justify;
    color: lightgray;
}

/* ===== ÍNDICE ===== */
h2:not(.seccion) {
    color: lightgray;
    margin-left: 50px;
}

ol {
    margin-left: 70px;
}

ol a:link {
    color: #5394aa;
    text-decoration: none;
}

ol a:visited {
    color: #8b321b;
    text-decoration: none;
}

ol a:hover {
    color: white;
    text-decoration: none;
}

ol a:active {
    color: #8b321b;
    text-decoration: none;
}

/* ===== IMAGEN ===== */
img {
    display: block;
    margin: 0 auto;
    max-width: 400px;
}

/* ===== TABLAS ===== */
table {
    border-collapse: collapse;
    margin: 0 auto;
    color: lightgray;
}

table td, table th {
    border: 1px solid gray;
    padding: 8px 16px;
}

/* Pseudoclase first-child: encabezado de tabla */
tr:first-child {
    background-color: gray;
    color: black;
    font-weight: bold;
}

/* Hover en filas de tabla (excepto encabezado) */
tr:not(:first-child):hover {
    background-color: #5394aa;
    color: black;
    cursor: pointer;
}

/* ===== ENLACES (ul) ===== */
ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

ul li {
    margin: 10px 0;
}

ul a:link {
    color: lightgray;
    text-decoration: none;
    padding: 5px 15px;
}

ul a:visited {
    color: lightgray;
    text-decoration: none;
}

ul a:hover {
    background-color: lightgray;
    color: black;
    text-decoration: none;
    padding: 5px 15px;
}

ul a:active {
    background-color: red;
    color: white;
    text-decoration: none;
    padding: 5px 15px;
}

/* ===== FOOTER ===== */
footer {
    background-color: gray;
    color: lightgray;
    text-align: center;
    padding: 15px;
    margin-top: 30px;
}
