/* Categorias Mobile MDC - V2 */
.mdc-cat-modal {
  position: fixed;
  inset: 0;
  z-index: 10020;
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s ease;
}

.mdc-cat-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.mdc-cat-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.56);
  backdrop-filter: blur(8px);
}

.mdc-cat-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: min(100%, 460px);
  max-height: 94dvh;
  margin: 0 auto;
  background: #f6f6f6;
  border-radius: 28px 28px 0 0;
  overflow: hidden;
  box-shadow: 0 -18px 50px rgba(0,0,0,.28);
  transform: translateY(104%);
  transition: transform .28s cubic-bezier(.2,.8,.2,1);
}

.mdc-cat-modal.show .mdc-cat-sheet {
  transform: translateY(0);
}

.mdc-cat-head {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 18px 16px 14px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(255,255,255,.28), transparent 28%),
    linear-gradient(135deg, var(--orange, #ff5a00), #ff2f00);
  border-radius: 28px 28px 22px 22px;
  box-shadow: 0 12px 30px rgba(255,90,0,.22);
}

.mdc-cat-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 17px;
}

.mdc-cat-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
  margin-right: 50px;
}

.mdc-cat-head h2 {
  margin: 14px 54px 4px 0;
  font-size: 25px;
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -.03em;
}

.mdc-cat-head p {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  opacity: .9;
}

.mdc-cat-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 14px 0;
}

.mdc-cat-stats div {
  background: rgba(17,17,17,.22);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 16px;
  padding: 10px;
}

.mdc-cat-stats strong,
.mdc-cat-stats span {
  display: block;
}

.mdc-cat-stats strong {
  font-size: 17px;
  font-weight: 950;
}

.mdc-cat-stats span {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.1;
  opacity: .9;
}

.mdc-cat-search {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: #777;
  border-radius: 999px;
  padding: 0 14px;
  box-shadow: 0 8px 18px rgba(0,0,0,.14);
}

.mdc-cat-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111;
  font-size: 14px;
  font-weight: 700;
}

.mdc-cat-content {
  max-height: calc(94dvh - 220px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: calc(90px + env(safe-area-inset-bottom));  
}

.mdc-cat-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 3px 2px 10px;
  color: #111;
  font-size: 14px;
  font-weight: 950;
}

.mdc-cat-section-title span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.mdc-cat-section-title i,
.mdc-cat-section-title a {
  color: var(--orange, #ff5a00);
}

.mdc-cat-section-title a {
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
}

.mdc-cat-featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.mdc-cat-feature-card {
  min-height: 96px;
  background: #fff;
  border: 1px solid var(--border, #e8e8e8);
  border-radius: 20px;
  padding: 13px;
  color: #171717;
  text-decoration: none;
  display: grid;
  align-content: center;
  gap: 5px;
  box-shadow: 0 6px 18px rgba(0,0,0,.055);
}

.mdc-cat-feature-card i {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--orange, #ff5a00);
  background: #fff3eb;
  font-size: 20px;
  margin-bottom: 2px;
}

.mdc-cat-feature-card strong {
  font-size: 13px;
  font-weight: 950;
  line-height: 1.12;
}

.mdc-cat-feature-card span {
  color: #777;
  font-size: 12px;
  font-weight: 800;
}

.mdc-cat-ai-card {
  background:
    radial-gradient(circle at 92% 10%, rgba(255,122,0,.42), transparent 28%),
    linear-gradient(135deg, #111, #2a2a2a);
  color: #fff;
  border-radius: 22px;
  padding: 15px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin: 2px 0 14px;
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
}

.mdc-cat-ai-card small,
.mdc-cat-ai-card strong,
.mdc-cat-ai-card span {
  display: block;
}

.mdc-cat-ai-card small {
  color: var(--orange2, #ff7a00);
  font-weight: 950;
  font-size: 11px;
  text-transform: uppercase;
}

.mdc-cat-ai-card strong {
  margin-top: 3px;
  font-size: 18px;
  font-weight: 950;
}

.mdc-cat-ai-card span {
  margin-top: 3px;
  font-size: 12px;
  color: #ddd;
  line-height: 1.25;
  font-weight: 700;
}

.mdc-cat-ai-card a {
  color: #111;
  background: #fff;
  text-decoration: none;
  border-radius: 999px;
  padding: 11px 12px;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.mdc-cat-list {
  display: grid;
  gap: 10px;
}

.mdc-cat-row {
  background: #fff;
  border: 1px solid var(--border, #e8e8e8);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.045);
}

.mdc-cat-row-main {
  width: 100%;
  min-height: 70px;
  border: 0;
  background: transparent;
  display: grid;
  grid-template-columns: 48px 1fr 32px;
  align-items: center;
  gap: 10px;
  padding: 12px;
  text-align: left;
  color: #171717;
}

.mdc-cat-icon {
  width: 48px;
  height: 48px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  color: var(--orange, #ff5a00);
  background: #fff3eb;
  font-size: 22px;
}

.mdc-cat-copy strong,
.mdc-cat-copy em {
  display: block;
}

.mdc-cat-copy strong {
  font-size: 15px;
  font-weight: 950;
  line-height: 1.1;
}

.mdc-cat-copy em {
  margin-top: 4px;
  color: #777;
  font-style: normal;
  font-size: 12px;
  font-weight: 850;
}

.mdc-cat-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #aaa;
  background: #fafafa;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.mdc-cat-row.open .mdc-cat-arrow {
  transform: rotate(180deg);
  color: var(--orange, #ff5a00);
  background: #fff3eb;
}

.mdc-cat-subcats {
  display: none;
  padding: 0 12px 13px 70px;
}

.mdc-cat-row.open .mdc-cat-subcats {
  display: block;
  animation: mdcCatSubIn .18s ease both;
}

@keyframes mdcCatSubIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.mdc-cat-subcats-head a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 9px;
  color: var(--orange, #ff5a00);
  font-size: 12px;
  font-weight: 950;
  text-decoration: none;
}

.mdc-cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mdc-cat-chips a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  color: #222;
  background: #f7f7f7;
  border: 1px solid #eee;
  text-decoration: none;
  border-radius: 999px;
  padding: 9px 10px;
  font-size: 12px;
  font-weight: 850;
}

.mdc-cat-chips span {
  color: var(--orange, #ff5a00);
  font-weight: 950;
}

.mdc-cat-row.hidden,
.mdc-cat-feature-card.hidden {
  display: none !important;
}

.mdc-cat-empty {
  margin: 20px 0;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--border, #e8e8e8);
  padding: 22px;
  text-align: center;
  color: #555;
}

.mdc-cat-empty-visible {
  display: block;
}

.mdc-cat-empty i {
  color: var(--orange, #ff5a00);
  font-size: 34px;
}

.mdc-cat-empty strong,
.mdc-cat-empty span {
  display: block;
}

.mdc-cat-empty strong {
  color: #111;
  margin-top: 8px;
  font-size: 16px;
  font-weight: 950;
}

.mdc-cat-empty span {
  margin-top: 4px;
  font-size: 13px;
}

.mdc-cat-empty a {
  display: inline-flex;
  margin-top: 13px;
  background: #111;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  padding: 11px 14px;
  font-size: 12px;
  font-weight: 950;
}

body.categorias-open {
  overflow: hidden;
}

@media (max-width: 360px) {
  .mdc-cat-featured-grid {
    grid-template-columns: 1fr;
  }

  .mdc-cat-ai-card {
    grid-template-columns: 1fr;
  }

  .mdc-cat-ai-card a {
    justify-self: start;
  }

  .mdc-cat-subcats {
    padding-left: 12px;
  }
}
