/* ============================================================
   SECCIONES / ALL CATEGORIES PAGE — carmela.uy
   Professional category directory — 2026
   ============================================================ */

.sec-page {
  --c-orange:      #e8530e;
  --c-orange-h:    #c44409;
  --c-orange-glow: rgba(232, 83, 14, 0.25);
  --c-orange-soft: rgba(232, 83, 14, 0.06);
  --c-navy:        #1e3a5f;
  --c-dark:        #0f172a;
  --c-white:       #ffffff;
  --c-surface:     #f8fafc;
  --c-surface-alt: #f1f5f9;
  --c-border:      #e2e8f0;
  --c-text:        #1e293b;
  --c-text-sec:    #475569;
  --c-muted:       #64748b;
  --max-w:         1140px;
  --font-ui:       roboto, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display:  Boldy, 'Arial Black', sans-serif;
  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     20px;
  --shadow-sm:     0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow-md:     0 4px 16px rgba(15,23,42,.08), 0 1px 3px rgba(15,23,42,.05);
  --shadow-lg:     0 12px 40px rgba(15,23,42,.12), 0 4px 12px rgba(15,23,42,.06);
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: var(--font-ui);
  color: var(--c-text);
}


/* ── Scroll-reveal ── */
.sec-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.sec-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   HERO
   ============================================================ */
.sec-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
  padding: 56px 28px 52px;
  text-align: center;
  color: #fff;
}
.sec-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 20% 80%, rgba(232,83,14,.15) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(30,58,95,.4) 0%, transparent 70%);
  z-index: 0;
}
.sec-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 15% 25%, rgba(255,255,255,.12) 50%, transparent 50%),
    radial-gradient(1px 1px at 65% 15%, rgba(255,255,255,.08) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 85% 65%, rgba(255,255,255,.06) 50%, transparent 50%);
}
.sec-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
}

/* Breadcrumb */
.sec-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  margin-bottom: 20px;
}
.sec-breadcrumb a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color .15s;
}
.sec-breadcrumb a:hover { color: #fff; }
.sec-breadcrumb svg {
  width: 14px;
  height: 14px;
  color: rgba(255,255,255,.35);
}
.sec-breadcrumb span {
  color: rgba(255,255,255,.9);
  font-weight: 600;
}

.sec-hero h1 {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 14px;
  text-shadow: 0 4px 24px rgba(0,0,0,.25);
}
.sec-hero-sub {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255,255,255,.7);
  max-width: 540px;
  margin: 0 auto 24px;
}
.sec-hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
}
.sec-hero-stat {
  text-align: center;
}
.sec-hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
}
.sec-hero-stat span {
  font-size: .78rem;
  color: rgba(255,255,255,.5);
  letter-spacing: .04em;
  text-transform: uppercase;
}


/* ============================================================
   QUICK NAV — Sticky chip bar
   ============================================================ */
.sec-quicknav {
  position: sticky;
  top: 76px; /* header height */
  z-index: 50;
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  box-shadow: 0 2px 8px rgba(15,23,42,.05);
}
.sec-quicknav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12px 28px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.sec-quicknav-inner::-webkit-scrollbar { display: none; }

.sec-quicknav-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--c-text-sec);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 100px;
  text-decoration: none;
  white-space: nowrap;
  transition: all .2s;
}
.sec-quicknav-chip:hover {
  color: var(--c-orange);
  border-color: var(--c-orange);
  background: var(--c-orange-soft);
}


/* ============================================================
   CATEGORY BLOCKS
   ============================================================ */
.sec-categories {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 28px 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sec-cat-block {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .3s var(--ease-out), border-color .3s;
}
.sec-cat-block:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(232,83,14,.15);
}

/* ── Header (link to category) ── */
.sec-cat-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px;
  text-decoration: none;
  color: var(--c-text);
  transition: background .2s;
}
.sec-cat-header:hover {
  background: var(--c-surface);
}

.sec-cat-img-wrap {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--c-surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sec-cat-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.sec-cat-header:hover .sec-cat-img-wrap img {
  transform: scale(1.06);
}
.sec-cat-no-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--c-muted);
}
.sec-cat-no-img svg {
  width: 40px;
  height: 40px;
  opacity: .4;
}

.sec-cat-info {
  flex: 1;
  min-width: 0;
}
.sec-cat-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c-dark);
  margin: 0 0 8px;
  line-height: 1.2;
  transition: color .15s;
}
.sec-cat-header:hover .sec-cat-name {
  color: var(--c-orange);
}

.sec-cat-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 6px;
}
.sec-cat-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .8rem;
  color: var(--c-muted);
  font-weight: 500;
}
.sec-cat-count svg {
  width: 15px;
  height: 15px;
  opacity: .6;
}

.sec-cat-desc {
  font-size: .85rem;
  color: var(--c-text-sec);
  line-height: 1.5;
  margin: 4px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sec-cat-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--c-orange);
  text-transform: uppercase;
  letter-spacing: .05em;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .25s, transform .25s var(--ease-spring);
}
.sec-cat-cta svg {
  width: 16px;
  height: 16px;
  transition: transform .2s var(--ease-spring);
}
.sec-cat-header:hover .sec-cat-cta {
  opacity: 1;
  transform: translateX(0);
}
.sec-cat-header:hover .sec-cat-cta svg {
  transform: translateX(3px);
}


