/*
  Hoja de estilos para la página de bienestar de las articulaciones.

  Este archivo define la paleta de colores, tipografías y
  distribuciones para crear una experiencia agradable y
  accesible en cualquier dispositivo. La estructura utiliza
  diseños flexibles y rejillas que se adaptan tanto a pantallas
  de escritorio como a móviles.
*/

:root {
  --primary: #004d40;       /* Verde oscuro para encabezados y énfasis */
  --secondary: #6fa757;     /* Verde claro para iconos y llamadas a la acción */
  --accent: #f9a825;        /* Amarillo suave para botones principales */
  --light: #f7f5f2;         /* Color de fondo cálido */
  --dark: #00251a;          /* Tono profundo para textos en el footer */
}

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

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--light);
}

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

/* Encabezado */
header {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

header .logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
}

header nav a {
  margin-left: 1rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

/* Sección de héroe */
.hero {
  position: relative;
  min-height: 70vh;
  background-image: url('../img/hero.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
  padding: 0 1rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  max-width: 700px;
  padding: 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #000000;
  padding: 0.75rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-primary:hover {
  background: var(--secondary);
  color: #ffffff;
}

/* Secciones generales */
.section {
  padding: 4rem 0;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.section h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.two-col {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.two-col .col {
  flex: 1 1 50%;
}

.benefits-list,
.habits-list {
  list-style-type: none;
  padding-left: 0;
}

.benefits-list li,
.habits-list li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
  font-size: 1rem;
}

.benefits-list li::before,
.habits-list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--secondary);
}

/* Tarjetas de ejercicios */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

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

.card h3 {
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.card p {
  font-size: 0.95rem;
  color: var(--dark);
}

/* Sección de nutrición */
.nutricion .image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Preguntas frecuentes */
.faq-item {
  margin-bottom: 1rem;
}

.faq-item h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  cursor: default;
}

.faq-item p {
  font-size: 0.95rem;
  margin-left: 1rem;
  color: var(--dark);
}

/* Formulario de contacto y suscripción */
.contacto {
  background: var(--primary);
  color: #ffffff;
}

.contacto h2 {
  color: #ffffff;
}

.contacto p {
  margin-bottom: 1rem;
}

.contact-form,
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.contact-form label,
.newsletter-form label {
  font-size: 0.9rem;
}

.contact-form input,
.newsletter-form input,
.contact-form textarea {
  padding: 0.7rem;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
}

.contact-form input,
.newsletter-form input {
  background: #ffffff;
  color: #000000;
}

.contact-form textarea {
  background: #ffffff;
  color: #000000;
  resize: vertical;
}

.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.checkbox-wrapper input {
  margin-top: 3px;
}

.btn-secondary,
.contacto .btn-primary {
  align-self: flex-start;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 4px;
  background: var(--accent);
  color: #000000;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-secondary:hover,
.contacto .btn-primary:hover {
  background: var(--secondary);
  color: #ffffff;
}

/* Pie de página */
.footer {
  background: var(--dark);
  color: #ffffff;
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-info h3 {
  margin-bottom: 0.5rem;
  color: #f9f9f9;
}

.footer-info p {
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}

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

.footer-links a {
  display: block;
  margin-bottom: 0.3rem;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Accesibilidad: ocultar texto solo para lectores de pantalla */
.sr-only {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Ajustes responsivos */
@media (max-width: 768px) {
  .two-col .col {
    flex: 1 1 100%;
  }

  header nav a {
    margin-left: 0.5rem;
    font-size: 0.9rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}