* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f5f5f5;
}

.wrapper {
  flex: 1;
}

header {
  background-color: #005a7c;
  color: white;
  padding: 10px 20px;
  text-align: center;
}

.main-container {
  max-width: 1200px;
  margin: 30px auto;
  background: white;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  overflow: hidden;
}

.parte-superior {
  width: 100%;
}

.parte-superior img {
  width: 100%;
  height: auto;
  max-height: 350px;
  object-fit: cover;
  display: block;
}

.parte-inferior {
  display: flex;
  flex-wrap: wrap;
  padding: 20px;
}

.imagen-izquierda {
  flex: 1;
  min-width: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.imagen-izquierda img {
  width: 100%;
  height: auto;
  max-width: 400px;
  border-radius: 10px;
  display: block;
}

.botones-derecha {
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  padding: 10px;
  min-width: 250px;
  gap: 15px;
}

.botones-derecha button {
  width: 80%;
  padding: 15px;
  font-size: 16px;
  background-color: #005a7c;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.botones-derecha button:hover {
  background-color: #0076a8;
}

footer {
  background-color: #005a7c;
  color: white;
  padding: 20px 40px;
}

.footer-contenido {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 50px;
}

.footer-columna {
  flex: 1;
  text-align: center;
}

.footer-logo {
  max-height: 100px;
  width: auto;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
  }

  .titulo-header {
    margin-top: 10px;
  }

  .parte-inferior {
    flex-direction: column;
    align-items: center;
  }

  .imagen-izquierda,
  .botones-derecha {
    width: 100%;
    padding: 10px 0;
  }

  .botones-derecha button {
    width: 90%;
  }

  .footer-columna {
    flex: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .parte-superior img {
    max-height: 200px;
  }

  .imagen-izquierda img {
    max-width: 100%;
  }

  .botones-derecha button {
    font-size: 14px;
    padding: 12px;
  }

  header h1 {
    font-size: 1.5rem;
  }
}
