/*
 * Estilos principales para Vida Equilibrada 45+
 *
 * Este archivo contiene las reglas CSS utilizadas por el sitio web. Se han
 * elegido colores neutros y tipografías legibles para crear una experiencia
 * moderna y agradable. La estructura flexible permite que las secciones
 * se adapten a diferentes tamaños de pantalla, favoreciendo la experiencia
 * en dispositivos móviles y ordenadores de escritorio.
 */

html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #333;
  line-height: 1.6;
}

header {
  background-color: #2c3e50;
  color: #fff;
  padding: 15px 20px;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 1.6em;
  letter-spacing: 1px;
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 20px 30px;
  border-radius: 8px;
  text-align: center;
}

.hero-content h1 {
  margin-top: 0;
  font-size: 2em;
}

.hero-content p {
  margin: 10px 0 0 0;
  font-size: 1.1em;
}

main {
  max-width: 1200px;
  margin: 0 auto;
}

.contenido {
  padding: 20px;
}

.contenido h2 {
  color: #2c3e50;
  margin-bottom: 10px;
  font-size: 1.6em;
}

.contenido h3 {
  color: #2c3e50;
  margin-top: 20px;
  font-size: 1.4em;
}

.contenido p {
  margin-bottom: 15px;
  text-align: justify;
}

.contenido img {
  max-width: 100%;
  border-radius: 8px;
  margin: 20px 0;
}

.cursos {
  padding: 20px;
  background-color: #f7f7f7;
}

.cursos h2 {
  margin-top: 0;
  color: #2c3e50;
  font-size: 1.6em;
}

.curso-lista {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.curso {
  background-color: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 15px;
  flex: 1 1 calc(33.333% - 20px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.curso h3 {
  margin-top: 0;
  font-size: 1.3em;
  color: #34495e;
}

.curso p {
  margin-bottom: 8px;
}

.curso p:last-child {
  font-weight: bold;
}

.testimonios {
  padding: 20px;
}

.testimonios h2 {
  margin-top: 0;
  color: #2c3e50;
  font-size: 1.6em;
}

.testimonios-lista {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.testimonial {
  background-color: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 15px;
  flex: 1 1 calc(33.333% - 20px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.testimonial .nombre {
  font-weight: bold;
  margin-bottom: 5px;
  color: #34495e;
}

.testimonial .mensaje {
  font-size: 0.95em;
}

.formulario-contacto {
  padding: 20px;
  background-color: #f7f7f7;
}

.formulario-contacto h2 {
  margin-top: 0;
  color: #2c3e50;
  font-size: 1.6em;
}

.formulario-contacto form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.formulario-contacto label {
  font-weight: bold;
}

.formulario-contacto input[type="text"],
.formulario-contacto input[type="email"],
.formulario-contacto input[type="tel"],
.formulario-contacto textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
}

.formulario-contacto input[type="checkbox"] {
  margin-right: 8px;
}

.formulario-contacto button {
  padding: 12px;
  border: none;
  border-radius: 4px;
  background-color: #2c3e50;
  color: #fff;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.formulario-contacto button:hover {
  background-color: #34495e;
}

footer {
  background-color: #2c3e50;
  color: #fff;
  padding: 20px;
  text-align: center;
  font-size: 0.9em;
}

footer a {
  color: #ecf0f1;
  text-decoration: underline;
}

/* Estilos para la ventana emergente de agradecimiento de la reseña */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.popup.hidden {
  display: none;
}

.popup-content {
  background-color: #fff;
  padding: 20px 30px;
  border-radius: 8px;
  text-align: center;
  max-width: 90%;
}

.popup-content button {
  margin-top: 10px;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  background-color: #2c3e50;
  color: #fff;
  cursor: pointer;
}

.popup-content button:hover {
  background-color: #34495e;
}

/* Página de agradecimiento */
.agradecimiento {
  padding: 40px 20px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.agradecimiento h2 {
  color: #2c3e50;
  font-size: 1.8em;
  margin-bottom: 20px;
}

.agradecimiento p {
  margin-bottom: 15px;
  font-size: 1.1em;
  line-height: 1.5;
}

.agradecimiento .boton-retorno {
  display: inline-block;
  padding: 12px 24px;
  background-color: #2c3e50;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 10px;
  transition: background-color 0.2s ease;
}

.agradecimiento .boton-retorno:hover {
  background-color: #34495e;
}

/* Política de privacidad */
.politica {
  padding: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.politica h2 {
  color: #2c3e50;
  font-size: 1.8em;
  margin-bottom: 15px;
}

.politica h3 {
  color: #34495e;
  font-size: 1.3em;
  margin-top: 20px;
}

.politica p {
  text-align: justify;
  margin-bottom: 12px;
}

.politica ul {
  margin-left: 20px;
  margin-bottom: 12px;
}

.politica li {
  margin-bottom: 8px;
}