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

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #242424;
  background-color: #f9f9f9;
}

h1, h2, h3 {
  font-family: 'Rubik', sans-serif;
  margin-bottom: 0.5rem;
  color: #124e49;
}

/* Hero */
.hero {
  position: relative;
  width: 100%;
  height: 60vh;
  background-image: url('images/hero_bg.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.45);
  padding: 2rem;
  border-radius: 8px;
  max-width: 800px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.btn-cta {
  display: inline-block;
  background-color: #18a086;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn-cta:hover {
  background-color: #0f6d5d;
}

/* Sección Sobre */
.sobre {
  padding: 4rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.sobre p {
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  color: #444;
}

/* Programas */
.programas {
  background-color: #eef7f6;
  padding: 4rem 1.5rem;
}

.programas h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.programas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.programa {
  background-color: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.programa h3 {
  margin-bottom: 0.5rem;
  color: #18a086;
}

.programa p {
  flex-grow: 1;
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1rem;
}

.precio {
  font-weight: 700;
  color: #d18a00;
}

/* Galería */
.galeria {
  padding: 4rem 1.5rem;
}

.galeria h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.galeria-grid img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  height: 220px;
}

/* Contacto */
.contacto {
  background-color: #fefefe;
  padding: 4rem 1.5rem;
}

.contacto h2 {
  text-align: center;
  margin-bottom: 2rem;
}

#contact-form {
  max-width: 700px;
  margin: 0 auto;
}

.campo {
  margin-bottom: 1rem;
}

.campo label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.campo input,
.campo textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
}

.campo textarea {
  resize: vertical;
}

.campo.consentimiento {
  display: flex;
  align-items: flex-start;
}

.campo.consentimiento input {
  margin-right: 0.5rem;
  margin-top: 0.2rem;
}

.campo.consentimiento label {
  font-size: 0.9rem;
  color: #555;
}

.btn-submit {
  background-color: #18a086;
  color: #fff;
  border: none;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-submit:hover {
  background-color: #0f6d5d;
}

/* Testimonios */
.testimonios {
  background-color: #eef7f6;
  padding: 4rem 1.5rem;
}

.testimonios h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.lista-testimonios {
  max-width: 900px;
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonio {
  background-color: #fff;
  border-radius: 8px;
  padding: 1.2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-size: 0.95rem;
  color: #444;
}

.testimonio span {
  display: block;
  margin-top: 0.8rem;
  font-weight: 600;
  color: #18a086;
}

.review-form {
  max-width: 600px;
  margin: 0 auto;
}

.review-form h3 {
  margin-bottom: 1rem;
  color: #124e49;
  font-size: 1.4rem;
}

/* Popup */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.popup-contenido {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  max-width: 400px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-close {
  margin-top: 1.2rem;
  background-color: #d18a00;
  color: #fff;
  border: none;
  padding: 0.6rem 1.3rem;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-close:hover {
  background-color: #a66d00;
}

/* Footer */
.footer {
  background-color: #124e49;
  color: #f1f1f1;
  padding: 2rem 1.5rem;
  text-align: center;
}

.footer-info h3 {
  margin-bottom: 0.5rem;
  color: #fff;
}

.footer-info p {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.footer-links a {
  color: #d8e9e5;
  text-decoration: none;
  font-size: 0.9rem;
}

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

.copyright {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #aac7c4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
}