:root {
  /* Colors */
  --bg-light: #faf5eb;
  --bg-dark: #1f1b18;
  --bg-footer: #e8dbce; /* slightly darker beige/cream for footer contrast if needed, but brief says #faf5eb for footer too. Let's stick to #faf5eb but maybe a slight border or subtle separation. Actually I'll just use #faf5eb for footer. */
  
  --text-dark: #3a2a20;
  --text-light: #e6e6e6;
  --text-muted: #6b5c53;
  
  --primary-color: #c29047; /* Mustard/Golden CTA */
  --primary-hover: #a67c3b;

  /* Typography */
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;

  /* Spacing & Layout */
  --container-width: 1200px;
  --section-padding: 5rem 1rem;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Header */
header {
  background-color: var(--bg-light);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-contact {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.logo {
  flex: 1;
  text-align: center;
}

.logo h2 {
  font-size: 1.5rem;
  margin-bottom: 0.2rem;
}

.logo p {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

/* Hero Section */
.hero {
  height: 250px; 
  background-image: linear-gradient(rgba(31, 27, 24, 0.7), rgba(31, 27, 24, 0.8)), url('../assets/fondo.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  padding-top: 40px;
}

#inicio.hero {
  height: 500px; /* Altura mayor para el inicio para acomodar todo el contenido */
}

.hero-content {
  max-width: 800px;
  padding: 0 2rem;
  animation: fadeIn 1s ease-out;
}

.hero h1 {
  font-size: 2.8rem; /* Reducido para ajustarse a la nueva altura del banner */
  margin-bottom: 1rem;
  color: var(--text-light);
}

#inicio.hero h1 {
  font-size: 3.5rem; /* Tamaño original para el inicio */
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  font-weight: 300;
  opacity: 0.9;
}

/* Purpose Section */
.purpose {
  padding: var(--section-padding);
  background-color: var(--bg-light);
  text-align: center;
}

.purpose-content {
  max-width: 700px;
  margin: 0 auto;
}

.purpose h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.purpose .quote {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--primary-color);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.purpose p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Pillars Section */
.pillars {
  padding: 3rem 1rem 5rem;
  background-color: var(--bg-light);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  text-align: center;
}

.pillar-item {
  padding: 2rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  transition: transform 0.3s ease;
}

.pillar-item:hover {
  transform: translateY(-5px);
}

.pillar-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.pillar-item h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Workshops Section */
.workshops {
  padding: var(--section-padding);
  background-color: #f4eee2; /* Slightly darker than light bg to separate */
}

.workshops-header {
  text-align: center;
  margin-bottom: 4rem;
}

.workshops-header h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.workshops-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.workshop-card {
  background-color: #fff;
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.workshop-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.workshop-card h3 i {
  color: var(--primary-color);
}

.workshop-card p.desc {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.workshop-details {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.workshop-details li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.workshop-details li i {
  color: #a0a0a0;
  width: 16px;
}

/* Legacy Section */
.legacy {
  padding: var(--section-padding);
  background-color: var(--bg-light);
}

.legacy-container {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.legacy-image {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.legacy-image img {
  width: 100%;
  height: auto;
  display: block;
}

.legacy-content {
  flex: 1;
}

.legacy-content h2 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
}

.legacy-content h4 {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.legacy-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Gallery Section */
.gallery {
  padding: var(--section-padding);
  background-color: var(--bg-dark);
  color: var(--text-light);
  text-align: center;
}

.gallery-header h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.gallery-header p {
  color: #a0a0a0;
  margin-bottom: 3rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  height: 300px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* News Section */
.news {
  padding: var(--section-padding);
  background-color: var(--bg-light);
}

.news-header {
  text-align: center;
  margin-bottom: 3rem;
}

.news-header h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.news-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.news-img {
  height: 200px;
  background-color: #ddd; /* placeholder */
}

.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-content {
  padding: 1.5rem;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.news-meta span.tag {
  background-color: #f0f0f0;
  padding: 2px 8px;
  border-radius: 12px;
}

.news-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.news-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.read-more {
  color: var(--primary-color);
  font-weight: 500;
  font-size: 0.9rem;
}

/* Footer */
footer {
  background-color: var(--bg-light);
  padding: 4rem 0 2rem;
  border-top: 1px solid #ebdnc2; /* subtle border */
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul li a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-col ul li a:hover {
  color: var(--primary-color);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #e8dbce;
  color: var(--text-dark);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--primary-color);
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.05);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .workshops-grid {
    grid-template-columns: 1fr;
  }
  .legacy-container {
    flex-direction: column;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* Add a mobile menu later if needed */
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Utility Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
