:root {
  --dark: #18181b;
  --amber: #f59e0b;
  --gray: #f4f4f5;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--gray);
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 66.25rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

nav {
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  color: var(--dark);
  font-size: 1.0625rem;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-dot {
  width: 0.4375rem;
  height: 0.4375rem;
  background: var(--amber);
  border-radius: 50%;
}

.logo span {
  color: var(--amber);
}

.btn-nav {
  background: var(--dark);
  color: var(--white);
  border: none;
  padding: 0.5625rem 1.125rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  transition: background 0.15s;
  font-family: inherit;
  text-decoration: none;
}

.btn-nav:hover {
  background: #333;
}

.btn-nav svg {
  width: 0.8125rem;
  height: 0.8125rem;
}

.btn-wa {
  background: #25d366;
  color: var(--white);
  border: none;
  border-radius: 0.375rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.15s;
  flex-shrink: 0;
  font-family: inherit;
  text-decoration: none;
}

.btn-wa:hover {
  background: #1ebe5d;
}

.btn-wa svg {
  fill: currentColor;
}

.btn-wa-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8rem;
}

.btn-wa-sm svg {
  width: 0.6875rem;
  height: 0.6875rem;
}

.btn-wa-lg {
  justify-content: center;
  width: 100%;
  padding: 0.85rem;
  font-size: 0.95rem;
  border-radius: 0.5rem;
  gap: 0.5rem;
}

.btn-wa-lg svg {
  width: 1.1rem;
  height: 1.1rem;
}

.btn-amber {
  background: var(--amber);
  color: var(--dark);
  border: none;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  align-self: flex-start;
  font-family: inherit;
}

.btn-amber:hover {
  background: #fbbf24;
}

.btn-green {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: #25d366;
  color: var(--white);
  border: none;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
  align-self: flex-start;
  font-family: inherit;
}

.btn-green:hover {
  background: #1ebe5d;
}

.btn-green svg {
  width: 0.875rem;
  height: 0.875rem;
  fill: currentColor;
}

.hero {
  background: #ecebed;
  padding: 3rem 2rem 2.5rem;
  text-align: center;
  margin: 0.5rem 0 0;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03125rem;
  line-height: 1.2;
  margin-bottom: 0.625rem;
  color: var(--dark);
}

.hero p {
  color: #71717a;
  font-size: 0.875rem;
  margin-bottom: 1.75rem;
}

.search-wrap {
  display: flex;
  max-width: 32.5rem;
  margin: 0 auto;
  background: var(--white);
  border: 0.0625rem solid #d4d4d8;
  border-radius: 0.625rem;
  overflow: hidden;
  transition: all 0.2s;
}

.search-wrap:focus-within {
  border-color: var(--amber);
}

.search-wrap input {
  flex: 1;
  border: none;
  padding: 0.8125rem 1rem;
  font-size: 0.875rem;
  outline: none;
  background: none;
  color: var(--dark);
  font-family: inherit;
}

.search-wrap input::placeholder {
  color: #a1a1aa;
}

.search-wrap select {
  border: none;
  border-left: 0.0625rem solid #d4d4d8;
  padding: 0 2.25rem 0 0.875rem;
  font-size: 0.85rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2371717a'/%3E%3C/svg%3E") no-repeat right 0.625rem center;
  outline: none;
  cursor: pointer;
  color: #71717a;
  font-family: inherit;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  min-width: 8.75rem;
}

.search-wrap select option {
  background: var(--white);
  color: var(--dark);
}

.search-btn {
  background: var(--amber);
  border: none;
  padding: 0 1.125rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  margin: 0.25rem;
  border-radius: 0.4375rem;
}

.search-btn svg {
  width: 1rem;
  height: 1rem;
  stroke: var(--dark);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 1.75rem 0 0;
}

.stat {
  text-align: center;
  padding: 0 2rem;
  position: relative;
}

.stat + .stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  height: 80%;
  width: 0.0625rem;
  background: #d4d4d8;
}

.stat-n {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--amber);
}

.stat-l {
  font-size: 0.7rem;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  font-weight: 600;
  margin-top: 0.125rem;
}

.rubros {
  padding: 1.75rem 0 1.75rem;
  border-bottom: 0.0625rem solid #e4e4e7;
  margin-bottom: 2rem;
}

