* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

fichero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  background-color: #121212;
  color: #e0e0e0;
  min-height: 100vh;
}

regresar {
  display: block;
  width: 100%;
  max-width: 600px;
  margin-bottom: 30px;
}

a {
  display: inline-block;
  text-decoration: none;
  background-color: #1b5e20;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
}

a:hover {
  background-color: #4caf50;
  color: #121212;
  box-shadow: 0 0 12px rgba(76, 175, 80, 0.4);
  transform: scale(1.03);
}

pais {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 600px;
  gap: 20px;
}

pais::before {
  content: "País: " attr(nombre);
  display: block;
  font-size: 2.2rem;
  color: #4caf50;
  text-align: center;
  font-weight: bold;
  margin-bottom: 20px;
  border-bottom: 2px solid #4caf50;
  padding-bottom: 10px;
}

departamento {
  display: flex;
  flex-direction: column;
  background-color: #1e1e1e;
  border-left: 5px solid #4caf50;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  gap: 12px;
}

departamento::before {
  content: "Departamento: " attr(nombre) " (ID: " attr(id) ")";
  display: block;
  font-size: 1.4rem;
  color: #a5d6a7;
  border-bottom: 1px solid #333;
  padding-bottom: 10px;
  margin-bottom: 5px;
}

cabecera,
habitantes,
altura {
  display: block;
  font-size: 1.1rem;
}

cabecera::before {
  content: "Cabecera: ";
  font-weight: 600;
  color: #4caf50;
}

habitantes::before {
  content: "Habitantes: ";
  font-weight: 600;
  color: #4caf50;
}

altura::before {
  content: "Altura: ";
  font-weight: 600;
  color: #4caf50;
}
