:root {
  --color-primario: #ff91b7;
  --color-secundario: #007aff;
  --color-texto: #333333;
  --color-fondo: #f9f9f9;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
}

body {
  padding-top: 80px;
  background-color: #f9f9f9;
}

.categories-page {
  padding: 20px 26px 40px;
  max-width: 640px;
  margin: 0 auto;
}

.category-intro {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  padding: 0px 10px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  margin: 0;
}

.category-intro h1 {
  font-size: 22px;
  margin: 0;
  color: #0f172a;
}

.intro-text {
  margin: 0;
  color: #475569;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.pill-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--color-primario);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  /* box-shadow: 0 8px 18px rgba(14, 165, 233, 0.2); */
}

.categories-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.categories-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-group {
  border: 0;
  margin: 0;
  padding: 0;
}

.category-group summary {
  list-style: none;
}

.category-group summary::-webkit-details-marker {
  display: none;
}

.category-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  color: #0f172a;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.category-row:hover,
.category-row:focus-visible {
  transform: translateY(-1px);
  border-color: #cbd5e1;
}

.category-row:focus-visible {
  outline: 2px solid rgba(255, 145, 183, 0.28);
  outline-offset: 2px;
}

.group-row {
  cursor: pointer;
  user-select: none;
}

.row-title {
  font-weight: 600;
  flex: 1;
  font-size: 12px;
}

.row-meta {
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
}

.row-chevron {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #f1f5f9;
  display: grid;
  place-items: center;
  color: #64748b;
  transition: transform 0.18s ease;
}

.row-chevron::before {
  content: "\203A";
  font-size: 20px;
  line-height: 1;
  transform: translateX(1px);
}

.category-group[open] .row-chevron {
  transform: rotate(90deg);
}

.category-group[open] .group-row {
  border-color: rgba(255, 145, 183, 0.4);
}

.group-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px 0 4px 10px;
  padding-left: 14px;
  border-left: 2px solid #e2e8f0;
}

.child-row {
  background: #f8fafc;
}

.child-row:hover,
.child-row:focus-visible {
}

.solo-row {
  padding-right: 16px;
}

.empty-state {
  text-align: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 26px 18px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.empty-state img {
  width: 140px;
  margin-bottom: 12px;
}

.empty-state h2 {
  margin: 0 0 8px;
}

.empty-state p {
  color: #6b7280;
  margin: 0 0 14px;
}