/* ── Subcategories grid ── */
.sec-subcats {
  border-top: 1px solid var(--c-border);
  padding: 18px 24px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  background: var(--c-surface);
}

.sec-subcat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--c-text);
  transition: background .15s, transform .15s;
}
.sec-subcat:hover {
  background: var(--c-white);
  transform: translateX(2px);
}

.sec-subcat-img {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--c-white);
  border: 1px solid var(--c-border);
}
.sec-subcat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sec-subcat-img--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-muted);
}
.sec-subcat-img--empty svg {
  width: 18px;
  height: 18px;
  opacity: .35;
}

.sec-subcat-name {
  flex: 1;
  font-size: .82rem;
  font-weight: 500;
  color: var(--c-text-sec);
  line-height: 1.3;
  transition: color .15s;
}
.sec-subcat:hover .sec-subcat-name {
  color: var(--c-orange);
}

.sec-subcat-count {
  flex-shrink: 0;
  font-size: .7rem;
  font-weight: 600;
  color: var(--c-muted);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  padding: 2px 8px;
  border-radius: 100px;
  line-height: 1.4;
}


/* ============================================================
   BOTTOM CTA
   ============================================================ */
.sec-bottom {
  max-width: var(--max-w);
  margin: 56px auto 0;
  padding: 0 28px;
}
.sec-bottom-inner {
  text-align: center;
  padding: 48px 28px;
  background: linear-gradient(135deg, var(--c-dark) 0%, var(--c-navy) 100%);
  border-radius: var(--radius-lg);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.sec-bottom-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 70% 100%, rgba(232,83,14,.2) 0%, transparent 70%);
}
.sec-bottom-inner h2 {
  position: relative;
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 8px;
}
.sec-bottom-inner p {
  position: relative;
  font-size: .95rem;
  color: rgba(255,255,255,.7);
  margin: 0 0 24px;
}
.sec-bottom-actions {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sec-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: .88rem;
  font-weight: 700;
  font-family: var(--font-ui);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all .2s;
  cursor: pointer;
}
.sec-btn--primary {
  background: var(--c-orange);
  color: #fff;
  border: 2px solid var(--c-orange);
}
.sec-btn--primary:hover {
  background: var(--c-orange-h);
  border-color: var(--c-orange-h);
}
.sec-btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.3);
}
.sec-btn--outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,.08);
}


/* ============================================================
   SPACER
   ============================================================ */
.sec-spacer {
  height: 60px;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .sec-hero { padding: 44px 20px 40px; }
  .sec-hero h1 { font-size: 2.1rem; }
  .sec-hero-sub { font-size: .95rem; }
  .sec-hero-stats { gap: 28px; }
  .sec-quicknav-inner { padding: 10px 20px; }
  .sec-categories { padding: 32px 20px 0; gap: 22px; }
  .sec-cat-header { padding: 20px; gap: 18px; }
  .sec-cat-img-wrap { width: 100px; height: 100px; }
  .sec-cat-name { font-size: 1.15rem; }
  .sec-subcats { padding: 14px 20px 16px; }
  .sec-bottom { padding: 0 20px; margin-top: 44px; }
}

@media (max-width: 650px) {
  .sec-hero { padding: 36px 16px 32px; }
  .sec-hero h1 { font-size: 1.75rem; }
  .sec-hero-sub { font-size: .88rem; margin-bottom: 18px; }
  .sec-hero-stats { gap: 20px; }
  .sec-hero-stat strong { font-size: 1.2rem; }
  .sec-quicknav-inner { padding: 8px 16px; gap: 6px; }
  .sec-quicknav-chip { padding: 6px 12px; font-size: .75rem; }
  .sec-categories { padding: 24px 16px 0; gap: 18px; }

  .sec-cat-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 14px;
  }
  .sec-cat-img-wrap { width: 100%; height: 160px; }
  .sec-cat-name { font-size: 1.1rem; }
  .sec-cat-cta { opacity: 1; transform: none; }

  .sec-subcats {
    grid-template-columns: 1fr 1fr;
    padding: 12px 16px 14px;
    gap: 6px;
  }
  .sec-subcat { padding: 6px 8px; }
  .sec-subcat-img { width: 30px; height: 30px; }
  .sec-subcat-name { font-size: .78rem; }

  .sec-bottom { padding: 0 16px; margin-top: 36px; }
  .sec-bottom-inner { padding: 36px 20px; }
  .sec-bottom-inner h2 { font-size: 1.25rem; }
  .sec-bottom-actions { flex-direction: column; align-items: center; }
}

@media (max-width: 440px) {
  .sec-hero h1 { font-size: 1.5rem; }
  .sec-subcats { grid-template-columns: 1fr; }
  .sec-cat-img-wrap { height: 130px; }
}
