/* =========================
   RESET Y ESTILOS GENERALES
=========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f9fafb;
  color: #333333;
}

/* =========================
   NAVBAR - BARRA DE NAVEGACIÓN
=========================== */
.navbar {
  width: 100%;
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  padding: 20px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}

.logo img {
  width: 250px;
  height: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: #1e40af;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #2563eb;
}

.menu-icon {
  display: none;
  font-size: 30px;
  color: #1e40af;
  cursor: pointer;
}

/* =========================
   SECCIÓN PORTADA - IMÁGENES
=========================== */
.portada {
  width: 100%;
}

.desktop-portada {
  display: block;
  width: 100%;
  height: auto;
}

.mobile-portada {
  display: none;
}

/* =========================
   SECCIÓN NOSOTROS
   - Flexbox para alinear h2 y párrafo lado a lado en desktop
   - Responsive para dispositivos móviles
=========================== */
.nosotros {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 8px;
  height: 220px; /* Altura menos alta para desktop */
}

.nosotros h2 {
  flex: 1;
  font-size: 2.2rem;
  color: #1e40af;
  font-weight: 700;
  text-align: left;
  padding-left: 10px;
}

.nosotros p {
  flex: 3;
  font-size: 1rem;
  line-height: 1.5;
  color: #4b5563;
  text-align: right;
  padding-right: 10px;
}

/* =========================
   MEDIA QUERIES - RESPONSIVE
=========================== */
@media (max-width: 768px) {
  .menu-icon {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #ffffff;
    padding: 10px 0;
    width: 100%;
    border-top: 1px solid #e2e8f0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
    font-size: 16px;
  }

  .desktop-portada {
    display: none;
  }

  .mobile-portada {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  /* Ajuste de la sección nosotros para móvil */
  .nosotros {
    flex-direction: column;
    height: auto;
    padding: 20px 10px;
    text-align: center;
  }

  .nosotros h2 {
    text-align: center;
    padding-left: 0;
    margin-bottom: 15px;
  }

  /* Solo cambio aquí: texto justificado y con padding lateral */
  .nosotros p {
    text-align: justify;
    padding-left: 15px;
    padding-right: 15px;
    font-size: 1rem;
  }
}
