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

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f4f4f4;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Imagen de presentación */
.presentacion {
  position: relative;
}
.presentacion img {
  width: 100%;
  height: auto;
  display: block;
}

/* Menú de idiomas */
.idiomas {
    display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.4);
  padding: 8px 12px;
  border-radius: 20px;
  display: flex;
  gap: 8px;
}
.idiomas img {
    display: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 1px solid white;
  transition: transform 0.2s, box-shadow 0.2s;
}
.idiomas img:hover {
  transform: scale(1.1);
  box-shadow: 0 0 5px white;
}

/* Menú principal */
header {
  background: #2c3e50;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .logo {
  font-size: 1.5em;
  font-weight: bold;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
}
nav a {
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  transition: background 0.3s;
}
nav a:hover {
  background: #34495e;
  border-radius: 4px;
}

/* Botón hamburguesa */
.menu-toggle {
  display: none; /* 🔹 Nunca visible por defecto */
  font-size: 1.8em;
  cursor: pointer;
  user-select: none;
}

/* Contenido */
main {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 20px;
}
.contenido {
  max-width: 800px;
  width: 100%;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.contenido img {
  max-width: 100%;
  margin: 15px 0;
  border-radius: 8px;
}

/* Footer */
footer {
  background: #2c3e50;
  color: white;
  text-align: center;
  padding: 10px;
}

/* ========================
   RESPONSIVE
======================== */

/* SOLO en móvil (<=768px) aparece hamburguesa */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav {
    display: none;
    position: absolute;
    top: 60px;
    right: 20px;
    background: #2c3e50;
    border-radius: 8px;
    padding: 10px;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  nav.active {
    display: block;
  }
}

/* En escritorio (>=769px): menú siempre visible, hamburguesa oculta */
@media (min-width: 769px) {
  .menu-toggle {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }

  nav {
    display: block !important;
    position: static;
    background: none;
    padding: 0;
  }

  nav ul {
    flex-direction: row;
    gap: 15px;
  }
}
