/* ==========================================================================
   MyBarbero — Liquid Glass (monocromo)
   Fondo: fotograma desenfocado del vídeo de la marca, en blanco y negro.
   Superficies: vidrio esmerilado neutro, bordes de luz finos, sin color.
   ========================================================================== */

:root {
  --black: #070707;
  --ink: #0d0d0d;
  --white: #ffffff;
  --text: #f5f5f4;
  --muted: rgba(255, 255, 255, .62);
  --faint: rgba(255, 255, 255, .42);
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .22);

  --glass: rgba(255, 255, 255, .055);
  --glass-2: rgba(255, 255, 255, .085);
  --glass-3: rgba(255, 255, 255, .13);
  --glass-dark: rgba(10, 10, 10, .42);
  --blur: blur(28px) saturate(135%);
  --edge: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 0 1px rgba(255, 255, 255, .02);
  --drop: 0 30px 80px -30px rgba(0, 0, 0, .85), 0 8px 24px -12px rgba(0, 0, 0, .5);

  --r-shell: 30px;
  --r-xl: 24px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --pill: 999px;

  --font: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: .84rem;
  --step-0: 1rem;
  --step-1: clamp(1.12rem, 1.05rem + .3vw, 1.3rem);
  --step-2: clamp(1.4rem, 1.2rem + .8vw, 1.85rem);
  --step-3: clamp(1.8rem, 1.45rem + 1.5vw, 2.6rem);
  --step-4: clamp(2.3rem, 1.6rem + 2.6vw, 3.9rem);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.i { width: 1.1em; height: 1.1em; flex: none; display: inline-block; vertical-align: -.16em; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--text);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(255, 255, 255, .85); color: #000; }

/* Fondo fotográfico fijo y desenfocado */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60vw 50vh at 18% 8%, rgba(255, 255, 255, .10), transparent 60%),
    radial-gradient(50vw 60vh at 92% 90%, rgba(255, 255, 255, .06), transparent 60%),
    linear-gradient(180deg, rgba(7, 7, 7, .05), rgba(7, 7, 7, .35) 65%, rgba(7, 7, 7, .7)),
    url("/media/bg.jpg") center / cover no-repeat,
    var(--black);
}
.aurora::after { /* grano fino para que el vidrio tenga textura (sin mix-blend-mode: provoca fallos de dibujado con backdrop-filter en Chrome) */
  content: "";
  position: absolute;
  inset: 0;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Vidrio ---------- */
.glass {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .035));
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--edge), var(--drop);
}
.glass::before { /* reflejo especular suave arriba a la izquierda */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(90% 55% at 0% 0%, rgba(255, 255, 255, .10), transparent 55%);
}
.glass > * { position: relative; }
.glass--strong { background: linear-gradient(180deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .05)); border-color: var(--line-strong); }
.glass--dark { background: var(--glass-dark); }
.glass--flat { box-shadow: var(--edge); }
.glass--xl { border-radius: var(--r-xl); }
.glass--md { border-radius: var(--r-md); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(28, 28, 28, .94); }
}

/* Contenedor tipo "ventana" de la referencia */
.shell { border-radius: var(--r-shell); padding: clamp(14px, 2vw, 22px); }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.stack > * + * { margin-top: var(--space, 1rem); }
.grid { display: grid; gap: clamp(12px, 1.6vw, 18px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: var(--step--1); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.block { padding-block: clamp(40px, 6vw, 80px); }
.block--tight { padding-block: clamp(22px, 3.5vw, 44px); }
.divider { height: 1px; background: var(--line); border: 0; margin: 18px 0; }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 { font-family: var(--font); line-height: 1.1; margin: 0; font-weight: 500; letter-spacing: -.025em; }
.display { font-size: var(--step-4); font-weight: 500; letter-spacing: -.045em; line-height: 1.02; }
.h1 { font-size: var(--step-3); letter-spacing: -.035em; }
.h2 { font-size: var(--step-2); }
.h3 { font-size: var(--step-1); }
.lead { font-size: var(--step-1); color: var(--muted); max-width: 56ch; line-height: 1.55; font-weight: 400; }
.prose { max-width: 70ch; color: rgba(255, 255, 255, .82); }
.prose p, .prose ul, .prose ol { margin: 0 0 1.05em; }
.prose h2 { font-size: var(--step-2); margin: 1.6em 0 .5em; color: var(--white); }
.prose h3 { font-size: var(--step-1); margin: 1.3em 0 .4em; color: var(--white); }
.prose li { margin-bottom: .35em; }
.prose a { color: var(--white); text-underline-offset: 3px; }
.prose strong { color: var(--white); font-weight: 600; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 44px;
  padding: .62em 1.15em;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .07);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, transform .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .32); }
