/*
  Estilos para el sitio "Equilibrio Diario"
  Este archivo define una paleta sobria y moderna utilizando tonos
  azulados y mostaza. El diseño está pensado para un sitio
  informativo sin imágenes, por lo que se hace hincapié en la
  tipografía, el espaciado y el contraste para facilitar la lectura.
*/

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;800&display=swap');

:root {
  --primary-color: #023047;
  --secondary-color: #ffb703;
  --light-color: #f5f5f5;
  --text-color: #333333;
  --muted-color: #666666;
}

body {
  margin: 0;
  font-family: 'Nunito', sans-serif;
  background-color: var(--light-color);
  color: var(--text-color);
  line-height: 1.6;
}

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

header {
  background: var(--primary-color);
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

header h1 {
  font-size: 1.5rem;
  margin: 0;
  font-weight: 800;
}

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

nav li {
  margin: 0;
}

nav a {
  color: #fff;
  font-weight: 600;
  transition: color 0.3s ease;
}

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

.hero {
  background-color: var(--secondary-color);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--primary-color);
}

.hero h2 {
  margin-top: 0;
  font-size: 2rem;
  font-weight: 800;
}

.hero p {
  max-width: 700px;
  margin: 0.5rem auto 0;
  font-size: 1.1rem;
}

.section {
  padding: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.section h3 {
  margin-top: 0;
  color: var(--primary-color);
  font-size: 1.6rem;
  font-weight: 800;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.news-item {
  background: #fff;
  padding: 1.5rem;
  border-left: 4px solid var(--secondary-color);
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.news-item h4 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
  color: var(--primary-color);
}

.news-item span.date {
  display: block;
  font-size: 0.9rem;
  color: var(--muted-color);
  margin-bottom: 0.5rem;
}

.news-item p {
  margin: 0 0 1rem;
}

.programs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.program {
  flex: 1 1 300px;
  background: #fff;
  padding: 1.5rem;
  border-radius: 4px;
  border-top: 4px solid var(--primary-color);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.program h4 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: var(--primary-color);
}

.program .price {
  font-size: 1.1rem;
  color: var(--secondary-color);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.about {
  background: #fff;
  border-radius: 4px;
  padding: 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.contact {
  background: #fff;
  border-radius: 4px;
  padding: 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact label {
  font-weight: 600;
  color: var(--primary-color);
}

.contact input,
.contact textarea {
  padding: 0.6rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

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

.contact .consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
}

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

.contact button:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
}

.footer {
  background: var(--primary-color);
  color: #fff;
  padding: 2rem;
  font-size: 0.9rem;
}

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

.footer .footer-section {
  flex: 1 1 200px;
}

.footer h4 {
  margin-top: 0;
  font-size: 1.1rem;
  color: var(--secondary-color);
}

.newsletter input[type="email"] {
  padding: 0.6rem;
  width: 100%;
  border-radius: 4px;
  border: none;
  margin-bottom: 0.5rem;
}

.newsletter button {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: none;
  padding: 0.6rem 1rem;
  cursor: pointer;
  font-weight: 700;
  border-radius: 4px;
  width: 100%;
}

@media (min-width: 600px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .programs {
    flex-wrap: nowrap;
  }
}