body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #1f3d6d;
}

header {
  width: 100%;
  background-color: white;
  color: #1f3d6d;
  text-align: center;
  padding: 20px 0;
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 2px;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  height: calc(100vh - 80px);
  flex-wrap: wrap; /* Permite que los elementos bajen en pantallas chicas */
  padding: 20px;
}

.box {
  width: 300px;
  height: 300px;
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  border: 1px solid #00264d;
  transition: transform 0.3s;
}

.box:hover {
  transform: scale(1.03);
}

.box img {
  max-width: 150px;
  height: auto;
  object-fit: contain;
  margin-bottom: 10px;
}

.box h2 {
  margin-bottom: 1px;
  font-size: 20px;
  color: #333;
}

.box p {
  color: #666;
  font-size: 14px;
  text-align: justify;
}

/* Responsividad para celulares */
@media (max-width: 600px) {
  header {
    font-size: 20px;
    padding: 15px 0;
  }

  .container {
    flex-direction: column;
    height: auto;
    gap: 20px;
    padding: 10px;
  }

  .box {
    width: 90%;
    height: auto;
    padding: 20px;
  }

  .box img {
    width: 120px;
  }

  .box h2 {
    font-size: 18px;
  }

  .box p {
    font-size: 13px;
  }
}

/* Adaptación para pantallas divididas o más pequeñas */
@media (max-width: 900px) {
  .container {
    flex-wrap: wrap;
    gap: 30px;
    height: auto;
    padding: 20px;

  }

  .box {
    margin-top: 65px;
    width: 250px;
    height: auto;
  }
}
