/* ─────────────────────────────────────────────────────────────
   GATITAS — Flujo de registro · estilos globales
   Paleta: rosa pastel + celeste muy claro + negro
   ───────────────────────────────────────────────────────────── */

:root {
  /* Acentos de marca */
  --pink:       #FBD7DC;
  --pink-deep:  #F5B6C0;
  --pink-soft:  #FDEAEE;
  --blue:       #E3F0FA;
  --blue-deep:  #C9E4F5;
  --blue-soft:  #F2F8FC;

  /* Tokens semánticos (modo claro) */
  --bg:           #FFFFFF;     /* fondo del documento */
  --surface:      #FFFFFF;     /* tarjetas, paneles */
  --surface-2:    #F2F8FC;     /* superficies sutiles (inputs, hovers) */
  --surface-3:    #F4F5F7;     /* fondos de chrome (inbox bar, etc.) */
  --ink:          #0A0A0A;     /* texto principal */
  --ink-2:        #3D3D3D;
  --ink-3:        #7A7A7A;
  --on-accent:    #0A0A0A;     /* texto sobre fondos rosa/celeste */
  --line:         rgba(10, 10, 10, 0.08);
  --shadow-soft:  0 30px 80px rgba(10, 10, 10, 0.08);
  --shadow-card:  0 24px 60px rgba(10, 10, 10, 0.06);

  /* Botón primario */
  --btn-primary-bg:   #0A0A0A;
  --btn-primary-fg:   #FFFFFF;

  /* Logo */
  --logo-bg:     #0A0A0A;
  --logo-fg:     #FBD7DC;
  --logo-accent: #F5B6C0;

  /* La pila que ya usaban los botones es la tipografia unica del sitio. */
  --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                  "Helvetica Neue", Arial, system-ui, sans-serif;
  --sans: var(--font-primary);
  --serif: var(--font-primary);
}

[data-theme="dark"] {
  /* En modo oscuro mantenemos los acentos pero los enviamos a tinte oscuro
     para no perder el cambio de fondo entre secciones rosadas y celestes */
  --pink:       #3A1E26;   /* rosa oscuro */
  --pink-deep:  #5A2A36;
  --pink-soft:  #2A1318;
  --blue:       #142434;   /* celeste oscuro */
  --blue-deep:  #1E3850;
  --blue-soft:  #16202C;

  --bg:         #0B0D10;
  --surface:    #15181D;
  --surface-2:  #1B1F25;
  --surface-3:  #0F1216;
  --ink:        #F5F2EE;
  --ink-2:      #B8B5B1;
  --ink-3:      #7B7773;
  --on-accent:  #F5F2EE;
  --line:       rgba(255, 245, 240, 0.10);
  --shadow-soft: 0 30px 80px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.4);

  --btn-primary-bg: #F5F2EE;
  --btn-primary-fg: #0A0A0A;

  --logo-bg:     #15181D;
  --logo-fg:     #5A2A36;
  --logo-accent: #FBD7DC;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .25s ease, color .25s ease;
}

button,
input,
textarea,
select,
optgroup,
option { font-family: inherit; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input  { font: inherit; }
input::placeholder,
textarea::placeholder { font-family: inherit; }
a      { color: inherit; text-decoration: none; }

/* Texto accesible que no se ve pero sigue disponible para lectores de
   pantalla — usado por el isotipo "Gatitas" (ver .logo-mark), que ahora
   dibuja la palabra como parte del SVG en vez de como texto plano. */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* shell */
.app { min-height: 100vh; display: flex; flex-direction: column; }

/* ─────────────────────────────────────────────────────────────
   Cabecera global
   ───────────────────────────────────────────────────────────── */
.header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 56px;
  position: relative; z-index: 5;
}
.header .brand { display: flex; align-items: center; gap: 10px; }
.header .logo-mark { height: 44px; width: auto; display: block; }
.header nav { display: flex; align-items: center; gap: 32px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.header .login {
  height: 38px; padding: 0 18px; border-radius: 100px;
  background: var(--btn-primary-bg); color: var(--btn-primary-fg);
  display: flex; align-items: center; font-weight: 600; font-size: 14px;
}
.header .burger {
  width: 38px; height: 38px; border-radius: 12px; background: var(--blue-soft);
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
}
.header .burger span { width: 16px; height: 1.6px; background: var(--ink); display: block; }

.header-mobile-actions {
  display: none; align-items: center; gap: 10px;
}

/* ─────────────────────────────────────────────────────────────
   User menu (header)
   ───────────────────────────────────────────────────────────── */
.user-menu { position: relative; display: inline-flex; }
.user-pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 4px 14px 4px 4px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--line);
  cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink);
  transition: background .15s, border-color .15s;
}
.user-pill:hover { background: var(--surface-2); border-color: var(--ink-3); }
.user-pill-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--ink);
}
.user-pill-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu-pop {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 30;
  min-width: 220px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  display: none; flex-direction: column; gap: 2px;
  animation: userPopIn .18s cubic-bezier(.2,.7,.3,1) both;
}
.user-menu.open .user-menu-pop { display: flex; }
.user-pill-chevron { transition: transform .15s ease; flex-shrink: 0; }
.user-menu.open .user-pill-chevron { transform: rotate(180deg); }
@keyframes userPopIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.user-menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  background: transparent; border: 0;
  font-size: 14px; font-weight: 500; color: var(--ink);
  text-align: left; cursor: pointer; text-decoration: none;
}
.user-menu-item:hover { background: var(--surface-2); }
.user-menu-item.logout { color: var(--ink-2); border-top: 1px solid var(--line); margin-top: 4px; padding-top: 12px; border-radius: 0 0 10px 10px; }
.user-menu-item.logout:hover { color: var(--ink); background: var(--pink-soft); }
.theme-toggle {
  width: 52px; height: 30px; border-radius: 100px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  position: relative;
  display: inline-flex; align-items: center; padding: 2px;
  cursor: pointer; transition: background .2s ease;
  flex-shrink: 0;
}
.theme-toggle-thumb {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  display: flex; align-items: center; justify-content: center;
  transition: transform .25s cubic-bezier(.4,.0,.2,1), background .2s;
}
.theme-toggle-thumb.dark {
  transform: translateX(22px);
  background: var(--ink);
}
[data-theme="dark"] .theme-toggle-thumb.dark {
  background: var(--surface-2);
}

/* Theme toggle flotante — esquina superior derecha en páginas sin header propio */
.theme-toggle-floating {
  position: fixed; top: 22px; right: 22px; z-index: 90;
  background: var(--surface);
  border-radius: 100px; padding: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--line);
}

/* Currency toggle (segmented USD / ARS) */
.currency-toggle {
  height: 30px; border-radius: 100px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 3px;
  display: inline-flex; align-items: center; gap: 2px;
  cursor: pointer;
  flex-shrink: 0;
  font-family: inherit;
}
.currency-toggle-opt {
  padding: 0 12px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  color: var(--ink-3);
  border-radius: 100px;
  transition: background .2s, color .2s;
}
.currency-toggle-opt.on {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
[data-theme="dark"] .currency-toggle-opt.on {
  background: var(--ink);
  color: var(--bg);
}

/* Precio en ARS bajo el precio en USD */
.plan-price-secondary,
.plan-modal-price-secondary {
  margin-top: 8px;
  font-size: 18px; color: var(--ink-2);
  letter-spacing: -0.2px;
  font-weight: 500;
}
.plan-price-secondary b,
.plan-modal-price-secondary b {
  color: var(--ink); font-weight: 700;
  font-size: 22px; letter-spacing: -0.3px;
}
.plan-modal-price-secondary {
  margin-top: 10px; font-size: 20px;
}
.plan-modal-price-secondary b { font-size: 24px; }

.rate-note {
  margin: 4px 0 24px; padding: 10px 14px;
  border-radius: 12px; background: var(--surface-2);
  font-size: 12px; color: var(--ink-3);
  display: flex; align-items: center; gap: 8px; justify-content: center;
  flex-wrap: wrap;
}
.rate-note b { color: var(--ink); font-weight: 600; }

@media (max-width: 760px) {
  .currency-toggle { height: 28px; }
  .currency-toggle-opt { padding: 0 10px; font-size: 10px; }
}

/* ─────────────────────────────────────────────────────────────
   Selector de idioma de interfaz (header) — mismo lenguaje visual que
   el menú de usuario (user-menu-pop): botón + popover.
   ───────────────────────────────────────────────────────────── */
.lang-menu { position: relative; display: inline-flex; flex-shrink: 0; }
.lang-trigger {
  height: 38px; padding: 0 12px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--line);
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink); cursor: pointer;
  font-size: 12px; font-weight: 700; letter-spacing: 0.4px;
  transition: background .15s, border-color .15s;
}
.lang-trigger:hover { background: var(--surface-2); border-color: var(--ink-3); }
.lang-menu-pop {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 30;
  min-width: 150px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  display: none; flex-direction: column; gap: 2px;
  animation: userPopIn .18s cubic-bezier(.2,.7,.3,1) both;
}
.lang-menu.open .lang-menu-pop { display: flex; }
.lang-menu-item {
  padding: 10px 12px; border-radius: 10px;
  background: transparent; border: 0; text-align: left; cursor: pointer;
  font-size: 14px; font-weight: 500; color: var(--ink);
}
.lang-menu-item:hover { background: var(--surface-2); }
.lang-menu-item.on { font-weight: 700; background: var(--pink-soft); }

/* ─────────────────────────────────────────────────────────────
   Filtros del directorio (header) — reutiliza .filter-trigger /
   .filter-trigger-badge tal cual (mismo botón que ya existía), y un
   panel desplegable con el mismo lenguaje visual que .user-menu-pop /
   .filter-drawer-field. En escritorio es un dropdown bajo el botón; en
   mobile pasa a ser una hoja fija con scroll propio (prioridad "mobile
   first" pedida para esta función).
   ───────────────────────────────────────────────────────────── */
.filters-menu { position: relative; display: inline-flex; flex-shrink: 0; }
/* Backdrop del panel de Filtros — solo existe visualmente en mobile (ver
   media query abajo); en desktop el panel es un dropdown chico y no lo
   necesita. Mismo lenguaje visual que .mobile-drawer-backdrop. Cubre toda
   la pantalla para que ningún toque atraviese hacia Explorar mientras el
   panel está abierto (bug: el fondo scrolleaba en vez del panel). */
.filters-panel-backdrop { display: none; }
.filters-panel {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 40;
  width: 360px; max-width: calc(100vw - 24px);
  max-height: min(560px, calc(100vh - 100px)); overflow-y: auto;
  overscroll-behavior: contain; /* que el scroll no "encadene" hacia el fondo al llegar al borde del panel */
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  display: none; flex-direction: column;
  animation: userPopIn .18s cubic-bezier(.2,.7,.3,1) both;
}
.filters-menu.open .filters-panel { display: flex; }
.filters-panel-head { padding: 18px 20px 12px; border-bottom: 1px solid var(--line); }
.filters-panel-title { font-family: var(--serif); font-weight: 500; font-size: 18px; color: var(--ink); }
.filters-panel-sub { margin-top: 3px; font-size: 12px; color: var(--ink-3); }
.filters-panel-body { padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; }
.filters-panel-group-label {
  margin-top: 2px; font-size: 11px; font-weight: 700; color: var(--ink-3);
  letter-spacing: 0.6px; text-transform: uppercase;
}
.filters-panel-field { display: flex; flex-direction: column; gap: 6px; }
.filters-panel-field select,
.filters-panel-field input[type="number"] {
  height: 46px; padding: 0 36px 0 14px; border-radius: 12px;
  background: var(--surface) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%237A7A7A' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat right 14px center;
  border: 1px solid var(--line);
  font: inherit; font-size: 14px; color: var(--ink);
  -webkit-appearance: none; appearance: none;
  cursor: pointer; transition: border-color .15s;
}
.filters-panel-field input[type="number"] { background-image: none; cursor: text; padding-right: 14px; }
.filters-panel-field select:disabled { opacity: 0.5; cursor: not-allowed; }
.filters-panel-field select:hover,
.filters-panel-field input[type="number"]:hover { border-color: var(--ink-3); }
.filters-panel-field select:focus,
.filters-panel-field input[type="number"]:focus { outline: none; border-color: var(--ink); }
.filters-panel-range { display: flex; align-items: center; gap: 8px; }
.filters-panel-range input { flex: 1; min-width: 0; }
.filters-panel-range-sep { color: var(--ink-3); font-size: 13px; flex-shrink: 0; }
.filters-panel-foot {
  padding: 14px 20px 18px; border-top: 1px solid var(--line);
  display: flex; gap: 10px;
}
.filters-panel-foot .btn { flex: 1; height: 44px; padding: 0 14px; font-size: 14px; }

@media (max-width: 900px) {
  .filters-menu.open .filters-panel-backdrop {
    display: block; position: fixed; inset: 0; z-index: 39;
    background: rgba(10, 10, 10, 0.45);
    animation: fadeIn .2s ease both;
  }
  .filters-panel {
    position: fixed; left: 12px; right: 12px; top: 78px; width: auto;
    max-width: none;
    /* dvh primero: en navegadores que no lo entienden queda el vh de
       abajo; donde sí (Safari/Chrome mobile modernos), usa el viewport
       "dinámico" que se ajusta cuando aparecen/desaparecen las barras del
       navegador, en vez del 100vh fijo que puede recortar el panel o
       dejarlo con altura de más. */
    max-height: calc(100vh - 100px);
    max-height: calc(100dvh - 100px);
  }
}
[data-theme="dark"] .filters-panel-backdrop { background: rgba(0, 0, 0, 0.65); }

