/* ===================================================
   CATEGORIA PAGE v2.1 — assets/css/categoria-v2.css
   =================================================== */

/* HERO */
.cat-hero-v2 {
  position: relative;
  padding-top: calc(var(--nav-h, 68px) + 2.5rem);
  padding-bottom: 5rem;
  overflow: hidden;
}
.cat-hero-v2__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.3) 55%, transparent 100%);
}
.cat-breadcrumb {
  display: inline-flex; align-items: center; gap: 0.35rem;
  color: rgba(255,255,255,0.72); font-size: 0.82rem; font-weight: 500;
  text-decoration: none; margin-bottom: 1rem; transition: color 0.18s;
}
.cat-breadcrumb:hover { color: #fff; }
.cat-hero-title {
  font-family: 'Baloo 2', cursive;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800; color: #fff; line-height: 1.1; margin-bottom: 0.8rem;
}
.cat-hero-sub {
  color: rgba(255,255,255,0.85);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  max-width: 480px; margin-bottom: 0;
}
.cat-hero-chip {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(6px);
  color: #fff; font-size: 0.82rem; font-weight: 600;
  padding: 0.35rem 1rem; border-radius: 999px;
}
.btn-cat-outline {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: rgba(255,255,255,0.14);
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff; font-size: 0.88rem; font-weight: 600;
  padding: 0.4rem 1.1rem; border-radius: 999px;
  text-decoration: none; backdrop-filter: blur(4px);
  transition: background 0.18s;
}
.btn-cat-outline:hover { background: rgba(255,255,255,0.28); color: #fff; }
.cat-hero-wave {
  position: absolute; bottom: 0; left: 0; right: 0; line-height: 0;
}
.cat-hero-wave svg { display: block; width: 100%; height: 50px; }
@media (max-width:575px) {
  .cat-hero-v2 { padding-bottom: 4.5rem; }
  .cat-hero-v2__overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.2) 70%, transparent 100%);
  }
}

/* TOOLBAR */
.cat-toolbar-v2 {
  background: #fff;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(91,76,167,0.07);
  position: sticky; top: var(--nav-h, 68px); z-index: 20;
  box-shadow: 0 2px 12px rgba(91,76,167,0.06);
}
.cat-toolbar-v2 .container {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.cat-search-bar {
  display: flex; align-items: center; gap: 0.5rem; flex: 1; min-width: 240px;
}
.cat-search-bar__input-wrap { position: relative; flex: 1; }
.cat-search-icon {
  position: absolute; left: 0.9rem; top: 50%;
  transform: translateY(-50%); color: #aaa; pointer-events: none;
}
.cat-search-input {
  width: 100%;
  border: 2px solid rgba(91,76,167,0.18);
  border-radius: 999px;
  padding: 0.55rem 1rem 0.55rem 2.5rem;
  font-family: 'Poppins', sans-serif; font-size: 0.88rem;
  outline: none; color: #333; transition: border-color 0.18s, box-shadow 0.18s;
}
.cat-search-input:focus {
  border-color: #5b4ca7;
  box-shadow: 0 0 0 3px rgba(91,76,167,0.10);
}
.cat-search-btn {
  background: #ff8e74; color: #fff; border: none;
  border-radius: 999px; padding: 0.55rem 1.4rem;
  font-family: 'Poppins', sans-serif; font-size: 0.88rem; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: background 0.18s, transform 0.18s;
}
.cat-search-btn:hover { background: #ff7655; transform: translateY(-1px); }
.cat-toolbar-meta { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.section-tag {
  background: rgba(91,76,167,0.10); color: #5b4ca7;
  font-size: 0.78rem; font-weight: 700;
  padding: 0.25rem 0.8rem; border-radius: 999px;
}
.cat-count { color: #aaa; font-size: 0.85rem; }

/* GRID */
.cat-grid-section { background: #fff7fc; padding: 2.5rem 0 3rem; }

/* PRODUCT CARD */
.pcard {
  background: #fff; border-radius: 1.2rem; overflow: hidden;
  box-shadow: 0 2px 16px rgba(91,76,167,0.07);
  border: 1px solid rgba(91,76,167,0.06);
  transition: transform 0.22s cubic-bezier(0.16,1,0.3,1), box-shadow 0.22s;
  height: 100%; display: flex; flex-direction: column;
}
.pcard:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(91,76,167,0.14); }
.pcard__img-link {
  display: block; position: relative; overflow: hidden;
  aspect-ratio: 1/1; background: #f3f0ff;
}
.pcard__img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.pcard:hover .pcard__img { transform: scale(1.05); }
.pcard__hover-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(91,76,167,0.85), transparent);
  color: #fff; font-size: 0.82rem; font-weight: 600;
  text-align: center; padding: 1.2rem 0.5rem 0.6rem;
  opacity: 0; transition: opacity 0.22s;
}
.pcard:hover .pcard__hover-label { opacity: 1; }
.pcard__body {
  padding: 0.85rem 0.9rem 1rem;
  display: flex; flex-direction: column; flex: 1;
}
.pcard__name {
  font-family: 'Poppins', sans-serif; font-size: 0.9rem;
  font-weight: 600; color: #5b4ca7;
  margin-bottom: 0.25rem; line-height: 1.3;
}
.pcard__price { font-size: 0.95rem; font-weight: 700; color: #333; margin-bottom: 0.75rem; }
.pcard__actions { display: flex; gap: 0.5rem; margin-top: auto; }
.pcard__btn-detail {
  flex: 1; display: inline-flex; align-items: center; justify-content: center;
  background: #5b4ca7; color: #fff; font-size: 0.8rem; font-weight: 600;
  padding: 0.45rem 0.6rem; border-radius: 999px; text-decoration: none;
  transition: background 0.18s; white-space: nowrap;
}
.pcard__btn-detail:hover { background: #3d3280; color: #fff; }
.pcard__btn-wa {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: #25d366; color: #fff; flex-shrink: 0;
  text-decoration: none; transition: background 0.18s, transform 0.18s;
}
.pcard__btn-wa:hover { background: #1ebe5d; transform: scale(1.1); }

/* EMPTY */
.cat-empty {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 4rem 1rem;
}
.btn-wa-full {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #25d366; color: #fff; font-weight: 600; font-size: 0.95rem;
  padding: 0.75rem 2rem; border-radius: 999px; text-decoration: none;
  transition: background 0.18s, transform 0.18s;
}
.btn-wa-full:hover { background: #1ebe5d; color: #fff; transform: translateY(-2px); }

/* CTA CREADOR */
.cat-cta-creador { background: #fff; padding: 2.5rem 0 3rem; border-top: 1px solid rgba(91,76,167,0.07); }
.cat-cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
  background: linear-gradient(135deg, #f3f0ff 0%, #fff0f9 100%);
  border-radius: 1.2rem; padding: 2rem 2.5rem;
  border: 1px solid rgba(91,76,167,0.10);
}
@media (max-width:768px) {
  .cat-cta-inner { padding: 1.5rem; flex-direction: column; align-items: flex-start; }
  .cat-toolbar-v2 .container { flex-direction: column; align-items: stretch; }
  .cat-toolbar-meta { justify-content: space-between; }
}