/*
  Estilos personalizados para el sitio de bienestar articular.
  Paleta de colores inspirada en tonos naturales: verde bosque, naranja cálido y azul profundo.
  Diseñado para ofrecer una apariencia limpia y acogedora en todos los dispositivos.
*/

:root {
  --color-primary: #2E8B57; /* verde bosque */
  --color-secondary: #F4A261; /* naranja cálido */
  --color-accent: #264653; /* azul profundo */
  --color-light: #F7F7F7; /* gris muy claro */
  --color-dark: #1D3557; /* azul oscuro */
  --max-width: 1200px;
}

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

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

a {
  color: var(--color-primary);
  text-decoration: none;
}

h1, h2, h3 {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

header.hero {
  background-image: linear-gradient(rgba(38, 70, 83, 0.65), rgba(38, 70, 83, 0.65)), url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  padding: 6rem 1rem;
}

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

header.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

header.hero .cta-btn {
  background-color: var(--color-secondary);
  color: var(--color-dark);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

header.hero .cta-btn:hover {
  background-color: var(--color-primary);
  color: #fff;
}

/* Contenedor principal */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Sección Sobre */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.about img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  height: 100%;
}

.about-text h2 {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.about-text p {
  margin-bottom: 1rem;
}

/* Sección Beneficios */
.benefits {
  background-color: #fff;
  padding: 4rem 1rem;
}

.benefits h2 {
  text-align: center;
  color: var(--color-accent);
  margin-bottom: 2rem;
}

.benefit-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.benefit-card {
  background-color: var(--color-light);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  flex: 1 1 280px;
  max-width: 350px;
  text-align: center;
  transition: transform 0.3s ease;
}

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

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

.benefit-card p {
  font-size: 0.95rem;
}

/* Formularios */
form {
  display: grid;
  gap: 1rem;
}

form label {
  font-weight: 600;
}

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

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

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

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

form button {
  background-color: var(--color-primary);
  color: #fff;
  border: none;
  padding: 0.75rem 1.2rem;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

/* Sección Contacto */
.contact {
  background-color: var(--color-primary);
  color: #fff;
  padding: 4rem 1rem;
}

.contact h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-info h3 {
  margin-bottom: 1rem;
  color: var(--color-secondary);
}

.contact-info p {
  margin-bottom: 0.5rem;
}

.subscription {
  background-color: #fff;
  padding: 4rem 1rem;
}

.subscription h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--color-accent);
}

/* Footer */
footer {
  background-color: var(--color-accent);
  color: #fff;
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

footer .footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

footer h3 {
  margin-bottom: 1rem;
}

footer ul {
  list-style: none;
}

footer ul li {
  margin-bottom: 0.5rem;
}

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

footer .copyright {
  text-align: center;
  margin-top: 2rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  font-size: 0.9rem;
}

.cookie-banner p {
  margin: 0.5rem 0;
  flex: 1 1 70%;
}

.cookie-banner button {
  background-color: var(--color-secondary);
  color: var(--color-dark);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-left: 1rem;
  flex: 1 1 auto;
}

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

/* Responsividad */
@media (max-width: 768px) {
  .about {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .benefit-cards {
    flex-direction: column;
    align-items: center;
  }
  header.hero {
    padding: 4rem 1rem;
  }
  header.hero h1 {
    font-size: 2rem;
  }
}