/* Hello Menopausia Marketplace — design tokens */
:root {
  --bg: #F7F5EE;
  --bg-soft: #FBF8F1;
  --ink: #2D2E45;
  --ink-2: #3F3F68;
  --ink-3: #4E4E68;
  --ink-4: #6B7280;
  --ink-5: #71717A;
  --ink-6: #9A9AAE;
  --line: rgba(63, 63, 104, 0.14);
  --white: #FFFFFF;
  --rose: #D1738B;
  --plum: #8D5473;
  --blue: #6E8FB1;
  --mustard: #C99A3F;
  --sage: #87A37B;
  --khaki: #9A8A6E;
  --coral: #D67861;
  --r-pill: 999px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 12px 40px rgba(45, 46, 69, 0.08);
  --shadow-sm: 0 4px 16px rgba(45, 46, 69, 0.06);
  --header-h: 72px;
  --max: 1160px;
  --font: "Figtree", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--plum); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--rose); }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.container.narrow { width: min(100% - 2rem, 760px); }
.container.wide { width: min(100% - 2rem, 1280px); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  font-family: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; border: 1.5px solid transparent; border-radius: var(--r-pill);
  padding: 0.85rem 1.6rem; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 0.5rem 1.05rem; font-size: 0.875rem; }
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--rose); color: var(--white); border-color: var(--rose); }
.btn-primary:hover { background: var(--plum); border-color: var(--plum); color: var(--white); }
.btn-ink { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-ink:hover { background: var(--ink-2); color: var(--white); }
.btn-ghost {
  background: var(--white); color: var(--ink); border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink-6); color: var(--ink); background: var(--bg-soft); }
.btn-outline-rose {
  background: transparent; color: var(--rose); border-color: var(--rose);
}
.btn-outline-rose:hover { background: var(--rose); color: var(--white); }
.btn-danger { background: var(--coral); color: var(--white); border-color: var(--coral); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 245, 238, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 1rem;
}
.logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo img { height: 36px; width: auto; }
.nav-desktop {
  display: none; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0;
}
.nav-desktop a {
  text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 0.95rem;
  padding: 0.5rem 0.85rem; border-radius: var(--r-pill);
  transition: background 0.15s, color 0.15s;
}
.nav-desktop a:hover, .nav-desktop a.active { background: rgba(209, 115, 139, 0.12); color: var(--plum); }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.menu-toggle {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-pill);
  padding: 0.55rem 1rem; font-family: inherit; font-weight: 600; font-size: 0.875rem;
  color: var(--ink); cursor: pointer;
}
.menu-toggle svg { width: 18px; height: 18px; }
.nav-mobile {
  display: none; position: absolute; left: 0; right: 0; top: var(--header-h);
  background: var(--bg-soft); border-bottom: 1px solid var(--line);
  padding: 1rem 1.25rem 1.5rem; box-shadow: var(--shadow);
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block; text-decoration: none; color: var(--ink); font-weight: 500;
  padding: 0.75rem 1rem; border-radius: var(--radius-sm);
}
.nav-mobile a:hover, .nav-mobile a.active { background: rgba(209, 115, 139, 0.12); color: var(--plum); }
@media (min-width: 900px) {
  .nav-desktop { display: flex; }
  .menu-toggle { display: none; }
  .nav-mobile { display: none !important; }
  .logo img { height: 40px; }
}

/* Eyebrow / labels */
.eyebrow {
  display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--rose); margin: 0 0 0.75rem;
}
.display {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 1rem; color: var(--ink);
}
.display em, .display .accent {
  font-style: italic; color: var(--rose); font-family: var(--font-display);
}
.lead { font-size: 1.125rem; color: var(--ink-3); margin: 0 0 1.5rem; max-width: 36em; }
.section { padding: 3.5rem 0; }
.section-sm { padding: 2.5rem 0; }
.section-title {
  font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400; margin: 0 0 0.5rem; color: var(--ink);
}
.section-sub { color: var(--ink-4); margin: 0 0 2rem; }

