/*
  Esencia Activa 45+ — Estilos
  Este archivo define la estética del sitio con una paleta vibrante inspirada en tonos
  de púrpura, turquesa y rosa, transmitiendo energía y armonía. Se emplean fuentes
  modernas y una disposición basada en flexbox y grid que se adapta a cualquier
  dispositivo. Cada módulo (hero, programas, testimonios, formularios) se estiliza
  para proporcionar una experiencia fluida y atractiva.
*/

/* Paleta de colores */
:root {
  --header-bg: #8e44ad;     /* púrpura intenso */
  --accent: #1abc9c;        /* turquesa */
  --highlight: #e84393;     /* rosa vibrante */
  --light-bg: #f7f9fb;      /* fondo claro */
  --text-dark: #2d3436;     /* gris oscuro */
  --card-bg: #ffffff;       /* blanco para tarjetas */
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Verdana', sans-serif;
  background-color: var(--light-bg);
  color: var(--text-dark);
  line-height: 1.5;
}

header {
  background-color: var(--header-bg);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header h1 {
  font-size: 1.6rem;
  font-weight: bold;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.2rem;
}

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

nav a:hover {
  color: var(--highlight);
}

/* Sección hero */
.hero {
  position: relative;
  width: 100%;
  height: 65vh;
  background-image: url('images/hero.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom right, rgba(142, 68, 173, 0.7), rgba(232, 67, 147, 0.7));
}

.hero-content {
  position: relative;
  color: #fff;
  text-align: center;
  max-width: 80%;
  padding: 2rem;
}

.hero-content h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  font-family: 'Trebuchet MS', sans-serif;
}

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

.btn-primary {
  background-color: var(--accent);
  color: #fff;
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--highlight);
}

/* Sección acerca del experto */
.expert-section {
  padding: 4rem 2rem;
  text-align: center;
}

.expert-section h3 {
  font-size: 1.8rem;
  color: var(--header-bg);
  margin-bottom: 1rem;
  font-family: 'Trebuchet MS', sans-serif;
}

.expert-section p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1rem;
}

/* Programas */
.programs-section {
  padding: 4rem 2rem;
  background-color: #fff;
}

.programs-section h3 {
  text-align: center;
  font-size: 1.8rem;
  color: var(--header-bg);
  margin-bottom: 2rem;
  font-family: 'Trebuchet MS', sans-serif;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.program-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.program-card:hover {
  transform: translateY(-5px);
}

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

.program-card .content {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.program-card h4 {
  font-size: 1.3rem;
  color: var(--highlight);
  margin-bottom: 0.5rem;
}

.program-card p {
  font-size: 0.95rem;
  flex-grow: 1;
}

.program-card .price {
  margin-top: 0.8rem;
  font-weight: bold;
  color: var(--accent);
}

/* Testimonios */
.testimonials-section {
  padding: 4rem 2rem;
  background-color: var(--light-bg);
}

.testimonials-section h3 {
  text-align: center;
  font-size: 1.8rem;
  color: var(--header-bg);
  margin-bottom: 2rem;
  font-family: 'Trebuchet MS', sans-serif;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.testimonial {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 1.2rem;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.testimonial h4 {
  color: var(--highlight);
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
}

.testimonial p {
  font-size: 0.9rem;
}

/* Formulario de testimonios */
.testimonial-form {
  margin-top: 3rem;
  text-align: center;
}

.testimonial-form form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial-form input,
.testimonial-form textarea {
  padding: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.testimonial-form button {
  align-self: center;
  background-color: var(--header-bg);
  color: #fff;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.testimonial-form button:hover {
  background-color: var(--accent);
}

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

.modal-content {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  width: 90%;
  max-width: 500px;
}

.modal-content button {
  margin-top: 1rem;
  background-color: var(--accent);
  border: none;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modal-content button:hover {
  background-color: var(--highlight);
}

/* Formulario de contacto */
.contact-section {
  padding: 4rem 2rem;
  background-color: #fff;
}

.contact-section h3 {
  text-align: center;
  font-size: 1.8rem;
  color: var(--header-bg);
  margin-bottom: 2rem;
  font-family: 'Trebuchet MS', sans-serif;
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.contact-form .checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.contact-form button {
  align-self: flex-start;
  background-color: var(--header-bg);
  color: #fff;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: var(--accent);
}

footer {
  background-color: var(--header-bg);
  color: #fff;
  padding: 2rem;
  text-align: center;
  margin-top: 2rem;
}

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

@media (max-width: 768px) {
  .hero-content h2 {
    font-size: 1.6rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  nav ul {
    gap: 0.8rem;
  }
}