.rubro-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #a1a1aa;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rubro-list {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.rubro-btn {
  padding: 0.55rem 1.1rem;
  border-radius: 0.5rem;
  border: none;
  background: #e4e4e7;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  color: #52525b;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.rubro-btn svg {
  width: 0.9rem;
  height: 0.9rem;
  stroke: #a1a1aa;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.rubro-btn.active svg {
  stroke: var(--white);
}

.rubro-btn:hover {
  background: #d4d4d8;
  color: var(--dark);
}

.rubro-btn.active {
  background: var(--amber);
  color: var(--white);
}

.rubro-btn .ct {
  font-size: 0.7rem;
  color: #8a8a8f;
  margin-left: 0.15rem;
}

.rubro-btn.active .ct {
  color: rgba(255, 255, 255, 0.6);
}

.rubro-select {
  display: none;
}

.featured-section {
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.section-title svg {
  width: 1.25rem;
  height: 1.25rem;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.fcard {
  background: linear-gradient(135deg, #fffbeb, #fef9ee);
  border: 0.0625rem solid #fce6a6;
  border-radius: 0.75rem;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
  position: relative;
}

.fcard:hover {
  box-shadow: 0 0.5rem 1.5rem rgba(245, 158, 11, 0.15);
}

.fcard-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--amber);
  color: var(--white);
  font-size: 0.5625rem;
  font-weight: 700;
  padding: 0.1875rem 0.5rem;
  border-radius: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.03125rem;
  margin-bottom: 0.75rem;
  align-self: flex-start;
}

.fcard-badge svg {
  width: 0.75rem;
  height: 0.75rem;
  fill: currentColor;
}

.fcard-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.1875rem;
  color: var(--dark);
}

.fcard-rubro {
  font-size: 0.75rem;
  color: #b45309;
  font-weight: 600;
  margin-bottom: 0.625rem;
}

.fcard-desc {
  font-size: 0.875rem;
  color: #78716c;
  line-height: 1.5;
  margin-bottom: auto;
  padding-bottom: 0.875rem;
}

.fcard-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.fcard-dir {
  font-size: 0.8rem;
  color: #a1a1aa;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.fcard-dir svg {
  width: 0.75rem;
  height: 0.75rem;
  stroke: #ccc;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.grid-section {
  margin-bottom: 2.5rem;
}

.grid-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.grid-count {
  font-size: 0.85rem;
  color: #a1a1aa;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.card {
  background: var(--white);
  border: 0.0625rem solid #ebebeb;
  border-radius: 0.75rem;
  padding: 1.125rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.07);
}

.card-top {
  display: flex;
  gap: 0.625rem;
  align-items: center;
  margin-bottom: 0.625rem;
}

.card-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-icon svg {
  width: 1.125rem;
  height: 1.125rem;
}

.card-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.0625rem;
}

.card-rubro {
  font-size: 0.75rem;
  color: #a1a1aa;
  font-weight: 500;
}

.card-desc {
  font-size: 0.875rem;
  color: #71717a;
  line-height: 1.5;
  margin-bottom: auto;
  padding-bottom: 0.75rem;
}

.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.625rem;
  border-top: 0.0625rem solid var(--gray);
}

.card-dir {
  font-size: 0.8rem;
  color: #a1a1aa;
  display: flex;
  align-items: center;
  gap: 0.1875rem;
}

.card-dir svg {
  width: 0.6875rem;
  height: 0.6875rem;
  stroke: #ccc;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.cta-card {
  border-radius: 0.75rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.cta-registrar {
  background: var(--dark);
}

.cta-registrar h3 {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.1875rem;
}

.cta-registrar p {
  color: #71717a;
  font-size: 0.85rem;
}

.cta-wa {
  background: var(--white);
  border: 0.0625rem solid #ebebeb;
}

.cta-wa h3 {
  color: var(--dark);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.1875rem;
}

.cta-wa p {
  color: #71717a;
  font-size: 0.85rem;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: #a1a1aa;
  text-decoration: none;
  padding: 1rem 0 1.25rem;
  transition: color 0.15s;
}

.back:hover {
  color: var(--amber);
}

.back svg {
  width: 0.85rem;
  height: 0.85rem;
}

.page {
  display: grid;
  grid-template-columns: 1fr 20rem;
  gap: 1.25rem;
  align-items: start;
}

.main-card {
  background: var(--white);
  border-radius: 0.75rem;
  border: 0.0625rem solid #ebebeb;
}

.main-header {
  padding: 1.75rem 1.75rem 1.25rem;
}

.name-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.3rem;
}