/* 900px (no 760): con Filtros + selector de idioma sumados al nav, el
   header de escritorio ya no entra en un ancho "tablet" como 768px — se
   pasa a burger antes, coincidiendo con el breakpoint que ya usa el resto
   del sitio (.split) para ese mismo rango. */
@media (max-width: 900px) {
  .header { padding: 18px 22px; }
  .header nav { display: none; }
  .header-mobile-actions { display: flex; }
  .header .burger { display: flex; }
  .header-mobile-actions { gap: 6px; }
}

/* < 480px: la fila de acciones (Filtros + menú) no entra con etiquetas de
   texto — se deja solo el ícono/badge de Filtros, mismo patrón que ya usa
   el toggle de moneda al angostarse. */
@media (max-width: 480px) {
  .header { padding: 16px 16px; }
  .header .logo-mark { height: 37px; }
  .filter-trigger { padding: 0 10px; }
  .filter-trigger > span:not(.filter-trigger-badge) { display: none; }
}

/* ─────────────────────────────────────────────────────────────
   Drawer de navegación mobile (<=760px) — Explorar/Creadores/Publicá +
   tema + idioma + sesión, todo lo que en escritorio vive en <nav> y que
   en mobile no tenía dónde mostrarse (el burger no abría nada). Mismo
   lenguaje visual que el resto de los paneles (filter-drawer, user-menu).
   ───────────────────────────────────────────────────────────── */
.mobile-drawer { display: none; }
.mobile-drawer.open { display: block; }
.mobile-drawer-backdrop {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(10, 10, 10, 0.45);
  animation: fadeIn .2s ease both;
}
[data-theme="dark"] .mobile-drawer-backdrop { background: rgba(0, 0, 0, 0.65); }
.mobile-drawer-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 81;
  width: 84%; max-width: 340px;
  background: var(--surface); overflow-y: auto;
  padding: 90px 24px 24px;
  display: flex; flex-direction: column; gap: 22px;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.15);
  animation: drawerIn .25s cubic-bezier(.2,.7,.3,1) both;
}
.mobile-drawer-links { display: flex; flex-direction: column; gap: 4px; }
.mobile-drawer-link {
  padding: 14px 12px; border-radius: 12px;
  font-size: 17px; font-weight: 600; color: var(--ink);
  text-decoration: none;
}
.mobile-drawer-link:hover, .mobile-drawer-link.active { background: var(--surface-2); }
.mobile-drawer-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  padding-top: 18px; border-top: 1px solid var(--line);
}
/* El <span data-user-menu>/[data-lang-menu] que envuelve el botón (ver
   refreshUserMenu() en shared.js) es, a su vez, ítem del flex row de
   .mobile-drawer-row — sin ancho propio queda shrink-to-fit y el 100%
   de más abajo no tiene de qué ancho porcentual tomar. */
.mobile-drawer-row > [data-user-menu] { display: block; width: 100%; }
.mobile-drawer-row .user-menu,
.mobile-drawer-row .lang-menu {
  /* Bug "el submenú se abre hacia la derecha en mobile": .user-menu hereda
     display:inline-flex + flex-direction:row de la regla base (pensada
     para el dropdown de escritorio, botón+popover superpuesto). Acá el
     popover pasa a position:static (ver regla siguiente), así que sin
     flex-direction:column queda como un ítem más DENTRO de esa fila,
     sentado a la derecha del botón en vez de debajo — no era un problema
     de position/z-index sino de dirección del flex contenedor. */
  position: static; width: 100%;
  display: flex; flex-direction: column; align-items: stretch;
}
.mobile-drawer-row .user-menu-pop,
.mobile-drawer-row .lang-menu-pop { position: static; width: 100%; display: flex; margin-top: 10px; box-shadow: none; border: 0; padding: 0; animation: none; }
.mobile-drawer-row .user-menu:not(.open) .user-menu-pop,
.mobile-drawer-row .lang-menu:not(.open) .lang-menu-pop { display: none; }
.mobile-drawer-row .login { width: 100%; justify-content: center; }

/* ─────────────────────────────────────────────────────────────
   Layout split (brand panel + form panel) en escritorio,
   apilado en móvil
   ───────────────────────────────────────────────────────────── */
.split { flex: 1; display: flex; min-height: 0; }
.split .brand-panel,
.split .form-panel { flex: 1; min-width: 0; }

@media (max-width: 900px) {
  .split { flex-direction: column; }
  .split .brand-panel { display: none; }
}

/* Brand panel */
.brand-panel {
  position: relative; overflow: hidden;
  padding: 56px;
  display: flex; flex-direction: column;
}
.brand-panel.centered {
  align-items: center; text-align: center;
  padding-top: 80px;
}
.brand-panel .brand.centered {
  flex-direction: column; align-items: center; gap: 14px;
}
.brand-panel .brand.centered .logo-mark {
  height: 110px; width: auto; color: var(--ink);
}
.brand-panel .brand-link {
  transition: transform .15s ease, opacity .15s;
}
.brand-panel .brand-link:hover { transform: translateY(-2px); }

/* Logo + wordmark dentro del panel de marca */
.brand-panel .brand {
  display: flex; align-items: center; gap: 10px;
  position: relative; z-index: 1;
}
.brand-panel .logo-mark {
  height: 36px; width: auto; color: var(--ink);
}
.brand-panel .blob {
  position: absolute; border-radius: 50%; pointer-events: none;
}
.brand-panel .blob.a { width: 460px; height: 460px; top: -180px; right: -160px; }
.brand-panel .blob.b { width: 260px; height: 260px; bottom: -80px; left: -90px; opacity: 0.6; }
.brand-panel .quote {
  margin-top: auto; position: relative; max-width: 380px;
  font-family: var(--serif); font-weight: 500;
  font-size: 38px; line-height: 1.1; letter-spacing: -1.2px; color: var(--ink);
  text-wrap: pretty;
}
.brand-panel .quote.small {
  font-size: 24px; letter-spacing: -0.6px;
  max-width: 340px;
  font-style: italic; font-weight: 400;
  color: var(--ink-2);
}
.brand-panel .quote.small::before,
.brand-panel .quote.small::after { content: ''; }
.brand-panel.centered .quote {
  max-width: 460px;
  margin: 60px auto auto;
  font-size: 40px; line-height: 1.12;
}
.brand-panel .author {
  margin-top: 24px; display: flex; align-items: center; gap: 12px; position: relative;
}
.brand-panel .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-soft), var(--blue-soft));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 16px; font-weight: 600; color: var(--ink);
}
.brand-panel .author .name { font-size: 14px; font-weight: 600; color: var(--ink); }
.brand-panel .author .role { font-size: 13px; color: var(--ink-2); }

/* Form panel */
.form-panel {
  background: var(--surface);
  padding: 40px 56px;
  display: flex; flex-direction: column;
}
.form-panel .top-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px;
}
.form-panel .step-count { font-size: 13px; color: var(--ink-3); }
.form-panel .container {
  margin: auto; width: 100%; max-width: 420px;
  display: flex; flex-direction: column; gap: 24px;
}
.form-panel .footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 24px; gap: 16px;
}
.form-panel .footer .left { font-size: 14px; color: var(--ink-2); }
.form-panel h1 {
  margin: 0; font-family: var(--serif); font-weight: 500;
  font-size: 36px; line-height: 1.08; letter-spacing: -1px; color: var(--ink);
}
.form-panel .sub { margin-top: 10px; font-size: 15px; color: var(--ink-3); line-height: 1.45; }

@media (max-width: 760px) {
  .form-panel { padding: 24px; }
  .form-panel h1 { font-size: 30px; }
  .form-panel .footer { flex-direction: column-reverse; align-items: stretch; }
  .form-panel .footer .left { text-align: center; }
}

/* ─────────────────────────────────────────────────────────────
   Step dots
   ───────────────────────────────────────────────────────────── */
.dots { display: flex; gap: 6px; }
.dots .dot {
  width: 8px; height: 8px; border-radius: 8px;
  background: rgba(10, 10, 10, 0.18); transition: all .25s ease;
}
.dots .dot.on { width: 28px; background: var(--ink); }

/* ─────────────────────────────────────────────────────────────
   Inputs
   ───────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 12px; font-weight: 600; color: var(--ink-3);
  letter-spacing: 0.4px; text-transform: uppercase;
}
.field .input {
  height: 52px; padding: 0 16px; border-radius: 12px;
  background: var(--blue-soft);
  border: 1.5px solid transparent;
  display: flex; align-items: center; gap: 8px;
  transition: background .15s, border-color .15s;
}
.field .input:focus-within {
  background: var(--surface); border-color: var(--ink);
}
.field input {
  flex: 1; min-width: 0; height: 100%;
  border: 0; background: transparent; outline: none;
  font-size: 15px; color: var(--ink); letter-spacing: -0.1px;
}
.field input::placeholder { color: var(--ink-3); }
.field select {
  width: 100%; max-width: 100%; box-sizing: border-box;
  height: 52px; padding: 0 40px 0 16px; border-radius: 12px;
  background: var(--blue-soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%237A7A7A' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat right 16px center;
  border: 1.5px solid transparent;
  font: inherit; font-size: 15px; color: var(--ink);
  -webkit-appearance: none; appearance: none;
  cursor: pointer; transition: background-color .15s, border-color .15s;
}
.field select:focus { background-color: var(--surface); border-color: var(--ink); outline: none; }
.field select:disabled { opacity: 0.5; cursor: not-allowed; }
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; min-width: 0; }
.field .trailing {
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  background: none; padding: 0;
}
.field .ok {
  width: 18px; height: 18px; border-radius: 50%; background: #0a9c5a;
  display: flex; align-items: center; justify-content: center;
}

/* Botones */
.btn {
  height: 54px; padding: 0 28px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.2px;
  transition: transform .08s ease, opacity .15s;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.primary { background: var(--btn-primary-bg); color: var(--btn-primary-fg); }
.btn.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn.executive {
  background: linear-gradient(180deg, #6B7480 0%, #4A525E 100%);
  color: #FFFFFF;
  border: 1px solid #3A424E;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 1px 2px rgba(10, 10, 10, 0.15);
  letter-spacing: 0.1px;
}
.btn.executive:hover {
  background: linear-gradient(180deg, #74808E 0%, #525B68 100%);
}
[data-theme="dark"] .btn.executive {
  background: linear-gradient(180deg, #8A95A3 0%, #5F6772 100%);
  color: #FFFFFF;
  border-color: #2A2F38;
}
[data-theme="dark"] .btn.executive:hover {
  background: linear-gradient(180deg, #95A1B0 0%, #6A737F 100%);
}
.btn.full { width: 100%; padding: 0; }

/* Social row */
.social-row { display: flex; gap: 10px; justify-content: center; }
.social-btn {
  flex: 1; max-width: 320px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: 15px; color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: background .15s, border-color .15s, transform .08s;
}
.social-btn:hover { background: var(--surface-2); border-color: var(--ink-3); }
.social-btn:active { transform: scale(0.98); }
.social-btn.google { background: var(--surface); }
.social-btn.apple  { background: var(--pink-soft); }

/* Divider */
.divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--ink-3); font-size: 11px; letter-spacing: 0.6px;
}
.divider .line { flex: 1; height: 1px; background: var(--line); }

/* Checkbox */
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.check .box {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--surface); border: 1.5px solid var(--ink);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background .15s;
}
.check input { display: none; }
.check input:checked ~ .box { background: var(--ink); }
.check input:not(:checked) ~ .box svg { opacity: 0; }
.check .label { font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.check .label a { font-weight: 600; color: var(--ink); text-decoration: underline; }

/* OTP */
.otp { display: flex; gap: 10px; justify-content: space-between; }
.otp input {
  width: 100%; height: 64px; border-radius: 14px;
  background: var(--blue-soft); border: 1.5px solid transparent;
  text-align: center; font-size: 26px; font-weight: 600; color: var(--ink);
  outline: none; transition: border-color .15s, background .15s;
}
.otp input:focus { background: var(--surface); border-color: var(--ink); }
.otp input:not(:placeholder-shown) { background: var(--blue-soft); }

/* Tag chips */
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  padding: 12px 18px; border-radius: 100px;
  background: var(--surface); border: 1.5px solid var(--line);
  font-size: 14px; font-weight: 500; color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px;
  user-select: none;
}
.tag.on { border-color: var(--ink); }
.tag.on.pink { background: var(--pink); }
.tag.on.blue { background: var(--blue); }

/* Avatar editor */
.avatar-row { display: flex; align-items: center; gap: 16px; }
.avatar-big {
  width: 84px; height: 84px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 32px; font-weight: 500; color: var(--ink);
  position: relative;
}
.avatar-big .pencil {
  position: absolute; bottom: -2px; right: -2px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--ink);
  border: 3px solid #fff;
  display: flex; align-items: center; justify-content: center;
}

/* Role select */
.roles { display: flex; gap: 10px; }
.role {
  flex: 1; height: 48px; border-radius: 12px;
  background: var(--blue-soft);
  border: 1.5px solid transparent;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; color: var(--ink);
}
.role.on { background: var(--pink); border-color: var(--ink); }

/* Tabs — Crear cuenta / Iniciar sesión (AuthStep) */
.tabs { display: flex; gap: 6px; padding: 4px; border-radius: 14px; background: var(--surface-2); }
.tab {
  flex: 1; height: 42px; border: 0; border-radius: 10px;
  background: transparent; color: var(--ink-2);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .15s, color .15s;
}
.tab.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }

