/* =====================================================================
   WOLA · sistema de diseño de la maqueta (v1 editorial)
   Dirección: e-commerce de moda moderno. Mucho blanco y crema, tipografía
   editorial, fotos protagonistas, movimiento suave. Identidad: coral (Ofrezco,
   socio) · violeta (Busco, cliente) · match · sol · tinta · crema.
   Tipografías (Google Fonts, ver index.html):
     - Instrument Serif  → títulos de vitrina (.w-display, .w-h1) y acentos en cursiva
     - Instrument Sans   → todo lo demás: UI, títulos de panel, textos
     - Nunito 900        → SOLO el logo y acentos de marca puntuales (.w-marca)
   Todas las clases llevan el prefijo w-. Variables con --w-.
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Marca */
  --w-coral: #FF5A4E;          /* Ofrezco · socio (fondos, acentos, texto grande) */
  --w-coral-fuerte: #D63F33;   /* botones coral con texto blanco (AA 4,5:1) */
  --w-coral-texto: #C8352B;    /* coral para texto chico y enlaces */
  --w-coral-suave: #FFE9E4;
  --w-violeta: #5B3FD9;        /* Busco · cliente (AA con blanco) */
  --w-violeta-fuerte: #4A2FC4;
  --w-violeta-claro: #9C88FF;
  --w-violeta-suave: #EEEAFF;
  --w-match: #FF4F9A;          /* el encuentro, "Me tinca" */
  --w-match-texto: #C2185B;
  --w-sol: #FFC93C;            /* logros, celebración, nivel */
  --w-sol-texto: #8A5A00;
  --w-sol-suave: #FFF4D1;
  --w-degradado: linear-gradient(90deg, #FF5A4E 0%, #FF4F9A 50%, #5B3FD9 100%);

  /* Neutros (tinta = ciruela profundo) */
  --w-tinta: #2B1E3F;
  --w-tinta-2: #4C4160;        /* texto secundario (AA sobre blanco y crema) */
  --w-tinta-3: #6E6680;        /* texto terciario, solo ≥14px (AA 4,9:1 sobre blanco) */
  --w-linea: rgba(43, 30, 63, .12);
  --w-linea-fuerte: rgba(43, 30, 63, .24);
  --w-blanco: #FFFFFF;
  --w-papel: #FFFCF8;          /* fondo general: casi blanco cálido */
  --w-crema: #FFF6EC;          /* secciones alternas */
  --w-crema-2: #F6EBDD;        /* bordes/rellenos sobre crema */
  --w-noche: #1C1329;          /* secciones oscuras */

  /* Estados */
  --w-exito: #1E7A4C;  --w-exito-suave: #E2F3EA;
  --w-aviso: #8A5A00;  --w-aviso-suave: #FFF4D1;
  --w-peligro: #B42318; --w-peligro-suave: #FDE7E5;
  --w-info: var(--w-violeta); --w-info-suave: var(--w-violeta-suave);

  /* Tipografía */
  --w-fuente-display: "Instrument Serif", "Times New Roman", serif;
  --w-fuente: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --w-fuente-marca: "Nunito", system-ui, sans-serif;
  --w-t-xs: .75rem;   /* 12 */
  --w-t-s: .875rem;   /* 14 */
  --w-t-m: 1rem;      /* 16 */
  --w-t-l: 1.125rem;  /* 18 */
  --w-t-xl: 1.375rem; /* 22 */
  --w-t-2xl: 1.75rem; /* 28 */
  --w-t-3xl: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  --w-t-display: clamp(2.75rem, 1.6rem + 4.6vw, 5.5rem);

  /* Espaciado (base 4) */
  --w-e-1: 4px; --w-e-2: 8px; --w-e-3: 12px; --w-e-4: 16px; --w-e-5: 24px;
  --w-e-6: 32px; --w-e-7: 48px; --w-e-8: 64px; --w-e-9: 96px; --w-e-10: 128px;

  /* Forma: radios contenidos (serio), pill solo en botones y chips */
  --w-r-s: 6px; --w-r-m: 12px; --w-r-l: 20px; --w-r-pill: 999px;

  /* Sombras suaves */
  --w-sombra-1: 0 1px 2px rgba(43, 30, 63, .06), 0 1px 1px rgba(43, 30, 63, .04);
  --w-sombra-2: 0 6px 20px -6px rgba(43, 30, 63, .16);
  --w-sombra-3: 0 24px 60px -18px rgba(43, 30, 63, .30);

  /* Movimiento */
  --w-ease: cubic-bezier(.2, .7, .2, 1);
  --w-ease-salida: cubic-bezier(.4, 0, .2, 1);
  --w-dur-1: 160ms; --w-dur-2: 280ms; --w-dur-3: 600ms;

  /* Layout */
  --w-ancho: 1240px;
  --w-ancho-texto: 640px;
  --w-alto-barra: 64px;
  --w-alto-maqueta: 52px;
  --w-foco: 0 0 0 3px var(--w-papel), 0 0 0 5px var(--w-violeta);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--w-papel); color: var(--w-tinta);
  font: 400 var(--w-t-m)/1.55 var(--w-fuente);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  padding-bottom: var(--w-alto-maqueta);
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus { outline: none; }
:focus-visible { box-shadow: var(--w-foco); border-radius: var(--w-r-s); }
::selection { background: var(--w-match); color: #fff; }
[hidden] { display: none !important; }

.w-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.w-saltar { position: fixed; left: var(--w-e-4); top: -60px; z-index: 1000; background: var(--w-tinta); color: #fff; padding: var(--w-e-2) var(--w-e-4); border-radius: var(--w-r-s); transition: top var(--w-dur-1); }
.w-saltar:focus { top: var(--w-e-4); }

/* ---------- 3. Tipografía ---------- */
.w-display { font: 400 var(--w-t-display)/0.98 var(--w-fuente-display); letter-spacing: -0.02em; }
.w-h1 { font: 400 var(--w-t-3xl)/1.05 var(--w-fuente-display); letter-spacing: -0.015em; }
.w-h2 { font: 600 var(--w-t-2xl)/1.15 var(--w-fuente); letter-spacing: -0.02em; }
.w-h3 { font: 600 var(--w-t-xl)/1.25 var(--w-fuente); letter-spacing: -0.01em; }
.w-h4 { font: 600 var(--w-t-l)/1.3 var(--w-fuente); }
.w-acento { font-family: var(--w-fuente-display); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.w-marca { font-family: var(--w-fuente-marca); font-weight: 900; letter-spacing: -0.02em; }
.w-eyebrow { font: 600 var(--w-t-xs)/1.2 var(--w-fuente); letter-spacing: .14em; text-transform: uppercase; color: var(--w-tinta-2); }
.w-lead { font-size: var(--w-t-l); line-height: 1.55; color: var(--w-tinta-2); max-width: var(--w-ancho-texto); }
.w-texto-s { font-size: var(--w-t-s); }
.w-texto-xs { font-size: var(--w-t-xs); }
.w-muted { color: var(--w-tinta-2); }
.w-tenue { color: var(--w-tinta-3); }
.w-coral { color: var(--w-coral-texto); }
.w-violeta { color: var(--w-violeta); }
.w-num { font-variant-numeric: tabular-nums; }
.w-enlace { color: var(--w-violeta); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; }
.w-enlace:hover { text-decoration-thickness: 2px; }
.w-enlace--coral { color: var(--w-coral-texto); }
.w-flecha::after { content: "→"; display: inline-block; margin-left: .35em; transition: transform var(--w-dur-2) var(--w-ease); }
.w-flecha:hover::after { transform: translateX(4px); }

/* ---------- 4. Layout ---------- */
.w-contenedor { width: min(100% - 2 * var(--w-e-5), var(--w-ancho)); margin-inline: auto; }
.w-contenedor--angosto { width: min(100% - 2 * var(--w-e-5), 880px); margin-inline: auto; }
.w-seccion { padding-block: var(--w-e-9); }
.w-seccion--s { padding-block: var(--w-e-7); }
.w-seccion--crema { background: var(--w-crema); }
.w-seccion--noche { background: var(--w-noche); color: #F4EEF9; }
.w-seccion--noche .w-muted, .w-seccion--noche .w-lead, .w-seccion--noche .w-eyebrow { color: #CFC5DD; }
.w-stack { display: flex; flex-direction: column; gap: var(--w-e-4); }
.w-stack--s { gap: var(--w-e-2); }
.w-stack--l { gap: var(--w-e-6); }
.w-fila { display: flex; align-items: center; gap: var(--w-e-3); flex-wrap: wrap; }
.w-fila--s { gap: var(--w-e-2); }
.w-entre { display: flex; align-items: center; justify-content: space-between; gap: var(--w-e-4); flex-wrap: wrap; }
.w-grid { display: grid; gap: var(--w-e-5); }
.w-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.w-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.w-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.w-grid--auto { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
@media (max-width: 960px) { .w-grid--3, .w-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .w-grid--2, .w-grid--3, .w-grid--4 { grid-template-columns: 1fr; } .w-seccion { padding-block: var(--w-e-8); } }
.w-separador { height: 1px; background: var(--w-linea); border: 0; margin: var(--w-e-5) 0; }
.w-cabecera-seccion { display: flex; align-items: end; justify-content: space-between; gap: var(--w-e-5); margin-bottom: var(--w-e-7); flex-wrap: wrap; }
.w-cabecera-seccion .w-stack { max-width: 680px; }

/* ---------- 5. Botones ---------- */
.w-btn {
  --_bg: var(--w-tinta); --_fg: #fff; --_borde: var(--w-tinta);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--w-e-2);
  min-height: 44px; padding: 0 var(--w-e-5); border-radius: var(--w-r-pill);
  background: var(--_bg); color: var(--_fg); border: 1px solid var(--_borde);
  font: 600 var(--w-t-m)/1 var(--w-fuente); letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
  transition: transform var(--w-dur-1) var(--w-ease), background var(--w-dur-2), color var(--w-dur-2), border-color var(--w-dur-2), box-shadow var(--w-dur-2);
}
.w-btn:hover { transform: translateY(-1px); box-shadow: var(--w-sombra-2); }
.w-btn:active { transform: translateY(0); box-shadow: none; }
.w-btn[disabled], .w-btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.w-btn--primario { --_bg: var(--w-tinta); --_fg: #fff; --_borde: var(--w-tinta); }
.w-btn--primario:hover { --_bg: #3B2C52; }
.w-btn--coral { --_bg: var(--w-coral-fuerte); --_fg: #fff; --_borde: var(--w-coral-fuerte); }
.w-btn--coral:hover { --_bg: #BF3328; }
.w-btn--violeta { --_bg: var(--w-violeta); --_fg: #fff; --_borde: var(--w-violeta); }
.w-btn--violeta:hover { --_bg: var(--w-violeta-fuerte); }
.w-btn--match { --_bg: var(--w-match-texto); --_fg: #fff; --_borde: var(--w-match-texto); }
.w-btn--secundario { --_bg: transparent; --_fg: var(--w-tinta); --_borde: var(--w-linea-fuerte); }
.w-btn--secundario:hover { --_borde: var(--w-tinta); box-shadow: none; }
.w-btn--fantasma { --_bg: transparent; --_fg: var(--w-tinta); --_borde: transparent; padding-inline: var(--w-e-3); }
.w-btn--fantasma:hover { --_bg: rgba(43, 30, 63, .06); box-shadow: none; transform: none; }
.w-btn--peligro { --_bg: var(--w-peligro); --_fg: #fff; --_borde: var(--w-peligro); }
.w-btn--claro { --_bg: #fff; --_fg: var(--w-tinta); --_borde: #fff; }
.w-btn--sm { min-height: 36px; padding: 0 var(--w-e-4); font-size: var(--w-t-s); }
.w-btn--lg { min-height: 56px; padding: 0 var(--w-e-6); font-size: var(--w-t-l); }
.w-btn--bloque { width: 100%; }
.w-btn--icono { width: 44px; padding: 0; }
.w-btn--icono.w-btn--sm { width: 36px; }

/* ---------- 6. Chips, insignias, etiquetas ---------- */
.w-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 var(--w-e-4);
  border-radius: var(--w-r-pill); border: 1px solid var(--w-linea-fuerte); background: var(--w-blanco);
  font: 500 var(--w-t-s)/1 var(--w-fuente); color: var(--w-tinta); text-decoration: none;
  transition: background var(--w-dur-2), border-color var(--w-dur-2), color var(--w-dur-2);
}
.w-chip:hover { border-color: var(--w-tinta); }
.w-chip[aria-pressed="true"], .w-chip.w-chip--activo { background: var(--w-tinta); border-color: var(--w-tinta); color: #fff; }
.w-chip--coral[aria-pressed="true"], .w-chip--coral.w-chip--activo { background: var(--w-coral-fuerte); border-color: var(--w-coral-fuerte); }
.w-chip--violeta[aria-pressed="true"], .w-chip--violeta.w-chip--activo { background: var(--w-violeta); border-color: var(--w-violeta); }
.w-chip__punto { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

.w-insignia {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: var(--w-r-pill);
  font: 600 var(--w-t-xs)/1.4 var(--w-fuente); letter-spacing: .01em; white-space: nowrap;
  background: rgba(43, 30, 63, .06); color: var(--w-tinta-2);
}
.w-insignia::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.w-insignia--sin-punto::before { display: none; }
.w-insignia--verificado { background: var(--w-exito-suave); color: var(--w-exito); }
.w-insignia--fundador { background: var(--w-sol-suave); color: var(--w-sol-texto); }
.w-insignia--nuevo { background: var(--w-coral-suave); color: var(--w-coral-texto); }
.w-insignia--violeta, .w-insignia--info { background: var(--w-violeta-suave); color: var(--w-violeta); }
.w-insignia--coral { background: var(--w-coral-suave); color: var(--w-coral-texto); }
.w-insignia--sol, .w-insignia--aviso { background: var(--w-sol-suave); color: var(--w-sol-texto); }
.w-insignia--exito { background: var(--w-exito-suave); color: var(--w-exito); }
.w-insignia--peligro { background: var(--w-peligro-suave); color: var(--w-peligro); }
.w-insignia--neutro { background: rgba(43, 30, 63, .06); color: var(--w-tinta-2); }
.w-insignia--match { background: #FFE3EF; color: var(--w-match-texto); }
.w-insignia--oscura { background: var(--w-tinta); color: #fff; }

.w-nivel { display: inline-flex; align-items: center; gap: 6px; font: 600 var(--w-t-xs)/1 var(--w-fuente); letter-spacing: .08em; text-transform: uppercase; color: var(--w-tinta-2); }
.w-nivel__sol { width: 12px; height: 12px; border-radius: 50%; background: var(--w-sol); box-shadow: 0 0 0 3px var(--w-sol-suave); }
.w-nivel--semilla .w-nivel__sol { background: var(--w-crema-2); box-shadow: 0 0 0 3px var(--w-crema); }
.w-nivel--brote .w-nivel__sol { background: #6FCF97; box-shadow: 0 0 0 3px var(--w-exito-suave); }
.w-nivel--sol-oro .w-nivel__sol { background: conic-gradient(#FFC93C, #FFE48A, #E9A400, #FFC93C); box-shadow: 0 0 0 3px var(--w-sol-suave), 0 0 12px rgba(255, 201, 60, .7); }

/* Etiqueta de precio colgante (riel, tarjetas) */
.w-etiqueta-precio {
  position: relative; display: inline-flex; flex-direction: column; align-items: flex-start;
  padding: 7px 12px 7px 22px; background: var(--w-blanco); color: var(--w-tinta);
  border: 1px solid var(--w-linea); border-radius: 4px 10px 10px 4px; box-shadow: var(--w-sombra-1);
  font: 600 var(--w-t-s)/1.15 var(--w-fuente); font-variant-numeric: tabular-nums;
}
.w-etiqueta-precio::before { content: ""; position: absolute; left: 8px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--w-papel); box-shadow: inset 0 0 0 1px var(--w-linea-fuerte); }
.w-etiqueta-precio small { font-weight: 500; font-size: 11px; color: var(--w-tinta-3); letter-spacing: .04em; text-transform: uppercase; }
.w-etiqueta-precio--coral { background: var(--w-coral); border-color: var(--w-coral); color: var(--w-tinta); }
.w-etiqueta-precio--coral small { color: rgba(43, 30, 63, .75); }

/* ---------- 7. Estrellas de nota ---------- */
.w-estrellas { display: inline-flex; align-items: center; gap: 6px; font: 600 var(--w-t-s)/1 var(--w-fuente); font-variant-numeric: tabular-nums; }
.w-estrellas__barra { --nota: 5; position: relative; display: inline-block; font-size: 14px; letter-spacing: 1px; line-height: 1; color: var(--w-crema-2); }
.w-estrellas__barra::before { content: "★★★★★"; }
.w-estrellas__barra::after { content: "★★★★★"; position: absolute; inset: 0; width: calc(var(--nota) / 5 * 100%); overflow: hidden; color: var(--w-tinta); white-space: nowrap; }
.w-estrellas--sol .w-estrellas__barra::after { color: #E9A400; }
.w-estrellas__n { color: var(--w-tinta-3); font-weight: 500; }

/* ---------- 8. Avatar ---------- */
.w-avatar { --t: 40px; width: var(--t); height: var(--t); border-radius: 50%; object-fit: cover; background: var(--w-crema-2); flex: none; display: inline-grid; place-items: center; font: 600 calc(var(--t) * .38)/1 var(--w-fuente); color: var(--w-tinta-2); overflow: hidden; }
.w-avatar--xs { --t: 24px; } .w-avatar--sm { --t: 32px; } .w-avatar--lg { --t: 64px; } .w-avatar--xl { --t: 112px; }
.w-avatar--anillo { box-shadow: 0 0 0 2px var(--w-papel), 0 0 0 4px var(--w-coral); }
.w-avatar--anillo-violeta { box-shadow: 0 0 0 2px var(--w-papel), 0 0 0 4px var(--w-violeta); }
.w-avatares { display: inline-flex; } .w-avatares > * + * { margin-left: -10px; box-shadow: 0 0 0 2px var(--w-papel); }

/* ---------- 9. Tarjetas ---------- */
.w-tarjeta { background: var(--w-blanco); border: 1px solid var(--w-linea); border-radius: var(--w-r-l); padding: var(--w-e-5); }
.w-tarjeta--plana { border: 0; background: var(--w-crema); }
.w-tarjeta--sombra { border-color: transparent; box-shadow: var(--w-sombra-2); }
.w-tarjeta--interactiva { transition: transform var(--w-dur-2) var(--w-ease), box-shadow var(--w-dur-2), border-color var(--w-dur-2); text-decoration: none; color: inherit; display: block; }
.w-tarjeta--interactiva:hover { transform: translateY(-3px); box-shadow: var(--w-sombra-2); border-color: transparent; }
.w-tarjeta--coral { background: var(--w-coral-suave); border-color: transparent; }
.w-tarjeta--violeta { background: var(--w-violeta-suave); border-color: transparent; }
.w-tarjeta__titulo { font: 600 var(--w-t-l)/1.3 var(--w-fuente); }

/* Tarjeta de socio (foto protagonista, estilo vitrina) */
.w-socio { position: relative; display: flex; flex-direction: column; gap: var(--w-e-3); color: inherit; text-decoration: none; }
.w-socio__foto { position: relative; aspect-ratio: 4 / 5; border-radius: var(--w-r-m); overflow: hidden; background: var(--w-crema-2); }
.w-socio__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--w-dur-3) var(--w-ease); }
.w-socio:hover .w-socio__foto img { transform: scale(1.04); }
.w-socio__sobre { position: absolute; left: var(--w-e-3); top: var(--w-e-3); right: var(--w-e-3); display: flex; justify-content: space-between; align-items: start; gap: var(--w-e-2); }
.w-socio__sobre .w-insignia { background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); }
.w-socio__tinca { width: 38px; height: 38px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--w-tinta); font-size: 17px; transition: transform var(--w-dur-1) var(--w-ease), color var(--w-dur-2); }
.w-socio__tinca:hover { transform: scale(1.08); }
.w-socio__tinca[aria-pressed="true"] { color: var(--w-match-texto); }
.w-socio__info { display: flex; flex-direction: column; gap: 4px; }
.w-socio__nombre { font: 600 var(--w-t-m)/1.3 var(--w-fuente); }
.w-socio__meta { font-size: var(--w-t-s); color: var(--w-tinta-2); }
.w-socio__precio { font: 600 var(--w-t-m)/1.2 var(--w-fuente); font-variant-numeric: tabular-nums; }
.w-socio__precio small { font-weight: 400; color: var(--w-tinta-3); font-size: var(--w-t-s); }

/* KPI */
.w-kpi { background: var(--w-blanco); border: 1px solid var(--w-linea); border-radius: var(--w-r-m); padding: var(--w-e-5); display: flex; flex-direction: column; gap: var(--w-e-2); }
.w-kpi__etiqueta { font-size: var(--w-t-s); color: var(--w-tinta-2); }
.w-kpi__valor { font: 600 var(--w-t-2xl)/1.1 var(--w-fuente); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.w-kpi__variacion { font: 600 var(--w-t-xs)/1 var(--w-fuente); color: var(--w-exito); }
.w-kpi__variacion--baja { color: var(--w-peligro); }
.w-kpi--destacado { background: var(--w-tinta); color: #fff; border-color: var(--w-tinta); }
.w-kpi--destacado .w-kpi__etiqueta { color: #D9D1E6; }
.w-kpi--destacado .w-kpi__variacion { color: #8EE0B4; }

/* ---------- 10. Formularios ---------- */
.w-campo { display: flex; flex-direction: column; gap: 6px; }
.w-campo > label, .w-etiqueta { font: 600 var(--w-t-s)/1.3 var(--w-fuente); }
.w-input, .w-select, .w-textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; background: var(--w-blanco);
  border: 1px solid var(--w-linea-fuerte); border-radius: var(--w-r-m); color: var(--w-tinta);
  transition: border-color var(--w-dur-2), box-shadow var(--w-dur-2);
}
.w-textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
.w-input::placeholder, .w-textarea::placeholder { color: var(--w-tinta-3); }
.w-input:hover, .w-select:hover, .w-textarea:hover { border-color: var(--w-tinta-3); }
.w-input:focus-visible, .w-select:focus-visible, .w-textarea:focus-visible { border-color: var(--w-violeta); box-shadow: 0 0 0 3px var(--w-violeta-suave); border-radius: var(--w-r-m); }
.w-select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232B1E3F' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.w-ayuda { font-size: var(--w-t-xs); color: var(--w-tinta-2); }
.w-error { font-size: var(--w-t-xs); color: var(--w-peligro); font-weight: 600; }
.w-campo--error .w-input, .w-campo--error .w-select, .w-campo--error .w-textarea { border-color: var(--w-peligro); }
.w-input-grupo { display: flex; align-items: stretch; }
.w-input-grupo > .w-input { border-radius: var(--w-r-m) 0 0 var(--w-r-m); }
.w-input-grupo > .w-btn { border-radius: 0 var(--w-r-m) var(--w-r-m) 0; min-height: 46px; }
.w-check { display: inline-flex; align-items: center; gap: 10px; font-size: var(--w-t-s); cursor: pointer; }
.w-check input { width: 18px; height: 18px; accent-color: var(--w-violeta); }

/* Interruptor (toggle): <label class="w-toggle"><input type="checkbox" role="switch"><span class="w-toggle__pista"></span> Texto</label> */
.w-toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: var(--w-t-s); user-select: none; }
.w-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.w-toggle__pista { position: relative; width: 44px; height: 26px; border-radius: var(--w-r-pill); background: var(--w-linea-fuerte); transition: background var(--w-dur-2); flex: none; }
.w-toggle__pista::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--w-sombra-1); transition: transform var(--w-dur-2) var(--w-ease); }
.w-toggle input:checked + .w-toggle__pista { background: var(--w-violeta); }
.w-toggle--coral input:checked + .w-toggle__pista { background: var(--w-coral-fuerte); }
.w-toggle input:checked + .w-toggle__pista::after { transform: translateX(18px); }
.w-toggle input:focus-visible + .w-toggle__pista { box-shadow: var(--w-foco); }

/* Control segmentado (Busco/Ofrezco, Su trabajo/Sus reseñas, formas de cobro) */
.w-segmento { display: inline-flex; padding: 4px; gap: 2px; background: rgba(43, 30, 63, .06); border-radius: var(--w-r-pill); }
.w-segmento button { border: 0; background: transparent; min-height: 36px; padding: 0 var(--w-e-4); border-radius: var(--w-r-pill); font: 600 var(--w-t-s)/1 var(--w-fuente); color: var(--w-tinta-2); transition: background var(--w-dur-2), color var(--w-dur-2), box-shadow var(--w-dur-2); }
.w-segmento button[aria-pressed="true"], .w-segmento button[aria-selected="true"] { background: var(--w-blanco); color: var(--w-tinta); box-shadow: var(--w-sombra-1); }
.w-segmento--coral button[aria-pressed="true"] { background: var(--w-coral-fuerte); color: #fff; }
.w-segmento--violeta button[aria-pressed="true"] { background: var(--w-violeta); color: #fff; }

/* Tabs: <div class="w-tabs" role="tablist"><button class="w-tab" role="tab" aria-selected="true"> */
.w-tabs { display: flex; gap: var(--w-e-5); border-bottom: 1px solid var(--w-linea); overflow-x: auto; scrollbar-width: none; }
.w-tab { position: relative; border: 0; background: none; padding: var(--w-e-3) 0; font: 600 var(--w-t-s)/1 var(--w-fuente); color: var(--w-tinta-2); white-space: nowrap; text-decoration: none; }
.w-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--w-tinta); transform: scaleX(0); transition: transform var(--w-dur-2) var(--w-ease); }
.w-tab[aria-selected="true"], .w-tab[aria-current="page"] { color: var(--w-tinta); }
.w-tab[aria-selected="true"]::after, .w-tab[aria-current="page"]::after { transform: scaleX(1); }
.w-tab__n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 6px; padding: 0 6px; border-radius: var(--w-r-pill); background: var(--w-violeta-suave); color: var(--w-violeta); font-size: 11px; }

/* ---------- 11. Tablas ---------- */
.w-tabla-envoltura { overflow-x: auto; border: 1px solid var(--w-linea); border-radius: var(--w-r-m); background: var(--w-blanco); }
.w-tabla { width: 100%; border-collapse: collapse; font-size: var(--w-t-s); }
.w-tabla th { text-align: left; font: 600 var(--w-t-xs)/1.2 var(--w-fuente); letter-spacing: .06em; text-transform: uppercase; color: var(--w-tinta-2); padding: 12px 16px; border-bottom: 1px solid var(--w-linea); background: var(--w-papel); white-space: nowrap; }
.w-tabla td { padding: 14px 16px; border-bottom: 1px solid var(--w-linea); vertical-align: middle; }
.w-tabla tr:last-child td { border-bottom: 0; }
.w-tabla tbody tr { transition: background var(--w-dur-1); }
.w-tabla tbody tr:hover { background: var(--w-papel); }
.w-tabla .w-num, .w-tabla td.w-derecha, .w-tabla th.w-derecha { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- 12. Progreso, torta, barras ---------- */
.w-progreso { --valor: 50; height: 8px; border-radius: var(--w-r-pill); background: rgba(43, 30, 63, .08); overflow: hidden; }
.w-progreso::before { content: ""; display: block; height: 100%; width: calc(var(--valor) * 1%); background: var(--w-tinta); border-radius: inherit; transition: width var(--w-dur-3) var(--w-ease); }
.w-progreso--coral::before { background: var(--w-coral); }
.w-progreso--violeta::before { background: var(--w-violeta); }
.w-progreso--match::before { background: var(--w-degradado); }
.w-progreso--sol::before { background: var(--w-sol); }

/* Torta: style="--torta: conic-gradient(...)" (usa el helper torta() de app.js) */
.w-torta { --t: 160px; width: var(--t); height: var(--t); border-radius: 50%; background: var(--torta, var(--w-crema-2)); position: relative; flex: none; }
.w-torta--dona::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; background: var(--w-fondo-torta, var(--w-blanco)); }
.w-torta__centro { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; text-align: center; font: 600 var(--w-t-s)/1.2 var(--w-fuente); }
.w-leyenda { display: flex; flex-direction: column; gap: var(--w-e-2); font-size: var(--w-t-s); }
.w-leyenda li { display: flex; align-items: center; gap: var(--w-e-2); list-style: none; }
.w-leyenda__color { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.w-leyenda__pct { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; padding-left: var(--w-e-4); }

/* Barras verticales simples: <div class="w-barras"><div class="w-barras__col" style="--v:70"><span>Jun</span></div>… */
.w-barras { display: flex; align-items: flex-end; gap: var(--w-e-3); height: 180px; padding-top: var(--w-e-4); }
.w-barras__col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; font-size: var(--w-t-xs); color: var(--w-tinta-2); }
.w-barras__col::before { content: ""; width: 100%; max-width: 48px; height: calc(var(--v) * 1%); background: var(--w-violeta-suave); border-radius: 6px 6px 2px 2px; transition: height var(--w-dur-3) var(--w-ease); }
.w-barras__col--activa::before { background: var(--w-violeta); }

/* ---------- 13. Avisos y estados vacíos ---------- */
.w-aviso { display: flex; gap: var(--w-e-3); align-items: flex-start; padding: var(--w-e-4); border-radius: var(--w-r-m); background: var(--w-violeta-suave); color: var(--w-tinta); font-size: var(--w-t-s); border: 1px solid transparent; }
.w-aviso__icono { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--w-violeta); color: #fff; font-size: 12px; font-weight: 700; }
.w-aviso--exito { background: var(--w-exito-suave); } .w-aviso--exito .w-aviso__icono { background: var(--w-exito); }
.w-aviso--aviso { background: var(--w-sol-suave); } .w-aviso--aviso .w-aviso__icono { background: var(--w-sol-texto); }
.w-aviso--peligro { background: var(--w-peligro-suave); } .w-aviso--peligro .w-aviso__icono { background: var(--w-peligro); }
.w-aviso--coral { background: var(--w-coral-suave); } .w-aviso--coral .w-aviso__icono { background: var(--w-coral-fuerte); }

.w-vacio { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--w-e-3); padding: var(--w-e-8) var(--w-e-5); border: 1px dashed var(--w-linea-fuerte); border-radius: var(--w-r-l); background: var(--w-papel); }
.w-vacio__icono { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--w-crema); font: 400 28px/1 var(--w-fuente-display); color: var(--w-coral-texto); }
.w-vacio p { max-width: 380px; color: var(--w-tinta-2); }

/* ---------- 14. Modal / overlay ---------- */
.w-overlay { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: var(--w-e-5); background: rgba(28, 19, 41, .55); backdrop-filter: blur(4px); animation: w-fundido var(--w-dur-2) var(--w-ease); }
.w-modal { position: relative; width: min(560px, 100%); max-height: calc(100vh - 2 * var(--w-e-5)); overflow: auto; background: var(--w-blanco); border-radius: var(--w-r-l); box-shadow: var(--w-sombra-3); animation: w-subir var(--w-dur-3) var(--w-ease); }
.w-modal--ancho { width: min(1080px, 100%); }
.w-modal--completo { width: min(1240px, 100%); height: min(820px, 100%); }
.w-modal__cabecera { display: flex; align-items: center; justify-content: space-between; gap: var(--w-e-4); padding: var(--w-e-5) var(--w-e-5) 0; }
.w-modal__cuerpo { padding: var(--w-e-5); }
.w-modal__pie { display: flex; justify-content: flex-end; gap: var(--w-e-3); padding: 0 var(--w-e-5) var(--w-e-5); flex-wrap: wrap; }
.w-modal__cerrar { position: absolute; top: var(--w-e-3); right: var(--w-e-3); z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); font-size: 20px; line-height: 1; display: grid; place-items: center; }
.w-modal__cerrar:hover { background: var(--w-crema); }
.w-cuerpo-bloqueado { overflow: hidden; }

/* ---------- 15. Toasts ---------- */
.w-toasts { position: fixed; z-index: 1000; left: 50%; bottom: calc(var(--w-alto-maqueta) + var(--w-e-4)); transform: translateX(-50%); display: flex; flex-direction: column; gap: var(--w-e-2); align-items: center; pointer-events: none; }
.w-toast { pointer-events: auto; display: flex; align-items: center; gap: var(--w-e-3); min-width: 260px; max-width: min(92vw, 460px); padding: 12px 18px; border-radius: var(--w-r-pill); background: var(--w-tinta); color: #fff; font-size: var(--w-t-s); box-shadow: var(--w-sombra-3); animation: w-subir var(--w-dur-2) var(--w-ease); }
.w-toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--w-violeta-claro); flex: none; }
.w-toast--exito::before { background: #6FCF97; }
.w-toast--coral::before { background: var(--w-coral); }
.w-toast--match::before { background: var(--w-match); }
.w-toast--peligro::before { background: #FF8A80; }
.w-toast.w-saliendo { animation: w-bajar var(--w-dur-2) var(--w-ease-salida) forwards; }

/* ---------- 16. Barra superior pública ---------- */
.w-barra { position: sticky; top: 0; z-index: 100; height: var(--w-alto-barra); background: rgba(255, 252, 248, .86); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color var(--w-dur-2), background var(--w-dur-2); }
.w-barra--borde { border-bottom-color: var(--w-linea); }
.w-barra__dentro { height: 100%; display: flex; align-items: center; gap: var(--w-e-5); }
.w-logo { display: inline-flex; align-items: center; text-decoration: none; }
.w-logo img { height: 22px; width: auto; }
.w-barra__nav { display: flex; gap: var(--w-e-5); margin-left: var(--w-e-4); }
.w-barra__nav a { text-decoration: none; font: 500 var(--w-t-s)/1 var(--w-fuente); color: var(--w-tinta-2); padding: 8px 0; position: relative; }
.w-barra__nav a:hover, .w-barra__nav a[aria-current="page"] { color: var(--w-tinta); }
.w-barra__nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--w-tinta); }
.w-barra__acciones { margin-left: auto; display: flex; align-items: center; gap: var(--w-e-2); }
@media (max-width: 820px) { .w-barra__nav { display: none; } }

/* Barra tipo app (exploración: /categorias, /categoria/:id, /ficha/:id, /@alias) */
.w-barra--app { background: rgba(255, 255, 255, .92); border-bottom-color: var(--w-linea); }
.w-barra--app .w-barra__dentro { gap: var(--w-e-4); }
.w-barra--app .w-barra__acciones { margin-left: 0; gap: var(--w-e-1); }
.w-buscador { position: relative; flex: 1 1 auto; max-width: 620px; margin-inline: auto; display: flex; align-items: center; }
.w-buscador input { width: 100%; height: 44px; padding: 0 48px 0 44px; border-radius: var(--w-r-pill); border: 1px solid var(--w-linea); background: var(--w-crema); font: 500 var(--w-t-m)/1 var(--w-fuente); color: var(--w-tinta); transition: border-color var(--w-dur-2), background var(--w-dur-2), box-shadow var(--w-dur-2); }
.w-buscador input::placeholder { color: var(--w-tinta-3); }
.w-buscador input:hover { border-color: var(--w-linea-fuerte); }
.w-buscador input:focus { outline: none; background: var(--w-blanco); border-color: var(--w-violeta); box-shadow: 0 0 0 4px var(--w-violeta-suave); }
.w-buscador input::-webkit-search-cancel-button { display: none; }
.w-buscador__ico { position: absolute; left: 16px; display: inline-flex; color: var(--w-tinta-2); pointer-events: none; }
.w-buscador__ir { position: absolute; right: 5px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--w-tinta); color: #fff; display: grid; place-items: center; cursor: pointer; }
.w-comuna-app { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 var(--w-e-3); border-radius: var(--w-r-pill); color: var(--w-tinta); flex: none; }
.w-comuna-app:hover { background: var(--w-crema); }
.w-comuna-app:focus-within { box-shadow: var(--w-foco); }
.w-comuna-app select { appearance: none; border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%232B1E3F' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 0 center; padding-right: 16px; font: 600 var(--w-t-s)/1 var(--w-fuente); color: inherit; cursor: pointer; max-width: 150px; }
.w-comuna-app select:focus { outline: none; }
.w-btn-app { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--w-tinta); text-decoration: none; }
.w-btn-app:hover { background: var(--w-crema); }
.w-btn-app__n, .w-tabbar__n { position: absolute; top: 3px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: var(--w-r-pill); background: var(--w-match-texto); color: #fff; font: 700 10px/17px var(--w-fuente); text-align: center; }
.w-btn-app__n:empty, .w-tabbar__n:empty { display: none; }
.w-ofrecer-app { font: 600 var(--w-t-s)/1 var(--w-fuente); color: var(--w-coral-texto); text-decoration: none; padding: 12px var(--w-e-3); border-radius: var(--w-r-pill); white-space: nowrap; }
.w-ofrecer-app:hover { background: var(--w-coral-suave); }
.w-cuenta-app { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 var(--w-e-4) 0 var(--w-e-2); border-radius: var(--w-r-pill); border: 1px solid var(--w-linea-fuerte); color: var(--w-tinta); text-decoration: none; font: 600 var(--w-t-s)/1 var(--w-fuente); white-space: nowrap; }
.w-cuenta-app > svg { margin-left: 4px; }
.w-cuenta-app:hover { border-color: var(--w-tinta); }
.w-tabbar { display: none; }
@media (max-width: 1080px) { .w-ofrecer-app { display: none; } }
@media (max-width: 720px) {
  .w-barra--app .w-barra__dentro { gap: var(--w-e-3); }
  .w-barra--app .w-comuna-app, .w-barra--app .w-barra__acciones { display: none; }
  .w-buscador input { height: 42px; font-size: var(--w-t-m); }
  .w-app { padding-bottom: 64px; }
  .w-tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: var(--w-alto-maqueta); z-index: 120; height: 64px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); border-top: 1px solid var(--w-linea); }
  .w-tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--w-tinta-3); text-decoration: none; font: 600 11px/1 var(--w-fuente); }
  .w-tabbar a[aria-current="page"] { color: var(--w-tinta); }
  .w-tabbar a[aria-current="page"] .w-tabbar__ico::after { content: ""; position: absolute; left: 50%; top: -9px; width: 20px; height: 3px; margin-left: -10px; border-radius: 0 0 3px 3px; background: var(--w-coral); }
  .w-tabbar__ico { position: relative; display: inline-flex; }
  .w-tabbar__n { top: -4px; right: -10px; }
  body:has(.w-tabbar) .w-maqueta--mini { bottom: calc(64px + var(--w-e-3)); }
}

.w-pie { background: var(--w-noche); color: #CFC5DD; padding-block: var(--w-e-8) var(--w-e-6); font-size: var(--w-t-s); }
.w-pie a { color: #F4EEF9; text-decoration: none; } .w-pie a:hover { text-decoration: underline; }
.w-pie__grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: var(--w-e-6); }
.w-pie__titulo { color: #fff; font-weight: 600; margin-bottom: var(--w-e-3); }
.w-pie ul { list-style: none; display: flex; flex-direction: column; gap: var(--w-e-2); }
@media (max-width: 720px) { .w-pie__grid { grid-template-columns: 1fr 1fr; } }

/* ---------- 17. Panel (socio / cliente / owner) ---------- */
.w-panel { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: calc(100vh - var(--w-alto-maqueta)); background: var(--w-papel); }
.w-lateral { position: sticky; top: 0; height: calc(100vh - var(--w-alto-maqueta)); overflow-y: auto; display: flex; flex-direction: column; gap: var(--w-e-1); padding: var(--w-e-5) var(--w-e-4); border-right: 1px solid var(--w-linea); background: var(--w-blanco); }
.w-lateral__marca { display: flex; align-items: center; justify-content: space-between; padding: 0 var(--w-e-2) var(--w-e-5); }
.w-lateral__rol { font: 600 11px/1 var(--w-fuente); letter-spacing: .12em; text-transform: uppercase; padding: 5px 8px; border-radius: var(--w-r-pill); background: var(--w-crema); color: var(--w-tinta-2); }
.w-lateral__rol--socio { background: var(--w-coral-suave); color: var(--w-coral-texto); }
.w-lateral__rol--cliente { background: var(--w-violeta-suave); color: var(--w-violeta); }
.w-lateral__rol--owner { background: var(--w-tinta); color: #fff; }
.w-lateral__grupo { font: 600 11px/1 var(--w-fuente); letter-spacing: .12em; text-transform: uppercase; color: var(--w-tinta-3); padding: var(--w-e-4) var(--w-e-3) var(--w-e-2); }
.w-lateral__item { display: flex; align-items: center; gap: var(--w-e-3); min-height: 40px; padding: 0 var(--w-e-3); border-radius: var(--w-r-m); text-decoration: none; font: 500 var(--w-t-s)/1.2 var(--w-fuente); color: var(--w-tinta-2); transition: background var(--w-dur-1), color var(--w-dur-1); }
.w-lateral__item:hover { background: var(--w-papel); color: var(--w-tinta); }
.w-lateral__item[aria-current="page"] { background: var(--w-crema); color: var(--w-tinta); font-weight: 600; }
.w-lateral__item[aria-current="page"]::before { content: ""; width: 3px; height: 18px; margin-left: -8px; margin-right: -3px; border-radius: 2px; background: var(--_acento, var(--w-tinta)); }
.w-panel--socio { --_acento: var(--w-coral); }
.w-panel--cliente { --_acento: var(--w-violeta); }
.w-panel--owner { --_acento: var(--w-tinta); }
.w-lateral__ico { width: 18px; text-align: center; font-size: 15px; opacity: .8; }
.w-lateral__n { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--w-r-pill); background: var(--_acento, var(--w-tinta)); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.w-panel--owner .w-lateral__n { background: var(--w-coral-fuerte); }
.w-lateral__pie { margin-top: auto; padding-top: var(--w-e-5); border-top: 1px solid var(--w-linea); display: flex; align-items: center; gap: var(--w-e-3); font-size: var(--w-t-s); }
.w-panel__principal { min-width: 0; }
.w-panel__cabecera { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: var(--w-e-4); min-height: var(--w-alto-barra); padding: 0 var(--w-e-6); background: rgba(255, 252, 248, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--w-linea); }
.w-panel__titulo { font: 600 var(--w-t-l)/1.2 var(--w-fuente); letter-spacing: -0.01em; }
.w-panel__contenido { padding: var(--w-e-6); display: flex; flex-direction: column; gap: var(--w-e-6); max-width: 1280px; }
.w-panel__menu { display: none; }
@media (max-width: 900px) {
  .w-panel { grid-template-columns: 1fr; }
  .w-lateral { position: fixed; z-index: 200; left: 0; top: 0; bottom: var(--w-alto-maqueta); width: 280px; height: auto; transform: translateX(-100%); transition: transform var(--w-dur-2) var(--w-ease); box-shadow: var(--w-sombra-3); }
  .w-panel--menu-abierto .w-lateral { transform: none; }
  .w-panel__menu { display: inline-flex; }
  .w-panel__cabecera, .w-panel__contenido { padding-inline: var(--w-e-4); }
}

/* ---------- 18. Riel de socios colgados (landing + catálogo) ----------
   <div class="w-riel"><div class="w-riel__barra"></div><div class="w-riel__pista">
     <a class="w-colgado">…</a> …</div></div>                                  */
.w-riel { position: relative; padding-top: 28px; overflow: hidden; }
.w-riel__barra { position: absolute; left: 0; right: 0; top: 10px; height: 6px; border-radius: 3px; background: linear-gradient(180deg, #D9CFC2, #B8AB9B 60%, #9E907F); box-shadow: 0 2px 4px rgba(43, 30, 63, .18); z-index: 2; }
.w-riel__pista { display: flex; gap: var(--w-e-5); width: max-content; padding: 0 var(--w-e-5) var(--w-e-6); }
.w-riel--animado .w-riel__pista { animation: w-desplazar var(--w-riel-dur, 70s) linear infinite; }
.w-riel--animado:hover .w-riel__pista, .w-riel--animado:focus-within .w-riel__pista { animation-play-state: paused; }
.w-riel--desplazable { overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.w-riel--desplazable .w-colgado { scroll-snap-align: start; }
.w-colgado { position: relative; flex: none; width: 220px; padding-top: 34px; text-decoration: none; color: inherit; transform-origin: 50% 0; transition: transform var(--w-dur-3) var(--w-ease), filter var(--w-dur-3), opacity var(--w-dur-3); }
.w-colgado::before { /* gancho */ content: ""; position: absolute; left: 50%; top: -18px; width: 22px; height: 30px; margin-left: -11px; border: 2px solid #9E907F; border-bottom: 0; border-radius: 12px 12px 0 0; z-index: 3; }
.w-colgado::after { /* cordel */ content: ""; position: absolute; left: 50%; top: 10px; width: 2px; height: 26px; margin-left: -1px; background: #9E907F; }
.w-colgado__tarjeta { background: var(--w-blanco); border-radius: var(--w-r-m); overflow: hidden; box-shadow: var(--w-sombra-2); transition: box-shadow var(--w-dur-3); }
.w-colgado__foto { aspect-ratio: 3 / 4; overflow: hidden; background: var(--w-crema-2); }
.w-colgado__foto img { width: 100%; height: 100%; object-fit: cover; }
.w-colgado__info { padding: var(--w-e-3) var(--w-e-4) var(--w-e-4); display: flex; flex-direction: column; gap: 4px; }
.w-colgado__nombre { font: 600 var(--w-t-m)/1.25 var(--w-fuente); }
.w-colgado__cat { font-size: var(--w-t-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--w-tinta-3); }
.w-colgado .w-etiqueta-precio { position: absolute; right: -10px; top: 56px; z-index: 4; transform: rotate(6deg); transform-origin: 0 50%; transition: transform var(--w-dur-3) var(--w-ease); }
.w-colgado:nth-child(3n+2) { --w-giro: -1.2deg; } .w-colgado:nth-child(3n) { --w-giro: .9deg; }
.w-colgado { transform: rotate(var(--w-giro, 0deg)); }
.w-colgado:hover, .w-colgado:focus-visible { animation: w-balanceo 1.6s var(--w-ease) both; z-index: 5; }
.w-colgado:hover .w-colgado__tarjeta, .w-colgado:focus-visible .w-colgado__tarjeta { box-shadow: var(--w-sombra-3); }
.w-colgado:hover .w-etiqueta-precio { transform: rotate(-4deg); }
.w-riel__pista:hover .w-colgado:not(:hover) { filter: brightness(.86) saturate(.85); opacity: .9; }
.w-colgado:focus-visible { box-shadow: none; outline: none; }
.w-colgado:focus-visible .w-colgado__tarjeta { box-shadow: var(--w-foco), var(--w-sombra-3); }
@media (max-width: 640px) { .w-colgado { width: 180px; } }

/* ---------- 19. Barra de "modo maqueta" ---------- */
.w-maqueta { position: fixed; z-index: 950; left: 0; right: 0; bottom: 0; height: var(--w-alto-maqueta); display: flex; align-items: center; gap: var(--w-e-3); padding: 0 var(--w-e-4); background: #120B1C; color: #E8E1F2; font: 500 13px/1 var(--w-fuente); box-shadow: 0 -8px 24px rgba(0, 0, 0, .18); }
.w-maqueta__marca { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 11px; color: #fff; white-space: nowrap; }
.w-maqueta__marca::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--w-degradado); box-shadow: 0 0 0 3px rgba(255, 79, 154, .25); }
.w-maqueta select { height: 34px; max-width: 360px; min-width: 0; flex: 1 1 auto; padding: 0 30px 0 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .18); background: #22182F url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23E8E1F2' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 10px center; color: #fff; appearance: none; font-size: 13px; }
.w-maqueta__roles { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: rgba(255, 255, 255, .08); }
.w-maqueta__roles button { border: 0; height: 28px; padding: 0 10px; border-radius: 7px; background: transparent; color: #CFC5DD; font: 600 12px/1 var(--w-fuente); }
.w-maqueta__roles button:hover { color: #fff; }
.w-maqueta__roles button[aria-pressed="true"] { background: #fff; color: var(--w-tinta); }
.w-maqueta__roles button[data-rol="socio"][aria-pressed="true"] { background: var(--w-coral); color: var(--w-tinta); }
.w-maqueta__roles button[data-rol="cliente"][aria-pressed="true"] { background: var(--w-violeta-claro); color: var(--w-tinta); }
.w-maqueta a, .w-maqueta__btn { color: #fff; text-decoration: none; height: 34px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .18); background: transparent; font: 600 12px/1 var(--w-fuente); white-space: nowrap; }
.w-maqueta a:hover, .w-maqueta__btn:hover { background: rgba(255, 255, 255, .08); }
.w-maqueta :focus-visible { box-shadow: 0 0 0 2px #120B1C, 0 0 0 4px var(--w-violeta-claro); }
.w-maqueta__espacio { flex: 1; }
.w-maqueta--mini { width: auto; right: auto; left: var(--w-e-3); bottom: var(--w-e-3); height: 40px; border-radius: 12px; padding: 0 6px 0 12px; }
.w-maqueta--mini > :not(.w-maqueta__marca):not(.w-maqueta__plegar) { display: none; }
body.w-maqueta-mini { padding-bottom: 0; --w-alto-maqueta: 0px; }
@media (max-width: 720px) { .w-maqueta__marca span, .w-maqueta__ocultar-movil { display: none; } .w-maqueta__roles button { padding: 0 7px; } }
@media (max-width: 520px) { .w-maqueta { gap: 6px; padding: 0 8px; } .w-maqueta__marca { font-size: 0; gap: 0; } .w-maqueta select { flex: 1 1 40px; padding-right: 24px; } .w-maqueta__espacio { display: none; } .w-maqueta__roles button { padding: 0 6px; font-size: 11px; } }

/* ---------- 20. Pantalla en construcción / mapa ---------- */
.w-mapa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--w-e-4); }
.w-mapa-item { position: relative; display: flex; flex-direction: column; gap: var(--w-e-2); padding: var(--w-e-4); border-radius: var(--w-r-m); border: 1px solid var(--w-linea); background: var(--w-blanco); text-decoration: none; color: inherit; transition: transform var(--w-dur-2) var(--w-ease), box-shadow var(--w-dur-2); }
.w-mapa-item:hover { transform: translateY(-2px); box-shadow: var(--w-sombra-2); }
.w-mapa-item--falta { background: var(--w-papel); border-style: dashed; }
.w-mapa-mini { height: 92px; border-radius: 8px; background: var(--w-crema); position: relative; overflow: hidden; margin-bottom: var(--w-e-2); }
.w-mapa-mini i { position: absolute; display: block; border-radius: 3px; background: rgba(43, 30, 63, .12); }
.w-mapa-ruta { font: 500 12px/1 ui-monospace, "SF Mono", Menlo, monospace; color: var(--w-tinta-3); }

/* ---------- 21. Movimiento ---------- */
@keyframes w-fundido { from { opacity: 0; } to { opacity: 1; } }
@keyframes w-subir { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes w-bajar { to { opacity: 0; transform: translateY(12px); } }
@keyframes w-desplazar { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes w-balanceo {
  0% { transform: rotate(var(--w-giro, 0deg)) translateY(0); }
  25% { transform: rotate(3deg) translateY(-6px); }
  50% { transform: rotate(-2deg) translateY(-8px); }
  75% { transform: rotate(1deg) translateY(-8px); }
  100% { transform: rotate(0deg) translateY(-8px); }
}
@keyframes w-pulso { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }

/* Aparición al bajar: agrega .w-aparece (app.js agrega .w-visible). Retraso: style="--d:2" */
.w-aparece { opacity: 0; transform: translateY(24px); transition: opacity 800ms var(--w-ease), transform 800ms var(--w-ease); transition-delay: calc(var(--d, 0) * 80ms); }
.w-aparece.w-visible { opacity: 1; transform: none; }
.w-pantalla { animation: w-fundido var(--w-dur-2) var(--w-ease); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .w-aparece { opacity: 1; transform: none; }
  .w-riel--animado .w-riel__pista { animation: none; }
  .w-riel--animado { overflow-x: auto; }
  .w-colgado:hover, .w-colgado:focus-visible { animation: none; transform: none; }
}

/* Contenedores de elementos ocultos con position:absolute (evita desborde en celular) */
.w-toggle { position: relative; }
.w-tabla-envoltura { position: relative; }