/* Hero home */
.hero {
  position: relative; padding: 3rem 0 4rem; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 70% 30%, rgba(209, 115, 139, 0.12), transparent),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(110, 143, 177, 0.1), transparent),
    var(--bg);
}
.hero-inner { text-align: center; max-width: 720px; margin: 0 auto; }
.hero .display { margin-bottom: 0.75rem; }
.hero .lead { margin-inline: auto; }

/* Search bar (Fresha-like) */
.search-bar {
  display: flex; flex-direction: column; gap: 0.75rem;
  background: var(--white); border-radius: var(--radius); padding: 1rem;
  box-shadow: var(--shadow); border: 1px solid var(--line); margin: 2rem auto 0; max-width: 820px;
  text-align: left;
}
.search-field { display: flex; align-items: center; gap: 0.65rem; flex: 1; min-width: 0; }
.search-field svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--ink-5); }
.search-field input, .search-field select {
  flex: 1; border: none; background: transparent; font-family: inherit; font-size: 1rem;
  color: var(--ink); outline: none; min-width: 0; padding: 0.35rem 0;
}
.search-field input::placeholder { color: var(--ink-6); }
.search-divider { display: none; width: 1px; height: 28px; background: var(--line); flex-shrink: 0; }
.search-bar .btn { width: 100%; }
@media (min-width: 700px) {
  .search-bar {
    flex-direction: row; align-items: center; border-radius: var(--r-pill);
    padding: 0.5rem 0.5rem 0.5rem 1.25rem; gap: 0.5rem;
  }
  .search-divider { display: block; }
  .search-bar .btn { width: auto; flex-shrink: 0; }
}

.hero-stats {
  margin-top: 1.5rem; font-size: 0.9rem; color: var(--ink-4); font-weight: 500;
}

/* Categories */
.cat-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.85rem;
}
@media (min-width: 600px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
.cat-card {
  display: flex; flex-direction: column; align-items: center; gap: 0.65rem;
  text-decoration: none; color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 0.75rem;
  box-shadow: var(--shadow-sm); transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
}
.cat-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(209, 115, 139, 0.35);
  color: var(--ink); text-decoration: none;
}
.cat-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.35rem;
}
.cat-icon.rose { background: rgba(209, 115, 139, 0.18); }
.cat-icon.sage { background: rgba(135, 163, 123, 0.22); }
.cat-icon.blue { background: rgba(110, 143, 177, 0.2); }
.cat-icon.mustard { background: rgba(201, 154, 63, 0.2); }
.cat-icon.plum { background: rgba(141, 84, 115, 0.18); }
.cat-icon.coral { background: rgba(214, 120, 97, 0.2); }
.cat-card span { font-weight: 600; font-size: 0.9rem; text-align: center; }

/* Business cards */
.biz-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.25rem;
}
@media (min-width: 600px) { .biz-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .biz-grid { grid-template-columns: repeat(3, 1fr); } }
.biz-card {
  display: flex; flex-direction: column; background: var(--white);
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); text-decoration: none; color: var(--ink);
  transition: transform 0.15s, box-shadow 0.2s;
}
.biz-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); text-decoration: none;
}
.biz-card-img {
  position: relative; aspect-ratio: 16/10; background: var(--bg-soft); overflow: hidden;
}
.biz-card-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.biz-card-img .placeholder {
  width: 100%; height: 100%; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 2.5rem; color: var(--white);
  background: linear-gradient(135deg, var(--plum), var(--rose));
}
.biz-badge {
  position: absolute; top: 0.75rem; left: 0.75rem;
  background: rgba(255,255,255,0.95); color: var(--ink); font-size: 0.7rem;
  font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.3rem 0.65rem; border-radius: var(--r-pill); box-shadow: var(--shadow-sm);
}
.biz-card-body { padding: 1.1rem 1.15rem 1.25rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.biz-card-body h3 {
  margin: 0; font-size: 1.05rem; font-weight: 700; line-height: 1.3;
  display: flex; align-items: center; gap: 0.35rem;
}
.biz-rating {
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-size: 0.875rem; font-weight: 600; color: var(--ink);
}
.biz-rating .star { color: var(--mustard); }
.biz-meta { font-size: 0.875rem; color: var(--ink-4); margin: 0; }
.biz-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem; }
.tag {
  font-size: 0.7rem; font-weight: 600; padding: 0.25rem 0.6rem; border-radius: var(--r-pill);
  background: var(--bg); color: var(--ink-3); border: 1px solid var(--line);
}
.tag.modality { background: rgba(110, 143, 177, 0.12); color: var(--blue); border-color: transparent; }

