:root {
  --color-primary: #7C9473; /* Sage Green */
  --color-neutral: #3F5138; /* Dark Moss */
  --color-secondary: #F1DCD4; /* Dusty Rose */
  --color-tertiary: #D9C08B; /* Soft Champagne */
  --color-bg: #FBF8F2; /* Warm Ecru */

  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Montserrat', sans-serif;

  --spacing-base: 8px;
  --section-gap: 120px;
  --margin-desktop: 64px;
  --margin-mobile: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-neutral);
  font-family: var(--font-body);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  margin-top: 0;
  line-height: 1.2;
}

p {
  line-height: 1.6;
  letter-spacing: 0.02em;
}

/* Utilities */
.ambient-shadow {
  box-shadow: 0 15px 45px -15px rgba(63, 81, 56, 0.1);
}

.glass-nav {
  background-color: rgba(251, 248, 242, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  color: #fff;
  border-radius: 9999px;
  padding: 12px 32px;
  font-family: var(--font-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  text-decoration: none;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}
.btn-primary:hover {
  box-shadow: 0 10px 25px -5px rgba(63, 81, 56, 0.25);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: 9999px;
  padding: 12px 32px;
  font-family: var(--font-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
  cursor: pointer;
}
.btn-secondary:hover {
  background-color: rgba(124, 148, 115, 0.05);
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--section-gap) var(--margin-desktop);
}

.label-sm {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* Animations */
.fade-in-up {
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-up.scroll-hidden {
  opacity: 0;
  transform: translateY(20px);
}

/* Form Styles */
input, textarea {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(124, 148, 115, 0.3);
  color: var(--color-neutral);
  font-family: var(--font-body);
  font-size: 16px;
  transition: border-color 0.3s ease;
  margin-bottom: 24px;
}
input:focus, textarea:focus {
  outline: none;
  border-bottom-color: var(--color-tertiary);
}
select {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(124, 148, 115, 0.3);
  color: var(--color-neutral);
  font-family: var(--font-body);
  font-size: 16px;
  transition: border-color 0.3s ease;
  margin-bottom: 24px;
  cursor: pointer;
  appearance: none;
}
select:focus {
  outline: none;
  border-bottom-color: var(--color-tertiary);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s ease;
}
.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px var(--margin-desktop);
}
.nav-brand {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  font-style: italic;
}
.brand-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.brand-logo-img:hover {
  transform: scale(1.05);
}
.footer-logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
  margin: 0 auto;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  text-decoration: none;
  color: var(--color-neutral);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: color 0.3s ease;
}
.nav-links a:hover {
  color: var(--color-primary);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  padding: 8px;
}
/* Custom Mobile Hamburger Icon */
.mobile-icon {
  width: 24px;
  height: 2px;
  background-color: var(--color-primary);
  position: relative;
  transition: background-color 0.3s;
}
.mobile-icon::before, .mobile-icon::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: var(--color-primary);
  left: 0;
  transition: transform 0.3s;
}
.mobile-icon::before { transform: translateY(-8px); }
.mobile-icon::after { transform: translateY(8px); }
.mobile-menu-btn.open .mobile-icon { background-color: transparent; }
.mobile-menu-btn.open .mobile-icon::before { transform: rotate(45deg); }
.mobile-menu-btn.open .mobile-icon::after { transform: rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background-color: var(--color-bg);
  padding: 24px var(--margin-mobile);
  flex-direction: column;
  gap: 24px;
  border-bottom: 1px solid rgba(124, 148, 115, 0.1);
  box-shadow: 0 15px 45px -15px rgba(63, 81, 56, 0.1);
}
.mobile-nav.active {
  display: flex;
}
.mobile-nav a {
  text-decoration: none;
  color: var(--color-neutral);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-align: center;
}

@media (max-width: 768px) {
  .nav-content { padding: 20px var(--margin-mobile); }
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .section-container { padding: 80px var(--margin-mobile); }
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 64px;
  align-items: center;
}
.grid-hero {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: center;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 992px) {
  .grid-2, .grid-3, .grid-hero {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* Custom styles for Rubros cards */
.rubro-card {
  background-color: #fff;
  border-radius: 0.5rem;
  overflow: hidden;
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.rubro-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px -15px rgba(63, 81, 56, 0.15);
}
.rubro-image {
  width: 100%;
  aspect-ratio: 4/3;
  background-color: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
}
.rubro-content {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.rubro-icon {
  margin: 0 auto 16px auto;
  width: 32px;
  height: 32px;
  color: var(--color-primary);
}
.rubro-title {
  font-size: 24px;
  color: var(--color-primary);
  margin-bottom: 16px;
}
.rubro-desc {
  font-size: 14px;
  color: var(--color-neutral);
  opacity: 0.8;
}

/* Dynamic Gallery Collage (Mosaico Vivo) */
.dynamic-collage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
  margin-bottom: 64px;
}
.collage-slot {
  background-color: var(--color-bg);
  border-radius: 0.5rem;
  overflow: hidden;
  position: relative;
}
.collage-slot img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1s ease-in-out;
}
/* 10 slots packed into a 4x4 grid (16 cells total) */
.slot-0 { grid-column: span 2; grid-row: span 2; } /* 4 cells */
.slot-1 { grid-column: span 1; grid-row: span 1; } /* 1 cell */
.slot-2 { grid-column: span 1; grid-row: span 2; } /* 2 cells */
.slot-3 { grid-column: span 1; grid-row: span 1; } /* 1 cell */
.slot-4 { grid-column: span 2; grid-row: span 1; } /* 2 cells */
.slot-5 { grid-column: span 1; grid-row: span 1; } /* 1 cell */
.slot-6 { grid-column: span 1; grid-row: span 1; } /* 1 cell */
.slot-7 { grid-column: span 1; grid-row: span 1; } /* 1 cell */
.slot-8 { grid-column: span 2; grid-row: span 1; } /* 2 cells */
.slot-9 { grid-column: span 1; grid-row: span 1; } /* 1 cell */

@media (max-width: 992px) {
  .dynamic-collage-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 150px;
  }
  .slot-0 { grid-column: span 2; grid-row: span 2; }
  .slot-1 { grid-column: span 1; grid-row: span 1; }
  .slot-2 { grid-column: span 1; grid-row: span 2; }
  .slot-3 { grid-column: span 1; grid-row: span 1; }
  .slot-4 { grid-column: span 2; grid-row: span 1; }
  .slot-5, .slot-6, .slot-7, .slot-8, .slot-9 { grid-column: span 1; grid-row: span 1; }
}

@media (max-width: 768px) {
  .dynamic-collage-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
  }
  .slot-0 { grid-column: span 2; grid-row: span 2; }
  .slot-1, .slot-2, .slot-3, .slot-4, .slot-5, .slot-6, .slot-7, .slot-8, .slot-9 {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* Instagram Grid */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.ig-item {
  aspect-ratio: 1 / 1;
  background-color: #fff;
  border-radius: 0.5rem;
  overflow: hidden;
  position: relative;
}
.ig-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.ig-item:hover img {
  transform: scale(1.05);
}
@media (max-width: 768px) {
  .ig-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25D366;
  color: #FFF;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  color: #FFF;
}
.whatsapp-float svg {
  width: 35px;
  height: 35px;
  fill: currentColor;
}
@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}
