/* ============================================================
   seeds.css — Catálogo de Semillas
   Fuente: Montserrat (cargada en la página vía Google Fonts)
   Paleta: verde #6EAA32 / blanco #fff / gris claro #f7f7f7
   ============================================================ */

/* ── Sección héroe de la página de semillas ────────────────── */
.seeds-hero {
  background: linear-gradient(135deg, #4a7c20 0%, #6EAA32 60%, #87c840 100%);
  color: #fff;
  padding: 3.5rem 1rem 3rem;
  text-align: center;
}

.seeds-hero__eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.6rem;
}

.seeds-hero__title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.8rem;
}

.seeds-hero__subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  max-width: 480px;
  margin: 0 auto;
}

/* ── Tabs de categorías ────────────────────────────────────── */
.seeds-tabs {
  background: #fff;
  border-bottom: 2px solid #e9e9e9;
  padding: 0 1rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.seeds-tabs__btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: #555;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 0.9rem 1.1rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.seeds-tabs__btn:hover {
  color: #6EAA32;
}

.seeds-tabs__btn--active {
  color: #6EAA32;
  border-bottom-color: #6EAA32;
}

/* ── Contenedor principal ──────────────────────────────────── */
.seeds-section {
  background: #f7f7f7;
  padding: 3rem 1rem 5rem;
  min-height: 60vh;
}

.seeds-section__container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Grid / Lista ─────────────────────────────────────────── */
.seed-list {
  margin-top: 0;
}

.seed-list__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 1.5rem;
}

.seed-list__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.seed-list__empty {
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  color: #888;
  padding: 4rem 1rem;
  font-size: 0.95rem;
}

/* ── Tarjeta de producto ──────────────────────────────────── */
.seed-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.seed-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.13);
}

/* Imagen */
.seed-card__image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #fff;
}

.seed-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.seed-card:hover .seed-card__image {
  transform: scale(1.03);
}

.seed-card__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
}

.seed-card__image-placeholder svg {
  width: 3rem;
  height: 3rem;
}

/* Chip de categoría */
.seed-card__category-chip {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(110, 170, 50, 0.9);
  color: #fff;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  backdrop-filter: blur(4px);
}

/* Cuerpo de la tarjeta */
.seed-card__body {
  padding: 1.2rem 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.seed-card__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.3;
  margin: 0;
}

.seed-card__description-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.seed-card__description {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  color: #6b7280;
  line-height: 1.55;
  margin: 0;
}

/* Estado colapsado: limitar a 4 líneas */
.seed-card__description--clamped {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Estado expandido: flujo libre */
.seed-card__description--expanded {
  display: block;
  overflow: visible;
}

/* Botón Ver más / Ver menos */
.seed-card__expand-btn {
  align-self: flex-start;
  background: none;
  border: none;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6EAA32;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: color 0.2s, opacity 0.2s;
  opacity: 0.85;
}

.seed-card__expand-btn:hover {
  color: #4a7c20;
  opacity: 1;
}

/* Botón WhatsApp */
.seed-card__wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.6rem;
  background: #25D366;
  color: #fff !important;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 10px;
  padding: 0.65rem 1rem;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.15s;
}

.seed-card__wa-btn:hover {
  background: #20b859;
  transform: scale(1.02);
  color: #fff !important;
}

.seed-card__wa-icon {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

/* ── Loading skeleton ─────────────────────────────────────── */
.seed-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.seed-skeleton-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  animation: seedPulse 1.5s ease-in-out infinite;
}

.seed-skeleton-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #e5e7eb;
}

.seed-skeleton-card__body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.seed-skeleton-card__line {
  height: 0.75rem;
  border-radius: 6px;
  background: #e5e7eb;
}

.seed-skeleton-card__line--title   { width: 70%; height: 1rem; }
.seed-skeleton-card__line--text1   { width: 90%; }
.seed-skeleton-card__line--text2   { width: 80%; }
.seed-skeleton-card__line--btn     { width: 100%; height: 2.4rem; margin-top: 0.4rem; }

@keyframes seedPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.55; }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .seed-list__grid,
  .seed-skeleton-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .seed-list__grid,
  .seed-skeleton-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .seeds-hero {
    padding: 2.5rem 1rem 2rem;
  }

  .seeds-tabs {
    gap: 0;
    padding: 0 0.5rem;
  }

  .seeds-tabs__btn {
    font-size: 0.72rem;
    padding: 0.75rem 0.75rem;
  }
}

@media (max-width: 480px) {
  .seed-list__grid,
  .seed-skeleton-grid {
    grid-template-columns: 1fr;
  }
}