.btn:active { transform: scale(.985); }
.btn--primary, .btn--blue { background: var(--white); color: #0a0a0a; border-color: var(--white); box-shadow: 0 10px 30px -12px rgba(255, 255, 255, .45); }
.btn--primary:hover, .btn--blue:hover { background: #e9e9e9; border-color: #e9e9e9; }
.btn--whatsapp { background: rgba(255, 255, 255, .1); }
.btn--sm { min-height: 34px; padding: .35em .8em; font-size: var(--step--1); border-radius: 10px; }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; box-shadow: none; border-color: transparent; }
.btn--icon { width: 34px; min-height: 34px; padding: 0; border-radius: 10px; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; border-radius: 8px; }

/* ---------- Badges / chips ---------- */
.badge { display: inline-flex; align-items: center; gap: .35em; padding: .12em .5em; border-radius: 5px; background: var(--white); color: #0a0a0a; font-size: .78rem; font-weight: 600; line-height: 1.5; }
.chip { display: inline-flex; align-items: center; gap: .4em; padding: .26em .7em; border-radius: 8px; font-size: .8rem; font-weight: 500; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: rgba(255, 255, 255, .85); white-space: nowrap; }
.chip svg { width: 14px; height: 14px; }
.chip--mint { background: var(--white); color: #0a0a0a; border-color: var(--white); }
.chip--red, .chip--blue { background: rgba(255, 255, 255, .1); border-color: var(--line-strong); color: var(--white); }
.chip--amber { background: transparent; border-style: dashed; border-color: var(--line-strong); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.stars { display: inline-flex; align-items: center; gap: 4px; color: var(--white); font-weight: 600; }
.stars svg { width: 15px; height: 15px; }
.stars svg.off { opacity: .22; }

.icon-tile, .icon-tile--red, .icon-tile--blue { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.icon-tile svg { width: 20px; height: 20px; }

/* ---------- Navegación pública ---------- */
.nav {
  position: sticky;
  top: 14px;
  z-index: 40;
  margin: 14px auto 0;
  width: min(100% - 28px, 1240px);
  border-radius: 18px;
  padding: 8px 8px 8px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand { display: inline-flex; align-items: center; font-weight: 600; font-size: 1.2rem; letter-spacing: -.04em; text-decoration: none; line-height: 1; }
.brand img { width: 26px; height: 26px; }
.nav__links { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav__links a:not(.btn) { padding: .5em .85em; border-radius: 10px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav__links a:not(.btn):hover, .nav__links a[aria-current="page"] { color: var(--white); background: rgba(255, 255, 255, .08); }
.nav__toggle { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); }
@media (max-width: 900px) {
  .nav__toggle { display: grid; place-items: center; }
  .nav__links { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 10px; border-radius: var(--r-lg); background: rgba(18, 18, 18, .92); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--line); }
  .nav[data-open] .nav__links { display: flex; }
  .nav__links a:not(.btn) { padding: .8em 1em; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(36px, 6vw, 84px) clamp(28px, 4vw, 56px); }
.hero__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero__title { margin-bottom: .4em; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }

/* Ventana con el vídeo de la marca y una ficha de vidrio encima */
.showcase { position: relative; border-radius: var(--r-shell); padding: 10px; }
.showcase__media { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3.3; background: #111; }
.showcase__media video, .showcase__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.showcase__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 30%, rgba(0, 0, 0, .55)); }
.showcase__card { position: absolute; left: 22px; right: 22px; bottom: 22px; z-index: 2; padding: 18px 20px; border-radius: 18px; background: rgba(20, 20, 20, .38); }
.showcase__top { position: absolute; left: 22px; top: 22px; z-index: 2; display: flex; gap: 8px; align-items: center; }
@media (max-width: 560px) { .showcase__card { left: 12px; right: 12px; bottom: 12px; padding: 14px; } .showcase__top { left: 12px; top: 12px; } }

/* Fila de datos con separadores verticales (como la referencia) */
.info-row { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 0; }
.info-row > div { padding: 2px 18px; border-left: 1px solid var(--line-strong); min-width: 0; }
.info-row > div:first-child { padding-left: 0; border-left: 0; }
.info-row .label { display: block; color: var(--faint); font-size: .84rem; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.info-row .value { display: block; color: var(--white); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.info-row .value:has(.level) { overflow: visible; }
.info-row .value--big { font-size: 1.6rem; letter-spacing: -.03em; line-height: 1.2; }
@media (max-width: 640px) {
  .info-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .info-row > div:nth-child(odd) { padding-left: 0; border-left: 0; }
}

/* Pestañas subrayadas */
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 12px 0; text-decoration: none; color: var(--faint); font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--white); }
.tabs a[aria-current="page"], .tabs a.is-active { color: var(--white); border-color: var(--white); }

.back { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .06); text-decoration: none; }

/* ---------- Buscador ---------- */
.search { position: relative; display: flex; align-items: center; gap: 8px; padding: 7px; border-radius: 16px; max-width: 560px; }
.search svg.i { width: 20px; height: 20px; margin-left: 10px; color: var(--faint); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .65em .3em; font-size: 1rem; outline: none; }
.search input::placeholder { color: var(--faint); }
.ac {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 50;
  list-style: none; margin: 0; padding: 6px; border-radius: var(--r-md);
  background: rgba(22, 22, 22, .94); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--line-strong); box-shadow: var(--drop); max-height: 360px; overflow: auto;
}
.ac a, .ac button { display: flex; width: 100%; gap: 10px; align-items: center; justify-content: space-between; padding: .6em .8em; border-radius: 10px; text-decoration: none; text-align: left; background: none; border: 0; cursor: pointer; }
.ac a:hover, .ac a[aria-selected="true"], .ac button:hover, .ac button[aria-selected="true"] { background: rgba(255, 255, 255, .09); }
.ac small { color: var(--faint); }

/* ---------- Tarjetas ---------- */
.card { padding: clamp(18px, 2.2vw, 26px); }
.card h3 { font-size: var(--step-1); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }

.barber-card { display: flex; flex-direction: column; gap: 14px; padding: 18px; text-decoration: none; height: 100%; transition: border-color .15s ease, background-color .15s ease; }
.barber-card:hover { border-color: var(--line-strong); background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .045)); }
.barber-card__top { display: flex; gap: 14px; align-items: center; }
/* Las fotos de perfil van a color, como las banderas */
.avatar { width: 58px; height: 58px; border-radius: 16px; object-fit: cover; flex: none; border: 1px solid var(--line-strong); background: #1a1a1a; }
.avatar--lg { width: 120px; height: 120px; border-radius: 28px; }
.avatar--sm { width: 38px; height: 38px; border-radius: 11px; }
.barber-card__name { font-size: 1.08rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.barber-card__foot > :last-child { white-space: nowrap; }
.barber-card__foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 8px; }

.country-tile { display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-decoration: none; border-radius: var(--r-md); }
.country-tile img { width: 34px; height: 24px; object-fit: cover; border-radius: 5px; box-shadow: 0 0 0 1px var(--line-strong); }
/* Las banderas son lo único con color en toda la web */
.flag { border-radius: 6px; box-shadow: 0 0 0 1px var(--line-strong); object-fit: cover; }
.country-tile:hover { border-color: var(--line-strong); }

/* ---------- Secciones ---------- */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: clamp(16px, 2.5vw, 26px); flex-wrap: wrap; }
.section-head p { margin: .35em 0 0; }

.stat { display: flex; flex-direction: column; gap: 2px; }
.stat strong { font-size: var(--step-3); font-weight: 500; line-height: 1; letter-spacing: -.04em; }
.stat span { color: var(--faint); font-size: var(--step--1); }

.steps { counter-reset: step; display: grid; gap: 16px; padding: 0; margin: 0; }
.steps li { list-style: none; display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; font-weight: 600; background: rgba(255, 255, 255, .07); border: 1px solid var(--line-strong); }

.recruit { position: relative; overflow: hidden; padding: clamp(22px, 3.5vw, 40px); border-radius: var(--r-shell); }
.recruit__stripes { display: none; }
.recruit__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(18px, 4vw, 44px); align-items: center; }
@media (max-width: 860px) { .recruit__grid { grid-template-columns: 1fr; } }
.recruit__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.recruit__stats > div { padding: 4px 16px; border-left: 1px solid var(--line-strong); background: none !important; border-radius: 0; box-shadow: none !important; -webkit-backdrop-filter: none; backdrop-filter: none; border-top: 0; border-right: 0; border-bottom: 0; }
.recruit__stats > div::before { display: none; }
.recruit__stats > div:first-child { border-left: 0; padding-left: 0; }
.recruit__stats strong { font-size: 2rem; font-weight: 500; letter-spacing: -.04em; display: block; line-height: 1.1; }

.city-links { display: flex; flex-wrap: wrap; gap: 8px; }
.city-links a { text-decoration: none; padding: .4em .8em; border-radius: 10px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); font-size: .92rem; }
.city-links a:hover { background: rgba(255, 255, 255, .11); border-color: var(--line-strong); }
.city-links .dist { color: var(--faint); font-size: .82em; margin-left: .45em; }

