header {
    background: linear-gradient(90deg, #333, #444);
    color: #fff;
    padding: 20px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease, color 0.3s ease;
    top: 0;
    z-index: 1000;
}
body.dark-mode header {
    background: linear-gradient(90deg, #111, #222);
    color: #f0f0f0;
}
nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  background: #444;
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

nav a {
  color: white;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
}

nav a:hover {
  background: #ff9900;
  transform: scale(1.05);
}

/* Clase para link activo */
nav a.active {
  background: #ff9900;
  color: #000;
}

/* 🌙 Dark mode opcional */
body.dark-mode nav {
  background: #222;
}

body.dark-mode nav a:hover {
  background: #ffa31a;
  color: black;
}

img{
    max-width: 100%;
    height: auto;
    position: static;
    display: block;
    margin: 10px auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-radius: 10px;
    overflow: hidden;
}

table, th, td {
    border: 1px solid #ccc;
    text-align: center;
}

th, td {
    padding: 12px 15px;
}

th {
    background-color: #4CAF50;
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:nth-child(odd) {
    background-color: #f1f1f1;
}

tr:hover {
    background-color: #5be0f1;
    transition: background-color 0.3s ease;
}
@media screen and (max-width: 768px) {
    table, thead, tbody, th, td, tr {
        display: block;
        width: 100%;
    }

    thead {
        display: none;
    }

    tr {
        margin-bottom: 15px;
        border-bottom: 2px solid #ccc;
    }

    td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }

    td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        color: #333;
    }
}

footer {
    text-align: center;
    padding: 15px 10px;
    background: #333;
    color: white;
    width: 100%;
    position: fixed;  /* fijo en la parte inferior */
    bottom: 0;
    left: 0;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.3);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    z-index: 1000;
}
:root {
    --bg-light: #faff6e;
    --bg-light-hover: #fffca8;
    --bg-dark: #333;
    --bg-dark-hover: #444;
    --text-light: #000;
    --text-dark: #fff;
    --icon-color-light: #4CAF50;
    --icon-color-dark: #90ee90;
}

ul {
    list-style: none;
    padding: 0;
    margin: 20px auto;
    width: 80%;
    max-width: 600px;
    text-align: left;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

ul li {
    background: var(--bg-light);
    color: var(--text-light);
    padding: 14px 18px;
    margin: 10px 0;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background 0.4s ease, transform 0.3s ease;
}

ul li:hover {
    background: var(--bg-light-hover);
    transform: translateX(5px);
    cursor: pointer;
}

ul li svg {
    flex-shrink: 0;
    fill: var(--icon-color-light);
    width: 20px;
    height: 20px;
}

/* 🌙 Dark Mode Support */
@media (prefers-color-scheme: dark) {
    ul li {
        background: var(--bg-dark);
        color: var(--text-dark);
    }

    ul li:hover {
        background: var(--bg-dark-hover);
    }

    ul li svg {
        fill: var(--icon-color-dark);
    }
}

/* Responsive design */
@media (max-width: 600px) {
    ul {
        width: 95%;
    }

    ul li {
        font-size: 16px;
        padding: 12px 14px;
    }

    ul li svg {
        width: 18px;
        height: 18px;
    }
}

section {
    padding: 20px;
}
body {
    background-image: url('image.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed; 
    background-position: center;
        }