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

:root {
  /* Brand Colors */
  --color-primary: #556b2f;      /* Olive Green */
  --color-primary-dark: #3a4a1f; /* Darker Olive */
  --color-bg-light: #f5f5f5;     /* Smoke White */
  --color-bg-cream: #fffdd0;     /* Cream */
  --color-accent-red: #dc143c;   /* Crimson Red */
  --color-accent-yellow: #ffc107;/* Sunflower Yellow */
  --color-text-main: #2b2b2b;
  --color-text-muted: #555555;
  --color-white: #ffffff;
  
  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Roboto', sans-serif;
  
  /* Utilities */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
  --border-radius: 8px;
  --border-radius-lg: 16px;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary-dark);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

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

/* ------------------------------------- 
   LAYOUT & CONTAINERS 
-------------------------------------- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.section-light {
  background-color: var(--color-white);
}

.section-cream {
  background-color: var(--color-bg-cream);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 25%;
  width: 50%;
  height: 4px;
  background-color: var(--color-accent-red);
  border-radius: 2px;
}

/* ------------------------------------- 
   BUTTONS (CTAs) 
-------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--border-radius);
  cursor: pointer;
  border: none;
  transition: all var(--transition-normal);
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 0; height: 100%;
  background: rgba(255,255,255,0.2);
  transition: width var(--transition-normal);
  z-index: -1;
}

.btn:hover::before {
  width: 100%;
}

.btn-primary {
  background-color: var(--color-accent-red);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(220, 20, 60, 0.4);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(220, 20, 60, 0.6);
  color: var(--color-white);
}

.btn-secondary {
  background-color: var(--color-accent-yellow);
  color: var(--color-text-main);
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}
.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.6);
}

/* ------------------------------------- 
   HEADER & NAVIGATION 
-------------------------------------- */
.header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: all var(--transition-normal);
}

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

.logo img {
  height: 60px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links li a {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-primary-dark);
  position: relative;
  font-size: 1rem;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background-color: var(--color-accent-red);
  transition: width var(--transition-normal);
}

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

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--color-accent-red);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
}
.hamburger .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: all var(--transition-normal);
  background-color: var(--color-primary-dark);
}

/* Breadcrumbs */
.breadcrumb-container {
  margin-top: 100px; /* Space for fixed header */
  background: var(--color-bg-cream);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.breadcrumbs {
  display: flex;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.breadcrumbs a {
  color: var(--color-primary);
  font-weight: 500;
}
.breadcrumbs a:hover {
  text-decoration: underline;
}
.breadcrumbs .separator {
  color: var(--color-text-muted);
}

/* ------------------------------------- 
   HERO SECTION 
-------------------------------------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url('img/silletas.jpg'); /* Placeholder hero img */
  background-size: cover;
  background-position: center;
  z-index: -2;
  transform: scale(1.05);
  animation: heroZoom 20s infinite alternate linear;
}

@keyframes heroZoom {
  0% { transform: scale(1.05); }
  100% { transform: scale(1.15); }
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(85, 107, 47, 0.7), rgba(0,0,0,0.8));
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  padding: 2rem;
  animation: fadeUp 1s ease forwards;
  opacity: 0;
  transform: translateY(30px);
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero-logo {
  height: 120px;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.hero h1 {
  font-size: 3.5rem;
  color: var(--color-white);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

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

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* ------------------------------------- 
   GENERAL CARDS (Used in various pages)
-------------------------------------- */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  border: 1px solid rgba(0,0,0,0.03);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.card-content {
  padding: 1.5rem;
}

.card-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary-dark);
}

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

/* ------------------------------------- 
   FOOTER 
-------------------------------------- */
.footer {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: var(--color-accent-yellow);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-col p, .footer-col a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: block;
}

.footer-col a:hover {
  color: var(--color-white);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* ------------------------------------- 
   RESPONSIVE DESIGN 
-------------------------------------- */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 80px; /* Header height */
    left: -100%;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    width: 100%;
    height: calc(100vh - 80px);
    text-align: center;
    transition: 0.3s;
    padding: 2rem 0;
    gap: 1.5rem;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-ctas {
    flex-direction: column;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-wa 2s infinite;
}
.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}
.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: white;
}
@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    .whatsapp-float svg {
        width: 30px;
        height: 30px;
    }
}