.letters { columns: 4 200px; column-gap: 26px; }
.letters details { break-inside: avoid; margin-bottom: 8px; }
.letters summary { cursor: pointer; font-weight: 600; padding: .25em 0; }
.letters ul { list-style: none; margin: .3em 0 .8em; padding: 0; font-size: .92rem; }
.letters li a { text-decoration: none; color: var(--muted); }
.letters li a:hover { color: var(--white); }

.faq details { padding: 16px 20px; border-radius: var(--r-md); }
.faq details + details { margin-top: 8px; }
.faq summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--faint); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .7em 0 0; color: var(--muted); }

.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--step--1); color: var(--faint); margin-bottom: 18px; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--white); }

/* ---------- Formularios ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-weight: 500; font-size: .9rem; color: rgba(255, 255, 255, .85); }
.input, .select, .textarea {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: .65em .95em;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, .28);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .3);
  outline: none;
  transition: border-color .15s ease, background-color .15s ease;
}
.textarea { min-height: 120px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: rgba(255, 255, 255, .6); background: rgba(0, 0, 0, .4); }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.select option { background: #161616; }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.form-grid .span-2 { grid-column: 1 / -1; }
.error { color: #ffffff; font-size: .86rem; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: 3px; }
.hint { color: var(--faint); font-size: .83rem; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: #ffffff; flex: none; }
.hp { position: absolute; left: -9999px; opacity: 0; }

.seg { display: inline-flex; padding: 4px; border-radius: 13px; gap: 4px; flex-wrap: wrap; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: inline-block; padding: .5em 1em; border-radius: 10px; font-weight: 500; color: var(--muted); }
.seg input:checked + span { background: var(--white); color: #0a0a0a; }
.seg input:focus-visible + span { outline: 2px solid var(--white); }

.toggle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 8px; }
.toggle-card { display: flex; gap: 10px; align-items: center; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); cursor: pointer; }
.toggle-card:has(input:checked) { border-color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .1); }
.toggle-card input { accent-color: #fff; }

.alert { padding: 13px 16px; border-radius: var(--r-md); margin-bottom: 16px; display: flex; gap: 10px; align-items: flex-start; }
.alert--ok { border: 1px solid var(--line-strong); }
.alert--err { border: 1px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .08); }
.alert--warn { border: 1px solid #ecd9a3; background: rgba(236, 217, 163, .1); }

/* ---------- Perfil de barbero ---------- */
.profile-hero { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(16px, 3vw, 28px); align-items: center; padding: clamp(18px, 2.6vw, 30px); border-radius: var(--r-shell); }
@media (max-width: 820px) { .profile-hero { grid-template-columns: 1fr; } }
.profile-layout { display: grid; grid-template-columns: 1fr 380px; gap: clamp(14px, 2vw, 22px); align-items: start; margin-top: 18px; }
@media (max-width: 1000px) { .profile-layout { grid-template-columns: 1fr; } }
.sticky { position: sticky; top: 96px; }
.price-list { list-style: none; padding: 0; margin: 0; }
.price-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.price-list li:last-child { border-bottom: 0; }
.hours { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.hours div { text-align: center; padding: 9px 4px; border-radius: 10px; font-size: .78rem; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); color: var(--faint); }
.hours div.on { background: rgba(255, 255, 255, .12); color: var(--white); border-color: var(--line-strong); }
.hours b { display: block; font-size: .84rem; font-weight: 600; }
@media (max-width: 520px) { .hours { grid-template-columns: repeat(4, 1fr); } }
.review { padding: 16px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }

