:root {
  --azul: #1E3A8A;
  --gris: #4B5563;
  --verde: #34D399;
  --amarillo: #FBBF24;
  --fondo-claro: #F9FAFB;
  --texto-claro: #ffffff;
  --color-gris-hielo: #E5E7EB;
}

/* 🩶 Reset básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 🌐 Estructura general */
body {
  background: var(--fondo-claro);
  font-family: Arial, Helvetica, sans-serif;
  color: #111;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 📦 Contenedor principal */
#container {
  max-width: 1100px;
  margin: 0 auto;
  border: 3px solid #000;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* 🧠 Cabecera */
header {
  background: var(--azul);
  color: #eee;
  text-align: center;
  padding: 2rem 1rem;
}

header h1 {
  font-size: 2.4rem;
  letter-spacing: 1px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

/* ✨ Animación SVG */
svg {
  width: 280px;
  height: auto;
  margin: 20px auto;
  display: block;
}

/* 🧭 Navegación */
nav {
  background: var(--gris);
  border-bottom: 1px solid black;
  padding: 0.5rem 1rem;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  list-style: none;
  gap: 10px;
}

nav ul li a {
  color: var(--texto-claro);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: var(--verde);
}

/* Navbar personalizada */
.navbar {
  margin-bottom: 20px;
}

.nav-link {
  color: white !important;
}

.nav-link:hover {
  color: yellowgreen !important;
}

#lista2 {
  margin-left: auto;
}

/* 🧩 Contenido principal */
main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* 🗂 Sección lateral / datos */
#datosjs {
  flex: 1 1 30%;
  background: #F9FAFB;
  padding: 2rem;
  border-top: 1px solid #ddd;
}

#datosjs h1,
#datosjs h2,
#datosjs h6 {
  font-family: 'Courier New', Courier, monospace;
  color: #105f59;
  text-align: center;
}

#datosjs h2 {
  font-style: oblique;
  font-weight: bold;
  font-size: medium;
}

#datosjs h6 {
  font-weight: bold;
  font-size: medium;
}

/* 📋 Accordion */
.accordion-button {
  background: var(--azul);
  color: white;
  font-weight: 500;
  transition: background 0.3s;
}

.accordion-button:hover {
  background: #15357b;
}

.accordion-body {
  background: #fff;
  color: #222;
  font-size: 1rem;
}

/* 🧾 User ID / login info */
#userId {
  flex: 1 1 30%;
  background: #F9FAFB;
  padding: 2rem;
  border-top: 1px solid #ddd;
}

#userId h2,
#userId h6 {
  font-family: 'Courier New', Courier, monospace;
  color: #105f59;
  text-align: center;
  font-style: oblique;
  font-weight: bold;
  font-size: medium;
}

/* 🦶 Pie de página */
footer {
  background: var(--color-gris-hielo);
  color: var(--azul);
  text-align: center;
  padding: 1rem;
  font-size: 1rem;
}

footer img {
  width: 45px;
  height: 45px;
  vertical-align: middle;
  margin-top: 8px;
  transition: transform 0.3s ease;
}

a {
  text-decoration: none;
}

.link_green {
  color: var(--verde);
  font-weight: bold;
}

/* 📱 Responsividad general */
@media screen and (max-width: 992px) {
  header h1 {
    font-size: 2rem;
  }

  #container {
    border: none;
    box-shadow: none;
    width: 95%;
  }

  nav ul {
    gap: 5px;
  }

  nav ul li a {
    font-size: 0.95rem;
  }
}

@media screen and (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }

  #datosjs,
  #userId {
    flex: 1 1 100%;
    padding: 1rem;
  }

  .accordion-button {
    font-size: 1rem;
  }

  .accordion-body {
    font-size: 0.95rem;
  }

  footer {
    font-size: 0.9rem;
  }

  svg {
    max-width: 150px;
  }
}

@media screen and (max-width: 480px) {
  header {
    padding: 1.5rem 0.5rem;
  }

  header h1 {
    font-size: 1.5rem;
  }

  .accordion-button {
    font-size: 0.9rem;
    padding: 0.8rem;
  }

  .accordion-body {
    font-size: 0.85rem;
  }

  nav ul li a {
    font-size: 0.9rem;
  }

  footer {
    font-size: 0.8rem;
    padding: 0.8rem;
  }

  footer img {
    width: 40px;
    height: 40px;
  }
}
