/*
 * Hoja de estilos para ViveBien45.
 * Este archivo define una paleta de colores suave y tipografías legibles
 * que transmiten confianza y bienestar. Los estilos están diseñados para ser
 * compatibles con Google Ads y proporcionar una experiencia agradable
 * para hombres y mujeres de 45 años o más.
 */

/* Reinicios básicos */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 0;
}

header {
  background-color: #2e6da4;
  color: #fff;
  text-align: center;
  padding: 2rem 0;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.hero-image,
.responsive-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  margin: 0 auto;
}

section {
  padding: 2rem 0;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #2e6da4;
  text-align: center;
}

/* Artículo */
.articulo p {
  margin-bottom: 1rem;
  text-align: justify;
}

/* Cursos */
.cursos .curso-lista {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.cursos .curso {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.cursos .curso:hover {
  transform: translateY(-3px);
}

.cursos .curso h3 {
  font-size: 1.3rem;
  color: #2e6da4;
  margin-bottom: 0.5rem;
}

.cursos .curso p {
  margin-bottom: 0.5rem;
}

.cursos .precio {
  font-weight: bold;
  color: #d9534f;
}

/* Testimonios */
.testimonios .testimonio {
  background-color: #fff;
  border-left: 4px solid #2e6da4;
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.testimonios .nombre {
  margin-bottom: 0.3rem;
  color: #2e6da4;
}

/* Formularios */
form {
  display: flex;
  flex-direction: column;
}

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form textarea {
  padding: 0.6rem;
  margin-bottom: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

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

form button {
  background-color: #5cb85c;
  color: #fff;
  border: none;
  padding: 0.8rem;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

form button:hover {
  background-color: #4cae4c;
}

.checkbox-label {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.checkbox-label input {
  margin-right: 0.5rem;
}

/* Popup para agradecimiento de opiniones */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.popup .popup-content {
  background-color: #fff;
  padding: 2rem;
  border-radius: 6px;
  text-align: center;
  max-width: 300px;
}

.popup .popup-content button {
  margin-top: 1rem;
  background-color: #2e6da4;
}

.oculto {
  display: none;
}

/* Contacto */
.contacto {
  background-color: #fff;
  border-top: 1px solid #ddd;
  padding-top: 2rem;
}

/* Gracias */
.gracias {
  text-align: center;
  padding: 4rem 0;
}

.gracias h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #2e6da4;
}

.gracias p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.gracias .btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: #5bc0de;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.2s ease;
}

.gracias .btn:hover {
  background-color: #46b8da;
}

/* Footer */
footer {
  background-color: #2e6da4;
  color: #fff;
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 2rem;
}

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

@media (max-width: 600px) {
  header h1 {
    font-size: 2rem;
  }
  section h2 {
    font-size: 1.7rem;
  }
}