.name-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #fef3c7;
}

.name-icon svg {
  width: 1.35rem;
  height: 1.35rem;
  stroke: var(--amber);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 3.5rem;
}

.rubro {
  font-size: 0.8rem;
  color: #71717a;
  font-weight: 500;
}

.badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--white);
  background: var(--amber);
  padding: 0.15rem 0.5rem;
  border-radius: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.badge svg {
  width: 0.6rem;
  height: 0.6rem;
  fill: currentColor;
}

.desc {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.65;
  padding: 1.25rem 1.75rem;
  border-top: 0.0625rem solid var(--gray);
}

.contact {
  padding: 0 1.75rem 1.5rem;
}

.contact-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #a1a1aa;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0;
  border-top: 0.0625rem solid var(--gray);
}

.contact-row:first-child {
  border-top: none;
  padding-top: 0;
}

.ci {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ci svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ci.wa {
  background: #dcfce7;
}

.ci.wa svg {
  stroke: #16a34a;
}

.ci.dir {
  background: #dbeafe;
}

.ci.dir svg {
  stroke: #3b82f6;
}

.ci.hr {
  background: #fef3c7;
}

.ci.hr svg {
  stroke: var(--amber);
}

.ci.ig {
  background: #fce7f3;
}

.ci.ig svg {
  stroke: #ec4899;
}

.cl {
  font-size: 0.7rem;
  font-weight: 600;
  color: #a1a1aa;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.cv {
  font-size: 0.9rem;
  color: var(--dark);
  font-weight: 500;
}

.cv a {
  color: var(--dark);
  text-decoration: none;
}

.cv a:hover {
  color: var(--amber);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: sticky;
  top: 4.5rem;
}

.btn-ig {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: var(--white);
  border: none;
  padding: 0.85rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s;
  font-family: inherit;
}

.btn-ig:hover {
  opacity: 0.9;
}

.btn-ig svg {
  width: 1rem;
  height: 1rem;
  stroke: var(--white);
}

.sidebar-cta {
  background: var(--white);
  border-radius: 0.75rem;
  border: 0.0625rem solid #ebebeb;
  padding: 1.25rem;
}

.sidebar-cta h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.sidebar-cta p {
  font-size: 0.85rem;
  color: #71717a;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--amber);
  text-decoration: none;
}

.cta-link:hover {
  color: #d97706;
}

.cta-link svg {
  width: 0.8rem;
  height: 0.8rem;
}

.footer {
  text-align: center;
  padding: 1.25rem;
  font-size: 0.8rem;
  color: #a1a1aa;
  border-top: 0.0625rem solid #ebebeb;
}

.footer a {
  color: #71717a;
  text-decoration: none;
  font-weight: 500;
}

.footer a:hover {
  color: var(--dark);
}

@media (max-width: 640px) {
  .btn-nav {
    font-size: 0.75rem;
    padding: 0.45rem 0.75rem;
  }
  .btn-nav svg {
    width: 0.7rem;
    height: 0.7rem;
  }
  .logo {
    font-size: 0.95rem;
  }
  .hero {
    padding: 2.25rem 1.25rem 2rem;
  }
  .hero h1 {
    font-size: 1.75rem;
  }
  .search-wrap select {
    display: none;
  }
  .rubros {
    padding: 1.25rem 0 1.25rem;
  }
  .rubro-list {
    display: none;
  }
  .rubro-select {
    display: block;
    width: 100%;
    padding: 0.65rem 2.5rem 0.65rem 1rem;
    font-size: 0.9rem;
    font-family: inherit;
    font-weight: 600;
    color: var(--dark);
    background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2352525b' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 1rem center;
    border: 0.09375rem solid #d4d4d8;
    border-radius: 0.5rem;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    outline: none;
  }
  .rubro-select:focus {
    border-color: var(--amber);
  }
  .featured-grid {
    grid-template-columns: 1fr;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .cta-row {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .featured-grid {
    grid-template-columns: 1fr 1fr;
  }
  .grid {
    grid-template-columns: 1fr 1fr;
  }
  .cta-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .sidebar-cta {
    grid-column: 1 / -1;
  }
  .page h1 {
    font-size: 1.4rem;
  }
  .name-icon {
    width: 2.25rem;
    height: 2.25rem;
  }
  .meta {
    padding-left: 3rem;
  }
  .main-header {
    padding: 1.25rem 1.25rem 1rem;
  }
  .desc,
  .contact {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}