/* ---------- Paginación ---------- */
.pager { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 24px; }
.pager a, .pager span { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 12px; border-radius: 10px; text-decoration: none; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.pager .is-active { background: var(--white); color: #0a0a0a; font-weight: 600; }
.pager .is-disabled { opacity: .35; }

/* ---------- Footer ---------- */
.footer { margin-top: clamp(40px, 6vw, 80px); padding: clamp(26px, 4vw, 42px); border-radius: var(--r-shell) var(--r-shell) 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 26px; }
.footer h4 { font-size: .92rem; font-weight: 600; margin-bottom: .8em; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.footer a { text-decoration: none; color: var(--muted); font-size: .94rem; }
.footer a:hover { color: var(--white); }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > :first-child { grid-column: 1 / -1; } }

/* ==========================================================================
   Panel (dashboard)
   ========================================================================== */
.app { display: grid; grid-template-columns: 250px 1fr; gap: 16px; padding: 16px; min-height: 100vh; }
.side { position: sticky; top: 16px; height: calc(100vh - 32px); padding: 22px 14px 14px; display: flex; flex-direction: column; gap: 2px; border-radius: var(--r-shell); overflow: hidden; }
/* Chrome dibuja rectángulos fantasma con backdrop-filter en paneles sticky altos con hover: vidrio simulado sin desenfoque en vivo. */
.side.glass, .bulk-bar.glass { -webkit-backdrop-filter: none; backdrop-filter: none; }
.side.glass { background: linear-gradient(180deg, rgba(52, 52, 52, .86), rgba(24, 24, 24, .88)); }
/* Los enlaces se desplazan dentro del panel cuando no caben (pantallas bajas); logo y usuario quedan fijos. */
.side__nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 2px; margin: 0 -8px; padding: 0 8px 8px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .22) transparent; }
.side__nav { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 10px, #000 calc(100% - 18px), transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 10px, #000 calc(100% - 18px), transparent 100%); }
.side__nav::-webkit-scrollbar { width: 6px; }
.side__nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .22); border-radius: 6px; }
.side__nav::-webkit-scrollbar-track { background: transparent; }
.side .brand { padding: 0 10px 22px; }
.side__group { font-size: .78rem; color: var(--faint); padding: 18px 12px 6px; font-weight: 500; letter-spacing: .02em; }
.side a.side__link { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 11px; text-decoration: none; color: rgba(255, 255, 255, .78); font-weight: 400; border: 1px solid transparent; }
.side a.side__link svg { width: 18px; height: 18px; }
.side a.side__link:hover { background: rgba(255, 255, 255, .06); color: var(--white); }
.side a.side__link[aria-current="page"] { color: var(--white); background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .08)); border-color: var(--line-strong); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2); }
.side__badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 6px; background: var(--white); color: #0a0a0a; font-size: .72rem; font-weight: 600; display: grid; place-items: center; }
.side__user { margin-top: 10px; flex: none; display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 18px; border-radius: var(--r-lg); }
.topbar h1 { font-size: var(--step-1); font-weight: 500; }
.app-toggle { display: none; }
@media (max-width: 980px) {
  .app { grid-template-columns: 1fr; padding: 10px; }
  .side { position: fixed; inset: 10px auto 10px 10px; width: min(290px, 86vw); height: auto; z-index: 60; transform: translateX(-110%); transition: transform .25s ease; background: rgba(18, 18, 18, .94); }
  .app[data-open] .side { transform: none; }
  .app-toggle { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .06); }
}

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.kpi { padding: 18px 20px; border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 6px; }
.kpi__label { color: var(--faint); font-size: .86rem; display: flex; gap: 8px; align-items: center; }
.kpi__label svg { width: 16px; height: 16px; }
.kpi__value { font-size: 2rem; font-weight: 500; line-height: 1.05; letter-spacing: -.04em; }
.kpi__hint { font-size: .8rem; color: var(--faint); }
.kpi__hint a { color: var(--white); }

