/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Fuente base */
body {
  font-family: Arial, sans-serif;
  background-color: #111;
  color: #eee;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 18px; /* Antes 16px, ahora 18px */
}

/* Contenedor del logo centrado */
.logo-container {
  text-align: center;
  margin: 1rem 0;
}

.logo {
  max-width: 250px;
  width: 80vw;
  height: auto;
  display: inline-block;
}

/* Header */
header {
  background-color: #222;
  padding: 0.5rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Nav */
nav {
  width: 100%;
  max-width: 900px;
}

/* Menú */
.nav-list {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  transition: max-height 0.3s ease;
}

/* Links */
.nav-list li a {
  color: #eee;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem; /* Antes 1rem, más grande */
  transition: color 0.3s ease;
}

.nav-list li a:hover,
.nav-list li a:focus {
  color: #8B0000; /* rojo sangre */
  outline: none;
}

/* Botón hamburguesa */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 20px;
  width: 30px;
  height: 25px;
  z-index: 1100;
}

.menu-toggle .hamburger,
.menu-toggle .hamburger::before,
.menu-toggle .hamburger::after {
  content: "";
  display: block;
  background-color: #eee;
  height: 3px;
  border-radius: 2px;
  transition: all 0.3s ease;
  position: relative;
}

.menu-toggle .hamburger {
  width: 100%;
  margin-top: 8px;
}

.menu-toggle .hamburger::before,
.menu-toggle .hamburger::after {
  width: 100%;
  position: absolute;
  left: 0;
}

.menu-toggle .hamburger::before {
  top: -10px;
}

.menu-toggle .hamburger::after {
  top: 10px;
}

/* Animación toggle */
.menu-toggle.menu-toggle--active .hamburger {
  background-color: transparent;
}

.menu-toggle.menu-toggle--active .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.menu-toggle.menu-toggle--active .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

/* Responsive: ocultar menú y mostrar hamburguesa */
@media (max-width: 768px) {
  .nav-list {
    flex-direction: column;
    background-color: #222;
    max-height: 0;
    overflow: hidden;
    width: 100%;
    margin-top: 1rem;
    border-top: 1px solid #8B0000;
  }

  .nav-list.nav-list--visible {
    max-height: 300px; /* suficiente para mostrar todos */
  }

  .nav-list li {
    padding: 1rem 0;
    text-align: center;
  }

  .menu-toggle {
    display: block;
  }
}

/* Títulos rockeros */
h1, h2, h3 {
  font-family: 'Creepster', cursive;
  color: #8B0000; /* rojo sangre intenso */
  margin-bottom: 0.6rem;
  font-size: 3rem; /* Antes aprox 1.5rem, ahora 3rem = doble tamaño */
}

/* Estilos generales para main y secciones */
main {
  flex-grow: 1;
  max-width: 900px;
  margin: 1.5rem auto 2rem auto;
  padding: 0 1rem;
}

section {
  margin-bottom: 2rem;
}

section ul {
  list-style: none;
}

section ul li {
  margin-bottom: 2rem;
  font-size: 1.2rem; /* Antes 1rem, ahora 1.2rem */
}

iframe {
  width: 100%;
  max-width: 560px;
  height: 315px;
  border: none;
  display: block;
  margin-top: 0.8rem;
  border-radius: 6px;
}

/* Enlaces en contacto */
#contacto a {
  color: #8B0000;
  text-decoration: none;
  font-weight: bold;
}

#contacto a:hover,
#contacto a:focus {
  text-decoration: underline;
}

/* Footer */
footer {
  background-color: #222;
  color: #eee;
  text-align: center;
  padding: 1rem;
  font-size: 1rem; /* Antes 0.9rem */
  border-top: 1px solid #8B0000;
}

/* Texto normal en párrafos */
p {
  margin-bottom: 1rem;
  font-size: 1.2rem; /* Antes 1rem, ahora 1.2rem */
}

/* Enlaces en general */
a {
  transition: color 0.3s ease;
}

/* Para mejorar lectura en móviles */
@media (max-width: 480px) {
  body {
    font-size: 16px; /* Antes 14px */
  }

  iframe {
    height: 200px;
  }

  h1, h2, h3 {
    font-size: 2.2rem; /* Un poco más pequeño en móvil */
  }
  
  section ul li,
  p {
    font-size: 1rem;
  }
}
