/* Reset general */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: #C4DAFA;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header delgado */
header {
  background-color: #005187;
  padding: 10px 20px;
}

.encabezado {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.logo {
  height: 50px;
}

header h1 {
  font-size: 32px;
  color: white;
}

/* Menú horizontal (desktop) */
nav.nav {
  display: flex;
  justify-content: center;
  background-color: #84B6F4;
  padding: 15px 30px;
  gap: 30px;
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 20px;
  padding: 12px 20px;
  border-radius: 8px;
  transition: background-color 0.3s;
  font-weight: bold;
}

nav a:hover {
  background-color: #bddae5;
  color: #005187;
}

/* Contenido principal */
main.contenido {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 40px;
  flex-wrap: wrap;
  flex: 1;
}

.texto {
  max-width: 600px;
  text-align: justify;
}

.texto h2 {
  font-size: 34px;
  color: #005187;
  margin-bottom: 20px;
}

.texto p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.imagen {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 10px;
}

/* Footer */
footer {
  background-color: #84B6F4;
  color: white;
  text-align: center;
  padding: 10px;
  margin-top: auto;
}

/* Botón menú hamburguesa */
.menu-toggle {
  display: none;
  position: fixed;
  top: 15px;
  right: 15px;
  font-size: 30px;
  background: none;
  border: none;
  color: white;
  z-index: 1000;
  cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  nav.nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 70px;
    right: 10px;
    background-color: #84B6F4;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px #999;
    z-index: 999;
  }

  nav.nav.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  main.contenido {
    flex-direction: column;
    text-align: center;
  }

  .texto {
    text-align: justify;
  }
}