.dash-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .dash-grid { grid-template-columns: 1fr; } }

.chart { width: 100%; height: 170px; }
.chart .area { fill: url(#chartFill); }
.chart .line { fill: none; stroke: #ffffff; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.chart .grid-line { stroke: rgba(255, 255, 255, .07); }

.bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; align-items: end; height: 170px; margin-top: 16px; }
.bars > div { display: flex; gap: 3px; align-items: end; height: 100%; }
.bars span { flex: 1; border-radius: 4px 4px 1px 1px; min-height: 2px; }
.bars .a { background: #ffffff; }
.bars .b { background: rgba(255, 255, 255, .32); }

.progress { height: 8px; border-radius: var(--pill); background: rgba(255, 255, 255, .1); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: inherit; background: #ffffff; box-shadow: 0 0 14px rgba(255, 255, 255, .5); }

.todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.todo li { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 11px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); font-size: .9rem; }
.todo li.done { color: var(--faint); text-decoration: line-through; }
.todo .pts { margin-left: auto; font-size: .78rem; color: var(--faint); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .3); flex: none; }
.dot--ok { background: #ffffff; box-shadow: 0 0 8px rgba(255, 255, 255, .7); }
.dot--warn { background: transparent; border: 1.5px solid rgba(255, 255, 255, .7); }
.dot--red { background: #ffffff; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-weight: 400; color: var(--faint); font-size: .82rem; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid rgba(255, 255, 255, .06); vertical-align: middle; }
.table tr:hover td { background: rgba(255, 255, 255, .025); }
.table a { text-decoration: none; }

.empty { text-align: center; padding: 34px 20px; color: var(--muted); }
.empty svg { width: 36px; height: 36px; margin: 0 auto 10px; opacity: .6; }
.copy { display: flex; gap: 8px; }
.copy input { flex: 1; min-width: 0; }

/* ---------- Galería de cortes ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 10px; }
.gallery--home { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .gallery--home { grid-template-columns: repeat(2, 1fr); } }
.cut { position: relative; display: block; aspect-ratio: 1; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #141414; text-decoration: none; }
.cut img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06); transition: transform .4s ease; }
.cut:hover img { transform: scale(1.035); }
.cut__meta { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 8px 10px; border-radius: 11px; background: rgba(15, 15, 15, .45); -webkit-backdrop-filter: blur(14px) saturate(130%); backdrop-filter: blur(14px) saturate(130%); border: 1px solid var(--line); font-size: .8rem; line-height: 1.3; }
.cut__meta strong { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cut__meta span { color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.cut-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cut-strip img { aspect-ratio: 1; width: 100%; height: auto; object-fit: cover; border-radius: 10px; filter: grayscale(1); border: 1px solid var(--line); }
.photo-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.photo-admin .cut { aspect-ratio: 1; }
.photo-admin form { margin: 0; }
.dropzone { display: grid; place-items: center; gap: 8px; text-align: center; padding: 28px 18px; border-radius: 18px; border: 1.5px dashed var(--line-strong); background: rgba(255, 255, 255, .03); cursor: pointer; }
.dropzone:hover, .dropzone.is-over { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .5); }
.dropzone svg { width: 28px; height: 28px; opacity: .8; }
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(92vw, 1100px); max-height: 92vh; }
.lightbox::backdrop { background: rgba(0, 0, 0, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 18px; filter: grayscale(1); margin: auto; }
.lightbox figcaption { color: var(--muted); text-align: center; margin-top: 10px; font-size: .9rem; }
.lightbox button { position: fixed; top: 18px; right: 18px; }


/* ---------- Insignias de nivel (único color de la interfaz junto a banderas y fotos) ----------
   Aprendiz < Técnico (bronce) < Cualificado (plata) < Pro (oro). Cuatro barras indican el rango. */
.level { display: inline-flex; align-items: center; gap: 6px; padding: .2em .55em; border-radius: 7px; font-size: .74rem; font-weight: 600; line-height: 1.5; letter-spacing: .01em; white-space: nowrap; border: 1px solid; position: relative; overflow: hidden; vertical-align: middle; isolation: isolate; }
.level svg.i { width: 13px; height: 13px; }
.level--lg { font-size: .86rem; padding: .3em .75em; border-radius: 9px; gap: 8px; }
.level--lg svg.i { width: 15px; height: 15px; }
.level__pips { display: inline-flex; align-items: flex-end; gap: 2px; height: 10px; }
.level__pips i { display: block; width: 3px; border-radius: 1px; background: currentColor; opacity: .22; }
.level__pips i:nth-child(1) { height: 4px; }
.level__pips i:nth-child(2) { height: 6px; }
.level__pips i:nth-child(3) { height: 8px; }
.level__pips i:nth-child(4) { height: 10px; }
.level__pips i.on { opacity: 1; }

.level--aprendiz { color: rgba(255, 255, 255, .62); background: rgba(255, 255, 255, .03); border-color: rgba(255, 255, 255, .16); border-style: dashed; }
.level--tecnico { color: #f3c9a2; background: linear-gradient(135deg, rgba(205, 127, 50, .32), rgba(110, 62, 24, .22)); border-color: rgba(226, 152, 92, .5); box-shadow: inset 0 1px 0 rgba(255, 210, 170, .18); }
.level--cualificado { color: #f4f7fb; background: linear-gradient(135deg, rgba(236, 241, 247, .36), rgba(140, 152, 168, .18) 60%, rgba(220, 228, 238, .3)); border-color: rgba(226, 234, 242, .6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 4px 14px -6px rgba(200, 215, 235, .35); }
.level--profesional { color: #2b1d02; background: linear-gradient(135deg, #fff3c4 0%, #f6cd55 38%, #d39b22 72%, #ffe594 100%); border-color: #ffe9a8; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 0 0 1px rgba(255, 210, 90, .18), 0 8px 22px -8px rgba(246, 196, 64, .75); }
.level--profesional::after { /* destello que recorre la insignia de oro */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .75) 46%, transparent 62%);
  transform: translateX(-120%); animation: level-shine 4.5s ease-in-out infinite;
}
@keyframes level-shine { 0%, 62% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }


/* ---------- Insignia de verificado (servicio de pago) ---------- */
svg.verified { width: 1.05em; height: 1.05em; color: #3b9cff; vertical-align: -.14em; margin-left: .15em; filter: drop-shadow(0 0 6px rgba(59, 156, 255, .45)); }
.verified--pill { display: inline-flex; align-items: center; gap: 6px; padding: .3em .75em .3em .5em; border-radius: 9px; font-size: .86rem; font-weight: 600; color: #e8f3ff; background: linear-gradient(135deg, rgba(59, 156, 255, .32), rgba(30, 90, 200, .2)); border: 1px solid rgba(110, 180, 255, .55); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 22px -10px rgba(59, 156, 255, .7); vertical-align: middle; }
.verified--pill svg.i { width: 17px; height: 17px; color: #3b9cff; }


/* ---------- Barberos destacados (plan de pago) ---------- */
svg.featured-icon { display: inline-block; width: 1.2em; height: 1.2em; color: #fff; vertical-align: -.2em; margin-left: .1em; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .5)); }
.barber-card { position: relative; }
.barber-card--featured { border-color: rgba(255, 255, 255, .42); background: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .05)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 0 0 1px rgba(255, 255, 255, .06), 0 24px 60px -24px rgba(255, 255, 255, .22), var(--drop); }
.featured-tag { display: inline-flex; align-items: center; gap: 5px; padding: .18em .55em; border-radius: 6px; background: #fff; color: #0a0a0a; font-size: .72rem; font-weight: 600; line-height: 1.5; }
.featured-tag svg.i { width: 12px; height: 12px; }
.featured-tag--inline { font-size: .86rem; padding: .3em .7em; border-radius: 9px; vertical-align: middle; }
.featured-tag--inline svg.i { width: 15px; height: 15px; }


/* ---------- Barbería física (opcional) ---------- */
svg.shop-icon { display: inline-block; width: 1.15em; height: 1.15em; color: rgba(255, 255, 255, .85); vertical-align: -.18em; margin-left: .1em; }
.shop-tag { display: inline-flex; align-items: center; gap: 6px; padding: .3em .7em; border-radius: 9px; font-size: .86rem; font-weight: 600; color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid var(--line-strong); vertical-align: middle; }
.shop-tag svg.i { width: 16px; height: 16px; }

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

/* ---------- Espacios para anunciantes (venta directa) ---------- */
.ad {
  position: relative;
  display: flex; align-items: center; gap: 18px;
  padding: 26px clamp(18px, 2.4vw, 30px) 22px;
  border-radius: var(--r-xl);
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.022) 0 10px, transparent 10px 20px),
    rgba(255,255,255,.03);
  border: 1px dashed var(--line-strong);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  color: var(--text);
}
.ad__label {
  position: absolute; top: 9px; left: 16px;
  font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint);
}
.ad__icon {
  flex: none; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: var(--r-md);
  background: var(--glass-2); box-shadow: var(--edge); color: #fff;
}
.ad__icon .i { width: 22px; height: 22px; }
.ad__copy { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ad__title { font-size: var(--step-1); letter-spacing: -.01em; }
.ad__text { font-size: var(--step--1); color: var(--muted); }
.ad__cta { flex: none; }
.ad--banner { min-height: 112px; }
.ad--card, .ad--tile { flex-direction: column; justify-content: center; text-align: center; padding-top: 34px; }
.ad--card { min-height: 250px; }
.ad--card .ad__copy, .ad--tile .ad__copy { flex: 0 1 auto; align-items: center; }
.ad--tile { min-height: 100%; }
.ad.ad--live { padding: 26px 10px 10px; display: block; min-height: 0; text-align: center; border-style: solid; border-color: var(--line); background: var(--glass); }
.ad--live img { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: var(--r-md); }
.ad.ad--adsense { display: block; min-height: 0; padding: 28px 10px 10px; text-align: center; border-style: solid; border-color: var(--line); background: var(--glass); }
.ad--adsense ins.adsbygoogle { width: 100%; min-height: 90px; }
.ad--card.ad--adsense ins.adsbygoogle { min-height: 250px; }
.ad__own { position: absolute; top: 7px; right: 16px; font-size: .7rem; color: var(--faint); text-decoration: underline; text-underline-offset: 2px; }
.ad__own:hover { color: var(--text); }
/* Si AdSense no tiene anuncio para el hueco, se ve el letrero propio. */
.ad__house { display: none; }
.ad--adsense:has(ins[data-ad-status="unfilled"]) ins { display: none !important; }
.ad--adsense:has(ins[data-ad-status="unfilled"]) .ad__own { display: none; }
.ad--adsense:has(ins[data-ad-status="unfilled"]) .ad__house { display: flex; align-items: center; gap: 18px; padding: 0 clamp(8px, 2vw, 20px) 12px; text-align: left; }
.ad--card.ad--adsense:has(ins[data-ad-status="unfilled"]) .ad__house { flex-direction: column; text-align: center; min-height: 220px; justify-content: center; }
@media (max-width: 640px) { .ad--adsense:has(ins[data-ad-status="unfilled"]) .ad__house { flex-direction: column; text-align: center; } }
.gallery > .ad { grid-column: 1 / -1; }
.grid > .ad--banner { grid-column: 1 / -1; }
.block-ad { margin-top: clamp(28px, 4vw, 48px); }
@media (max-width: 640px) {
  .ad--banner { flex-direction: column; text-align: center; padding-top: 34px; }
  .ad--banner .ad__copy { align-items: center; }
}

/* ---------- Suscripción (panel) ---------- */
.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.perks li { display: flex; gap: 12px; align-items: flex-start; }
.perks__icon { flex: none; width: 74px; display: grid; place-items: center; padding-top: 2px; color: #fff; }
.perks__icon .i, .perks__icon svg { width: 22px; height: 22px; }
.perks__icon .level { font-size: .7rem; }
.perks__have { font-size: .7rem; padding: 2px 8px; border-radius: var(--pill); background: rgba(255,255,255,.14); color: #fff; margin-left: 4px; white-space: nowrap; }
.perks li:not(.is-on) .perks__icon { opacity: .9; }

/* ---------- Admin: anuncios ---------- */
.ad-thumb { width: 120px; max-height: 48px; object-fit: contain; border-radius: 8px; background: rgba(255,255,255,.04); border: 1px solid var(--line); flex: none; }
.ad-status { display: inline-block; font-size: .76rem; padding: 2px 9px; border-radius: var(--pill); border: 1px solid var(--line-strong); color: var(--muted); white-space: nowrap; }
.ad-status--on { background: #fff; color: #0a0a0a; border-color: #fff; font-weight: 600; }
.slot-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.slot-opt { padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(255,255,255,.03); align-items: flex-start; }
.slot-opt:has(input:checked) { border-color: var(--line-strong); background: rgba(255,255,255,.08); }
.img-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.img-field { display: flex; flex-direction: column; gap: 10px; }
.img-field__preview { display: grid; place-items: center; border-radius: var(--r-md); border: 1px dashed var(--line-strong); background: rgba(255,255,255,.03); overflow: hidden; }
.img-field--banner .img-field__preview, .img-field--mobile .img-field__preview { aspect-ratio: 728 / 90; }
.img-field--mobile .img-field__preview { aspect-ratio: 320 / 100; max-width: 320px; }
.img-field--square .img-field__preview { aspect-ratio: 300 / 250; max-width: 300px; }
.img-field__preview img { width: 100%; height: 100%; object-fit: contain; }
.img-field__preview img[data-empty] { opacity: 0; }
.ad--live picture, .ad--live a { display: block; }

/* ---------- Admin: barberos ---------- */
.mail-ok, .mail-pending { display: inline-block; margin-left: 6px; font-size: .7rem; padding: 1px 7px; border-radius: var(--pill); white-space: nowrap; }
.mail-ok { color: var(--muted); border: 1px solid var(--line); }
.mail-pending { color: #0a0a0a; background: #ecd9a3; font-weight: 600; }
.mail-fail { color: #f0b4b4; }
.progress--sm { height: 4px; margin-top: 6px; width: 70px; }
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu__list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 280px; padding: 6px; border-radius: var(--r-md); display: flex; flex-direction: column; background: #151515 !important; border: 1px solid var(--line-strong); box-shadow: 0 20px 50px -10px rgba(0,0,0,.9) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.menu__list form { margin: 0; }
.menu__list button, .menu__list a { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; font-size: .88rem; text-decoration: none; cursor: pointer; }
.menu__list button:hover, .menu__list a:hover { background: rgba(255,255,255,.08); }
.menu__list .menu__danger { color: #f0b4b4; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; margin-top: 4px; }
.col-check { width: 34px; }
.col-check input { width: 17px; height: 17px; accent-color: #fff; cursor: pointer; }
.bulk-bar { position: sticky; top: 12px; z-index: 40; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-radius: var(--r-md); margin: 0 0 12px; background: #151515 !important; border: 1px solid var(--line-strong); }
.link-btn { background: none; border: 0; padding: 0; color: var(--text); text-decoration: underline; cursor: pointer; font: inherit; font-size: .88rem; }

/* ---------- Filtros del directorio: en móvil, tras un botón ---------- */
.filters__toggle { display: none; }
.filters__count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 6px; background: #fff; color: #0a0a0a; font-size: .74rem; font-weight: 600; }
@media (max-width: 720px) {
  .filters { margin-top: 16px; }
  .filters__toggle { display: inline-flex; align-items: center; gap: 8px; }
  .filters__body { display: none; }
  .filters[data-open] .filters__body { display: block; margin-top: 12px !important; }
}

/* ---------- Slider del banner principal (destacados y verificados) ---------- */
.hero-slides { display: grid; }
.hero-slide { grid-area: 1 / 1; display: block; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s; color: inherit; }
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity .7s ease, visibility 0s; }
.hero-dots { position: absolute; top: 12px; right: 14px; display: flex; gap: 5px; }
.hero-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.3); transition: background .4s, width .4s; }
.hero-dots i.on { background: #fff; width: 16px; border-radius: 99px; }
@media (prefers-reduced-motion: reduce) { .hero-slide, .hero-slide.is-active { transition: none; } }
.social-row { gap: 8px; margin: .7em 0 0; }
.turnstile { min-height: 65px; }
.legal { max-width: none; }
.legal h2 { font-size: var(--step-1); margin-top: 1.8em; }
.legal h2:first-child { margin-top: 0; }
.legal ul ul { margin: .4em 0 0; }
.legal .table-wrap { margin: 0 0 1.2em; }
.legal .table td, .legal .table th { vertical-align: top; font-size: .88rem; }
.msg-tpl { margin: 0 0 14px; }
.msg-tpl .textarea { margin-top: 8px; font-size: .86rem; line-height: 1.5; }
.mode-note { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--muted); font-size: .92rem; max-width: 560px; }
.mode-note strong { color: var(--text); }
.mode-note .shop-icon { flex: none; width: 20px; height: 20px; margin-top: 2px; }
