@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&family=Lato:wght@300;400;700&display=swap');

/*
 * Estilos personalizados para el sitio "Movimiento Vital 45+".  
 * Este archivo define una paleta de colores diferente, fuentes nuevas y un diseño
 * completamente distinto a los generados previamente. Se hace énfasis en
 * espacios amplios, tarjetas con sombras suaves y una navegación clara.  
 */

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

body {
  font-family: 'Lato', sans-serif;
  line-height: 1.6;
  background: #f9f9f9;
  color: #2D4059;
}

header {
  background: linear-gradient(90deg, #2D4059 0%, #4A7C7C 100%);
  color: #fff;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

header .logo {
  font-family: 'Merriweather', serif;
  font-size: 28px;
  letter-spacing: 1px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 40px 20px;
  background: #F5F5DC;
}

.hero .hero-text {
  flex: 1 1 400px;
  padding: 20px;
}

.hero .hero-text h1 {
  font-family: 'Merriweather', serif;
  font-size: 36px;
  margin-bottom: 20px;
  color: #2D4059;
}

.hero .hero-text p {
  margin-bottom: 20px;
  font-size: 18px;
}

.hero .hero-text a.button {
  background: #4CAF50;
  color: #fff;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s ease;
  display: inline-block;
}

.hero .hero-text a.button:hover {
  background: #388E3C;
}

.hero img {
  flex: 1 1 400px;
  max-width: 100%;
  border-radius: 10px;
}

/* Sección del especialista */
.expert {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 40px 20px;
  background: #fff;
}

.expert img {
  flex: 1 1 300px;
  max-width: 300px;
  border-radius: 50%;
  margin-right: 20px;
}

.expert .expert-text {
  flex: 2 1 400px;
}

.expert .expert-text h2 {
  font-family: 'Merriweather', serif;
  font-size: 32px;
  margin-bottom: 15px;
  color: #2D4059;
}

.expert .expert-text p {
  margin-bottom: 10px;
  line-height: 1.5;
}

/* Sección de programas */
.programs {
  padding: 40px 20px;
  background: #F9F9F9;
}

.programs h2 {
  font-family: 'Merriweather', serif;
  font-size: 32px;
  margin-bottom: 30px;
  color: #2D4059;
  text-align: center;
}

.programs .program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.programs .program-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.programs .program-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.programs .program-card .program-content {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.programs .program-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #2D4059;
}

.programs .program-card p {
  flex-grow: 1;
  margin-bottom: 10px;
  line-height: 1.4;
}

.programs .program-card .price {
  font-weight: bold;
  color: #4A7C7C;
  margin-top: 8px;
}

/* Sección de testimonios */
.testimonials {
  padding: 40px 20px;
  background: #fff;
}

.testimonials h2 {
  font-family: 'Merriweather', serif;
  font-size: 32px;
  margin-bottom: 30px;
  color: #2D4059;
  text-align: center;
}

.testimonials .testimonial-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.testimonials .testimonial-card {
  background: #F5F5DC;
  border-left: 4px solid #4CAF50;
  padding: 20px;
  border-radius: 8px;
}

.testimonials .testimonial-card p {
  margin-bottom: 10px;
  line-height: 1.4;
}

.testimonials .testimonial-card h4 {
  font-weight: bold;
  color: #2D4059;
}

/* Sección de formularios */
.forms-section {
  padding: 40px 20px;
  background: #F9F9F9;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.forms-section > div {
  flex: 1 1 300px;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.forms-section h3 {
  font-family: 'Merriweather', serif;
  font-size: 26px;
  margin-bottom: 20px;
  color: #2D4059;
}

form label {
  display: block;
  margin-bottom: 5px;
  color: #2D4059;
  font-weight: 600;
}

form input,
form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
}

/* Ajuste específico para casillas de verificación: no deben ocupar todo el ancho */
form input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
  padding: 0;
}

form textarea {
  resize: vertical;
  min-height: 80px;
}

form .consent {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 14px;
}

form .consent input {
  margin-right: 8px;
}

form button {
  background: #4A7C7C;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
  font-size: 16px;
}

form button:hover {
  background: #3D6262;
}

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

.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  width: 90%;
  max-width: 400px;
}

.modal-content p {
  margin-bottom: 20px;
}

.modal-content button {
  background: #2D4059;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
}

/* Pie de página */
footer {
  background: #2D4059;
  color: #fff;
  padding: 30px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

footer .footer-left {
  flex: 2 1 300px;
}

footer .footer-right {
  flex: 1 1 200px;
  text-align: right;
}

footer a {
  color: #FEC260;
  text-decoration: none;
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column-reverse;
  }
  .hero .hero-text, .hero img {
    flex: 1 1 100%;
  }
  header {
    flex-direction: column;
    text-align: center;
  }
  nav ul {
    flex-direction: column;
    gap: 10px;
  }
  .expert {
    flex-direction: column;
    text-align: center;
  }
  .expert img {
    margin: 0 auto 20px;
  }
  footer {
    flex-direction: column;
    text-align: center;
  }
  footer .footer-right {
    text-align: center;
  }
}