/* Aviso informativo dentro de un formulario (distinto del bloque de error,
   que usa --pink-soft) — "ya tenés cuenta", "revisá tu correo", etc. */
.auth-notice {
  padding: 12px 14px; border-radius: 12px;
  background: var(--blue-soft); color: var(--ink);
  font-size: 13px; font-weight: 500; line-height: 1.5;
}

/* Welcome hero */
.welcome {
  flex: 1; background: var(--pink);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.welcome .blob {
  position: absolute; border-radius: 50%; pointer-events: none;
}
.welcome .blob.a { width: 520px; height: 520px; top: -180px; right: -120px; background: var(--blue); }
.welcome .blob.b { width: 320px; height: 320px; bottom: -120px; left: -120px; background: var(--pink-deep); opacity: 0.6; }
.welcome .blob.c { width: 160px; height: 160px; top: 45%; right: 8%; background: var(--blue-deep); opacity: 0.4; }

.hero {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 40px 80px; position: relative;
}
.hero-inner { max-width: 760px; text-align: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 100px; background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px; font-weight: 500; color: var(--ink);
  margin-bottom: 24px;
}
.pill .dot-pink { width: 8px; height: 8px; border-radius: 50%; background: var(--pink-deep); }
.hero h1 {
  margin: 0; font-family: var(--serif); font-weight: 500;
  font-size: 78px; line-height: 1.02; letter-spacing: -2.5px;
  text-wrap: balance;
}
.hero h1 i { font-style: italic; }
.hero p {
  margin: 20px auto 0; max-width: 540px;
  font-size: 18px; line-height: 1.5; color: var(--ink-2);
}
.hero .cta { margin-top: 32px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .stats { margin-top: 56px; display: flex; gap: 36px; justify-content: center; flex-wrap: wrap; }
.hero .stat .n { font-family: var(--serif); font-size: 32px; letter-spacing: -1px; }
.hero .stat .t { font-size: 13px; color: var(--ink-2); }

/* Welcome — minimal: logo + nombre + tagline + CTA */
.welcome-minimal {
  align-items: center; justify-content: center;
  padding: 24px;
}
.welcome-theme {
  position: absolute; top: 22px; right: 22px; z-index: 5;
}
.welcome-stack {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 28px;
  max-width: 560px;
}
.welcome-brand {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.welcome-wordmark {
  font-family: var(--serif); font-weight: 500;
  font-size: 64px; letter-spacing: -2px; color: var(--ink); line-height: 1;
}
.welcome-tagline {
  margin: 0;
  font-family: var(--serif); font-weight: 400;
  font-size: 22px; line-height: 1.35; letter-spacing: -0.3px;
  color: var(--ink-2); text-wrap: balance;
  max-width: 480px;
}
.welcome-tagline i { font-style: italic; color: var(--ink); }
.welcome-cta {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 28px; border-radius: 10px;
  background: #0A0A0A; color: #FFFFFF;
  font-size: 15px; font-weight: 600; letter-spacing: -0.1px;
  cursor: pointer; transition: transform .08s ease, opacity .15s;
  text-decoration: none;
}
.welcome-cta:hover { opacity: 0.92; }
.welcome-cta:active { transform: scale(0.98); }
[data-theme="dark"] .welcome-cta {
  background: #F5F2EE; color: #0A0A0A;
}

/* Done screen */
.done {
  flex: 1; background: var(--blue);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.done .blob { position: absolute; border-radius: 50%; pointer-events: none; }
.done .blob.a { width: 460px; height: 460px; top: -180px; left: -160px; background: var(--pink); }
.done .blob.b { width: 240px; height: 240px; bottom: -80px; right: -60px; background: var(--blue-deep); }
.done .body {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 32px 80px; position: relative;
}
.done .card {
  background: var(--surface); border-radius: 24px; padding: 48px;
  width: 100%; max-width: 560px;
  box-shadow: var(--shadow-soft);
}
.check-mark {
  width: 64px; height: 64px; border-radius: 20px; background: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.done h1 {
  margin: 24px 0 12px; font-family: var(--serif); font-weight: 500;
  font-size: 44px; line-height: 1.05; letter-spacing: -1.5px;
}
.done h1 i { font-style: italic; }
.done .lead { font-size: 16px; color: var(--ink-2); line-height: 1.5; }
.next-list { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.next-item {
  padding: 16px; border-radius: 14px; background: var(--blue-soft);
  border: 1.5px solid transparent;
  display: flex; align-items: center; gap: 14px;
}
.next-item.primary { background: var(--pink-soft); border-color: var(--ink); }
.next-num {
  width: 28px; height: 28px; border-radius: 8px; background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--ink);
}
.next-item .t { font-size: 14px; font-weight: 600; color: var(--ink); }
.next-item .d { font-size: 12px; color: var(--ink-3); }
.done .actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 760px) {
  .done .body { padding: 16px 22px 32px; }
  .done .card { padding: 28px; }
  .done h1 { font-size: 32px; }
}

/* ─────────────────────────────────────────────────────────────
   Filter trigger (botón compacto) + drawer
   ───────────────────────────────────────────────────────────── */
.filter-trigger {
  height: 42px; padding: 0 16px; border-radius: 100px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: border-color .15s, background .15s;
  flex-shrink: 0;
}
.filter-trigger:hover { border-color: var(--ink); background: var(--surface-2); }
.filter-trigger-badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 100px;
  background: var(--btn-primary-bg); color: var(--btn-primary-fg);
  font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}

.filter-drawer-backdrop {
  position: fixed; inset: 0; background: rgba(10, 10, 10, 0.45);
  z-index: 80; animation: fadeIn .2s ease both;
}
[data-theme="dark"] .filter-drawer-backdrop { background: rgba(0, 0, 0, 0.65); }

.filter-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 81;
  width: 100%; max-width: 420px;
  background: var(--surface); display: flex; flex-direction: column;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.15);
  animation: drawerIn .25s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes drawerIn {
  from { transform: translateX(40px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.filter-drawer-head {
  padding: 22px 24px 16px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  border-bottom: 1px solid var(--line);
}
.filter-drawer-title {
  font-family: var(--serif); font-weight: 500;
  font-size: 22px; letter-spacing: -0.4px; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.filter-drawer-sub { margin-top: 4px; font-size: 13px; color: var(--ink-3); }
.filter-drawer-close {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface-2); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; cursor: pointer;
}
.filter-drawer-close:hover { background: var(--pink-soft); }

.filter-drawer-body {
  flex: 1; overflow-y: auto;
  padding: 20px 24px;
  display: flex; flex-direction: column; gap: 18px;
}
.filter-drawer-field { display: flex; flex-direction: column; gap: 6px; }

.filter-drawer-foot {
  padding: 16px 24px 24px;
  border-top: 1px solid var(--line);
  display: flex; gap: 10px;
}
.filter-drawer-foot .btn { flex: 1; height: 46px; padding: 0 16px; }

@media (max-width: 760px) {
  .filter-drawer { max-width: 100%; border-radius: 18px 18px 0 0; top: 10vh; }
  @keyframes drawerIn {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
}

/* Acomodar la fila de chips + trigger en la misma línea */
.catalog-filters {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  padding: 0 56px 24px;
}
.catalog-filters .chip-row {
  display: flex; gap: 8px; flex-wrap: wrap; flex: 1; min-width: 0;
}
.catalog-filters .trigger-slot { margin-left: auto; }
@media (max-width: 760px) {
  .catalog-filters { padding: 0 16px 16px; }
  .catalog-filters .trigger-slot { margin-left: 0; width: 100%; }
  .filter-trigger { width: 100%; justify-content: center; }
}

/* ─────────────────────────────────────────────────────────────
   Filters panel
   ───────────────────────────────────────────────────────────── */
.filters-panel {
  padding: 0 56px 20px;
}
.filters-row {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end;
}
.filter {
  display: flex; flex-direction: column; gap: 5px;
  flex: 1; min-width: 160px;
}
.filter-label {
  font-size: 11px; font-weight: 700; color: var(--ink-3);
  letter-spacing: 0.5px; text-transform: uppercase;
  padding-left: 4px;
}
.filter select,
.filter-drawer-field select {
  height: 46px; padding: 0 36px 0 14px; border-radius: 12px;
  background: var(--surface) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%237A7A7A' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat right 14px center;
  border: 1px solid var(--line);
  font: inherit; font-size: 14px; color: var(--ink);
  -webkit-appearance: none; appearance: none;
  cursor: pointer; transition: border-color .15s;
}
.filter select:hover,
.filter-drawer-field select:hover { border-color: var(--ink-3); }
.filter select:focus,
.filter-drawer-field select:focus { outline: none; border-color: var(--ink); }
.filter-clear {
  height: 42px; padding: 0 16px; border-radius: 12px;
  background: var(--surface-2); color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; transition: background .15s;
  align-self: flex-end;
}
.filter-clear:hover:not(:disabled) { background: var(--pink-soft); }
.filter-clear:disabled { opacity: 0.4; cursor: not-allowed; }

.grid-empty {
  grid-column: 1 / -1;
  padding: 64px 24px; text-align: center;
  background: var(--surface-2); border-radius: 18px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.grid-empty h3 {
  margin: 0; font-family: var(--serif); font-weight: 500;
  font-size: 22px; letter-spacing: -0.4px; color: var(--ink);
}
.grid-empty p { margin: 0; font-size: 14px; color: var(--ink-3); }

@media (max-width: 760px) {
  .filters-panel { padding: 0 16px 16px; }
  .filters-row { gap: 8px; }
  .filter { min-width: calc(50% - 4px); flex-basis: calc(50% - 4px); }
  .filter-clear { width: 100%; justify-content: center; margin-top: 4px; }
}

/* Catalog grid (explorar / creadores)
   ───────────────────────────────────────────────────────────── */
.catalog-page { min-height: 100vh; background: var(--bg); display: flex; flex-direction: column; }

.catalog-hero {
  padding: 48px 56px 24px;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.catalog-hero h1 {
  margin: 0; font-family: var(--serif); font-weight: 500;
  font-size: 56px; line-height: 1.05; letter-spacing: -1.6px; color: var(--ink);
  max-width: 700px; text-wrap: balance;
}
.catalog-hero h1 i { font-style: italic; }
.catalog-hero .sub {
  margin-top: 10px; font-size: 16px; color: var(--ink-2); max-width: 540px;
}

.catalog-filters {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 0 56px 24px;
}
.chip {
  padding: 9px 16px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  cursor: pointer; user-select: none; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: var(--ink-3); }
.chip.on {
  background: var(--btn-primary-bg); color: var(--btn-primary-fg);
  border-color: var(--btn-primary-bg);
}

.grid {
  display: grid; gap: 14px;
  padding: 0 56px 64px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.card {
  background: var(--surface); border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  cursor: pointer; transition: transform .18s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
a.card { text-decoration: none; color: inherit; }

.card-cover {
  aspect-ratio: 4 / 5; position: relative;
  background-size: cover; background-position: center;
  display: flex; align-items: flex-end; padding: 12px;
}
.card-cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0.05) 40%, transparent 60%);
  pointer-events: none;
}
.card-tag {
  position: relative; z-index: 1;
  padding: 4px 10px; border-radius: 100px;
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(6px);
  font-size: 11px; font-weight: 600; color: #0A0A0A;
  letter-spacing: 0.4px; text-transform: uppercase;
}
.card-price {
  position: absolute; top: 12px; right: 12px; z-index: 1;
  padding: 5px 11px; border-radius: 100px;
  background: var(--surface); color: var(--ink);
  font-size: 13px; font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.card-body { padding: 14px 14px 16px; }
.card-name {
  display: flex; align-items: center; gap: 5px;
  font-size: 15px; font-weight: 600; color: var(--ink);
  line-height: 1.2;
}
.card-meta {
  margin-top: 4px; font-size: 13px; color: var(--ink-3);
  display: flex; align-items: center; gap: 6px;
}
.card-meta .dot {
  width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3);
}

@media (max-width: 760px) {
  .catalog-hero { padding: 28px 22px 16px; }
  .catalog-hero h1 { font-size: 36px; letter-spacing: -1px; }
  .catalog-filters { padding: 0 22px 18px; gap: 6px; }
  .grid {
    padding: 0 16px 40px; gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .card-cover { padding: 10px; }
  .card-body { padding: 12px 12px 14px; }
  .card-name { font-size: 14px; }
  .card-meta { font-size: 12px; }
}

/* ─────────────────────────────────────────────────────────────
   Precios (pricing)
   ───────────────────────────────────────────────────────────── */
.pricing-hero { padding: 64px 56px 24px; text-align: center; }
.pricing-hero h1 {
  margin: 0; font-family: var(--serif); font-weight: 500;
  font-size: 64px; line-height: 1.04; letter-spacing: -2px; color: var(--ink);
  text-wrap: balance; max-width: 800px; margin: 0 auto;
}
.pricing-hero h1 i { font-style: italic; }
.pricing-hero p {
  margin: 18px auto 0; max-width: 560px; font-size: 17px; color: var(--ink-2); line-height: 1.5;
}
.pricing-toggle {
  margin: 28px auto 0; display: inline-flex; padding: 4px;
  background: var(--surface-2); border-radius: 100px;
}
.pricing-toggle button {
  padding: 8px 18px; border-radius: 100px;
  font-size: 13px; font-weight: 600; color: var(--ink-3);
}
.pricing-toggle button.on {
  background: var(--surface); color: var(--ink);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.pricing-grid {
  display: grid; gap: 18px;
  padding: 36px 56px 56px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1200px; margin: 0 auto;
}
.plan {
  background: var(--surface); border-radius: 22px;
  border: 1px solid var(--line); padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
  position: relative;
  cursor: pointer; transition: transform .18s ease, box-shadow .2s ease, border-color .15s;
}
.plan:hover { transform: translateY(-2px); border-color: var(--ink-3); box-shadow: var(--shadow-card); }
.plan:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.plan.featured {
  border-color: var(--ink); border-width: 1.5px;
  box-shadow: var(--shadow-card);
}
.plan-pop {
  position: absolute; top: -12px; left: 32px;
  background: var(--pink); color: var(--on-accent);
  padding: 4px 12px; border-radius: 100px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
  border: 1.5px solid var(--ink);
}
.plan-name {
  font-family: var(--serif); font-weight: 500;
  font-size: 24px; letter-spacing: -0.5px; color: var(--ink);
}
.plan-price {
  display: flex; align-items: baseline; gap: 6px;
}
.plan-price .n {
  font-family: var(--serif); font-weight: 500;
  font-size: 52px; letter-spacing: -1.5px; color: var(--ink);
}
.plan-price .u { font-size: 14px; color: var(--ink-3); }
.plan-desc { font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.plan-feats { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.plan-feats li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--ink-2); line-height: 1.4;
}
.plan-feats .check {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue-deep); flex-shrink: 0; margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
}
.plan .btn { width: 100%; margin-top: auto; }

.plan-see-more {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: transparent; padding: 6px 0;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  border: 0; cursor: pointer;
}
.plan-see-more:hover { color: var(--ink); }
.plan-see-more svg { transition: transform .15s; }
.plan-see-more:hover svg { transform: translateX(2px); }

/* Plan detail modal */
.plan-modal-backdrop {
  position: fixed; inset: 0; background: rgba(10, 10, 10, 0.55);
  z-index: 90; animation: fadeIn .2s ease both;
}
[data-theme="dark"] .plan-modal-backdrop { background: rgba(0, 0, 0, 0.7); }
.plan-modal {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 91; width: calc(100% - 32px); max-width: 640px; max-height: 86vh;
  background: var(--surface); border-radius: 20px;
  display: flex; flex-direction: column;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: modalIn .25s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes modalIn {
  from { opacity: 0; transform: translate(-50%, -45%) scale(0.97); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.plan-modal-head {
  padding: 22px 24px 16px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  border-bottom: 1px solid var(--line);
}
.plan-modal-tag {
  font-size: 11px; font-weight: 700; color: var(--ink-3);
  letter-spacing: 0.6px; text-transform: uppercase;
}
.plan-modal-title {
  margin-top: 6px; font-family: var(--serif); font-weight: 500;
  font-size: 22px; letter-spacing: -0.4px; color: var(--ink); line-height: 1.25;
}
.plan-modal-close {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface-2); color: var(--ink);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  cursor: pointer;
}
.plan-modal-close:hover { background: var(--pink-soft); }

.plan-modal-body {
  flex: 1; overflow-y: auto; padding: 20px 24px;
}
.plan-modal-price {
  display: flex; align-items: flex-start; gap: 18px; flex-wrap: wrap;
  padding: 18px; border-radius: 14px; background: var(--surface-2);
  margin-bottom: 22px;
}
.plan-modal-price-n {
  font-family: var(--serif); font-weight: 500;
  font-size: 44px; line-height: 1; letter-spacing: -1.5px; color: var(--ink);
}
.plan-modal-price-u { margin-top: 4px; font-size: 13px; color: var(--ink-3); }
.plan-modal-ideal {
  flex: 1; min-width: 220px;
  font-size: 14px; color: var(--ink-2); line-height: 1.45;
}

.plan-detail-sub {
  margin: 0 0 12px; font-size: 12px; font-weight: 700; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.6px;
}
.plan-detail-incl {
  list-style: none; padding: 0; margin: 0 0 22px;
  display: flex; flex-direction: column;
}
.plan-detail-incl li {
  display: grid; grid-template-columns: 160px 1fr; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.plan-detail-incl li:last-child { border-bottom: 0; }
.plan-detail-key {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--ink);
}
.plan-detail-val {
  font-size: 14px; line-height: 1.5; color: var(--ink-2);
}
.plan-detail-excl {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.plan-detail-excl li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--ink-3); padding: 8px 12px;
  background: var(--surface-2); border-radius: 10px;
}

.plan-modal-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  display: flex; gap: 10px; justify-content: flex-end;
}
.plan-modal-foot .btn { height: 46px; padding: 0 22px; }
.plan-modal-foot .btn.ghost { min-width: 100px; }

@media (max-width: 760px) {
  .plan-modal { max-height: 90vh; }
  .plan-modal-head { padding: 18px 18px 14px; }
  .plan-modal-title { font-size: 18px; }
  .plan-modal-body { padding: 16px 18px; }
  .plan-modal-price-n { font-size: 36px; }
  .plan-detail-incl li {
    grid-template-columns: 1fr; gap: 4px; padding: 14px 0;
  }
  .plan-modal-foot { padding: 14px 18px; flex-direction: column-reverse; }
  .plan-modal-foot .btn { width: 100%; }
}

@media (max-width: 900px) {
  .pricing-hero { padding: 36px 22px 16px; }
  .pricing-hero h1 { font-size: 40px; letter-spacing: -1px; }
  .pricing-hero p { font-size: 15px; }
  .pricing-grid { padding: 24px 16px 48px; grid-template-columns: 1fr; }
  .plan { padding: 24px; }
}

/* ─────────────────────────────────────────────────────────────
   Publicá con nosotros — plan único PRO Max.
   Tarjeta oscura e independiente del tema claro/oscuro del sitio (a
   propósito: es una tarjeta "premium", no una superficie más).
   ───────────────────────────────────────────────────────────── */
.plan-max-wrap {
  display: flex; justify-content: center;
  padding: 12px 24px 64px;
}
.plan-max {
  width: 100%; max-width: 440px;
  background: #0A0A0A; color: #F5F2EE;
  border-radius: 28px; border: 1px solid rgba(245, 242, 238, 0.14);
  padding: 46px 36px 36px;
  display: flex; flex-direction: column; gap: 16px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.plan-max-badge {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #FBD7DC, #F5B6C0);
  color: #0A0A0A;
  padding: 7px 18px; border-radius: 100px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}
.plan-max-name {
  font-family: var(--serif); font-weight: 500;
  font-size: 30px; letter-spacing: -0.6px; text-align: center; margin-top: 6px;
}
.plan-max-free { text-align: center; font-size: 13.5px; font-weight: 600; color: #F5B6C0; }
.plan-max-desc {
  text-align: center; font-size: 14.5px; color: rgba(245, 242, 238, 0.72); line-height: 1.5;
  padding: 0 6px;
}
.plan-max-feats { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 12px; }
.plan-max-feats li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: rgba(245, 242, 238, 0.86); line-height: 1.4;
}
.plan-max-feats .check {
  width: 18px; height: 18px; border-radius: 50%;
  background: #F5B6C0; flex-shrink: 0; margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
}
.plan-max .btn.primary {
  width: 100%; height: 52px; margin-top: 8px;
  background: #F5F2EE; color: #0A0A0A; font-size: 15px;
}
.plan-max .btn.primary:hover { opacity: 0.92; }
.plan-max .btn.primary:disabled { opacity: 0.5; cursor: default; }

@media (max-width: 640px) {
  .plan-max-wrap { padding: 8px 16px 48px; }
  .plan-max { padding: 40px 22px 28px; border-radius: 22px; }
}

/* ─────────────────────────────────────────────────────────────
   Botón WhatsApp reutilizable (mismo estilo que el de la ficha de
   creadora / vender.html) — usado en todos los CTA de esta página.
   ───────────────────────────────────────────────────────────── */
.btn-whatsapp {
  background: #8AE0A1; color: #0A3D14;
}
.btn-whatsapp:hover { background: #9CE7B1; }
[data-theme="dark"] .btn-whatsapp { background: #8AE0A1; color: #0A3D14; }
[data-theme="dark"] .btn-whatsapp:hover { background: #9CE7B1; }

/* ─────────────────────────────────────────────────────────────
   Publicá con nosotros — secciones informativas (asesoría, requisitos,
   procedimiento, CTA final). Reusan los tokens de color del sitio y el
   mismo patrón de tarjetas que .confi-grid/.confi-card.
   ───────────────────────────────────────────────────────────── */
.pc-section { padding: 8px 24px; }
.pc-section-inner { max-width: 1100px; margin: 0 auto; }
.pc-section h2 {
  margin: 0 0 8px; font-family: var(--serif); font-weight: 500;
  font-size: 26px; letter-spacing: -0.5px; color: var(--ink);
}
.pc-section-lead { margin: 0 0 4px; font-size: 14.5px; color: var(--ink-2); line-height: 1.55; max-width: 640px; }
.pc-section-split {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  background: var(--surface-2); border-radius: 20px; padding: 32px 36px;
}
.pc-section-split p { margin: 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.55; max-width: 520px; }
.pc-section-cta { flex-shrink: 0; }
.pc-section-cta .btn { height: 48px; padding: 0 24px; white-space: nowrap; }

.pc-steps { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.pc-step { display: flex; align-items: flex-start; gap: 16px; }
.pc-step-n {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--pink); color: var(--on-accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.pc-step h3 { margin: 0 0 3px; font-size: 15px; font-weight: 700; color: var(--ink); }
.pc-step p { margin: 0; font-size: 13.5px; color: var(--ink-3); line-height: 1.45; }

.pc-final-cta {
  margin-top: 8px;
  padding: 48px 24px 56px;
}
.pc-final-cta .pc-section-inner { max-width: 560px; }
.pc-final-cta-btn { height: 52px; padding: 0 32px; font-size: 15px; }

/* Separador discreto entre secciones (usado en publica-con-nosotros.html) —
   mismo criterio sutil que .legal-section (1px, sin adornos). */
.pc-divider { max-width: 900px; margin: 8px auto; border: none; border-top: 1px solid var(--line); }

@media (max-width: 760px) {
  .pc-section { padding: 8px 16px; }
  .pc-section-split { flex-direction: column; align-items: stretch; text-align: center; padding: 26px 22px; }
  .pc-section-split p { max-width: none; }
  .pc-section-cta .btn { width: 100%; }
}
@media (max-width: 480px) {
  .pc-section h2 { font-size: 22px; }
  .pc-final-cta { padding: 36px 16px 44px; }
  .pc-final-cta-btn { width: 100%; }
}

/* ─────────────────────────────────────────────────────────────
   Checkout modal (Contratar plan)
   ───────────────────────────────────────────────────────────── */
.checkout-modal { max-width: 520px; }
.checkout-help {
  margin: 0 0 14px; font-size: 14px; color: var(--ink-2); line-height: 1.5;
}
.checkout-help b { color: var(--ink); }
.checkout-options { display: flex; flex-direction: column; gap: 8px; }
.checkout-option {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line);
  cursor: pointer; text-align: left; font: inherit; color: var(--ink);
  transition: border-color .15s, background .15s, transform .08s;
}
.checkout-option:hover { border-color: var(--ink); background: var(--surface-2); }
.checkout-option:active { transform: scale(0.99); }
.checkout-option-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--surface-2); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-2);
}
.checkout-option-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.checkout-option-label { font-size: 14px; font-weight: 600; color: var(--ink); }
.checkout-option-sub { font-size: 12px; color: var(--ink-3); }

.checkout-summary {
  background: var(--surface-2); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 16px;
  display: flex; flex-direction: column; gap: 6px;
}
.checkout-summary-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--ink-3);
}
.checkout-summary-row b { font-size: 14px; color: var(--ink); }

.checkout-currency {
  display: flex; flex-direction: column; gap: 10px;
}
.checkout-currency-opt {
  display: flex; align-items: center; gap: 14px;
  padding: 16px; border-radius: 14px;
  background: var(--surface); border: 1.5px solid var(--line);
  cursor: pointer; text-align: left; font: inherit; color: var(--ink);
  transition: border-color .15s, background .15s, transform .08s;
}
.checkout-currency-opt:hover { border-color: var(--ink); background: var(--surface-2); }
.checkout-currency-opt:active { transform: scale(0.99); }
.checkout-currency-flag {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, #2A6FDB, #4A90E2);
  color: #fff; font-family: var(--serif); font-size: 24px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.checkout-currency-flag.ars {
  background: linear-gradient(135deg, #74ACDF, #00529F);
}
.checkout-currency-label { font-size: 15px; font-weight: 600; color: var(--ink); }
.checkout-currency-price {
  margin-top: 4px; font-family: var(--serif); font-size: 22px; letter-spacing: -0.4px; color: var(--ink);
}
.checkout-currency-price span { font-family: var(--sans); font-size: 12px; color: var(--ink-3); font-weight: 500; letter-spacing: 0; margin-left: 6px; }
.checkout-currency-rate { margin-top: 4px; font-size: 11px; color: var(--ink-3); }

@media (max-width: 640px) {
  .checkout-option { padding: 12px; }
  .checkout-currency-flag { width: 40px; height: 40px; font-size: 20px; }
}

/* Credit card preview + form */
.card-mp-shortcut {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 14px;
  background: linear-gradient(135deg, #E3F0FA, #C9E4F5);
  border: 1px solid rgba(0, 177, 234, 0.28);
  color: var(--ink); text-decoration: none;
  margin-bottom: 16px;
  transition: transform .12s ease, box-shadow .15s;
}
.card-mp-shortcut:hover { transform: translateY(-1px); box-shadow: var(--shadow-card); }
[data-theme="dark"] .card-mp-shortcut {
  background: linear-gradient(135deg, rgba(0,177,234,0.18), rgba(0,177,234,0.08));
  border-color: rgba(0,177,234,0.4);
}
.card-mp-shortcut-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: #fff; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.card-mp-shortcut-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.card-mp-shortcut-label { font-size: 14px; font-weight: 700; color: var(--ink); }
.card-mp-shortcut-sub { font-size: 12px; color: var(--ink-2); line-height: 1.35; }

.card-divider {
  text-align: center; margin: 0 0 16px;
  position: relative; color: var(--ink-3); font-size: 12px;
}
.card-divider::before {
  content: ''; position: absolute; left: 0; right: 0; top: 50%;
  height: 1px; background: var(--line); z-index: 0;
}
.card-divider span {
  position: relative; z-index: 1;
  padding: 0 12px; background: var(--surface);
}

.card-preview {
  position: relative; padding: 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1f2330 0%, #3a3f54 50%, #1f2330 100%);
  color: #fff; margin-bottom: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}
.card-preview::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% -20%, rgba(255,255,255,0.18), transparent 50%);
  pointer-events: none;
}
.card-preview-brand {
  position: absolute; top: 14px; right: 18px;
  font-family: var(--serif); font-weight: 600; font-style: italic;
  font-size: 16px; letter-spacing: 1px;
  text-transform: uppercase;
}
.card-preview-chip {
  width: 38px; height: 28px; border-radius: 6px;
  background: linear-gradient(135deg, #d6c069 0%, #f3e3a2 50%, #b89a3f 100%);
  margin-bottom: 22px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
  position: relative; z-index: 1;
}
.card-preview-number {
  font-family: var(--font-primary);
  font-size: 19px; letter-spacing: 2px;
  margin-bottom: 18px;
  position: relative; z-index: 1;
}
.card-preview-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  position: relative; z-index: 1;
}
.card-preview-key {
  font-size: 9px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  opacity: 0.5;
}
.card-preview-val {
  font-family: var(--font-primary);
  font-size: 13px; letter-spacing: 0.6px;
  margin-top: 3px;
}

.card-form {
  display: grid; gap: 12px;
  grid-template-columns: 1fr 1fr;
}
.card-form .field { display: flex; flex-direction: column; gap: 6px; }
.card-secure {
  grid-column: 1 / -1;
  margin-top: 4px;
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--ink-3);
}

@media (max-width: 640px) {
  .card-form { grid-template-columns: 1fr 1fr; }
  .card-preview-number { font-size: 16px; letter-spacing: 1.2px; }
}
.confi-note {
  max-width: 1100px; margin: 24px auto 64px;
  padding: 28px 32px;
  border: 1px dashed var(--line); border-radius: 18px;
  background: var(--surface-2);
}
.confi-note h2 {
  margin: 0 0 6px; font-family: var(--serif); font-weight: 500;
  font-size: 22px; letter-spacing: -0.5px; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.confi-note p { margin: 0 0 12px; font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.confi-grid {
  margin-top: 16px;
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.confi-card {
  padding: 16px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line);
}
.confi-card h3 {
  margin: 0 0 6px; font-size: 14px; font-weight: 700; color: var(--ink);
  letter-spacing: -0.2px;
}
.confi-card p { margin: 0; font-size: 13px; color: var(--ink-3); line-height: 1.4; }
@media (max-width: 760px) {
  .confi-note { margin: 16px; padding: 20px; }
}

/* ─────────────────────────────────────────────────────────────
   Creator detail page
   ───────────────────────────────────────────────────────────── */
.detail-page { min-height: 100vh; background: var(--bg); display: flex; flex-direction: column; }

.detail-cover {
  height: 240px; position: relative; overflow: hidden;
}
.detail-cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, var(--bg) 100%);
}

.detail-wrap {
  max-width: 1100px; margin: -100px auto 0; width: 100%;
  padding: 0 56px 80px; position: relative; z-index: 2;
}

.detail-head {
  display: flex; align-items: flex-end; gap: 28px; margin-bottom: 36px;
  flex-wrap: wrap;
}
.detail-avatar {
  width: 140px; height: 140px; border-radius: 28px;
  background-size: cover; background-position: center;
  border: 5px solid var(--surface);
  box-shadow: var(--shadow-card);
  flex-shrink: 0;
  position: relative;
  padding: 0;
  cursor: zoom-in;
  transition: transform .15s ease;
}
.detail-avatar:hover { transform: translateY(-2px); }
.detail-avatar-badge {
  position: absolute; right: -4px; bottom: -4px;
  background: var(--surface); border-radius: 50%; padding: 3px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18); line-height: 0;
}
.detail-info { flex: 1; min-width: 260px; padding-bottom: 4px; }
.detail-name {
  margin: 0; font-family: var(--serif); font-weight: 500;
  font-size: 44px; letter-spacing: -1.4px; color: var(--ink); line-height: 1.05;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.detail-meta {
  margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 14px;
  font-size: 14px; color: var(--ink-2);
}
.detail-meta .pill {
  margin: 0; padding: 6px 12px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 100px; font-size: 13px; display: inline-flex; align-items: center; gap: 6px;
}
.detail-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-left: auto; padding-bottom: 4px;
  /* Mismo ancho que la columna del sidebar para que quede alineado verticalmente */
  width: 320px; justify-content: center;
}
.detail-actions .btn { height: 46px; padding: 0 22px; }
.detail-actions .btn-whatsapp {
  background: #8AE0A1; color: #0A3D14;
}
.detail-actions .btn-whatsapp:hover { background: #9CE7B1; }
[data-theme="dark"] .detail-actions .btn-whatsapp {
  background: #8AE0A1; color: #0A3D14;
}
[data-theme="dark"] .detail-actions .btn-whatsapp:hover { background: #9CE7B1; }
.detail-actions .btn-whatsapp svg { width: 24px; height: 24px; }

.detail-grid {
  display: grid; gap: 28px;
  grid-template-columns: minmax(0, 1fr) 320px;
}

.detail-section {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 28px;
}
.detail-section h2 {
  margin: 0 0 14px; font-family: var(--serif); font-weight: 500;
  font-size: 22px; letter-spacing: -0.5px; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.detail-section p.bio {
  margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2);
}

.detail-stats {
  display: grid; gap: 12px;
  grid-template-columns: repeat(2, 1fr); margin-bottom: 24px;
}
.detail-stat {
  padding: 16px; border-radius: 14px;
  background: var(--surface-2);
}
.detail-stat .n {
  font-family: var(--serif); font-weight: 500;
  font-size: 26px; letter-spacing: -0.5px; color: var(--ink); line-height: 1;
}
.detail-stat .t {
  margin-top: 6px; font-size: 12px; color: var(--ink-3);
  letter-spacing: 0.4px; text-transform: uppercase; font-weight: 600;
}

.pub-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.pub {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; cursor: zoom-in;
  display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s;
  padding: 0; text-align: left; font: inherit; color: inherit;
}
.pub:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.pub-cover {
  aspect-ratio: 4 / 3; background-size: cover; background-position: center;
  position: relative;
}
.pub-body { padding: 12px 14px 14px; }
.pub-title { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.3; }

.detail-side .detail-section { padding: 22px; }
.detail-side .price-big {
  font-family: var(--serif); font-weight: 500;
  font-size: 36px; letter-spacing: -1px; color: var(--ink); line-height: 1;
  margin-bottom: 6px;
}
.detail-side .price-sub { font-size: 13px; color: var(--ink-3); margin-bottom: 18px; }
.detail-side .btn { width: 100%; margin-bottom: 8px; }
.detail-side ul {
  list-style: none; padding: 0; margin: 18px 0 0;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 13px; color: var(--ink-2);
}
.detail-side ul li {
  display: flex; align-items: center; gap: 10px;
}
.detail-side .key {
  font-size: 11px; font-weight: 700; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.5px;
}

.detail-back {
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 16px;
  font-size: 13px; color: var(--ink-2); font-weight: 500;
}
.detail-back:hover { color: var(--ink); }

@media (max-width: 900px) {
  .detail-cover { height: 180px; }
  .detail-wrap { margin-top: -70px; padding: 0 16px 60px; }
  .detail-avatar { width: 100px; height: 100px; border-radius: 22px; border-width: 4px; }
  .detail-head { gap: 18px; margin-bottom: 24px; }
  .detail-name { font-size: 30px; letter-spacing: -1px; }
  .detail-actions { margin-left: 0; width: 100%; }
  .detail-actions .btn { flex: 1; }
  .detail-grid { grid-template-columns: 1fr; gap: 18px; }
  .detail-section { padding: 22px; }
  .detail-stats { grid-template-columns: repeat(2, 1fr); }
  .pub-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─────────────────────────────────────────────────────────────
   Reseñas (perfil público) — sección 44 del pedido de RBAC: mismo ancho que
   .detail-wrap, mobile-first, botones/estrellas con área táctil de 44px.
   ───────────────────────────────────────────────────────────── */
.reviews-section { max-width: 900px; margin: 0 auto; padding: 8px 24px 72px; }
.reviews-section h2 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin: 0 0 4px; letter-spacing: -0.5px; }
.reviews-summary { display: flex; align-items: center; gap: 14px; margin: 14px 0 6px; flex-wrap: wrap; }
.reviews-summary .avg { font-family: var(--serif); font-size: 34px; font-weight: 500; }
.reviews-summary .stars { display: flex; gap: 2px; }
.reviews-summary .count { font-size: 13.5px; color: var(--ink-3); }
.reviews-summary-empty { padding: 18px 0; }
.reviews-summary-empty p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.reviews-summary-empty p.hint { color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.reviews-disclaimer { font-size: 12px; color: var(--ink-3); line-height: 1.5; margin: 4px 0 24px; }

.reviews-composer { background: var(--surface-2); border-radius: 18px; padding: 22px; margin-bottom: 28px; }
.reviews-composer h3 { margin: 0 0 12px; font-size: 16px; font-weight: 700; }
.reviews-own-note { font-size: 13.5px; color: var(--ink-2); background: var(--surface); border-radius: 12px; padding: 14px 16px; }

.reviews-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.reviews-tab-btn {
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  padding: 9px 16px; min-height: 40px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2);
}
.reviews-tab-btn.active { background: var(--ink); color: var(--btn-primary-fg); border-color: var(--ink); }

.star-picker { display: flex; gap: 4px; margin-bottom: 14px; }
.star-picker button {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer; padding: 0; border-radius: 10px;
}
.star-picker button:hover { background: var(--surface); }
.star-picker svg { width: 26px; height: 26px; }

.reviews-field { margin-bottom: 12px; }
.reviews-field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.reviews-field input, .reviews-field textarea {
  width: 100%; font: inherit; font-size: 14px; padding: 12px 14px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  resize: vertical;
}
.reviews-field textarea { min-height: 96px; }
/* Honeypot: fuera de pantalla, no display:none — un bot que solo respeta
   display:none/visibility:hidden lo sigue completando igual. */
.reviews-hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

.reviews-error { padding: 12px 14px; border-radius: 12px; background: var(--pink-soft); color: var(--ink); font-size: 13px; font-weight: 500; margin-bottom: 12px; }
.reviews-success { padding: 14px 16px; border-radius: 12px; background: var(--blue-soft); color: var(--ink); font-size: 13.5px; font-weight: 500; }

.reviews-list { display: flex; flex-direction: column; gap: 16px; }
.review-item { border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.review-item-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.review-item-author { font-size: 14px; font-weight: 700; }
.review-item-date { font-size: 12px; color: var(--ink-3); }
.review-item-stars { display: flex; gap: 1px; margin: 4px 0 8px; }
.review-item-comment { font-size: 14px; color: var(--ink-2); line-height: 1.55; white-space: pre-wrap; }
.review-item-report { font-size: 12px; color: var(--ink-3); background: none; border: none; cursor: pointer; padding: 6px 0; text-decoration: underline; }
.review-item-reply {
  margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2);
  font-size: 13px; color: var(--ink-2);
}
.review-item-reply b { color: var(--ink); }

.reviews-loadmore { display: block; margin: 20px auto 0; }

@media (max-width: 640px) {
  .reviews-section { padding: 8px 16px 56px; }
  .reviews-composer { padding: 18px; }
  .reviews-tabs { flex-wrap: wrap; }
  .reviews-tab-btn { flex: 1; text-align: center; }
}

/* ─────────────────────────────────────────────────────────────
   Mi perfil
   ───────────────────────────────────────────────────────────── */
.profile-page {
  max-width: 720px; margin: 0 auto;
  padding: 40px 24px 80px;
}
.profile-head { margin-bottom: 24px; }
.profile-head h1 {
  margin: 0; font-family: var(--serif); font-weight: 500;
  font-size: 40px; letter-spacing: -1.2px; color: var(--ink); line-height: 1.05;
}
.profile-head p { margin: 8px 0 0; font-size: 15px; color: var(--ink-3); }

.profile-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 28px; margin-bottom: 18px;
}
.profile-avatar-row {
  display: flex; align-items: center; gap: 16px; margin-bottom: 24px;
  padding-bottom: 24px; border-bottom: 1px solid var(--line);
}
.profile-avatar {
  width: 84px; height: 84px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 30px; font-weight: 500; color: var(--ink);
  border: 0; cursor: pointer; position: relative; flex-shrink: 0;
}
.profile-avatar-pencil {
  position: absolute; bottom: -2px; right: -2px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--ink);
  border: 3px solid var(--surface);
  display: flex; align-items: center; justify-content: center;
}
.profile-name-big {
  font-family: var(--serif); font-weight: 500;
  font-size: 24px; letter-spacing: -0.4px; color: var(--ink);
}
.profile-role { margin-top: 4px; font-size: 13px; color: var(--ink-3); }

.profile-form {
  display: grid; gap: 14px;
  grid-template-columns: 1fr 1fr;
}
/* min-width:0 — un ítem de grid/flex no se achica por debajo del ancho
   mínimo de su contenido salvo que se lo indiques (default: min-width:
   auto). Causa real del bug mobile: en 1 sola columna (ver media query
   más abajo), esto hacía que el track del grid creciera al ancho del
   campo más "ancho" (ej. el select de Nacionalidad, o el renglón de
   prefijo+teléfono) y todo .profile-form se pasaba del borde de la
   tarjeta — no era un tema de padding/margin, sino de este default. */
.profile-form .field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.profile-form .field:nth-child(1),
.profile-form .field:nth-child(3),
.profile-form .field:nth-child(5) { grid-column: 1 / -1; }
.profile-form-foot {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px;
}
.profile-saved { font-size: 13px; color: #0a9c5a; font-weight: 600; }

.profile-section-title {
  margin: 0 0 4px; font-family: var(--serif); font-weight: 500;
  font-size: 22px; letter-spacing: -0.4px; color: var(--ink);
}
.profile-section-sub { margin: 0 0 18px; font-size: 14px; color: var(--ink-3); }

/* ─────────────────────────────────────────────────────────────
   Seller — switches, dot, horarios
   ───────────────────────────────────────────────────────────── */
.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.toggle-row:last-of-type { border-bottom: 0; }
.toggle-row-t { font-size: 15px; font-weight: 600; color: var(--ink); display: flex; align-items: center; }
.toggle-row-d { margin-top: 4px; font-size: 13px; color: var(--ink-2); }

.switch {
  position: relative; display: inline-block;
  width: 46px; height: 26px; flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch-track {
  position: absolute; inset: 0;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 100px; cursor: pointer;
  transition: background .2s;
}
.switch-track::before {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: transform .2s ease, background .2s;
}
.switch input:checked + .switch-track { background: #0a9c5a; border-color: #0a9c5a; }
.switch input:checked + .switch-track::before { transform: translateX(20px); background: #fff; }

.dot-green {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  background: #0a9c5a; box-shadow: 0 0 0 2px var(--surface);
}

.avatar-online {
  /* Disponible (inferior izquierda) — antes compartía el mismo rincón
     (right/bottom) que .detail-avatar-badge (Verificado, inferior
     derecha), y quedaban superpuestos cuando ambos se mostraban a la vez. */
  position: absolute; left: 4px; bottom: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #0a9c5a;
  border: 4px solid var(--surface);
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
  z-index: 2;
}

.schedule { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.schedule-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 10px 12px; border-radius: 10px;
  background: var(--surface-2);
}
.schedule-row.closed { opacity: 0.55; }
.check-row { display: inline-flex; align-items: center; gap: 10px; min-width: 140px; cursor: pointer; }
.check-row .box {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--surface); border: 1.5px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.check-row input { display: none; }
.check-row input:checked ~ .box { background: var(--ink); }
.check-row input:not(:checked) ~ .box svg { opacity: 0; }
.schedule-day { font-size: 14px; font-weight: 600; color: var(--ink); }
.schedule-times { display: inline-flex; align-items: center; gap: 8px; }
.schedule-times input[type="time"] {
  height: 36px; padding: 0 10px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--line);
  font: inherit; font-size: 14px; color: var(--ink);
}
.schedule-times input[type="time"]:disabled { opacity: 0.5; }
.schedule-sep { font-size: 13px; color: var(--ink-3); }

.schedule-table {
  width: 100%; border-collapse: collapse;
}
.schedule-table td {
  padding: 8px 0; font-size: 14px; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.schedule-table tr:last-child td { border-bottom: 0; }
.schedule-table .schedule-day { width: 120px; }
.schedule-table tr.closed td { color: var(--ink-3); }

/* ─────────────────────────────────────────────────────────────
   Seller profile editor (vender.html)
   ───────────────────────────────────────────────────────────── */
.seller-page {
  max-width: 980px; margin: 0 auto;
  padding: 32px 24px 80px;
}

.detail-avatar { position: relative; }

.seller-cover {
  width: 100%; height: 160px; border-radius: 14px;
  background: var(--surface-2) center/cover no-repeat;
  border: 2px dashed var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3); cursor: pointer;
  margin-bottom: 18px; position: relative;
  transition: border-color .15s, background-color .15s;
  padding: 0;
}
.seller-cover:hover { border-color: var(--ink-3); background-color: var(--pink-soft); }
.seller-cover.has-image { border-style: solid; border-color: transparent; }
.seller-cover-empty {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center; padding: 16px;
}
.seller-cover-empty-sub { font-size: 12px; color: var(--ink-3); }
.seller-cover-change {
  position: absolute; bottom: 10px; right: 10px;
  display: inline-flex; align-items: center;
  padding: 8px 14px; border-radius: 100px;
  background: rgba(255, 255, 255, 0.92); color: #0A0A0A;
  font-size: 13px; font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.seller-cover-del {
  position: absolute; top: 10px; right: 10px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(10, 10, 10, 0.75); color: #fff;
  border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.seller-cover-del:hover { background: rgba(10, 10, 10, 0.9); }

/* Emoji picker para textareas */
.emoji-host {
  position: relative;
}
.emoji-host textarea {
  width: 100%; padding: 12px 44px 12px 14px; border-radius: 12px;
  background: var(--surface); border: 1.5px solid transparent;
  font: inherit; color: var(--ink);
  resize: vertical; min-height: 70px; outline: none;
}
.emoji-host textarea:focus { border-color: var(--ink); background: var(--surface); }
.emoji-btn {
  position: absolute; right: 8px; bottom: 8px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: 16px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, transform .08s;
}
.emoji-btn:hover { background: var(--pink-soft); }
.emoji-btn:active { transform: scale(0.95); }
.emoji-popover {
  position: absolute; bottom: 48px; right: 0; z-index: 30;
  width: 280px; max-height: 240px; overflow-y: auto;
  padding: 8px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
}
.emoji-item {
  width: 100%; aspect-ratio: 1 / 1;
  border: 0; background: transparent;
  font-size: 20px; line-height: 1; cursor: pointer;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.emoji-item:hover { background: var(--surface-2); }
.seller-page-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; margin-bottom: 20px;
}
.seller-page-head .profile-section-title { margin: 0; }

.seller-avatar-row {
  display: flex; align-items: center; gap: 16px;
  padding-bottom: 18px; margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.seller-roles { display: flex; gap: 10px; flex-wrap: wrap; }
.seller-role {
  flex: 1; min-width: 160px;
  padding: 14px; border-radius: 14px;
  background: var(--surface-2); border: 1.5px solid transparent;
  text-align: left; cursor: pointer; font: inherit; color: var(--ink);
  transition: border-color .12s, background .12s;
}
.seller-role:hover { background: var(--pink-soft); }
.seller-role.on { background: var(--pink); border-color: var(--ink); }
.seller-role .t { font-size: 14px; font-weight: 700; }
.seller-role .d { font-size: 12px; color: var(--ink-2); margin-top: 2px; }

.seller-price-row {
  display: grid; gap: 14px;
  grid-template-columns: 1fr 1fr 1fr;
  margin-top: 14px;
}

.seller-media-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px; flex-wrap: wrap;
}
.seller-media-head .profile-section-title { margin: 0; }

.seller-media-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.seller-media-grid.preview { gap: 8px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }

.seller-media-tile {
  position: relative; aspect-ratio: 1 / 1;
  border-radius: 12px; overflow: hidden;
  background: var(--surface-2);
}
.seller-media-tile img,
.seller-media-tile video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.seller-media-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.seller-media-del {
  position: absolute; top: 6px; right: 6px;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(10, 10, 10, 0.78); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; transition: opacity .15s;
}
.seller-media-tile:hover .seller-media-del { opacity: 1; }
.seller-media-adjust {
  position: absolute; bottom: 6px; left: 6px; z-index: 1;
  display: flex; align-items: center; gap: 4px;
  padding: 4px 8px; border-radius: 100px;
  background: rgba(10, 10, 10, 0.78); color: #fff;
  font-size: 11px; font-weight: 600; cursor: pointer;
}
.seller-media-empty {
  grid-column: 1 / -1;
  padding: 28px; border-radius: 12px;
  background: var(--surface-2);
  text-align: center; font-size: 14px; color: var(--ink-3);
}

.seller-preview {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden;
}
.seller-preview-cover { height: 140px; }
.seller-preview-body { padding: 0 28px 28px; }
.seller-preview-head {
  display: flex; align-items: flex-end; gap: 18px;
  margin-top: -56px; flex-wrap: wrap;
}

@media (max-width: 760px) {
  .seller-price-row { grid-template-columns: 1fr; }
  .seller-page { padding: 24px 16px 60px; }
  .seller-preview-body { padding: 0 18px 24px; }
}

.profile-logout { text-align: center; margin-top: 8px; }
.profile-logout .btn { height: 44px; padding: 0 22px; }

@media (max-width: 640px) {
  .profile-form { grid-template-columns: minmax(0, 1fr); }
  .profile-head h1 { font-size: 30px; letter-spacing: -1px; }
  .profile-form-foot { flex-direction: column-reverse; gap: 12px; align-items: stretch; }
  .profile-form-foot .btn { width: 100%; }
  /* Horarios (sección "Disponibilidad" de Mi perfil): día + dos inputs
     time nativos no entraban en una sola fila sin desbordar la tarjeta
     — se permite que pasen a una segunda línea (mismo criterio que el
     pedido ya autoriza para el campo de teléfono si no entra). */
  .schedule-row { flex-wrap: wrap; row-gap: 8px; }
}
.reviews-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 4px;
}
.reviews-head h2 { margin: 0; }
.reviews-count {
  font-size: 13px; color: var(--ink-3);
}
.reviews-sub {
  margin: 0 0 18px; font-size: 14px; color: var(--ink-2); line-height: 1.5;
}

.review-form {
  background: var(--surface-2); border-radius: 14px;
  padding: 18px; margin-bottom: 20px;
  display: flex; flex-direction: column; gap: 12px;
}
.review-form .field label { color: var(--ink-2); }
.review-form .input { background: var(--surface); }
.review-form textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  background: var(--surface); border: 1.5px solid transparent;
  font: inherit; font-size: 15px; color: var(--ink);
  resize: vertical; min-height: 70px; outline: none;
  transition: border-color .15s, background .15s;
}
.review-form textarea:focus { border-color: var(--ink); }
.review-form-actions {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.review-form-actions .btn { height: 44px; padding: 0 22px; }

.review-rating {
  display: flex; gap: 2px;
}
.review-rating .star {
  background: transparent; padding: 4px; cursor: pointer;
  color: rgba(10, 10, 10, 0.18); transition: color .12s;
}
[data-theme="dark"] .review-rating .star {
  color: rgba(255, 245, 240, 0.2);
}
.review-rating .star.on { color: var(--pink-deep); }
[data-theme="dark"] .review-rating .star.on { color: #F5B6C0; }

.reviews-empty {
  padding: 28px; text-align: center;
  font-size: 14px; color: var(--ink-3);
  background: var(--surface-2); border-radius: 14px;
}

.reviews-list {
  display: flex; flex-direction: column; gap: 16px;
}
.review {
  padding: 16px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line);
}
.review.reply {
  background: var(--surface-2); border-color: transparent;
  padding: 14px;
}
.review-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 10px;
}
.review-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  flex-shrink: 0;
}
.review-avatar.owner {
  background: var(--ink); color: var(--surface);
}
.review-name {
  font-size: 14px; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; gap: 6px;
}
.owner-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 2px 8px; border-radius: 100px;
  background: var(--ink); color: var(--surface);
}
.review-meta {
  margin-top: 2px;
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--ink-3);
}
.review-text {
  font-size: 14.5px; line-height: 1.5; color: var(--ink-2);
  white-space: pre-wrap; word-wrap: break-word;
}
.review-actions {
  margin-top: 10px;
  display: flex; gap: 4px;
}
.review-action {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 8px;
  background: transparent; color: var(--ink-2);
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.review-action:hover { background: var(--surface-2); color: var(--ink); }

.reply-thread {
  margin-top: 12px; padding-left: 20px;
  border-left: 2px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
}

.reply-form {
  margin-top: 12px; padding: 14px;
  background: var(--surface-2); border-radius: 12px;
  display: flex; flex-direction: column; gap: 10px;
}
.reply-form .input { background: var(--surface); }
.reply-form textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px;
  background: var(--surface); border: 1.5px solid transparent;
  font: inherit; font-size: 14px; color: var(--ink);
  resize: vertical; min-height: 60px; outline: none;
}
.reply-form textarea:focus { border-color: var(--ink); }
.reply-form .btn { height: 38px; padding: 0 16px; font-size: 13px; }

/* Notificación al vendedor */
.owner-notice {
  margin-top: 14px; padding: 10px 14px;
  background: var(--pink-soft); border: 1px solid var(--pink-deep);
  border-radius: 12px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--ink); font-size: 13px; line-height: 1.4;
  transition: transform .12s ease, background .15s;
}
.owner-notice:hover {
  transform: translateY(-1px);
  background: var(--pink);
}
.owner-notice-dot { position: relative; display: flex; align-items: center; color: var(--ink); }
.owner-notice-badge {
  position: absolute; top: -4px; right: -8px;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--ink); color: var(--surface);
  border-radius: 100px; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.owner-notice-text b { font-weight: 700; }
.owner-notice-cta {
  font-weight: 700; padding-left: 6px; border-left: 1px solid var(--pink-deep);
}

@media (max-width: 760px) {
  .review-form-actions { flex-direction: column; align-items: stretch; }
  .review-form-actions .btn { width: 100%; }
  .review-rating { justify-content: center; }
  .owner-notice { flex-wrap: wrap; }
}
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  display: flex; align-items: center; justify-content: center;
  padding: 60px 80px;
  animation: lbIn .2s ease both;
  user-select: none;
}
@keyframes lbIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lb-stage {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  cursor: zoom-out;
  touch-action: pan-y;
}
.lb-img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: lbImgIn .25s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes lbImgIn {
  from { transform: scale(0.96); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.lb-close {
  position: absolute; top: 20px; right: 20px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .15s;
}
.lb-close:hover { background: rgba(255, 255, 255, 0.22); }

.lb-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .15s, transform .15s;
}
.lb-arrow:hover { background: rgba(255, 255, 255, 0.22); }
.lb-arrow:active { transform: translateY(-50%) scale(0.95); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

.lb-counter {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  padding: 6px 14px; border-radius: 100px;
  background: rgba(255, 255, 255, 0.14); color: #fff;
  font-size: 13px; font-weight: 600; letter-spacing: 0.3px;
}

@media (max-width: 760px) {
  .lightbox { padding: 50px 16px; }
  .lb-close { top: 14px; right: 14px; width: 38px; height: 38px; }
  .lb-arrow { width: 42px; height: 42px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-counter { bottom: 16px; font-size: 12px; }
}
.fade-in { animation: fadeIn .35s ease both; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ─────────────────────────────────────────────────────────────
   Legal modal (Términos / Privacidad)
   ───────────────────────────────────────────────────────────── */
.legal-modal-backdrop {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(10, 10, 10, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: fadeIn .2s ease both;
}
[data-theme="dark"] .legal-modal-backdrop { background: rgba(0, 0, 0, 0.7); }

.legal-modal {
  background: var(--surface); border-radius: 18px;
  width: 100%; max-width: 680px; max-height: 86vh;
  display: flex; flex-direction: column;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: legalIn .25s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes legalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.legal-modal-head {
  padding: 22px 24px 16px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  border-bottom: 1px solid var(--line);
}
.legal-modal-tag {
  font-size: 11px; font-weight: 700; color: var(--ink-3);
  letter-spacing: 0.5px; text-transform: uppercase;
}
.legal-modal-title {
  margin-top: 4px; font-family: var(--serif); font-weight: 500;
  font-size: 24px; letter-spacing: -0.5px; color: var(--ink); line-height: 1.2;
}
.legal-modal-close {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface-2); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; cursor: pointer;
}
.legal-modal-close:hover { background: var(--pink-soft); }
.legal-modal-body {
  flex: 1; overflow-y: auto;
  padding: 20px 28px; font-size: 14px; line-height: 1.55; color: var(--ink-2);
}
.legal-modal-body p { margin: 0 0 12px; }
.legal-modal-body h3 {
  margin: 22px 0 6px;
  font-family: var(--serif); font-weight: 600;
  font-size: 16px; letter-spacing: -0.2px; color: var(--ink);
}
.legal-modal-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: flex-end;
}
.legal-modal-foot .btn { height: 44px; padding: 0 22px; }

@media (max-width: 760px) {
  .legal-modal { max-height: 92vh; }
  .legal-modal-head { padding: 18px 18px 14px; }
  .legal-modal-title { font-size: 20px; }
  .legal-modal-body { padding: 16px 18px; }
}

/* ─────────────────────────────────────────────────────────────
   Mock inbox (correo de verificación)
   ───────────────────────────────────────────────────────────── */
.inbox-shell { min-height: 100vh; background: var(--surface-3); display: flex; flex-direction: column; }

.inbox-bar {
  display: flex; align-items: center; gap: 20px;
  padding: 14px 28px; background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 5;
}
.inbox-bar .brand { display: flex; align-items: center; gap: 8px; }
.inbox-search {
  flex: 1; max-width: 720px; height: 40px; border-radius: 10px;
  background: var(--blue-soft); padding: 0 14px;
  display: flex; align-items: center; gap: 10px;
  color: var(--ink-3); font-size: 14px;
}
.avatar-mini {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; color: var(--ink);
}
.inbox-body { flex: 1; display: flex; gap: 0; }

.inbox-side {
  width: 240px; padding: 16px 12px; flex-shrink: 0;
  border-right: 1px solid var(--line); background: var(--surface);
}
.inbox-compose {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 12px;
  background: var(--pink); color: var(--ink); font-weight: 600; font-size: 14px;
  margin-bottom: 16px;
}
.inbox-link {
  padding: 10px 14px; border-radius: 10px;
  font-size: 14px; color: var(--ink-2);
  display: flex; align-items: center; justify-content: space-between;
}
.inbox-link.on { background: var(--blue-soft); color: var(--ink); font-weight: 600; }
.inbox-link .badge {
  background: var(--pink-deep); color: var(--ink);
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 100px;
}

.inbox-main {
  flex: 1; padding: 24px 32px;
  display: flex; flex-direction: column; gap: 16px;
}

.email-card {
  background: var(--surface); border-radius: 18px; max-width: 760px;
  box-shadow: 0 1px 0 var(--line), var(--shadow-card);
  overflow: hidden;
}
.email-head { padding: 24px 28px 12px; border-bottom: 1px solid var(--line); }
.email-from { display: flex; align-items: center; gap: 12px; }
.email-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.email-from-name {
  font-size: 15px; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; gap: 6px;
}
.email-from-addr { font-size: 13px; color: var(--ink-3); }
.email-time { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.email-subject {
  margin: 16px 0 0; font-family: var(--serif); font-weight: 500;
  font-size: 26px; letter-spacing: -0.6px; color: var(--ink);
}
.email-body { padding: 20px 28px 28px; font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.email-body p { margin: 0 0 14px; }
.email-cta {
  margin: 18px 0;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.email-link-fallback { font-size: 12px; color: var(--ink-3); }
.email-link-fallback b { color: var(--ink); font-family: var(--font-primary); font-weight: 500; }
.email-attachment {
  margin-top: 18px; padding: 14px;
  border: 1px solid var(--line); border-radius: 12px;
  display: flex; align-items: center; gap: 12px;
  cursor: pointer; transition: background .15s, border-color .15s;
}
.email-attachment:hover { background: var(--surface-2); border-color: var(--ink); }
.pdf-icon { flex-shrink: 0; }
.att-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.att-meta { font-size: 12px; color: var(--ink-3); }
.inbox-skip { max-width: 760px; display: flex; justify-content: flex-end; }

@media (max-width: 760px) {
  .inbox-bar { padding: 12px 16px; gap: 12px; }
  .inbox-search { display: none; }
  .inbox-side { display: none; }
  .inbox-main { padding: 16px; }
  .email-head, .email-body { padding-left: 18px; padding-right: 18px; }
  .email-subject { font-size: 22px; }
}

/* ─────────────────────────────────────────────────────────────
   Modal PDF
   ───────────────────────────────────────────────────────────── */
.pdf-modal {
  position: fixed; inset: 0; background: rgba(10, 10, 10, 0.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 100; padding: 24px;
  animation: fadeIn .2s ease both;
}
.pdf-modal-card {
  background: var(--surface); border-radius: 18px; max-width: 760px; width: 100%;
  max-height: 90vh; display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
}
.pdf-modal-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.pdf-modal-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pdf-modal-page {
  flex: 1; overflow: auto; padding: 36px 44px;
  background: var(--surface-3);
}
.pdf-text { font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.pdf-text h3 {
  font-family: var(--serif); font-weight: 600;
  font-size: 17px; color: var(--ink); margin: 22px 0 6px;
  letter-spacing: -0.3px;
}
.pdf-text p { margin: 0 0 12px; }
.pdf-text ul { margin: 0 0 12px 18px; padding: 0; }
.pdf-text li { margin: 4px 0; }

@media (max-width: 760px) {
  .pdf-modal { padding: 12px; }
  .pdf-modal-page { padding: 20px; }
}

/* ─────────────────────────────────────────────────────────────
   PhotoCapture (DNI, selfie)
   ───────────────────────────────────────────────────────────── */
.capture { display: flex; flex-direction: column; gap: 14px; }
.capture-frame {
  background: linear-gradient(135deg, var(--blue-soft), var(--pink-soft));
  border: 1.5px dashed rgba(10, 10, 10, 0.18);
  border-radius: 18px;
  min-height: 240px;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; position: relative; overflow: hidden;
}

/* Cámara en vivo */
.capture-live {
  width: 100%; min-height: 240px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.capture-live video {
  max-width: 100%; max-height: 360px; border-radius: 10px;
  background: #000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.capture-cam-error {
  position: absolute; bottom: 8px; left: 8px; right: 8px;
  padding: 8px 12px; border-radius: 8px;
  background: rgba(195, 51, 51, 0.92); color: #fff;
  font-size: 13px; font-weight: 600;
  text-align: center;
}
.capture-preview {
  max-width: 100%; max-height: 320px; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.capture-hint { font-size: 13px; color: var(--ink-3); }
.capture-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.capture-actions .btn { height: 48px; flex: 1; min-width: 160px; }

/* KYC Intro · 3 instrucciones + permiso cámara */
.kyc-intro-card {
  margin-top: 4px;
  display: flex; flex-direction: column; gap: 18px;
}
.kyc-intro-steps {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.kyc-intro-steps li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--line);
}
.kyc-intro-num {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.kyc-intro-t { font-size: 15px; font-weight: 700; color: var(--ink); }
.kyc-intro-d { margin-top: 4px; font-size: 13px; color: var(--ink-2); line-height: 1.45; }

.kyc-intro-warn {
  padding: 14px; border-radius: 12px;
  background: #FFF3CD; color: #5C4B14;
  border: 1px solid #F5D078;
  font-size: 13px; line-height: 1.45;
}
[data-theme="dark"] .kyc-intro-warn {
  background: rgba(245, 208, 120, 0.12);
  color: #F5D078;
  border-color: rgba(245, 208, 120, 0.35);
}
.kyc-intro-note {
  padding: 12px; border-radius: 12px;
  background: var(--surface-2); color: var(--ink-3);
  border: 1px dashed var(--line);
  font-size: 12px; line-height: 1.45;
}
.dni-guide { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.dni-card-shape {
  width: 280px; height: 170px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  border: 2px solid rgba(10, 10, 10, 0.15);
  padding: 16px;
  display: flex; gap: 14px; align-items: flex-start;
}
.dni-photo {
  width: 60px; height: 80px; border-radius: 6px;
  background: rgba(10, 10, 10, 0.1);
}
.dni-lines { flex: 1; display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.dni-lines > div {
  height: 8px; border-radius: 4px;
  background: rgba(10, 10, 10, 0.1);
}
.dni-lines > div:nth-child(1) { width: 70%; }
.dni-lines > div:nth-child(2) { width: 90%; }
.dni-lines > div:nth-child(3) { width: 50%; }
.dni-lines > div:nth-child(4) { width: 80%; }

.dni-card-shape.back { flex-direction: column; gap: 8px; padding-top: 12px; }
.mrz-bar { height: 18px; border-radius: 4px; background: rgba(10, 10, 10, 0.55); }
.mrz-bar.bottom { margin-top: auto; }
.dni-card-shape.back .dni-lines { flex-direction: column; gap: 6px; }

.capture-guide-text { font-size: 13px; color: var(--ink-3); font-weight: 500; }

/* Selfie oval */
.selfie-guide { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.selfie-oval {
  width: 180px; height: 220px; border-radius: 50%;
  border: 2.5px dashed rgba(10, 10, 10, 0.25);
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.5);
}

/* ─────────────────────────────────────────────────────────────
   SMS bubble + demo hint
   ───────────────────────────────────────────────────────────── */
.sms-bubble {
  background: var(--blue-soft); border-radius: 14px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 8px;
  border: 1px solid var(--line);
}
.sms-meta { display: flex; align-items: center; gap: 10px; }
.sms-avatar {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--btn-primary-bg); color: var(--btn-primary-fg);
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  display: flex; align-items: center; justify-content: center;
}
.sms-from { font-size: 14px; font-weight: 600; color: var(--ink); }
.sms-time { font-size: 12px; color: var(--ink-3); }
.sms-text { font-size: 14px; color: var(--ink); line-height: 1.45; }
.sms-code {
  font-family: var(--font-primary);
  font-size: 18px; letter-spacing: 4px; color: var(--ink);
}

.demo-hint {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border-radius: 12px;
  background: var(--pink-soft); border: 1px dashed var(--pink-deep);
  font-size: 13px; color: var(--ink); line-height: 1.45;
}
.kbd {
  display: inline-block; padding: 2px 8px; border-radius: 6px;
  background: var(--surface); border: 1px solid var(--line);
  font-family: var(--font-primary); font-weight: 600;
  letter-spacing: 3px;
}

/* Toast SMS recibido */
.sms-toast {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff;
  padding: 14px 18px; border-radius: 14px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  z-index: 200; max-width: 380px;
  animation: toastIn .3s ease both, toastOut .3s ease 2.2s both;
}
.sms-toast-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: #1D9BF0; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
}
.sms-toast .t { font-size: 13px; font-weight: 600; }
.sms-toast .d { font-size: 12px; opacity: 0.7; }
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, -20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes toastOut {
  to { opacity: 0; transform: translate(-50%, -20px); }
}

/* ─────────────────────────────────────────────────────────────
   Footer del sitio (pieza nueva — no existía) + página de políticas.
   Reutiliza los tokens de color/tipografía existentes, sin agregar
   fuentes, iconos ni librerías nuevas.
   ───────────────────────────────────────────────────────────── */
.site-footer {
  margin-top: 64px; border-top: 1px solid var(--line);
  padding: 40px 56px 28px; background: var(--surface);
}
.site-footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 32px;
  flex-wrap: wrap;
}
.site-footer-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit; flex-shrink: 0;
}
.site-footer-brand .logo-mark { height: 44px; width: auto; }
.site-footer-nav { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.site-footer-main-link {
  font-size: 14px; font-weight: 600; color: var(--ink);
  text-decoration: underline; text-underline-offset: 3px;
}
.site-footer-main-link:hover { color: var(--accent, var(--ink)); }
.site-footer-links {
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 18px;
  max-width: 480px;
}
.site-footer-links a { font-size: 12.5px; color: var(--ink-3); text-decoration: none; }
.site-footer-links a:hover { color: var(--ink); text-decoration: underline; }
/* Enlaces SEO por país (sección 6-9 del pedido de contenidos/filtros) —
   mismos tokens tipográficos que .site-footer-links, en su propia franja
   para no mezclarse con las políticas legales. Vacío (sin hijos) hasta que
   mountFooterCountries() lo llena, así que no ocupa espacio si el fetch
   falla o el catálogo todavía no tiene países habilitados. */
.site-footer-countries {
  max-width: 1200px; margin: 20px auto 0; padding-top: 16px;
  border-top: 1px solid var(--line);
}
.site-footer-countries:empty { display: none; border-top: none; margin: 0; padding: 0; }
.site-footer-countries-title {
  margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.site-footer-countries-links {
  display: flex; flex-wrap: wrap; gap: 6px 16px;
}
.site-footer-countries-links a { font-size: 12.5px; color: var(--ink-3); text-decoration: none; }
.site-footer-countries-links a:hover { color: var(--ink); text-decoration: underline; }
.site-footer-bottom {
  max-width: 1200px; margin: 24px auto 0;
  padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
  font-size: 12px; color: var(--ink-3); line-height: 1.5;
}
@media (max-width: 720px) {
  .site-footer { padding: 32px 20px 24px; }
  .site-footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .site-footer-nav { align-items: flex-start; }
  .site-footer-links { justify-content: flex-start; }
  .site-footer-countries-links { justify-content: flex-start; }
  .site-footer-bottom { flex-direction: column; }
}

/* ---- Página de políticas ---- */
.legal-hero { padding: 64px 56px 8px; max-width: 800px; margin: 0 auto; }
.legal-hero h1 {
  margin: 0; font-family: var(--serif); font-weight: 500;
  font-size: 46px; letter-spacing: -1px; color: var(--ink); text-wrap: balance;
}
.legal-hero p.sub { margin: 14px 0 0; font-size: 16px; color: var(--ink-2); line-height: 1.5; }
.legal-meta {
  margin-top: 22px; padding: 14px 18px; border-radius: 14px;
  background: var(--surface-2); display: flex; flex-wrap: wrap; gap: 8px 24px;
  font-size: 12.5px; color: var(--ink-3);
}
.legal-meta b { color: var(--ink-2); font-weight: 600; }
.legal-pdf-btn { margin-top: 22px; display: inline-flex; }

.legal-toc { max-width: 800px; margin: 36px auto 0; padding: 0 56px; }
.legal-toc h2 { font-size: 15px; font-weight: 700; letter-spacing: .02em; color: var(--ink-3); text-transform: uppercase; margin: 0 0 14px; }
.legal-toc ol {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px;
}
.legal-toc li { counter-increment: legal; }
.legal-toc a {
  display: flex; gap: 8px; padding: 8px 0; font-size: 14px; color: var(--ink-2);
  text-decoration: none; border-bottom: 1px solid var(--line);
}
.legal-toc a:hover { color: var(--ink); }
.legal-toc a .n { color: var(--ink-3); font-variant-numeric: tabular-nums; flex-shrink: 0; width: 18px; }

.legal-content { max-width: 800px; margin: 8px auto 0; padding: 0 56px 80px; }
.legal-section { padding: 40px 0; border-top: 1px solid var(--line); scroll-margin-top: 20px; }
.legal-section:first-child { border-top: none; }
.legal-section h2 { font-family: var(--serif); font-weight: 500; font-size: 26px; letter-spacing: -0.4px; margin: 0 0 8px; }
.legal-section .legal-section-meta { font-size: 12px; color: var(--ink-3); margin-bottom: 16px; }
.legal-section p { font-size: 15px; color: var(--ink-2); line-height: 1.65; margin: 0 0 14px; max-width: 68ch; }
.legal-section ul { margin: 0 0 14px; padding-left: 20px; }
.legal-section li { font-size: 15px; color: var(--ink-2); line-height: 1.55; margin-bottom: 6px; }
.legal-section .legal-warning {
  margin-top: 16px; padding: 14px 16px; border-radius: 12px;
  background: var(--pink-soft); font-size: 13.5px; color: var(--ink); line-height: 1.5;
}

@media (max-width: 900px) {
  .legal-hero { padding: 40px 22px 8px; }
  .legal-hero h1 { font-size: 32px; }
  .legal-toc { padding: 0 22px; }
  .legal-toc ol { grid-template-columns: 1fr; }
  .legal-content { padding: 0 22px 60px; }
}

/* ─────────────────────────────────────────────────────────────
   Panel administrativo (admin.html) — funcional, no un dashboard con
   gráficos: tablas + acciones, mismos tokens visuales que el resto del
   sitio (sección 6/28/8 del pedido de RBAC).
   ───────────────────────────────────────────────────────────── */
.admin-page { min-height: 100vh; background: var(--bg); }
.admin-shell { max-width: 1200px; margin: 0 auto; padding: 24px 24px 80px; }
.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.admin-tab-btn {
  font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
  padding: 10px 18px; min-height: 40px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2);
}
.admin-tab-btn.active { background: var(--ink); color: var(--btn-primary-fg); border-color: var(--ink); }
.admin-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.admin-toolbar select, .admin-toolbar input {
  font: inherit; font-size: 13.5px; padding: 9px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
.admin-table th {
  text-align: left; padding: 12px 14px; background: var(--surface-2);
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--ink-3);
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table .btn { height: 32px; padding: 0 12px; font-size: 12.5px; }
.admin-row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-badge {
  display: inline-flex; padding: 3px 10px; border-radius: 100px; font-size: 11.5px; font-weight: 700;
  background: var(--surface-2); color: var(--ink-2);
}
.admin-badge.ok { background: #DDF3E3; color: #1C6B37; }
[data-theme="dark"] .admin-badge.ok { background: #14351F; color: #7FDB9A; }
.admin-badge.warn { background: var(--pink-soft); color: #8A2A38; }
[data-theme="dark"] .admin-badge.warn { background: #3A1218; color: #F0A0AC; }
/* "Por vencer" (amarillo) / "Vencido" (morado) — pedido de vencimientos,
   secciones 6/7/29. Colores nuevos, sin tocar ok/warn de arriba. */
.admin-badge.soon { background: #FBEFC2; color: #7A5B00; }
[data-theme="dark"] .admin-badge.soon { background: #3A2E08; color: #F0D479; }
.admin-badge.expired { background: #E9DDF7; color: #5B2A99; }
[data-theme="dark"] .admin-badge.expired { background: #2A1B3D; color: #C9A6F2; }
.admin-empty { padding: 40px 0; text-align: center; color: var(--ink-3); font-size: 14px; }
.admin-pager { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 13px; color: var(--ink-3); }
.admin-guard { padding: 100px 24px; text-align: center; }
.admin-guard h1 { font-family: var(--serif); font-size: 30px; margin: 0 0 8px; }

@media (max-width: 760px) {
  .admin-shell { padding: 18px 16px 60px; }
  .admin-table { font-size: 12.5px; }
}

/* ─────────────────────────────────────────────────────────────
   ProfileModal + ImageLightbox — ver shared.js (openProfileModal/
   openLightbox). z-index: el modal de perfil vive por debajo del
   lightbox de fotos a propósito (el lightbox puede abrirse encima del
   perfil, nunca al revés).
   ───────────────────────────────────────────────────────────── */
.profile-modal-backdrop {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(10, 10, 10, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: gatitas-fade-in 0.15s ease-out;
}
.profile-modal-panel {
  position: relative; z-index: 1010;
  background: var(--surface); border-radius: 20px;
  width: min(920px, 100%); height: min(88vh, 900px);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.profile-modal-frame {
  width: 100%; height: 100%; border: 0; display: block; background: var(--surface);
}
.profile-modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 1020;
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: rgba(10, 10, 10, 0.55); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.profile-modal-close:hover { background: rgba(10, 10, 10, 0.75); }

@media (max-width: 640px) {
  .profile-modal-backdrop { padding: 0; }
  .profile-modal-panel { width: 100%; height: 100%; border-radius: 0; }
}

.lightbox-backdrop {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: gatitas-fade-in 0.15s ease-out;
}
.lightbox-stage {
  position: relative; z-index: 2010;
  max-width: 100%; max-height: 90vh;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-stage img, .lightbox-stage video {
  max-width: 100%; max-height: 90vh; object-fit: contain; border-radius: 6px;
}
.lightbox-close {
  position: absolute; top: 16px; right: 16px; z-index: 2020;
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: rgba(255, 255, 255, 0.12); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2020;
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: rgba(255, 255, 255, 0.12); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-counter {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 2020;
  color: #fff; font-size: 13px; opacity: 0.8;
}

@media (max-width: 640px) {
  .lightbox-backdrop { padding: 8px; }
  .lightbox-nav { width: 38px; height: 38px; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
}

@keyframes gatitas-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Lista de servicios en el perfil público (creador.html) */
.detail-services-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.detail-service-item {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-radius: 12px; background: var(--surface-2);
}
.detail-service-name { font-weight: 600; font-size: 14.5px; }
.detail-service-duration { color: var(--ink-3); font-size: 12.5px; margin-left: 8px; }
.detail-service-price { font-weight: 700; font-size: 14.5px; white-space: nowrap; }

/* ─────────────────────────────────────────────────────────────
   Ajustar portada (bug de encuadre) — vender.html. Mismo criterio de
   z-index que .profile-modal-* (nunca se abren al mismo tiempo).
   ───────────────────────────────────────────────────────────── */
.cover-adjust-backdrop {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(10, 10, 10, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: gatitas-fade-in 0.15s ease-out;
}
.cover-adjust-panel {
  position: relative; z-index: 1010;
  background: var(--surface); border-radius: 20px;
  width: min(560px, 100%);
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.cover-adjust-surface {
  position: relative;
  width: 100%; aspect-ratio: 16 / 6; border-radius: 12px;
  background-size: cover; background-repeat: no-repeat;
  cursor: grab; touch-action: none; user-select: none;
  overflow: hidden;
}
.cover-adjust-surface:active { cursor: grabbing; }
.cover-adjust-hint {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  padding: 5px 12px; border-radius: 100px;
  background: rgba(10, 10, 10, 0.6); color: #fff;
  font-size: 11.5px; font-weight: 600; pointer-events: none;
}
@media (max-width: 560px) {
  .cover-adjust-panel { padding: 18px; border-radius: 16px; }
  .cover-adjust-surface { aspect-ratio: 4 / 3; }
}

/* Bandera de nacionalidad (bug "no aparece en desktop") — SVG propio en
   vez de emoji de bandera, ver flagFor() en shared.js. */
.flag-icon { display: inline-flex; flex-shrink: 0; line-height: 0; }
.flag-icon svg {
  width: 1.3em; height: auto; border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
  display: block;
}

/* Iconos de los chips del perfil público (ubicación/edad/modalidad/dinero) —
   mismo criterio de trazo que el resto de los SVG del sitio. */
.pill-icon { flex-shrink: 0; color: var(--ink-3); }
