/* Estilo base */
body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background-color: #ffffff;
  color: #222;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Encabezado */
header {
  background-color: #004080;
  color: white;
  padding: 30px 30px 50px 30px;
  border-bottom: 4px solid #003366;
  position: relative;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.logo-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: absolute;
  left: 30px;
  top: 10px;
}

img.logo {
  height: auto;
  width: 140px;
}

/* Título */
.header-title {
  font-size: 2em;
  font-weight: bold;
  margin: 0 auto;
  text-align: center;
  color: white;
  width: 100%;
}

/* Navegación */
nav {
  text-align: center;
  margin-top: 15px;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-weight: 500;
  font-size: 0.95em;
}

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

/* Contenido principal */
main {
  max-width: 1000px;
  margin: 50px auto;
  padding: 40px;
  background-color: #f7f7f7;
  border: 1px solid #ccc;
  border-radius: 6px;
  text-align: left;
}

h2 {
  color: #004080;
  font-size: 1.6em;
  margin-top: 0;
}

p {
  font-size: 1em;
  margin-bottom: 1.2em;
}

/* Galería de imágenes y videos */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.gallery img,
.gallery video {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.gallery img:hover,
.gallery video:hover {
  transform: scale(1.05);
}

/* Modal común */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 40px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  display: block;
  margin: auto;
}

/* Imagen dentro del modal */
#modalImage.modal-content {
  max-width: 90%;
  max-height: 80vh;
}

/* Vídeo dentro del modal (más grande) */
#modalVideo.modal-content {
  width: 80vw;
  height: 80vh;
  max-width: 1280px;
  max-height: 720px;
  border: none;
  border-radius: 8px;
}

/* Botón de cierre del modal */
.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* Botón estilo */
.demo-button {
  background-color: #004080;
  color: white;
  padding: 10px 24px;
  font-size: 1em;
  border: 1px solid #003366;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s ease;
}

.demo-button:hover {
  background-color: #003366;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  font-size: 0.85em;
  color: #666;
}
