/*
 * Estilos para ViveActivo 45+
 * Una combinación de colores cálidos y verdes que evocan calma y bienestar.
 */

:root {
  --primary-color: #e07a24;
  --secondary-color: #406341;
  --background-color: #fff8e5;
  --text-color: #333333;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  margin: 0;
  background: var(--background-color);
  color: var(--text-color);
}

header {
  background: var(--primary-color);
  color: #ffffff;
  padding: 20px;
}

header h1 {
  margin: 0;
  font-size: 2rem;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

/* Sección de héroe */
.hero {
  position: relative;
  text-align: center;
}

.hero img {
  width: 100%;
  height: auto;
  display: block;
}

.hero .overlay {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.85);
  padding: 20px;
  border-radius: 10px;
  max-width: 80%;
}

section {
  padding: 40px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

/* Cursos */
.courses .course-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.course-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 20px;
  flex: 1 1 280px;
  max-width: 300px;
}

.course-card h3 {
  margin-top: 0;
}

.course-card .price {
  color: var(--primary-color);
  font-weight: bold;
}

.course-card a.button {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background: var(--secondary-color);
  color: #ffffff;
  border-radius: 4px;
  text-decoration: none;
}

.course-card a.button:hover {
  background: var(--primary-color);
}

/* Testimonios */
.testimonials .testimonial {
  background: #ffffff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.testimonials .testimonial span {
  display: block;
  margin-top: 10px;
  font-weight: bold;
  color: var(--secondary-color);
}

/* Formularios */
form {
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 15px;
}

form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  box-sizing: border-box;
}

form textarea {
  resize: vertical;
}

form input[type="checkbox"] {
  margin-right: 5px;
}

form button {
  background: var(--primary-color);
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}

form button:hover {
  background: var(--secondary-color);
}

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

.review-popup .popup-content {
  background: #ffffff;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  max-width: 300px;
}

.review-popup.visible {
  display: flex;
}

/* Pie de página */
.footer {
  background: var(--secondary-color);
  color: #ffffff;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

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

@media (max-width: 600px) {
  nav ul {
    flex-direction: column;
    gap: 10px;
  }
}