
/* ======== ESTILO GENERAL ======== */
:root {
  --verde: #00796b;
  --verde-claro: #4db6ac;
  --azul: #01579b;
  --gris-claro: #f5f5f5;
  --gris-texto: #333;
  --blanco: #fff;
}

html, body {
  height: 100%;
  margin: 0;
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--gris-texto);
  background-color: var(--gris-claro);
  line-height: 1.7;
  display: flex;
  flex-direction: column;
}

/* ======== ENCABEZADO ======== */
header {
  background: linear-gradient(135deg, var(--verde), var(--azul));
  color: var(--blanco);
  text-align: center;
  padding: 3em 1em;
}

header h1 {
  margin: 0;
  font-size: 2em;
  font-weight: 700;
}

header p {
  margin-top: 0.5em;
  font-size: 1.1em;
  opacity: 0.9;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: center; /* centramos todo */
  background-color: #004d40;
  color: white;
  padding: 12px 24px;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Mantenemos el icono a la izquierda */
.menu-icon {
  position: absolute;
  left: 20px;
  font-size: 28px;
  cursor: pointer;
}

.menu-icon i {
  color: white;
}

/* Centramos el logo */
.logo {
  text-align: center;
}

.logo h1 {
  margin: 0;
  font-size: 22px;
}

.logo p {
  margin: 0;
  font-size: 13px;
  opacity: 0.85;
}

/* ======= ENLACES ======= */
.nav-links {
  list-style: none;
  display: none;
  flex-direction: column;
  position: absolute;
  top: 70px;
  left: 0;
  width: 100%;
  background-color: #004d40;
  margin: 0;
  padding: 0;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease-out;
}

.nav-links.show {
  display: flex;
  max-height: 400px; /* efecto slide */
}

.nav-links li {
  text-align: center;
  padding: 10px 0;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #a5d6a7;
  text-decoration: underline;
}

/* ======= CONTENIDO ======= */
section {
  padding: 40px 20px;
  text-align: center;
}

footer {
  text-align: center;
  padding: 15px;
  background-color: #f5f5f5;
  margin-top: 40px;
}


/* ======== SECCIONES ======== */
main {
  flex: 1; /* ocupa todo el espacio disponible */
  padding: 2em 1em;
  max-width: 1000px;
  margin: auto;
  width: 100%;
  box-sizing: border-box;
}

section {
  background: var(--blanco);
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  margin-bottom: 2em;
  padding: 2em;
}

section h2 {
  color: var(--azul);
  border-left: 6px solid var(--verde);
  padding-left: 0.5em;
  margin-top: 0;
}

section h3 {
  color: var(--verde);
  margin-top: 1.5em;
}

ul {
  list-style: none;
  padding-left: 1em;
}

ul li {
  margin-bottom: 0.6em;
  position: relative;
}

ul li::before {
  content: "•";
  color: var(--verde);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

/* ======== PIE DE PÁGINA ======== */
footer {
  background: var(--azul);
  color: var(--blanco);
  text-align: center;
  padding: 1em;
  font-size: 0.9em;
  margin-top: auto; /* empuja el footer al fondo */
}

footer a {
  color: var(--verde-claro);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ======== ADAPTACIÓN MÓVIL ======== */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.6em;
  }
  nav a {
    display: inline-block;
    margin: 0.5em;
  }
  section {
    padding: 1.2em;
  }
}
