/* =========================
   RESET
   ========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
}

/* =========================
   BASE
   ========================= */
body {
  background-color: #111;
  color: #eaeaea;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.7;
}

/* =========================
   CONTENEDOR CENTRAL
   ========================= */
.container {
  max-width: 900px;
  margin: 3rem auto;       /* centra horizontalmente */
  padding: 2rem;

  background-color: #141414; /* ligero contraste */
  box-shadow: 0 0 20px rgba(0,0,0,0.6); /* sombra elegante */
  border: 1px solid #222;
}

/* =========================
   HEADER
   ========================= */
header {
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  text-align: center;
  background: #22262c;
  border-bottom: 1px solid #333;

  padding: 1.5rem 0; /* ✅ importante: controlamos altura */
}


header h1 {
  margin: 0;
  font-size: 1.8rem;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

header p {
  margin: auto;
  max-width: none;
  text-align: center;
  color: #aaa;
  font-size: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}



/* Estructura del menú */

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 0;
  margin: 1rem 0;
}

nav li {
  margin: 0;
}

/* Enlaces */
nav a {
  color: #bbbbbb;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

nav a:hover {
  color: #58a6ff;
  text-decoration: underline;
}

nav a.active {
  color: #ff7b72; /* color destacado */
  font-weight: 600;
}


/* =========================
   CONTENIDO
   ========================= */
main {

  font-family: "Gill Sans MT", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h2 {
  margin-top: 2rem;
  color: #ffa657;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}


h3 {
  color: #7ee787; /* violeta suave */
}


main p {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  color: #eaeaea;
}


/* =========================
   ENLACES
   ========================= */

a {
  color: #58a6ff; /* más nítido, estilo IDE */
}

a:visited {
  color: #c297ff; /* distingue enlaces visitados */
}

a:hover {
  color: #ffffff;
}


/* =========================
   FOOTER
   ========================= */
footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #333;
  font-size: 0.85rem;
  color: #888;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 600px) {
  .container {
    margin: 1rem;
    padding: 1.5rem;
  }
  
  nav ul {
    flex-wrap: wrap;
    gap: 0.8rem;
  }

}

/* =========================
   CONMUTADOR DE IDIOMA
   ========================= */


.lang-switch {
  margin-top: 0.3rem;
  margin-bottom: 0.7rem;
  top: 10px;
  right: 20px;
  text-align: right;
  font-size: 0.85rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  z-index: 1100; /* ✅ por encima de todo */
}


.lang-switch a {
  color: #bbb;
  text-decoration: none;
}

.lang-switch a:hover {
  color: white;
}

/* =========================
   heading primary configuration
   ========================= */

.heading-primary {
  margin: 0;
  text-align: center;
  font-size: 1.8rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  color: #ffffff;
}

/* =========================
   Alineación  h2, h3 y ul
   ========================= */

main h2,
main h3,
main ul {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}



/* =========================
   Fijar posición de navegador
   ========================= */

nav {
  top: 130px; /* ✅ ajustado al header real */
  left: 0;
  margin-top: 1rem;
  width: 100%;
  z-index: 999;
  background-color: #111;
}

/* =========================
   Título del sitio - color
   ========================= */

.site-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 500;
  color: #eaeaea; /* más neutro que h1 */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
