/* --- Base Styles --- */
body {
  margin: 0;
  font-family: sans-serif;
  color: #2e4057;
}

/* --- Grid Layout --- */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  min-height: 100vh;
}

/* --- Image Styles --- */
.grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Logo Section --- */
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f7efe6;
}
.logo img {
  object-fit: contain;
  max-width: 80%;
  padding: 1rem;
}

/* --- Text Section --- */
.texto {
  grid-column: 1 / span 1;
  padding: 2rem;
  background-color: #f7efe6;
  font-size: 1.2rem;
  line-height: 1.6;
  color: #164C63;
}
.texto div {
  padding: 1.4rem;
}

/* --- Final Stripe --- */
.final {
  grid-column: 1 / span 2;
  background-color: #164C63;
  color: white;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-section {
  flex: 1;
  min-width: 250px;
}

.footer-section h3 {
  margin-top: 0;
  border-bottom: 1px solid #a3c7d6;
  padding-bottom: 0.5rem;
  color: #f7efe6;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #a3c7d6;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: white;
  text-decoration: underline;
}

.contact-info {
  color: #a3c7d6;
}

/* Estilos para los enlaces de contacto */
.contact-info a {
  color: inherit; /* Hereda el color del contenedor padre (#a3c7d6) */
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
}

.contact-info a:hover {
  text-decoration: underline;
  color: white;
}

.footer-bottom {
  margin-top: 2rem;
  text-align: center;
  border-top: 1px solid #2e5d7a;
  padding-top: 1rem;
  font-size: 0.9rem;
  color: #a3c7d6;
}

/* --- Responsive Styles --- */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .texto {
    grid-column: auto;
    padding: 1.5rem 1rem;
  }
  .texto div {
    padding: 1rem;
  }
  .final {
    grid-column: auto;
    padding: 1.5rem 1rem;
  }
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
  }
}