/* Browse layout */
.browse-header {
  padding: 1.5rem 0 1rem; border-bottom: 1px solid var(--line); background: var(--bg-soft);
}
.browse-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; margin-top: 1rem;
}
.results-count { font-size: 0.9rem; color: var(--ink-4); margin: 0; }
.filters {
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
}
.filters select, .filters input {
  font-family: inherit; font-size: 0.875rem; padding: 0.55rem 0.9rem;
  border: 1.5px solid var(--line); border-radius: var(--r-pill);
  background: var(--white); color: var(--ink); outline: none;
}
.filters select:focus, .filters input:focus { border-color: var(--rose); }
.browse-layout { padding: 1.5rem 0 3rem; }
.empty-state {
  text-align: center; padding: 3rem 1.5rem; background: var(--white);
  border-radius: var(--radius); border: 1px dashed var(--line);
}
.empty-state h3 { margin: 0 0 0.5rem; font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; }
.empty-state p { color: var(--ink-4); margin: 0 0 1.25rem; }

/* Detail page */
.detail-hero {
  background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 2rem 0 0;
}
.detail-cover {
  aspect-ratio: 21/9; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, var(--plum), var(--rose)); box-shadow: var(--shadow);
  margin-bottom: -2rem; position: relative; z-index: 1;
}
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-cover .placeholder {
  width: 100%; height: 100%; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 4rem; color: rgba(255,255,255,0.9);
}
.detail-body { padding: 3.5rem 0 3rem; }
.detail-grid {
  display: grid; gap: 2rem;
}
@media (min-width: 900px) {
  .detail-grid { grid-template-columns: 1fr 340px; align-items: start; }
}
.detail-main h1 {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(1.85rem, 3vw, 2.5rem);
  margin: 0 0 0.5rem; line-height: 1.2;
}
.detail-meta { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; margin-bottom: 1.25rem; font-size: 0.95rem; color: var(--ink-3); }
.detail-desc { color: var(--ink-2); margin-bottom: 2rem; }
.services-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.service-row {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1rem 1.15rem; box-shadow: var(--shadow-sm);
}
.service-row strong { display: block; font-size: 0.95rem; }
.service-row .dur { font-size: 0.8rem; color: var(--ink-5); }
.service-price { font-weight: 700; color: var(--plum); white-space: nowrap; }
.detail-sidebar {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm); position: sticky; top: calc(var(--header-h) + 1rem);
}
.detail-sidebar h3 { margin: 0 0 1rem; font-size: 1.05rem; }
.contact-list { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.contact-list li { font-size: 0.9rem; color: var(--ink-3); display: flex; gap: 0.5rem; align-items: flex-start; }
.contact-list a { color: var(--plum); text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: var(--rose); }
.sidebar-actions { display: flex; flex-direction: column; gap: 0.5rem; }

/* Admin + Partners forms */
.page-hero {
  padding: 2.5rem 0 1.5rem; background: var(--bg-soft); border-bottom: 1px solid var(--line);
}
.page-hero .display { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.admin-gate, .form-card, .admin-panel {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow-sm); margin: 2rem 0;
}
.form-grid {
  display: grid; gap: 1rem;
}
@media (min-width: 640px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--ink-2); }
.form-group input, .form-group select, .form-group textarea {
  font-family: inherit; font-size: 1rem; padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-soft); color: var(--ink); outline: none; transition: border-color 0.15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--rose); background: var(--white);
}
.form-group textarea { min-height: 110px; resize: vertical; }
.form-hint { font-size: 0.8rem; color: var(--ink-5); margin: 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.25rem; }
.checkbox-row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; }
.checkbox-row input { width: 18px; height: 18px; accent-color: var(--rose); }

