* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  background-color: #f2f2f2;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

.navbar {
  background-color: #fff;
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-img {
  height: 70px;
  padding-left: 20px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: #0d1a36;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #0b58bc;
}

.hero {
  background: #222;
  color: white;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-text h2 {
  font-size: 2.5rem;
}

.carousel {
  position: relative;
  max-width: 100%;
  height: 500px;
  overflow: hidden;
}

.carousel-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  display: none;
  width: 100%;
  height: 100%;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fade {
  animation: fade 1.5s ease-in-out;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

.about, .values, .projects, .contact {
  background-color: #f2f2f2;
  padding: 4rem 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 6px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s;
}

.project-card:hover {
  transform: scale(1.03);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-card h3 {
  padding: 1rem;
}

.project-list {
  margin-top: 2rem;
}

.hidden {
  display: none;
}

.stats {
  display: flex;
  justify-content: space-around;
  margin-top: 2rem;
  font-weight: bold;
}

.contact {
  background-color: #0d1a36;
  color: white;
  padding: 4rem 0;
  text-align: left;
}


.contact h2 {
  margin-bottom: 2rem;
  color: #fff;
  font-size: 2.5rem;
}

.contact p {
  max-width: 1100px;
  margin: 0.3rem auto;
  font-size: 1.1rem;
}

.contact-form {
  max-width: 900px;
  margin: 2rem auto 0;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: flex-end; /* Esto alinea todo a la derecha */
}


.form-column {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-column label {
  font-weight: 600;
  color: #cfd8ff;
  text-align: left;
}

.form-column input,
.form-column textarea {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  resize: vertical;
}

.form-column input:focus,
.form-column textarea:focus {
  outline: 2px solid #001746;
  background-color: #e6f0ff;
  color: #001746;
}

.form-submit {
  width: 100%;
  margin-top: 1rem;
  text-align: right; /* Cambié de center a right */
}


.form-submit button {
  background-color: #001746;
  color: white;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.form-submit button:hover {
  background-color: #0b58bc;
}


.footer {
  background-color: #0d1a36;
  color: white;
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 0rem;
}

.stats {
  display: flex;
  justify-content: space-around;
  text-align: center;
  background-color: #f5f5f5;
  padding: 40px 0;
  flex-wrap: wrap;
}

.stat-box {
  margin: 20px;
  flex: 1 1 200px;
}

.stat-box .counter {
  font-size: 3em;
  font-weight: bold;
  color: #001746;
  display: block;
}

.stat-box p {
  font-size: 1.2em;
  color: #333;
}

.counter::before {
  content: "+";
  margin-right: 2px;
  color: #001746;
}

.mission-vision {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.mission-vision .box {
  flex: 1 1 300px;
  background-color: #fff;
  padding: 30px;
  border-left: 6px solid #001746;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.mission-vision .box h2 {
  margin-top: 0;
  color: #001746;
}

.valores-section {
  margin-top: 40px;
}

.valores-section h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 20px;
  color: #001746;
}

.valores-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px 30px;
  justify-content: center;
  text-align: center;
  animation: fadeInUp 1.2s ease;
}

.valores-list li {
  background: #fff;
  border-left: 4px solid #001746;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  color: #333;
  transition: transform 0.3s;
}

.valores-list li:hover {
  transform: translateY(-5px);
}

/* Nosotros sobre el carrusel */
.nosotros-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 23, 70, 0.5); /* Fondo azul oscuro semitransparente */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  z-index: 2;
}

.nosotros-content {
  color: white;
  max-width: 900px;
  padding: 2rem;
}

.nosotros-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.nosotros-content p {
  font-size: 1.2rem;
  line-height: 1.6;
}

/* Asegura que la imagen quede detrás */
.carousel-container .slide {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.sustentabilidad-section {
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 4rem; /* para separar un poco abajo */
}

.sustentabilidad-section h2 {
  color: #001746;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.sustentabilidad-section p {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 3rem;
}

.sustentabilidad-images {
  display: flex;
  justify-content: center;  /* Centra el grupo de imágenes */
  gap: 1.5rem;              /* Espacio entre imágenes */
  flex-wrap: wrap;          /* Que bajen si la pantalla es chica */
  margin-top: 2rem;
}

.sustentabilidad-images img {
  width: 30%;               /* Cada imagen ocupa un 30% del ancho */
  max-width: 450px;         /* Máximo ancho para que no sean muy grandes */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  object-fit: cover;
  height: 240px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.sustentabilidad-images img:hover {
  transform: scale(1.05);
}

.map-section {
  background-color: #f2f2f2;
  padding: 4rem 0;
  text-align: center;
}

.map-section h2 {
  color: #001746;
  margin-bottom: 2rem;
}

.map-section iframe {
  border-radius: 8px;
  max-width: 900px;
  width: 100%;
  height: 400px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}