body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background-color: #2C2C2C;
  color: #F5F5F5;
}

header, footer {
  text-align: center;
  background: #1E1E1E;
  padding: 20px;
  border-bottom: 2px solid #E0C097;
}

header h1, footer p {
  color: #E0C097;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}

nav a {
  text-decoration: none;
  color: #F5F5F5;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: #E0C097;
}

.container {
  max-width: 1000px;
  margin: 30px auto;
  background: #3A3A3A;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  text-align: center;
}

.container img {
  max-width: 300px;
  border-radius: 10px;
  margin: 15px 0;
}

table {
  margin: 20px auto;
  border-collapse: collapse;
  width: 80%;
  background: #2C2C2C;
}
.tareas ul {
  list-style: disc;
  list-style-position: inside; /* la viñeta se mete en la caja del texto */
  padding: 0;
  margin: 0;
  text-align: center;          /* el texto puede quedar centrado */
}

th, td {
  border: 1px solid #E0C097;
  padding: 12px;
}

th {
  background: #1E1E1E;
  color: #E0C097;
}

form {
  margin: 20px auto;
  width: 70%;
  text-align: left;
}

label {
  display: block;
  margin-top: 10px;
  color: #E0C097;
}

input, textarea {
  width: 100%;
  padding: 10px;
  margin: 5px 0;
  border: none;
  border-radius: 6px;
}

input[type="submit"], input[type="reset"] {
  width: auto;
  background: #E0C097;
  color: #2C2C2C;
  cursor: pointer;
  margin-top: 10px;
}

input[type="submit"]:hover, input[type="reset"]:hover {
  background: #C89F85;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
:focus { outline: 2px solid #E0C097; outline-offset: 2px; }

.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 10px;
}
.galeria-item {
  background: #2C2C2C;
  border-radius: 10px;
  padding: 10px;
  display: flex;             /* clave */
  flex-direction: column;
  align-items: center;
}

/* Marco de la imagen*/
.galeria-item img {
  width: 100%;
  height: 220px;             
  object-fit: contain;       
  object-position: center;   /* aca lo centro en el marco */
  display: block;
}

/* Texto de abajo */
.galeria-item figcaption {
  margin-top: 8px;
  color: #E0C097;
  font-size: 0.9rem;
  text-align: center;
}

.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.85); display: none; align-items: center; justify-content: center; z-index: 1000; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 80vh; border-radius: 8px; }
.lb-close, .lb-prev, .lb-next { position: absolute; background: #1E1E1E; color: #E0C097; border: 1px solid #E0C097; padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.lb-close { top: 20px; right: 20px; font-size: 24px; line-height: 1; }
.lb-prev { left: 30px; }
.lb-next { right: 30px; }

@media (max-width: 600px) {
  .container { padding: 20px; }
  .galeria-item img { height: 120px; }
}


/* Accesibilidad: enlace para saltar contenido */
.skip-link {
  position: absolute; left: -999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  position: static; width: auto; height: auto; padding: 6px 10px; background:#E0C097; color:#1E1E1E;
}

/* Nav en una sola línea */
.nav-list { list-style: none; display: flex; gap: 20px; justify-content: center; align-items: center; padding: 0; margin: 15px 0 0; }
.nav-list li { display: list-item; }