.services-editor { display: flex; flex-direction: column; gap: 0.65rem; }
.service-edit-row {
  display: grid; grid-template-columns: 1fr; gap: 0.5rem;
  background: var(--bg); padding: 0.75rem; border-radius: var(--radius-sm); border: 1px solid var(--line);
}
@media (min-width: 640px) {
  .service-edit-row { grid-template-columns: 2fr 1fr 1fr auto; align-items: end; }
}
.admin-table-wrap { overflow-x: auto; margin-top: 1.5rem; }
.admin-table {
  width: 100%; border-collapse: collapse; font-size: 0.9rem;
}
.admin-table th, .admin-table td {
  text-align: left; padding: 0.75rem 0.85rem; border-bottom: 1px solid var(--line);
}
.admin-table th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-5); }
.admin-table tr:hover td { background: var(--bg-soft); }
.status-pill {
  display: inline-block; font-size: 0.7rem; font-weight: 700; padding: 0.25rem 0.6rem;
  border-radius: var(--r-pill); text-transform: uppercase; letter-spacing: 0.03em;
}
.status-pill.approved { background: rgba(135, 163, 123, 0.2); color: #4a6b40; }
.status-pill.pending_review { background: rgba(201, 154, 63, 0.22); color: #7a5c18; }
.status-pill.draft { background: rgba(154, 154, 174, 0.25); color: var(--ink-3); }
.status-pill.rejected { background: rgba(214, 120, 97, 0.2); color: #8b3d2c; }
.alert {
  padding: 0.9rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: 0.95rem;
}
.alert-success { background: rgba(135, 163, 123, 0.18); color: #3d5a34; border: 1px solid rgba(135, 163, 123, 0.35); }
.alert-error { background: rgba(214, 120, 97, 0.15); color: #8b3d2c; border: 1px solid rgba(214, 120, 97, 0.35); }
.alert-info { background: rgba(110, 143, 177, 0.15); color: #3a5570; border: 1px solid rgba(110, 143, 177, 0.3); }

/* Partners page */
.partners-hero {
  padding: 3rem 0 2.5rem;
  background:
    radial-gradient(ellipse 50% 60% at 80% 40%, rgba(209, 115, 139, 0.14), transparent),
    var(--bg);
}
.partners-grid {
  display: grid; gap: 1rem; margin: 2rem 0;
}
@media (min-width: 700px) { .partners-grid { grid-template-columns: repeat(3, 1fr); } }
.pillar-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
}
.pillar-card .icon {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  font-size: 1.25rem; margin-bottom: 0.85rem;
}
.pillar-card h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.pillar-card p { margin: 0; font-size: 0.9rem; color: var(--ink-4); }

/* Footer */
.site-footer {
  background: var(--ink); color: rgba(255,255,255,0.75); padding: 3rem 0 2rem; margin-top: auto;
}
.footer-inner {
  display: grid; gap: 2rem;
}
@media (min-width: 700px) {
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
}
.site-footer .logo img { height: 36px; margin-bottom: 1rem; }
.site-footer p { font-size: 0.9rem; margin: 0 0 0.75rem; line-height: 1.55; }
.site-footer h4 {
  color: var(--white); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em;
  margin: 0 0 0.85rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.9rem; }
.site-footer a:hover { color: var(--rose); }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.8rem; color: rgba(255,255,255,0.45); display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 0.75rem;
}

/* Utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }
.row-actions { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.row-actions .btn { padding: 0.35rem 0.7rem; font-size: 0.75rem; }


/* ——— Cat icon khaki (Laboratorio) ——— */
.cat-icon.khaki { background: rgba(154, 138, 110, 0.22); }
@media (min-width: 900px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(7, 1fr); }
}

/* ——— Admin form sections ——— */
.form-section {
  margin: 1.75rem 0 0;
  padding: 1.25rem 1.15rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.form-section legend {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 0 0.35rem;
}
.form-hint { font-size: 0.8rem; color: var(--ink-5); margin: 0 0 0.85rem; }
.input-with-btn { display: flex; gap: 0.5rem; align-items: center; }
.input-with-btn input { flex: 1; }

.media-preview {
  margin-top: 0.85rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg);
  border: 1px dashed var(--line);
  min-height: 80px;
  display: grid;
  place-items: center;
}
.media-preview img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
}

.gallery-editor {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.65rem;
  margin-top: 0.85rem;
}
.gallery-edit-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
}
.gallery-edit-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.gallery-edit-item .gallery-remove {
  position: absolute;
  right: 0.35rem;
  bottom: 0.35rem;
}

/* ——— WYSIWYG ——— */
.wysiwyg {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  overflow: hidden;
}
.wysiwyg-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.wysiwyg-toolbar button {
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}
.wysiwyg-toolbar button:hover { border-color: var(--rose); color: var(--plum); }
.wysiwyg-toolbar button[aria-pressed="true"],
.wysiwyg-mode-btn[aria-pressed="true"] {
  background: rgba(209, 115, 139, 0.15);
  border-color: var(--rose);
  color: var(--plum);
}
.wysiwyg-sep {
  width: 1px;
  align-self: stretch;
  background: var(--line);
  margin: 0 0.25rem;
}
.wysiwyg-editor {
  min-height: 160px;
  padding: 0.9rem 1rem;
  outline: none;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink);
}
.wysiwyg-editor:focus { background: #fffefb; }
.wysiwyg-source {
  display: block;
  width: 100%;
  min-height: 180px;
  border: 0;
  padding: 0.9rem 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.45;
  resize: vertical;
  background: #1e1e2a;
  color: #f3f0e8;
  outline: none;
}
.wysiwyg-editor h3 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.wysiwyg-editor p { margin: 0 0 0.65rem; }
.wysiwyg-editor ul, .wysiwyg-editor ol { margin: 0 0 0.65rem; padding-left: 1.25rem; }

/* ——— Detail: gallery / map / social / custom HTML ——— */
.detail-gallery { margin-top: 2rem; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}
@media (min-width: 700px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
.gallery-item {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  aspect-ratio: 4/3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

.detail-map { margin-top: 2rem; }
.map-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: var(--bg-soft);
}
.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.map-link { margin: 0.75rem 0 0; font-size: 0.9rem; }

.social-links { margin: 0 0 1.15rem; }
.social-title {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-5);
}
.social-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.social-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.7rem;
  border-radius: var(--r-pill);
  text-decoration: none;
  background: var(--bg);
  color: var(--ink-2);
  border: 1px solid var(--line);
}
.social-chip:hover { color: var(--plum); border-color: rgba(209,115,139,0.4); text-decoration: none; }
.social-facebook { background: rgba(110,143,177,0.12); }
.social-instagram { background: rgba(209,115,139,0.12); }
.social-tiktok { background: rgba(45,46,69,0.08); }
.social-x { background: rgba(45,46,69,0.08); }
.social-linkedin { background: rgba(110,143,177,0.16); }

