/*
 * Global stylesheet for the Armonía Metabólica landing page.
 *
 * This file defines a soft, harmonious colour palette and modern
 * typographic rules to convey serenity and balance. It uses CSS
 * variables for easy maintenance and responsive design principles
 * throughout. The layout is organised with flexbox and grid, and
 * emphasises readability on both desktop and mobile devices.
 */

/* Colour variables */
:root {
  --color-primary: #504759;      /* deep lavender for headers */
  --color-secondary: #ff6f61;    /* warm coral for accents */
  --color-tertiary: #00a19d;     /* calming turquoise */
  --color-accent: #f2c94c;       /* soft golden yellow */
  --color-background: #f9f8f6;   /* off‑white background */
  --color-text: #292524;         /* dark brownish grey for body text */
  --color-muted: #8c7f9c;        /* muted lavender for secondary text */
  --color-light: #ffffff;        /* white for contrast */
}

/* Base styles */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--color-text);
  background-color: var(--color-background);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  color: var(--color-primary);
}

p {
  margin: 0 0 1em;
  color: var(--color-text);
}

a {
  color: var(--color-secondary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Layout containers */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

header {
  background-color: var(--color-light);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

header .nav a {
  margin-left: 1rem;
  font-size: 0.95rem;
  font-weight: 500;
}

header .nav a:first-child {
  margin-left: 0;
}

/* Hero section */
.hero {
  position: relative;
  background-image: url('hero.png');
  background-size: cover;
  background-position: center;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-light);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(80,71,89,0.6) 0%, rgba(255,111,97,0.5) 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2rem;
}

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

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--color-light);
}

.hero .btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-tertiary);
  color: var(--color-light);
  border-radius: 4px;
  transition: background-color 0.3s ease;
  font-weight: 600;
}
.hero .btn:hover {
  background-color: var(--color-secondary);
  color: var(--color-light);
}

/* Section headings */
section {
  padding: 4rem 0;
}

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

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

.pilar {
  background-color: var(--color-light);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}
.pilar:hover {
  transform: translateY(-5px);
}

.pilar h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: var(--color-secondary);
}

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

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

.lectura {
  background-color: var(--color-light);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.lectura h3 {
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
  color: var(--color-secondary);
}

.lectura p {
  font-size: 0.95rem;
}

/* Historia and Entrevista sections */
.historia, .entrevista {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--color-light);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

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

.entrevista q {
  display: block;
  font-style: italic;
  margin: 1rem 0;
  color: var(--color-muted);
}

/* FAQ section */
.faq {
  max-width: 900px;
  margin: 0 auto;
}
.faq-item {
  margin-bottom: 1.5rem;
}
.faq-item h4 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: var(--color-secondary);
}
.faq-item p {
  font-size: 0.95rem;
}

/* Opiniones section */
.opiniones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.opinion {
  background-color: var(--color-light);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.opinion h4 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: var(--color-secondary);
}
.opinion p {
  font-size: 0.95rem;
}

/* Forms */
.form-section {
  background-color: var(--color-light);
  border-radius: 8px;
  padding: 2rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-section h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: var(--color-secondary);
}

.form-section form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.form-section label {
  display: block;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-primary);
}

.form-section input,
.form-section textarea,
.form-section select {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
  box-sizing: border-box;
}

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

.form-section .checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.form-section .checkbox-group input {
  margin-top: 0.3rem;
}
.form-section .checkbox-group label {
  font-size: 0.85rem;
  font-weight: normal;
  color: var(--color-text);
}

.form-section button {
  background-color: var(--color-tertiary);
  color: var(--color-light);
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.form-section button:hover {
  background-color: var(--color-secondary);
}

/* Sobre nosotros section */
.sobre {
  max-width: 900px;
  margin: 0 auto;
  background-color: var(--color-light);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

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

.sobre ul {
  list-style: none;
  padding-left: 0;
}
.sobre li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* Footer */
footer {
  background-color: var(--color-primary);
  color: var(--color-light);
  padding: 2rem 0;
}
footer .footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
footer a {
  color: var(--color-accent);
  font-size: 0.85rem;
}
footer p {
  font-size: 0.85rem;
  margin: 0.3rem 0;
  color: var(--color-light);
}

/* Cookie bar */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-primary);
  color: var(--color-light);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  z-index: 1000;
}

.cookie-bar p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-light);
}

.cookie-bar button {
  padding: 0.5rem 1rem;
  margin: 0 0.5rem;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--color-primary);
}
.cookie-bar .accept {
  background-color: var(--color-accent);
}
.cookie-bar .decline {
  background-color: var(--color-tertiary);
  color: var(--color-light);
}

.hidden {
  display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero {
    height: 60vh;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  header .nav a {
    font-size: 0.85rem;
  }
  section {
    padding: 3rem 0;
  }
}