/* ── Custom Properties ──────────────────────────────────── */
:root {
  --color-primary:    #2d6a4f;
  --color-primary-dk: #1b4332;
  --color-accent:     #52b788;
  --color-bg:         #f8fafc;
  --color-bg-alt:     #f1f5f9;
  --color-surface:    #ffffff;
  --color-text:       #1e293b;
  --color-text-muted: #64748b;
  --color-border:     #e2e8f0;
  --radius:           12px;
  --shadow:           0 2px 16px rgba(0, 0, 0, 0.08);
  --transition:       0.2s ease;
  --max-w:            1100px;
  --header-h:         64px;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ── Layout ──────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.logo:hover { text-decoration: none; }

/* ── Nav ─────────────────────────────────────────────────── */
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}
.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  transition: color var(--transition);
}
.main-nav a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

/* ── Hamburger ───────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: background var(--transition);
}
.hamburger:hover { background: var(--color-bg-alt); }
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--color-primary-dk) 0%, var(--color-primary) 60%, var(--color-accent) 100%);
  color: #fff;
  padding: 5rem 0 4rem;
  text-align: center;
}
.hero-content { max-width: 680px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.hero-desc {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.7rem 1.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: filter var(--transition), transform var(--transition);
}
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); text-decoration: none; }
.btn-primary {
  background: #fff;
  color: var(--color-primary);
}

/* ── Sections ────────────────────────────────────────────── */
section[id] { scroll-margin-top: var(--header-h); }
.section { padding: 4rem 0; }
.section-alt { background: var(--color-bg-alt); }
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--color-text);
}

/* ── Cards ───────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}
.card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}
.card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* ── Filter Bar ──────────────────────────────────────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.filter-btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  border: 2px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn.is-active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.filter-btn:hover:not(.is-active) {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ── Plant Cards ─────────────────────────────────────────── */
.plant-card {
  overflow: hidden;
  padding: 0;
}
.plant-card-img {
  width: 100%;
  height: 200px;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}
.plant-card-body {
  padding: 1.25rem 1.5rem;
}
.plant-scientific {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}
.season-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.season-badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-weight: 600;
}
.season-badge.primavera { background: #d8f3dc; color: #2d6a4f; }
.season-badge.verano    { background: #fff3cd; color: #856404; }
.season-badge.otono     { background: #ffe0cc; color: #c44900; }
.season-badge.invierno  { background: #d0e8ff; color: #1a4b8c; }
.plant-care {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
}
.plant-care-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}
.plant-care-text {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--color-text-muted);
  font-size: 1rem;
}

/* ── Contact ─────────────────────────────────────────────── */
.contact-info {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.contact-info p {
  font-size: 1rem;
  color: var(--color-text);
}
.contact-info a {
  color: var(--color-primary);
  font-weight: 500;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: #1e293b;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.85rem;
}

/* ── Primavera Hero ──────────────────────────────────────── */
.hero-primavera {
  background: linear-gradient(135deg, #ad1457 0%, #e91e63 40%, #f48fb1 80%, #fce4ec 100%);
}

/* ── Tablet (≥768px) ─────────────────────────────────────── */
@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Desktop (≥1024px) ───────────────────────────────────── */
@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Mobile (≤768px) ─────────────────────────────────────── */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    z-index: 99;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
  }
  .main-nav a {
    display: block;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
  }
  .main-nav a:hover { background: var(--color-bg-alt); }

  .hero { padding: 3.5rem 0 3rem; }

  .filter-bar { gap: 0.5rem; }
  .filter-btn { padding: 0.4rem 1rem; font-size: 0.8rem; }
  .plant-card-img { height: 160px; }
}
