/*
 * Estilos para Armonía Soltura
 *
 * Esta hoja de estilos define la apariencia de la página web de Armonía Soltura,
 * un proyecto enfocado en apoyar la movilidad articular a través de hábitos
 * saludables. Se utiliza una paleta cromática inspirada en la naturaleza,
 * combinando tonos de azul oscuro, coral cálido, taupe, salvia y marfil. El
 * diseño está pensado para ser ligero y limpio, con amplios espacios en blanco
 * y tipografías modernas que facilitan la lectura. Las secciones se organizan
 * mediante rejillas y flexbox para adaptarse a distintos tamaños de pantalla.
 */

/* Variables de color y tipografía */
:root {
  --color-primary: #024c6e;   /* Azul océano profundo */
  --color-secondary: #c45b5b; /* Coral cálido */
  --color-tertiary: #a87c5b;  /* Taupe suave */
  --color-accent: #92b8a8;    /* Verde salvia */
  --color-background: #f3f5f4; /* Marfil pálido */
  --color-text: #2a2e33;      /* Gris antracita */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

/* Normalización básica */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-background);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

a:hover {
  color: var(--color-secondary);
}

/* Cabecera y navegación */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--color-primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

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

nav ul li a {
  color: #fff;
  font-weight: 600;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background-color 0.2s ease-in-out;
}

nav ul li a:hover {
  background-color: var(--color-secondary);
}

/* Sección hero */
.hero {
  position: relative;
  background-image: url('hero.png');
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  padding: 6rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(2, 76, 110, 0.7), rgba(196, 91, 91, 0.6));
  z-index: 0;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  z-index: 1;
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin-bottom: 2rem;
  z-index: 1;
}

.hero .btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  background-color: var(--color-secondary);
  color: #fff;
  border-radius: 30px;
  font-weight: 600;
  transition: background-color 0.3s ease-in-out;
  z-index: 1;
}

.hero .btn:hover {
  background-color: var(--color-tertiary);
}

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

section h2 {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 2rem;
}

/* Pilares */
.pilares .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.pilares .card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.3s ease;
}

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

.pilares .card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-secondary);
}

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

/* Lecturas (artículos) */
.lecturas .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.lecturas article {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lecturas article h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-secondary);
}

.lecturas article p {
  font-size: 0.95rem;
  color: var(--color-text);
}

/* Historia y entrevista */
.historia, .entrevista {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 3rem 2rem;
  max-width: 1000px;
  margin: 0 auto 3rem auto;
}

.historia h3, .entrevista h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

.historia p, .entrevista p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.entrevista .qa {
  margin-bottom: 1.5rem;
}

.entrevista .qa h4 {
  font-size: 1.1rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.entrevista .qa p {
  font-size: 0.95rem;
}

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

.faq .item h4 {
  font-size: 1.1rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.faq .item p {
  font-size: 0.95rem;
  color: var(--color-text);
}

/* Opiniones */
.opiniones .opinion {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  margin-bottom: 2rem;
}

.opiniones .opinion h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
}

.opiniones .opinion p {
  font-size: 0.95rem;
}

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

form label {
  font-size: 0.9rem;
  font-weight: 600;
}

form input[type="text"],
form input[type="email"],
form textarea {
  padding: 0.7rem;
  border: 1px solid var(--color-accent);
  border-radius: 4px;
  font-size: 0.9rem;
  width: 100%;
  resize: vertical;
}

form textarea {
  min-height: 100px;
}

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

form button {
  background-color: var(--color-primary);
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
}

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

/* Sobre nosotros */
.sobre {
  background-color: #fff;
  padding: 3rem 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  max-width: 1000px;
  margin: 0 auto;
}

.sobre h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

.sobre p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.sobre .contact-info {
  margin-top: 1.5rem;
}

.sobre .contact-info p {
  font-size: 0.9rem;
}

/* Pie de página */
footer {
  background-color: var(--color-primary);
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
}

footer a {
  color: #fff;
  text-decoration: underline;
  margin: 0 0.5rem;
}

footer p {
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

/* Cookie bar */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-tertiary);
  color: #fff;
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  z-index: 1000;
}

.cookie-bar button {
  background-color: var(--color-accent);
  color: var(--color-text);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.cookie-bar button:hover {
  background-color: var(--color-secondary);
  color: #fff;
}

@media (max-width: 768px) {
  header nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
}