/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #eef1f5;
  color: #333;
  line-height: 1.6;
}

/* Header con imagen de fondo */
header {
  width: 100%;
  height: 300px;
  background-image: url('imagenes/Banner.png'); 
  background-size: cover;
  background-position: center;
}

/* Navegación */
nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  background-color: #34495e;
}

nav a {
  color: #fff;
  padding: 14px 20px;
  text-decoration: none;
  flex-grow: 1;
  text-align: center;
  transition: background 0.3s ease;
}

nav a:hover {
  background-color: #1abc9c;
}

/* Contenido principal */
main {
  padding: 30px 15px;
  max-width: 1100px;
  margin: auto;
}

.card {
  background-color: #fff;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-left: 6px solid #2c3e50;
  border-radius: 8px;
}

.card h2 {
  font-family: 'Georgia', serif;
  font-size: 1.6em;
  color: #2c3e50;
  margin-bottom: 10px;
}

.card p, .card ul {
  font-size: 1em;
  text-align: justify;
}

.card-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.card-container .card {
  flex: 1 1 48%;
}

/* Imagen grande y centrada */
.imagen-portada {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.imagen-portada img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Pie de página */
footer {
  background-color: #2c3e50;
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

/* Menú flotante lateral */
.floating-menu {
  position: fixed;
  top: 400px;
  right: 20px;
  z-index: 1000;
  background-color: #34495e;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  width: 180px; /* ancho limitado */	
}

.floating-menu button {
  background-color: #1abc9c;
  border: none;
  color: white;
  padding: 10px;
  width: 100%;
  font-size: 18px;
  cursor: pointer;
}

.floating-menu a {
  display: block;
  color: white;
  padding: 10px;
  text-decoration: none;
  border-top: 1px solid #2c3e50;
  background-color: #34495e;
}

.floating-menu a:hover {
  background-color: #1abc9c;
}

#menuContent.hidden {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  header {
    height: 220px;
  }

  nav a {
    flex-basis: 100%;
    border-top: 1px solid #2c3e50;
  }

  .card {
    padding: 20px;
  }

  .card-container {
    flex-direction: column;
  }

  .card-container .card {
    flex: 1 1 100%;
  }

  .floating-menu {
    right: 10px;
    top: auto;
    bottom: 20px;
  }

  .floating-menu button {
    font-size: 16px;
  }

  .floating-menu a {
    font-size: 14px;
  }
}

#menuContent {
  max-height: 300px; /* Puedes ajustar este valor según el diseño */
  overflow-y: auto;
  scroll-behavior: smooth;
}

