/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f5f5;
  color: #333;
}

#contacto {
  background-color: #ffffff;
  padding: 30px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  margin-top: 30px;
}

#contacto h2 {
  font-size: 1.8rem;
  color: #08004d;
  margin-bottom: 15px;
  text-align: center;
}

#contacto h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #333;
  text-align: center;
}

#contacto form {
  max-width: 600px;
  margin: 0 auto;
}

#contacto label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
  color: #333;
}

#contacto input[type="text"],
#contacto input[type="email"],
#contacto input[type="tel"],
#contacto select {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-bottom: 20px;
  box-sizing: border-box;
}

#contacto input:focus,
#contacto select:focus {
  border-color: #08004d;
  outline: none;
  box-shadow: 0 0 4px rgba(8, 0, 77, 0.3);
}

#contacto button[type="submit"] {
  width: 100%;
  padding: 12px;
  background-color: #08004d;
  color: #ffffff;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#contacto button[type="submit"]:hover {
  background-color: #06003a;
}

/* Misión y Visión */
.mision-vision {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 30px;
  flex-wrap: wrap; /* Para que en pantallas pequeñas se apilen */
}

.mision-vision::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('imagen 7.jpg') no-repeat center center/cover;
  opacity: 0.2; 
  z-index: 0; 
  border-radius: 8px;
}

.mision-vision > * {
  position: relative;
  z-index: 1;
}

/* Créditos */
.credito {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 30px;
  flex-wrap: wrap; /* Para que en pantallas pequeñas se apilen */
}

.credito::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('imagen 8.jpg') no-repeat center center/cover;
  opacity: 0.2; 
  z-index: 0; 
  border-radius: 8px;
}

.credito > * {
  position: relative;
  z-index: 1;
}

/* Columnas */
.columna {
  flex: 1;
  min-width: 280px;
  max-width: 400px;
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.titulo-seccion {
  text-align: center;
  background-color: #e0f2f1;
  padding: 10px;
  font-weight: bold;
  color: #08004d;
  margin-bottom: 15px;
  border-radius: 5px;
}

/* Sección características */
.caracteristicas-section {
  background-color: #ffffff; /* fondo blanco */
  color: #000;
  padding: 40px 20px;
  text-align: center;
  background-size: cover;
}

.caracteristicas-banner {
  background-color: #0071b8; /* franja azul */
  padding: 20px;
  border-radius: 5px;
  margin-bottom: 40px;
  text-align: center;
}

.caracteristicas-banner h2 {
  color: #ffffff;
  font-size: 1.8rem;
  margin: 0;
}

.caracteristicas-contenido {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  align-items: center;
}

.caracteristica {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 200px;
  text-align: center;
}

.caracteristica img {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
}

.caracteristica p {
  color: #0071b8;
  font-weight: 500;
  font-size: 0.95rem;
  margin: 0;
}

/* Contenedor principal para mantener el contenido centrado */
.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Barra superior con título y menú */
.barra-superior {
  display: flex;
  align-items: center;
  gap: 15px; /* espacio entre logo y texto */
  background-color: #1f1b61; /* el color que tienes */
  padding: 10px 20px;
  flex-wrap: wrap;
}

.logo {
  width: 50px; /* ajusta según el tamaño que quieras */
  height: auto;
}

.titulo h1,
.titulo p {
  color: white;
  margin: 0;
}

.titulo h1 {
  font-weight: bold;
  font-size: 1.2rem;
}

.titulo p {
  font-size: 0.8rem;
  opacity: 0.8;
}

.menu-navegacion {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 1 1 auto;
}

.menu-navegacion a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.menu-navegacion a:hover {
  text-decoration: underline;
}

/* Hero */
.hero {
  position: relative;
  color: white;
  text-align: center;
  padding: 100px 20px;
  overflow: hidden;
  font-size: 40px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('imagen 4.png') no-repeat center center/cover;
  filter: brightness(0.5); /* oscurece la imagen para que el texto resalte */
  z-index: 1;
}

.hero-content {
  position: relative; /* corregido para no usar sticky sin top */
  z-index: 2;
}

.imagen-arriba {
  width: 150px; /* ajusta el tamaño que necesites */
  margin-bottom: 20px;
  border-radius: 8px; /* opcional */
}

/* Sección Nosotros con imagen a la izquierda y texto a la derecha */
.nosotros-flex {
  display: flex;
  align-items: flex-start; 
  gap: 20px;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  flex-wrap: wrap;
}

.texto-nosotros {
  flex: 1 1 700px;
  order: 2;
  text-align: left;
}

.imagen-nosotros {
  width: 600px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  order: 0; /* imagen primero */
}

.texto-nosotros h1 {
  font-weight: 700;
  color: #08004d;
  margin-bottom: 12px;
  text-align: left;
  order: 1;
  width: 100%;
}

.texto-nosotros p {
  font-size: 1.5rem;
  line-height: 1.6;
  color: #333;
  margin: 0;
}

/* Contenedor general para secciones */
.container {
  padding: 40px 20px;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}

/* Pie de página */
.footer {
  background-color: #08004d; /* Azul oscuro */
  padding: 20px 0;
  text-align: center;
  border-radius: 8px 8px 0 0;
  font-family: Arial, sans-serif;
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #fff;
}

.footer p {
  font-size: 0.95rem;
  margin-bottom: 5px;
  color: #ddd;
}

/* Nosotros superior */
.nosotros-superior {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 30px;
}

.nosotros-imagen img {
  width: 600px;
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.nosotros-texto {
  flex: 1;
}

.nosotros-texto h1 {
  font-size: 2rem;
  color: #08004d;
  margin-bottom: 35px;
}

.nosotros-texto p {
  font-size: 2rem;
  line-height: 2;
  color: #333;
}

/* Iconos nosotros */
.nosotros-iconos {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.nosotros-iconos .caracteristica {
  text-align: center;
  max-width: 180px;
}

.nosotros-iconos .caracteristica img {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
}

.nosotros-iconos .caracteristica p {
  font-weight: bold;
  color: #0071b8;
}

/* Misión y Visión dentro Nosotros */
.nosotros-mision-vision {
  display: flex;
  justify-content: center;
  gap: 100px;
  flex-wrap: wrap;
}

/* Dropdown menu estilo */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #ffffff;
  min-width: 220px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  z-index: 1000;
  border-radius: 6px;
}

.dropdown-content a {
  color: #08004d;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-weight: normal;
  border-bottom: 1px solid #eee;
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .barra-superior {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .menu-navegacion {
    justify-content: flex-start;
    gap: 15px;
  }

  .hero {
    height: 60vh;
  }

  .hero-content h2 {
    font-size: 1.4rem;
    padding: 0 15px;
  }

  .nosotros-flex {
    flex-direction: column;
    text-align: center;
  }

  .imagen-nosotros {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .texto-nosotros p {
    font-size: 1.2rem;
  }

  .mision-vision,
  .credito,
  .caracteristicas-contenido,
  .nosotros-iconos,
  .nosotros-mision-vision {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .columna {
    max-width: 100%;
    min-width: auto;
  }
}

