
* {
  box-sizing: border-box;
}
:root {
    --white: #fff;
    --black: #333;
}

body {
    height: 100%;
    background: #f0f0f0;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
}

.centrado-menu{
    display: flex;
    height: auto;
    width: 100%;
}

.logo p {
    margin: 0;
    line-height: 0.1;
}

.logo .l1 {
    margin-top: 5px;
    font-size: 23px;
    font-weight: bold;
    color: black;
}

.logo .l2 {
    font-size: 20px;
    color:black;
    margin-bottom: 5px;
}

.menu {
    display: flex;
    width: 100%;
    background: linear-gradient(135deg, #708238, #c0c781);
    padding: 15px 30px;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}


.menu-links {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.menu-links li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.menu-links li a:hover {
    color: #ffd700;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 25px;
    position: relative;
    z-index: 1100;
}

.menu-toggle span {
    position: absolute;
    height: 3px;
    width: 100%;
    background:white;
    border-radius: 2px;
    transition: 0.3s ease;
}

.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 11px;
}

.menu-toggle span:nth-child(3) {
    bottom: 0;
}


.menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg);
    top: 11px;
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 11px;
}

.centrado {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

button {
    cursor: pointer;
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 12px;
    border-radius: 5px;
    font-size: 16px;
    transition: background 0.3s ease;
}

button:hover {
    background: #555;
}

.toggle-link {
    margin-top: 10px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    user-select: none;
}

.toggle-link span {
    color: var(--black);
    font-weight: bold;
    text-decoration: underline;
    }

.centrado-tabla {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    }
  

table {
  width: 100%;
  margin-left: 30px;
  margin-right: 30px;
  border-collapse: collapse;
  margin-top: 100px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.centrado-th{
  text-align: center;
}

th, td {
  padding: 15px;
  text-align: left;
  font-size: 16px;
}


th {
  background-color: #007bff;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
}


tr:nth-child(even) {
  background-color: #f9f9f9;
}

tr:nth-child(odd) {
  background-color: #ffffff;
}


tr:hover {
  background-color: #f1f1f1;
}


a {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

a:hover {
  text-decoration: underline;
  color: #0056b3;
}


td {
  font-size: 14px;
}


th, td {
  border-bottom: 2px solid #ddd;
}

td a {
  display: inline-block;
  max-width: 300px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .menu-links {
    flex-direction: column;
    position: absolute;
    top: 46px;
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(1, 6, 53, 0.95));
    display: none;
    text-align: center;
    padding: 20px 0;
  }

  .menu-links.show {
    display: flex;
    animation: fadeIn 0.3s ease-in-out;
  }

}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .menu-links {
    flex-direction: column;
    position: absolute;
    top: 46px;
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(1, 6, 53, 0.95));
    display: none;
    text-align: center;
    padding: 20px 0;
  }

  .menu-links.show {
    display: flex;
    animation: fadeIn 0.3s ease-in-out;
  }

    table {
    width: 100%;
    margin-left: 30px;
    margin-right: 30px;
  }

  th, td {
    font-size: 14px;
    padding: 10px;
  }

}


@media (max-width: 468px) {
  table {
    width: 95%;          
    margin: 100px auto 30px auto;   
    font-size: 14px;     
  }

  th, td {
    padding: 8px;        /* menos padding para que quepa mejor */
    font-size: 12px;     /* texto más pequeño en celdas */
    word-wrap: break-word; /* que las palabras largas no rompan la tabla */
  }
}

@media (max-width: 468px) {
  .menu-toggle {
    display: block;
  }

  .menu-links {
    flex-direction: column;
    position: absolute;
    top: 46px;
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(1, 6, 53, 0.95));
    display: none;
    text-align: center;
    padding: 20px 0;
  }

  .menu-links.show {
    display: flex;
    animation: fadeIn 0.3s ease-in-out;
  }

}