/* Creadoras: hoja de estilos única. Fuentes autoalojadas. */
@font-face {
  font-family: "Bricolage";
  src: url("/assets/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --ink: #2b1a2e;
  --ink-2: #5d4862;
  --ink-3: #7d6a82;
  --paper: #f8f6fb;
  --surface: #ffffff;
  --line: #e5dde9;
  --line-2: #d6cadc;
  --berry: #a8205a;
  --berry-d: #85154a;
  --berry-t: #f9e7ef;
  --wa: #0f7d43;
  --wa-d: #0b6537;
  --star: #e0a21b;
  --tray: #2b1a2e;
  --ok: #17724a;
  --err: #b3261e;
  --radius: 14px;
  --font-d: "Bricolage", "Figtree", system-ui, sans-serif;
  --font-b: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-b);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; min-width: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--berry); text-underline-offset: 3px; }
a:hover { color: var(--berry-d); }
:focus-visible { outline: 3px solid #1b6dd1; outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-d); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2rem, 5.4vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 3.4vw, 2rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-2); }
.small { font-size: .9rem; }
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 720px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Cabecera ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.site-header .container { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-d); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; }
.brand:hover { color: var(--ink); }
.mark { display: grid; grid-template-columns: repeat(2, 10px); gap: 3px; flex: none; }
.mark i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); display: block; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 999px; font-size: .98rem; }
.nav a:not(.btn):hover { background: var(--paper); }
.nav .hide-sm { display: none; }
.nav .btn { white-space: nowrap; }
.hide-xs { display: none; }
@media (min-width: 520px) { .hide-xs { display: inline; } }
@media (min-width: 760px) { .nav .hide-sm { display: inline-block; } }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  padding: 12px 20px; border-radius: 999px; border: 2px solid transparent;
  background: var(--berry); color: #fff; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
  min-height: 46px;
}
.btn:hover { background: var(--berry-d); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-wa { background: var(--wa); }
.btn-wa:hover { background: var(--wa-d); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-light { background: #fff; color: var(--berry-d); }
.btn-light:hover { background: var(--berry-t); color: var(--berry-d); }
.btn-sm { padding: 8px 14px; font-size: .92rem; min-height: 38px; }
.btn-danger { background: var(--err); }
.btn-danger:hover { background: #8f1d17; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Avisos ---------- */
.flashes { padding-top: 16px; }
.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 10px; font-weight: 600; border: 1px solid; }
.flash.ok { background: #e6f5ee; border-color: #b7e0cc; color: #0f5e3b; }
.flash.err { background: #fdecea; border-color: #f4c3be; color: #8f1d17; }
.flash.info { background: #eaf1fd; border-color: #c4d7f6; color: #1a4a99; }
.banner { background: var(--ink); color: #fff; padding: 10px 0; font-size: .95rem; }
.banner a { color: #fff; font-weight: 700; }

/* ---------- Formularios ---------- */
.field { margin-bottom: 18px; }
.field label, .label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .98rem; }
.field .hint { color: var(--ink-3); font-size: .88rem; margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=search], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 2px solid var(--line-2); border-radius: 12px; padding: 11px 14px; min-height: 48px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--berry); box-shadow: 0 0 0 3px var(--berry-t); }
input[type=file] { font: inherit; width: 100%; padding: 10px; border: 2px dashed var(--line-2); border-radius: 12px; background: #fff; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--berry); }
.form-err { background: #fdecea; border: 1px solid #f4c3be; color: #8f1d17; padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; font-weight: 600; }
.hp { position: absolute; left: -5000px; height: 0; overflow: hidden; }
.row-2 { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
@media (min-width: 640px) { .form-card { padding: 32px; } }

/* ---------- Portada ---------- */
.hero { padding: 40px 0 28px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; } .hero { padding: 64px 0 44px; } }
.hero h1 { margin-bottom: 14px; }
.hero .lead { font-size: 1.2rem; color: var(--ink-2); max-width: 34rem; margin-bottom: 24px; }
.search { display: grid; gap: 10px; max-width: 36rem; }
@media (min-width: 560px) { .search { grid-template-columns: 1.4fr 1fr auto; } }
.search input, .search select { min-height: 52px; }
.search .btn { min-height: 52px; }

.tray { background: var(--tray); border-radius: 26px; padding: 22px 20px 18px; box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 18px 36px -18px rgba(43,26,46,.55); max-width: 420px; width: 100%; margin-inline: auto; }
.tray-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 12px; list-style: none; margin: 0; padding: 0; }
.pan { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: #f4eaf6; text-align: center; }
.pan:hover { color: #fff; }
.pan-well { width: 88px; height: 88px; border-radius: 50%; background: #1c1020; padding: 6px; box-shadow: 0 0 0 4px #43304a; transition: transform .15s; }
.pan-color {
  display: block; width: 100%; height: 100%; border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255,255,255,.5) 0 7%, rgba(255,255,255,0) 32%),
    radial-gradient(circle at 50% 58%, var(--c) 0 55%, color-mix(in srgb, var(--c) 62%, #000) 100%);
  box-shadow: inset 0 3px 7px rgba(0,0,0,.4), inset 0 -2px 4px rgba(255,255,255,.12);
  transition: box-shadow .15s;
}
.pan:hover .pan-well, .pan:focus-visible .pan-well { transform: translateY(-3px); }
.pan:active .pan-color { box-shadow: inset 0 6px 12px rgba(0,0,0,.55); }
.pan-name { font-weight: 700; font-size: 1rem; line-height: 1.15; }
.pan-count { font-size: .8rem; color: #c9b4d0; margin-top: -4px; }
.tray-note { text-align: center; color: #c9b4d0; font-size: .85rem; margin: 18px 0 0; }
@media (prefers-reduced-motion: no-preference) {
  .pan-well { animation: pop .5s cubic-bezier(.2,.9,.3,1.3) both; animation-delay: calc(var(--i) * 70ms + 120ms); }
  @keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
}
@media (min-width: 420px) { .pan-well { width: 108px; height: 108px; } }

.section { padding: 44px 0; }
.section-tight { padding: 28px 0; }
.section h2 { margin-bottom: 18px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head h2 { margin: 0; }

.steps { display: grid; gap: 14px; grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; counter-increment: step; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--berry-t); color: var(--berry-d); font-family: var(--font-d); font-weight: 800; margin-bottom: 10px; }
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; color: var(--ink-2); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-current=true] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip small { color: var(--ink-3); font-weight: 500; }
.chip[aria-current=true] small { color: #d9c9de; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--berry)); display: inline-block; flex: none; }

.cta-band { background: var(--berry); color: #fff; border-radius: 28px; padding: 32px 24px; display: grid; gap: 20px; }
@media (min-width: 800px) { .cta-band { grid-template-columns: 1.3fr 1fr; padding: 44px; align-items: center; } }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: #fbe3ee; margin: 0; }
.cta-band ul { margin: 0; padding-left: 1.1em; }
.cta-band li { margin-bottom: 6px; }

.empty { background: var(--surface); border: 2px dashed var(--line-2); border-radius: 20px; padding: 32px 24px; text-align: center; }
.empty h2, .empty h3 { margin-bottom: 8px; }
.empty p { color: var(--ink-2); max-width: 32rem; margin-inline: auto; }

/* ---------- Tarjetas de perfil ---------- */
.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; position: relative; }
.pcard.is-pro { border-color: var(--berry); box-shadow: 0 0 0 1px var(--berry); }
.pcard-media { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; aspect-ratio: 3 / 1; background: color-mix(in srgb, var(--c) 16%, #fff); }
.pcard-media img, .pcard-media .ph { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.pcard-media .ph { background: color-mix(in srgb, var(--c) 22%, #fff); }
.pcard-media.one { grid-template-columns: 1fr; aspect-ratio: 3 / 1; }
.pcard-media.empty-media { display: grid; place-items: center; grid-template-columns: 1fr; color: color-mix(in srgb, var(--c) 70%, #000); font-weight: 700; font-size: .9rem; }
.pcard-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard-top { display: flex; gap: 12px; align-items: center; }
.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.avatar-ph { display: inline-grid; place-items: center; background: color-mix(in srgb, var(--c) 20%, #fff); color: color-mix(in srgb, var(--c) 75%, #000); font-family: var(--font-d); font-weight: 800; font-size: 1.05rem; }
.avatar.lg { width: 96px; height: 96px; font-size: 2rem; }
.pcard h3 { margin: 0; font-size: 1.12rem; }
.pcard h3 a { color: var(--ink); text-decoration: none; }
.pcard h3 a::after { content: ""; position: absolute; inset: 0; }
.pcard .meta { color: var(--ink-2); font-size: .92rem; }
.pcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 6px; font-size: .95rem; }
.price-from { font-weight: 700; }
.price-from small { font-weight: 500; color: var(--ink-3); }
.pcard .btn-wa { position: relative; z-index: 2; margin-top: 4px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c, var(--berry)) 14%, #fff); color: var(--ink); }
.tag-pro { background: var(--berry); color: #fff; }
.tag-ok { background: #e6f5ee; color: #0f5e3b; }
.pcard .tag-pro { position: absolute; top: 10px; left: 10px; z-index: 2; }
.verified { display: inline-flex; vertical-align: -2px; color: #1b6dd1; }
.verified svg { width: 18px; height: 18px; }

.stars { position: relative; display: inline-block; letter-spacing: 1px; line-height: 1; font-size: 1rem; white-space: nowrap; }
.stars-base { color: #d9cfdd; }
.stars-fill { position: absolute; left: 0; top: 0; overflow: hidden; color: var(--star); white-space: nowrap; }
.rating-line { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--ink-2); }
.rating-line b { color: var(--ink); }

/* ---------- Listados ---------- */
.page-head { padding: 32px 0 8px; }
.crumbs { font-size: .9rem; color: var(--ink-3); margin-bottom: 14px; }
.crumbs a { color: var(--ink-2); }
.page-head h1 { font-size: clamp(1.8rem, 4.6vw, 2.8rem); }
.page-head .lead { max-width: 42rem; color: var(--ink-2); font-size: 1.1rem; }
.tips { display: grid; gap: 12px; grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0; }
@media (min-width: 760px) { .tips { grid-template-columns: repeat(3, 1fr); } }
.tips li { background: var(--surface); border-left: 5px solid var(--c); border-radius: 10px; padding: 14px 16px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
details.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--berry); }
details.faq[open] summary::after { content: "–"; }
details.faq p { padding: 0 18px 16px; margin: 0; color: var(--ink-2); }
.pager { display: flex; gap: 10px; justify-content: center; margin-top: 28px; }

/* ---------- Perfil ---------- */
.profile-hero { background: color-mix(in srgb, var(--c) 11%, #fff); border-bottom: 1px solid color-mix(in srgb, var(--c) 25%, #fff); padding: 28px 0; }
.profile-hero-grid { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.profile-hero h1 { font-size: clamp(1.8rem, 4.6vw, 2.8rem); margin: 0 0 8px; }
.profile-hero .info { flex: 1; min-width: 240px; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; color: var(--ink-2); }
.profile-layout { display: grid; gap: 28px; padding-top: 28px; padding-bottom: 100px; }
@media (min-width: 900px) { .profile-layout { grid-template-columns: 1fr 320px; align-items: start; padding-bottom: 44px; } }
.side { display: none; }
@media (min-width: 900px) { .side { display: block; position: sticky; top: 84px; } }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.side-card .btn { margin-bottom: 10px; }
.profile-main section { margin-bottom: 36px; }
.profile-main h2 { font-size: 1.5rem; }
.bio { white-space: pre-line; max-width: 42rem; }
.menu { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.menu li { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.menu li:last-child { border-bottom: 0; }
.menu-row { display: flex; align-items: baseline; gap: 10px; }
.menu-row .name { font-weight: 700; }
.menu-row .leader { flex: 1; border-bottom: 2px dotted var(--line-2); transform: translateY(-4px); min-width: 20px; }
.menu-row .price { font-family: var(--font-d); font-weight: 800; font-size: 1.15rem; white-space: nowrap; }
.menu .desc { color: var(--ink-2); font-size: .93rem; margin: 2px 0 0; }
.note { color: var(--ink-3); font-size: .9rem; margin-top: 10px; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 560px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 12px; overflow: hidden; aspect-ratio: 1; display: block; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.gallery button:hover img { transform: scale(1.04); }
dialog.lightbox { border: 0; background: transparent; padding: 0; max-width: 96vw; max-height: 96vh; }
dialog.lightbox::backdrop { background: rgba(20, 10, 24, .88); }
dialog.lightbox img { max-width: 96vw; max-height: 86vh; border-radius: 10px; margin-inline: auto; }
dialog.lightbox .cap { color: #fff; text-align: center; padding-top: 10px; }
dialog.lightbox form { text-align: center; margin-top: 10px; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 12px; }
.review-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.review-top b { font-weight: 700; }
.review p { margin: 0; }
.reply { margin-top: 12px; padding: 10px 14px; border-left: 4px solid var(--berry); background: var(--berry-t); border-radius: 0 10px 10px 0; font-size: .96rem; }
.rating-big { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.rating-big .num { font-family: var(--font-d); font-size: 2.6rem; font-weight: 800; line-height: 1; }
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 10px; }
.mobile-bar .btn { flex: 1; }
@media (min-width: 900px) { .mobile-bar { display: none; } }

/* ---------- Reseña (enlace de cliente) ---------- */
.rate { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; border: 0; padding: 0; margin: 0 0 18px; }
.rate input { position: absolute; opacity: 0; }
.rate label { font-size: 2.6rem; line-height: 1; color: #d9cfdd; cursor: pointer; padding: 0 2px; transition: color .1s; }
.rate input:checked ~ label, .rate label:hover, .rate label:hover ~ label { color: var(--star); }
.rate input:focus-visible + label { outline: 3px solid #1b6dd1; border-radius: 6px; }

/* ---------- Panel ---------- */
.panel-head { padding: 28px 0 8px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 12px; margin-bottom: 8px; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.tabs a { white-space: nowrap; text-decoration: none; color: var(--ink); font-weight: 600; padding: 9px 16px; border-radius: 999px; }
.tabs a:hover { background: #fff; }
.tabs a[aria-current=page] { background: var(--ink); color: #fff; }
.stat-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin-bottom: 24px; }
@media (min-width: 760px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.stat b { display: block; font-family: var(--font-d); font-size: 2rem; line-height: 1.1; }
.stat span { color: var(--ink-2); font-size: .92rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin-bottom: 18px; }
.card h2, .card h3 { margin-top: 0; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist .tick { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .85rem; font-weight: 800; flex: none; background: var(--line); color: var(--ink-3); }
.checklist .done .tick { background: var(--ok); color: #fff; }
.checklist .done span.t { color: var(--ink-2); text-decoration: line-through; }
.photo-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .photo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .photo-grid { grid-template-columns: repeat(4, 1fr); } }
.photo-item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.photo-item img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.photo-item form { padding: 8px; display: grid; gap: 6px; }
.photo-item input[type=text] { min-height: 38px; padding: 6px 10px; font-size: .9rem; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; }
.inline-form .field { margin: 0; flex: 1; min-width: 160px; }
.copybox { display: flex; gap: 8px; margin-top: 8px; }
.copybox input { min-height: 40px; font-size: .9rem; }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.suggest button { font: inherit; font-size: .9rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; }
.suggest button:hover { border-color: var(--ink); }
.service-edit { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.service-edit:last-child { border-bottom: 0; }
.service-form { display: grid; gap: 8px; grid-template-columns: 1fr; flex: 1 1 100%; }
@media (min-width: 760px) { .service-edit { flex-wrap: nowrap; } .service-form { grid-template-columns: 1.4fr 100px 1.6fr auto; flex: 1; } }

.plan-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .plan-grid { grid-template-columns: 1fr 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.plan.pro { border: 2px solid var(--berry); }
.plan .price { font-family: var(--font-d); font-weight: 800; font-size: 2.6rem; line-height: 1; margin: 6px 0 14px; }
.plan .price small { font-size: 1rem; font-weight: 600; color: var(--ink-2); }
.plan ul { padding-left: 1.2em; margin: 0 0 18px; }
.plan li { margin-bottom: 6px; }

/* ---------- Admin ---------- */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
table.t { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.t th, table.t td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { background: var(--paper); font-size: .85rem; color: var(--ink-2); }
table.t tr:last-child td { border-bottom: 0; }
.actions-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.actions-wrap form { display: inline; }
.status { font-weight: 700; font-size: .82rem; padding: 3px 10px; border-radius: 999px; background: var(--line); }
.status.pending { background: #fff2cc; color: #7a5a00; }
.status.approved, .status.confirmed, .status.published { background: #e6f5ee; color: #0f5e3b; }
.status.rejected, .status.suspended, .status.hidden { background: #fdecea; color: #8f1d17; }

/* ---------- Pie ---------- */
.site-footer { background: var(--ink); color: #e9ddec; padding: 40px 0 28px; margin-top: 40px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; font-size: .96rem; }
.foot-brand p { color: #cdbad3; max-width: 22rem; font-size: .95rem; }
.foot-legal { border-top: 1px solid #4a3550; margin-top: 28px; padding-top: 18px; font-size: .88rem; color: #bda8c4; }
.legal h2 { margin-top: 1.6em; font-size: 1.3rem; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---------- Especialidades (subcategorías) ---------- */
.subtags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 10px 0 0; }
.subtags a { display: inline-block; padding: 4px 12px; border-radius: 999px; background: #fff; border: 1px solid color-mix(in srgb, var(--c) 40%, #fff); color: var(--ink); font-size: .88rem; font-weight: 600; text-decoration: none; }
.subtags a:hover { background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--ink); }
.pcard-subs { display: flex; flex-wrap: wrap; gap: 5px; list-style: none; padding: 0; margin: 0; position: relative; z-index: 1; }
.pcard-subs li { font-size: .78rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, var(--c) 12%, #fff); color: color-mix(in srgb, var(--c) 55%, #000); }
.subs { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.subs legend { font-weight: 700; padding: 0; margin-bottom: 4px; font-size: .98rem; }
.subs .hint { color: var(--ink-3); font-size: .88rem; margin: 0 0 10px; }
.check-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.check-chip { position: relative; display: inline-flex; cursor: pointer; }
.check-chip input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.check-chip span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 2px solid var(--line-2); background: #fff; font-weight: 600; font-size: .95rem; line-height: 1.2; transition: background .12s, border-color .12s; }
.check-chip span::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; }
.check-chip:hover span { border-color: var(--ink); }
.check-chip input:checked + span { background: color-mix(in srgb, var(--c, var(--berry)) 14%, #fff); border-color: var(--c, var(--berry)); }
.check-chip input:checked + span::before { background: var(--c, var(--berry)); border-color: var(--c, var(--berry)); box-shadow: inset 0 0 0 2px #fff; }
.check-chip input:focus-visible + span { outline: 3px solid #1b6dd1; outline-offset: 2px; }
.check-chip.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* ---------- Mensajes (admin) ---------- */
.msg-list { display: grid; gap: 12px; }
.msg.is-new { border-left: 5px solid var(--berry); }
.msg-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 8px; }
.msg-data { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0 0 10px; }
.msg-data dt { color: var(--ink-3); font-size: .9rem; }
.msg-data dd { margin: 0; overflow-wrap: anywhere; }
.msg-text { background: var(--paper); border-radius: 10px; padding: 10px 14px; white-space: pre-line; overflow-wrap: anywhere; }
.msg-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Móvil ---------- */
.flash, .card, .form-card, .stat span, .page-head h1, .profile-hero h1, .copybox input { overflow-wrap: anywhere; }
.flash a { overflow-wrap: anywhere; }
.profile-hero-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; }
.profile-hero .info { min-width: 0; }
@media (max-width: 640px) {
  .tabs { flex-wrap: wrap; overflow: visible; gap: 6px; }
  .tabs a { padding: 8px 14px; background: #fff; border: 1px solid var(--line); }
  .tabs a[aria-current=page] { background: var(--ink); border-color: var(--ink); }
  .avatar.lg { width: 76px; height: 76px; font-size: 1.6rem; }
  .profile-hero { padding: 20px 0; }
  .profile-hero-grid { gap: 14px; }
  .profile-hero h1 { font-size: 1.6rem; }
  .profile-meta { gap: 6px 10px; font-size: .95rem; }
  .hero { padding: 28px 0 20px; }
  .hero .lead { font-size: 1.08rem; }
  .cta-band { padding: 26px 20px; border-radius: 22px; }
  .plan { padding: 22px; }
  .form-card { padding: 20px; }
}
@media (max-width: 420px) {
  .container { padding-inline: 16px; }
  .site-header .container { gap: 8px; min-height: 58px; }
  .brand { font-size: 1.15rem; gap: 8px; min-width: 0; }
  .mark { grid-template-columns: repeat(2, 8px); gap: 2px; }
  .mark i { width: 8px; height: 8px; }
  .nav { gap: 2px; }
  .nav a:not(.btn) { padding: 8px 8px; font-size: .95rem; }
  .nav .btn-sm { padding: 8px 12px; min-height: 40px; font-size: .9rem; }
  .pan-well { width: 92px; height: 92px; }
  .tray { padding: 18px 14px 14px; }
  .stat { padding: 14px; }
  .stat b { font-size: 1.7rem; }
  .menu li { padding: 12px 14px; }
  .menu-row .name { overflow-wrap: anywhere; }
  .foot-grid { gap: 22px 16px; }
}

/* Tablas del admin: en pantallas pequeñas cada fila pasa a ser una tarjeta con sus botones a la vista */
@media (max-width: 760px) {
  .table-wrap { background: none; border: 0; overflow: visible; }
  table.t.stack, table.t.stack tbody, table.t.stack tr, table.t.stack td { display: block; width: 100%; }
  table.t.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.t.stack tr { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 6px 14px; margin-bottom: 12px; }
  table.t.stack td { border: 0; padding: 7px 0 7px 6.8rem; position: relative; overflow-wrap: anywhere; min-height: 2.2rem; }
  table.t.stack td::before { content: attr(data-label); position: absolute; left: 0; top: 9px; width: 6rem; color: var(--ink-3); font-size: .85rem; font-weight: 600; }
  table.t.stack td:not([data-label])::before { content: none; }
  table.t.stack td.actions { display: block; padding: 10px 0 6px; border-top: 1px solid var(--line); margin-top: 6px; }
  table.t.stack td.actions::before { content: none; }
  table.t.stack td.actions .actions-wrap .btn { min-height: 42px; }
}


/* ---------- Portada tipo marketplace ---------- */
.hero-app { position: relative; color: #fff; text-align: center; padding: 30px 0 72px; background: radial-gradient(120% 140% at 85% 0%, #c42a6e 0%, rgba(196,42,110,0) 55%), linear-gradient(135deg, #2b1a2e 0%, #5a1b48 60%, #8f1d55 100%); }
.hero-app h1 { color: #fff; max-width: 22ch; margin: 0 auto 10px; font-size: clamp(1.9rem, 4.6vw, 2.9rem); }
.hero-app .lead { margin: 0 auto 20px; max-width: 36rem; font-size: clamp(1rem, 2.4vw, 1.2rem); color: #f1e1f1; }
.search.search-pill { position: relative; display: flex; align-items: center; max-width: 46rem; margin-inline: auto; background: #fff; border-radius: 999px; padding: 6px 6px 6px 18px; box-shadow: 0 18px 40px -16px rgba(0,0,0,.55); text-align: left; gap: 0; }
.search-pill:focus-within { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #1b6dd1, 0 18px 40px -16px rgba(0,0,0,.55); }
.search-pill .sf-q, .search-pill .sf-c { display: flex; align-items: center; gap: 8px; min-width: 0; }
.search-pill .sf-q { flex: 1 1 auto; }
.search-pill .sf-c { flex: 0 0 auto; border-left: 1px solid var(--line); padding-left: 14px; margin-left: 8px; }
.search-pill svg { width: 20px; height: 20px; color: var(--berry); flex: none; }
.search-pill input, .search-pill select { border: 0; background: transparent; box-shadow: none; outline: none; min-height: 48px; padding-inline: 4px; font-size: 1rem; min-width: 0; width: 100%; color: var(--ink); }
.search-pill select { width: auto; max-width: 11rem; padding-right: 22px; cursor: pointer; }
.search-pill .btn { min-height: 48px; padding-inline: 26px; border-radius: 999px; margin-left: 8px; white-space: nowrap; }
.search-pill .suggest-host { position: static; }
.suggest-box { position: absolute; left: 0; right: 0; top: calc(100% + 10px); z-index: 60; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 22px 44px -14px rgba(43,26,46,.45); text-align: left; color: var(--ink); max-height: 60vh; overflow: auto; }
.suggest-host { position: relative; }
.suggest-box a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--ink); min-height: 48px; }
.suggest-box a i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); flex: none; }
.suggest-box a b { display: block; font-weight: 700; line-height: 1.2; }
.suggest-box a small { display: block; color: var(--ink-3); font-size: .85rem; }
.suggest-box a:hover, .suggest-box a.on { background: var(--berry-t); color: var(--ink); }
.cat-rail-wrap { position: relative; z-index: 1; margin-top: -42px; }
.cat-rail { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 14px 32px -16px rgba(43,26,46,.4); padding: 14px 8px 10px; }
.cat-rail ul { display: flex; justify-content: space-between; gap: 4px; list-style: none; margin: 0; padding: 0 6px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.cat-rail ul::-webkit-scrollbar { display: none; }
.cat-rail li { flex: 1 0 76px; scroll-snap-align: start; }
.cat-rail a { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); padding: 2px 0 4px; }
.cat-rail .ci { width: 56px; height: 56px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 16px -8px var(--c); transition: transform .15s; }
.cat-rail .ci svg { width: 27px; height: 27px; }
.cat-rail a:hover .ci, .cat-rail a:focus-visible .ci { transform: translateY(-3px); }
.cat-rail a:active .ci { transform: scale(.94); }
.cat-rail .cn { font-size: .86rem; font-weight: 700; line-height: 1.15; text-align: center; }
.feed { padding-top: 24px; }
.feed .section-head { margin-bottom: 14px; }
.feed h2 { font-size: clamp(1.25rem, 3vw, 1.65rem); }
.pcard .wa-txt { white-space: nowrap; }

/* ---------- Móvil como app ---------- */
.tabbar { display: none; }
@media (max-width: 759px) {
  body:not(.profile-page) { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(255,255,255,.97); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  body.profile-page .tabbar { display: none; }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; border-radius: 14px; text-decoration: none; color: var(--ink-3); font-size: .74rem; font-weight: 700; -webkit-tap-highlight-color: transparent; }
  .tabbar svg { width: 24px; height: 24px; }
  .tabbar a[aria-current=page] { color: var(--berry); background: var(--berry-t); }
  .nav .hide-app { display: none; }
  .site-header { padding-top: env(safe-area-inset-top); }
  .site-footer { margin-top: 24px; }
}
@media (max-width: 640px) {
  .hero-app { padding: 18px 0 58px; border-radius: 0 0 26px 26px; }
  .hero-app h1 { font-size: 1.5rem; max-width: 24ch; margin-bottom: 6px; }
  .hero-app .lead { font-size: .95rem; margin-bottom: 14px; line-height: 1.4; }
  .hero-app .lead-2 { display: none; }
  .search.search-pill { display: grid; grid-template-columns: 1fr auto; border-radius: 22px; padding: 6px; row-gap: 4px; }
  .search-pill .sf-q { grid-column: 1 / -1; padding-left: 12px; border-bottom: 1px solid var(--line); }
  .search-pill .sf-c { border-left: 0; margin-left: 0; padding-left: 12px; }
  .search-pill select { max-width: none; width: 100%; }
  .search-pill .btn { margin-left: 0; min-height: 44px; }
  .search-pill input, .search-pill select { min-height: 44px; }
  .cat-rail-wrap { margin-top: -36px; }
  .cat-rail { padding: 12px 0 8px; border-radius: 20px; }
  .cat-rail ul { justify-content: flex-start; gap: 2px; padding: 0 10px; }
  .cat-rail li { flex: 0 0 74px; }
  .cat-rail .ci { width: 52px; height: 52px; }
  .feed { padding-top: 18px; }
  .feed .section-head { display: block; }
  .feed .section-head .muted { display: block; margin-top: 4px; }

  /* Tarjetas de perfil en forma de lista, como una app */
  .grid { gap: 10px; }
  .pcard { border-radius: 18px; }
  .pcard-media { display: none; }
  .pcard-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 6px; padding: 12px 14px; align-items: center; }
  .pcard-top { grid-column: 1; min-width: 0; }
  .pcard-top > div { min-width: 0; }
  .pcard h3 { font-size: 1.05rem; overflow-wrap: anywhere; }
  .pcard .meta { font-size: .88rem; }
  .pcard-subs { grid-column: 1; }
  .pcard-foot { grid-column: 1; justify-content: flex-start; gap: 14px; padding-top: 0; font-size: .9rem; flex-wrap: wrap; }
  .pcard .btn-wa { grid-column: 2; grid-row: 1 / span 3; margin: 0; width: 48px; height: 48px; min-height: 48px; padding: 0; border-radius: 50%; justify-content: center; }
  .pcard .btn-wa svg { width: 24px; height: 24px; }
  .pcard .btn-wa .wa-pre, .pcard .btn-wa .wa-txt { display: none; }
  .pcard .tag-pro { top: 0; left: auto; right: 0; border-radius: 0 18px 0 12px; font-size: .7rem; padding: 3px 10px; }
  .pcard.is-pro { box-shadow: none; }
}
.seo-text { max-width: 52rem; }
.seo-text p { color: var(--ink-2); }

/* Administración: envío manual de correos de seguimiento */
.mail-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.mail-form select { max-width: 230px; padding: 7px 10px; font-size: .85rem; }