.detail-custom { margin-top: 2rem; }
.custom-html-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-sm);
  overflow-wrap: anywhere;
}
.custom-html-box h2,
.custom-html-box h3 {
  font-family: var(--font-display);
  font-weight: 400;
  margin: 0 0 0.65rem;
  color: var(--ink);
}
.custom-html-box p { margin: 0 0 0.75rem; color: var(--ink-2); }
.custom-html-box ul, .custom-html-box ol { margin: 0 0 0.75rem; padding-left: 1.25rem; color: var(--ink-2); }
.custom-html-box a { color: var(--plum); }
.custom-html-box img { max-width: 100%; border-radius: var(--radius-sm); }

.badge-laboratorio,
.biz-badge-laboratorio { /* reserved */ }


/* ——— Flyer-only business detail ——— */
.flyer-only {
  padding: 1.25rem 0 2.5rem;
  background: var(--bg);
}
.flyer-only-inner {
  max-width: 780px;
  margin: 0 auto;
}
.flyer-only-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}
@media (min-width: 768px) {
  .flyer-only-inner { max-width: 840px; }
  .flyer-only { padding: 1.75rem 0 3rem; }
}


/* Partners-matching footer extras */
.site-footer .footer-brand p {
  margin: 1rem 0 0;
  font-size: 0.925rem;
  max-width: 18rem;
  color: rgba(255, 255, 255, 0.65);
}
.site-footer .logo-footer {
  height: 26px;
  width: auto;
}
.site-footer .footer-links h3 {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rose);
}
.site-footer .footer-muted {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
  margin: 0;
}
.site-footer .footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}
