/* ===== Tokens =====
   Estilo "sala de museo": paredes claras, el frasco es la obra y el texto
   es una cartela chica al costado. Letra del sistema (SF en iPhone y Mac). */
/* Estilo "Nocturna": fondo violeta oscuro, acento lila, los frascos sobre un foco claro.
   Componentes al estilo de una ficha olfativa: barras de acordes con su color y pirámide de notas. */
:root {
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Helvetica Neue", system-ui, sans-serif;
  --display: "Manrope", -apple-system, BlinkMacSystemFont, "Helvetica Neue", system-ui, sans-serif;
  --serif: var(--display);

  --bg: #131118;
  --bg-elev: #1c1a23;
  --bg-elev-2: #241f30;
  --line: #2b2833;
  --text: #f0edf5;
  --text-2: #c4bfcd;
  --text-3: #8f8a9a;
  --accent: #a77bf3;
  --accent-ink: #131118;
  --accent-soft: rgba(167, 123, 243, .14);
  --pill: #241f30;
  --pill-ink: #c9b2f7;
  --danger: #ef8a7d;
  --vitrina: radial-gradient(circle at 50% 40%, #ffffff, #dcd6e6);
  --shadow: 0 12px 32px rgba(0, 0, 0, .45);
  --blur-bg: rgba(19, 17, 24, .84);

  --r-s: 12px;
  --r-m: 12px;
  --r-l: 18px;
  --gutter: 18px;
  --tab-h: 64px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f4f9; --bg-elev: #ffffff; --bg-elev-2: #efeaf6; --line: #e4dfeb;
    --text: #1f1b26; --text-2: #5d5768; --text-3: #8b8597;
    --accent: #7c4ddb; --accent-ink: #ffffff; --accent-soft: rgba(124, 77, 219, .1);
    --pill: #efe8fb; --pill-ink: #6a3fc4; --danger: #b3261e;
    --vitrina: radial-gradient(circle at 50% 40%, #ffffff, #ece8f2);
    --shadow: 0 12px 32px rgba(40, 20, 80, .1); --blur-bg: rgba(246, 244, 249, .88);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f6f4f9; --bg-elev: #ffffff; --bg-elev-2: #efeaf6; --line: #e4dfeb;
  --text: #1f1b26; --text-2: #5d5768; --text-3: #8b8597;
  --accent: #7c4ddb; --accent-ink: #ffffff; --accent-soft: rgba(124, 77, 219, .1);
  --pill: #efe8fb; --pill-ink: #6a3fc4; --danger: #b3261e;
  --vitrina: radial-gradient(circle at 50% 40%, #ffffff, #ece8f2);
  --shadow: 0 12px 32px rgba(40, 20, 80, .1); --blur-bg: rgba(246, 244, 249, .88);
  color-scheme: light;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
  background: var(--bg);
}
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .serif { font-family: var(--display); font-weight: 600; letter-spacing: -.022em; margin: 0; }
h1 { font-size: 2rem; line-height: 1.08; font-weight: 700; }
h2 { font-size: 1.3rem; line-height: 1.2; }
h3 { font-size: 1.05rem; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, a, [role="button"], .chip, .tab {
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; font-size: 16px; color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ===== Shell ===== */
.app { min-height: 100dvh; }
.vista {
  padding: calc(var(--safe-top) + 12px) var(--gutter) calc(var(--tab-h) + var(--safe-bottom) + 28px);
  max-width: 1100px;
  margin: 0 auto;
  outline: none;
  animation: entrar .32s var(--ease-out);
}
.vista.sin-tabbar { padding-bottom: calc(var(--safe-bottom) + 28px); }
@keyframes entrar { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .vista { animation: none; } }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  height: calc(var(--tab-h) + var(--safe-bottom));
  padding: 0 8px var(--safe-bottom);
  background: var(--blur-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  backdrop-filter: saturate(1.4) blur(18px);
  border-top: .5px solid var(--line);
}
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  height: 100%; justify-content: center;
  color: var(--text-3); font-size: 10.5px; font-weight: 500;
  transition: color .15s;
}
.tab svg { width: 24px; height: 24px; }
.tab[aria-current="page"] { color: var(--accent); }
.tab:active { opacity: .6; }
.tab-agregar span.burbuja {
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
  transition: transform .12s var(--ease-out);
}
.tab-agregar:active span.burbuja { transform: scale(.92); }
.tab-agregar svg { width: 26px; height: 26px; }

/* Encabezado de pantallas internas */
.barra {
  position: sticky; top: 0; z-index: 10;
  margin: calc(-12px - var(--safe-top)) calc(-1 * var(--gutter)) 12px;
  padding: calc(var(--safe-top) + 8px) var(--gutter) 10px;
  display: flex; align-items: center; gap: 8px; min-height: 52px;
  background: var(--blur-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  backdrop-filter: saturate(1.4) blur(18px);
}
.barra h1 { font-size: 1.25rem; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barra .acciones { display: flex; gap: 4px; margin-left: auto; }
.icono-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; color: var(--text);
  transition: background .12s, transform .12s var(--ease-out);
}
.icono-btn svg { width: 22px; height: 22px; }
.icono-btn:active { background: var(--bg-elev-2); transform: scale(.94); }
.titulo-grande { margin: 8px 0 16px; }
.titulo-grande h1 { font-size: 2.1rem; }
.titulo-grande p { color: var(--text-2); margin-top: 4px; }

/* ===== Botones ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: var(--r-m);
  background: var(--bg-elev-2); color: var(--text);
  font-weight: 600; font-size: 15px;
  transition: transform .12s var(--ease-out), opacity .12s;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(.97); opacity: .85; }
.btn-primario { background: var(--accent); color: var(--accent-ink); }
.btn-fantasma { background: transparent; border: 1px solid var(--line); }
.btn-texto { background: none; min-height: 44px; padding: 0 4px; border-radius: 0; color: var(--text-2); font-weight: 500; }
.btn-peligro { background: transparent; color: var(--danger); border: 1px solid currentColor; }
.btn-bloque { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ===== Buscador ===== */
.buscador {
  display: flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 14px; border-radius: var(--r-m);
  background: var(--bg-elev-2); border: 0;
  color: var(--text-3);
}
.buscador svg { width: 20px; height: 20px; flex: none; }
.buscador input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; }
.buscador input::placeholder { color: var(--text-3); }
.buscador .limpiar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; }

/* ===== Inicio ===== */
.saludo { margin: 14px 0 18px; }
.saludo .fecha { color: var(--text-3); font-size: 15px; }
.saludo h1 { font-size: 2.1rem; margin-top: 2px; }
.seccion { margin-top: 36px; }
.seccion-cabecera { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.seccion-cabecera a { color: var(--text-2); font-size: 15px; padding: 8px 0 8px 12px; }
.etiqueta { color: var(--text-3); font-size: 13px; font-weight: 500; }

/* Perfume del día: el frasco ocupa la sala y la cartela va abajo, chica */
.obra-dia { display: block; }
.obra {
  display: block; margin: 0 calc(-1 * var(--gutter));
  background: var(--vitrina);
  border-top: .5px solid var(--line); border-bottom: .5px solid var(--line);
}
.obra .vitrina { aspect-ratio: auto; height: min(46dvh, 420px); border-radius: 0; background: transparent; box-shadow: none; }
.obra .vitrina img { padding: 28px 18%; }
.cartela { padding: 18px 0 0; max-width: 34rem; }
.cartela h2 { font-size: 1.9rem; line-height: 1.08; font-weight: 700; }
.cartela .casa { display: block; font-size: 16px; margin-top: 4px; }
.cartela .meta { color: var(--text-3); font-size: 14px; }
.cartela .motivo { color: var(--text-2); font-size: 15px; line-height: 1.5; margin-top: 12px; }
.cartela .botones { display: flex; gap: 12px; align-items: center; margin-top: 18px; }
.cartela .botones .btn-primario { flex: 1; max-width: 220px; }
.cargando-tarjeta .obra .vitrina { animation: latido 1.4s ease-in-out infinite; }
@media (min-width: 900px) {
  .obra-dia { display: grid; grid-template-columns: minmax(0, 1.3fr) 1fr; gap: 40px; align-items: end; }
  .obra { margin: 0; border: .5px solid var(--line); }
  .obra .vitrina { height: 480px; }
  .cartela { padding: 0 0 8px; }
}

/* Números de la colección: sin cajas, como la ficha técnica de una sala */
.resumen { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 20px; }
.dato {
  padding: 12px 0 14px; border-top: .5px solid var(--line);
  display: flex; flex-direction: column; gap: 2px;
  transition: opacity .12s;
}
.dato:active { opacity: .6; }
.dato .valor { font-family: var(--display); font-size: 1.85rem; line-height: 1.1; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dato .nombre { color: var(--text-3); font-size: 13px; }
@media (min-width: 700px) { .resumen { grid-template-columns: repeat(4, 1fr); } }

.carrusel {
  display: grid; grid-auto-flow: column; grid-auto-columns: 124px; gap: 14px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px;
  scrollbar-width: none;
}
.carrusel::-webkit-scrollbar { display: none; }
.carrusel > * { scroll-snap-align: start; }

.accesos { display: flex; flex-wrap: wrap; gap: 8px; }

/* ===== Vitrina (foto) ===== */
.vitrina {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-s); overflow: hidden;
  background: var(--vitrina); box-shadow: inset 0 0 0 .5px var(--line);
}
.vitrina img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 6%; }
.vitrina .sin-foto {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  color: #9a9a94; font-size: 14px; padding: 16px;
}
.vitrina .sin-foto svg { display: block; width: 34px; height: 34px; margin: 0 auto 8px; opacity: .6; }
.marca-poco {
  position: absolute; top: 8px; left: 8px;
  padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 600;
  background: #1a1a1a; color: #fafaf8;
}

/* ===== Tarjetas de perfume ===== */
.tarjeta { display: flex; flex-direction: column; gap: 8px; transition: transform .14s var(--ease-out); }
.tarjeta:active { transform: scale(.97); }
.tarjeta .nombre { font-size: 14px; font-weight: 500; line-height: 1.25; }
.tarjeta .casa { color: var(--text-3); font-size: 13px; margin-top: 1px; }
.tarjeta .meta { color: var(--text-3); font-size: 12px; margin-top: 2px; }
.grilla { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
@media (min-width: 640px) { .grilla { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .grilla { grid-template-columns: repeat(5, 1fr); } }

.lista { display: flex; flex-direction: column; }
.fila {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center;
  padding: 10px 0; border-bottom: .5px solid var(--line);
}
.fila:active { opacity: .6; }
.fila .vitrina { border-radius: var(--r-s); }
.fila .vitrina img { padding: 4%; }
.fila .nombre { font-size: 16px; font-weight: 500; }
.fila .casa { color: var(--text-2); font-size: 13px; }
.fila .derecha { text-align: right; color: var(--text-3); font-size: 13px; }

/* ===== Colección: filtros ===== */
.controles { display: flex; gap: 8px; margin: 12px 0; align-items: center; }
.controles .buscador { flex: 1; height: 46px; }
.selector-vista { display: flex; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.selector-vista button { width: 40px; height: 38px; border-radius: 9px; display: grid; place-items: center; color: var(--text-3); }
.selector-vista button svg { width: 20px; height: 20px; }
.selector-vista button[aria-pressed="true"] { background: var(--bg-elev-2); color: var(--text); }
.filtros-activos { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)) 10px; padding: 2px var(--gutter); scrollbar-width: none; }
.filtros-activos::-webkit-scrollbar { display: none; }
.contador { color: var(--text-3); font-size: 13px; margin: 4px 0 14px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  min-height: 36px; padding: 0 13px; border-radius: var(--r-m);
  background: var(--bg-elev); border: 1px solid var(--line);
  font-size: 14px; color: var(--text); white-space: nowrap;
  transition: background .12s, border-color .12s, transform .12s var(--ease-out);
}
.chip svg { width: 16px; height: 16px; }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"], .chip.activo { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.chip.chico { min-height: 30px; padding: 0 11px; font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ===== Hoja inferior (filtros) ===== */
.velo {
  position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .45);
  animation: aparecer .2s ease-out;
}
@keyframes aparecer { from { opacity: 0; } }
.hoja {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41;
  max-height: 88dvh; display: flex; flex-direction: column;
  background: var(--bg-elev); border-radius: var(--r-l) var(--r-l) 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .35);
  animation: subir .32s var(--ease-out);
  max-width: 640px; margin: 0 auto;
}
@keyframes subir { from { transform: translateY(100%); } }
.hoja .asa { width: 38px; height: 5px; border-radius: 3px; background: var(--line); margin: 8px auto 4px; }
.hoja header { display: flex; align-items: center; justify-content: space-between; padding: 6px var(--gutter) 10px; }
.hoja .contenido { overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--gutter) 16px; }
.hoja footer { display: flex; gap: 10px; padding: 12px var(--gutter) calc(12px + var(--safe-bottom)); border-top: 1px solid var(--line); }
.hoja footer .btn { flex: 1; }
.grupo { margin-top: 18px; }
.grupo > .etiqueta { display: block; margin-bottom: 10px; }

/* ===== Ficha ===== */
.ficha-hero {
  margin: calc(-12px - var(--safe-top)) calc(-1 * var(--gutter)) 0;
  position: relative; background: var(--vitrina);
}
.ficha-hero .vitrina { border-radius: 0; aspect-ratio: auto; height: min(62dvh, 560px); }
.ficha-hero .vitrina img { padding: calc(var(--safe-top) + 40px) 12% 28px; }
.ficha-hero .flotantes {
  position: absolute; top: calc(var(--safe-top) + 6px); left: 8px; right: 8px;
  display: flex; justify-content: space-between;
}
.ficha-hero .flotantes .icono-btn { background: rgba(255, 255, 255, .8); color: #1a1a1a; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ficha-cabecera { padding: 20px 0 6px; }
.ficha-cabecera .casa { color: var(--text-2); font-size: 16px; }
.ficha-cabecera h1 { font-size: 2.2rem; margin: 2px 0 12px; }
.ficha-cabecera .chips { gap: 6px; }
.bloque { margin-top: 28px; padding-top: 24px; border-top: .5px solid var(--line); }
.bloque > h2 { margin-bottom: 14px; }
.vacio { color: var(--text-3); font-size: 14px; }
.vacio a { color: var(--accent); }

.piramide { display: flex; flex-direction: column; gap: 14px; }
.piramide .nivel { display: grid; grid-template-columns: 74px 1fr; gap: 12px; align-items: start; }
.piramide .nivel .etiqueta { padding-top: 8px; }
.piramide .nivel:nth-child(1) .chips { padding-left: 0; }

.acordes { display: flex; flex-direction: column; gap: 7px; }
.acorde {
  position: relative; height: 30px; border-radius: 8px; overflow: hidden;
  background: var(--bg-elev);
}
.acorde .barra-acorde { position: absolute; inset: 0 auto 0 0; border-radius: 8px; }
.acorde span { position: relative; z-index: 1; line-height: 30px; padding: 0 12px; font-size: 14px; font-weight: 600; color: #1f1812; }

.historia { color: var(--text-2); font-size: 16px; line-height: 1.6; white-space: pre-line; }
.historia .perfumista { display: block; margin-top: 12px; color: var(--text); font-weight: 500; }

.valores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.valores .dato .nota { color: var(--text-3); font-size: 12px; }

.calificacion { display: flex; gap: 4px; }
.calificacion button {
  flex: 1; height: 40px; border-radius: 10px; font-weight: 600; font-size: 15px;
  background: var(--bg-elev); color: var(--text-3); border: 1px solid var(--line);
  transition: background .12s, color .12s, transform .1s var(--ease-out);
}
.calificacion button:active { transform: scale(.92); }
.calificacion button.lleno { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.calificacion button.elegido { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.interruptor-fila { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0; }
.interruptor-fila p { color: var(--text-3); font-size: 13px; }
.interruptor { position: relative; width: 52px; height: 32px; flex: none; }
.interruptor input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.interruptor span {
  position: absolute; inset: 0; border-radius: 999px; background: var(--bg-elev-2); border: 1px solid var(--line);
  transition: background .2s;
}
.interruptor span::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); transition: transform .22s var(--ease-out);
}
.interruptor input:checked + span { background: var(--accent); border-color: var(--accent); }
.interruptor input:checked + span::after { transform: translateX(20px); }

.usos { display: flex; flex-direction: column; }
.usos .uso { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.usos .uso span:last-child { color: var(--text-3); }

/* ===== Formularios ===== */
.form { display: flex; flex-direction: column; gap: 18px; }
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo > label, .campo > .etiqueta { font-size: 13px; color: var(--text-2); font-weight: 600; }
.campo .ayuda { font-size: 12px; color: var(--text-3); }
.entrada, .form input:not([type="checkbox"]):not([type="file"]), .form select, .form textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px;
  background: var(--bg-elev); border: 1px solid var(--line); outline: none;
  -webkit-appearance: none; appearance: none;
  transition: border-color .15s;
}
.form textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.form input:focus, .form select:focus, .form textarea:focus, .entrada:focus { border-color: var(--accent); }
.form select { background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.fila-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fieldset { padding: 16px; border-radius: var(--r-m); background: var(--bg-elev); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.fieldset input:not([type="checkbox"]):not([type="file"]), .fieldset select, .fieldset textarea { background: var(--bg); }
.fieldset > h3 { font-size: 1.1rem; }
.foto-form { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center; }
.foto-form .acciones-foto { display: flex; flex-direction: column; gap: 8px; }
.foto-form input[type="file"] { display: none; }
.boton-archivo { cursor: pointer; }
.form-acciones { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }

/* ===== Más ===== */
.menu { display: flex; flex-direction: column; border-radius: var(--r-m); overflow: hidden; background: var(--bg-elev); border: 1px solid var(--line); }
.menu a, .menu button {
  display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 0 16px; text-align: left;
  border-bottom: 1px solid var(--line); font-size: 16px; width: 100%;
}
.menu > :last-child { border-bottom: 0; }
.menu a:active, .menu button:active { background: var(--bg-elev-2); }
.menu svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.menu .flecha { margin-left: auto; color: var(--text-3); width: 18px; height: 18px; }
.menu .detalle { margin-left: auto; color: var(--text-3); font-size: 14px; }
.segmentado { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg-elev); border: 1px solid var(--line); }
.segmentado button { min-height: 40px; border-radius: 9px; font-size: 14px; color: var(--text-2); }
.segmentado button[aria-pressed="true"] { background: var(--bg-elev-2); color: var(--text); font-weight: 600; }

/* ===== Casas ===== */
.casas-lista .fila { grid-template-columns: 1fr auto; }
.casas-lista .fila .cantidad { font-size: 15px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.indice-letra { position: sticky; top: calc(var(--safe-top) + 52px); z-index: 2; background: var(--bg); padding: 14px 0 4px; color: var(--text-3); font-weight: 600; font-size: 1.1rem; }

/* ===== Login ===== */
.login {
  min-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 40px);
  display: flex; flex-direction: column; justify-content: center; gap: 28px;
  max-width: 380px; margin: 0 auto; text-align: center;
}
.login .monograma { width: 76px; height: 76px; margin: 0 auto; color: var(--accent); }
.login h1 { font-size: 2.4rem; }
.login p { color: var(--text-2); }
.login form { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.login .error { color: var(--danger); font-size: 14px; min-height: 20px; text-align: center; }

/* ===== Varios ===== */
.toast {
  position: fixed; left: 50%; z-index: 60;
  bottom: calc(var(--tab-h) + var(--safe-bottom) + 16px);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 18px; border-radius: var(--r-l); max-width: calc(100% - 32px);
  width: max-content; text-align: center;
  background: var(--text); color: var(--bg); font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow);
  transition: opacity .2s, transform .25s var(--ease-out);
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.cargando { display: grid; place-items: center; min-height: 40dvh; color: var(--text-3); }
.proximamente { text-align: center; padding: 60px 20px; color: var(--text-2); }
.proximamente h2 { margin-bottom: 8px; color: var(--text); }
.sin-resultados { text-align: center; padding: 48px 16px; color: var(--text-2); }

@media (hover: hover) and (pointer: fine) {
  .tab:hover { color: var(--text); }
  .tarjeta:hover .nombre { text-decoration: underline; text-underline-offset: 3px; }
  .chip:hover { border-color: var(--text-3); }
  .btn:hover { filter: brightness(1.08); }
  .icono-btn:hover { background: var(--bg-elev-2); }
  .menu a:hover, .menu button:hover { background: var(--bg-elev-2); }
  .fila:hover .nombre { text-decoration: underline; text-underline-offset: 3px; }
}

/* Mac / pantallas anchas: la barra de pestañas se centra */
@media (min-width: 900px) {
  .tabbar { left: 50%; right: auto; transform: translateX(-50%); width: 520px; bottom: 16px; border: 1px solid var(--line); border-radius: 22px; height: var(--tab-h); padding: 0 8px; box-shadow: var(--shadow); }
  .vista { padding-bottom: calc(var(--tab-h) + 56px); }
  .ficha-layout { display: grid; grid-template-columns: 400px 1fr; gap: 40px; align-items: start; }
  .ficha-hero { margin: 0; border-radius: var(--r-l); overflow: hidden; position: sticky; top: 20px; }
  .ficha-hero .vitrina { height: 540px; }
  .ficha-hero .vitrina img { padding: 48px 12% 28px; }
  .ficha-hero .flotantes { top: 10px; }
}

/* ===== Datos externos: candidatos ===== */
.candidatos { display: flex; flex-direction: column; gap: 8px; }
.candidato {
  position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center;
  padding: 8px; border-radius: var(--r-m); text-align: left;
  background: var(--bg); border: 1.5px solid var(--line);
  transition: border-color .12s, background .12s, transform .12s var(--ease-out);
}
.candidato:active { transform: scale(.98); }
.candidato[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.candidato .vitrina { aspect-ratio: 1; border-radius: var(--r-s); }
.candidato .vitrina img { padding: 4%; }
.candidato .nombre { font-size: 15px; font-weight: 500; line-height: 1.25; }
.candidato .casa { color: var(--text-2); font-size: 13px; margin-top: 2px; }
.candidato .coincide {
  position: absolute; top: 8px; right: 8px; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px;
}
.candidatos.horizontal { flex-direction: row; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: none; }
.candidatos.horizontal::-webkit-scrollbar { display: none; }
.candidatos.horizontal .candidato { flex: none; width: 150px; grid-template-columns: 1fr; scroll-snap-align: start; align-items: start; }
.candidatos.horizontal .candidato .vitrina { aspect-ratio: 1; }
.pie-buscador { flex-wrap: wrap; align-items: center; }
.pie-buscador .check { flex-basis: 100%; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text-2); }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.pegar-link { margin-top: 14px; color: var(--text-2); font-size: 14px; }
.pegar-link summary { cursor: pointer; padding: 6px 0; }
.revisar { display: flex; flex-direction: column; gap: 14px; }
.revisar-item { padding: 14px; border-radius: var(--r-m); background: var(--bg-elev); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.revisar-item header { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; }
.revisar-item header .vitrina { border-radius: var(--r-s); }
.revisar-item .nombre { font-size: 16px; font-weight: 600; }
.revisar-item .casa { color: var(--text-2); font-size: 13px; }
.acciones-revisar { display: flex; gap: 8px; }
.acciones-revisar .btn { flex: 1; min-height: 42px; padding: 0 10px; font-size: 14px; }
.candidatos.horizontal .coincide { position: static; justify-self: start; margin-top: -2px; }

/* ===== Diario ===== */
.calendario { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-l); padding: 10px 10px 14px; }
.cal-cabecera { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 8px; }
.cal-cabecera h2 { font-size: 1.2rem; }
.cal-grilla { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dia-nombre { text-align: center; font-size: 11px; color: var(--text-3); font-weight: 600; padding-bottom: 4px; }
.dia {
  position: relative; aspect-ratio: 1 / 1.15; border-radius: 10px; overflow: hidden;
  display: flex; align-items: flex-start; justify-content: center;
  background: transparent; font-size: 13px; color: var(--text-2);
  transition: background .12s, transform .1s var(--ease-out);
}
.dia:active { transform: scale(.94); }
.dia .num { position: relative; z-index: 1; padding-top: 4px; font-weight: 600; }
.dia.con-uso { background: var(--vitrina); color: #1a1a1a; }
.dia img { position: absolute; inset: 14px 2px 2px; width: calc(100% - 4px); height: calc(100% - 16px); object-fit: contain; mix-blend-mode: multiply; }
.dia .punto { position: absolute; bottom: 8px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--accent); }
.dia .mas-usos { position: absolute; right: 3px; bottom: 2px; font-size: 10px; font-weight: 700; color: #5c5c58; }
.dia.hoy .num { color: var(--accent); }
.dia.con-uso.hoy .num { color: #1a1a1a; text-decoration: underline; text-underline-offset: 2px; }
.dia[aria-pressed="true"] { outline: 2px solid var(--accent); outline-offset: -2px; }
.dia.vacio-dia { pointer-events: none; }
.uso-fila { grid-template-columns: 56px 1fr 44px; }
.uso-fila .comentario { color: var(--text-2); font-size: 14px; font-style: italic; margin-top: 4px; }
.cargando-tarjeta .vitrina { min-height: 220px; animation: latido 1.4s ease-in-out infinite; }
@keyframes latido { 50% { opacity: .6; } }

/* ===== Deseos ===== */
.deseos { display: flex; flex-direction: column; gap: 10px; }
.deseo { padding: 14px 16px; border-radius: var(--r-m); background: var(--bg-elev); border: 1px solid var(--line); border-left: 3px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.deseo.prioridad-1 { border-left-color: var(--text); }
.deseo .casa { color: var(--text-2); font-size: 14px; }
.deseo .nombre { font-size: 1.25rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.2; margin-top: 2px; }
.deseo .objetivo { color: var(--text-2); font-size: 14px; margin-top: 4px; }
.deseo .nota-deseo { color: var(--text-3); font-size: 14px; margin-top: 6px; }
.deseo-acciones { display: flex; flex-wrap: wrap; gap: 8px; }

/* ===== Estadísticas ===== */
.barras { display: flex; flex-direction: column; gap: 4px; }
.b-fila { display: grid; grid-template-columns: minmax(90px, 34%) 1fr 34px; gap: 10px; align-items: center; min-height: 30px; border-radius: 8px; }
a.b-fila:active { background: var(--bg-elev); }
.b-nombre { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-pista { height: 12px; border-radius: 0 4px 4px 0; }
.b-relleno { display: block; height: 100%; background: var(--accent); border-radius: 0 4px 4px 0; transition: opacity .15s; }
.b-valor { font-size: 13px; color: var(--text-2); text-align: right; font-variant-numeric: tabular-nums; }
.columnas { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; height: 150px; align-items: end; }
.col-mes { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.c-barra { width: 100%; max-width: 22px; background: var(--accent); border-radius: 4px 4px 0 0; }
.c-valor { font-size: 11px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.c-mes { font-size: 10px; color: var(--text-3); }
.linea-valor { width: 100%; height: auto; }
.linea-valor .eje { stroke: var(--line); stroke-width: 1; }
.linea-valor .trazo { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.linea-valor circle { fill: var(--accent); stroke: var(--bg); stroke-width: 2; }
.linea-valor .zona { fill: transparent; stroke: none; }
.linea-valor .etiqueta-eje { fill: var(--text-3); font-size: 10px; font-family: var(--sans); }
@media (hover: hover) and (pointer: fine) {
  .b-fila:hover .b-relleno, .col-mes:hover .c-barra { opacity: .75; }
  a.b-fila:hover .b-nombre { color: var(--accent); }
}

/* ===== Casas ===== */
.casa-cabecera { display: flex; flex-direction: column; gap: 6px; }
.logo-casa { width: 72px; height: 72px; object-fit: contain; border-radius: var(--r-m); background: var(--vitrina); padding: 6px; }

/* Selección múltiple en Colección */
.barra-seleccion {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 25;
  bottom: calc(var(--tab-h) + var(--safe-bottom) + 10px);
  width: min(520px, calc(100% - 24px));
  display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 16px;
  background: var(--blur-bg); -webkit-backdrop-filter: saturate(1.4) blur(18px); backdrop-filter: saturate(1.4) blur(18px);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
}
.barra-seleccion[hidden] { display: none; }
.barra-seleccion [data-cuenta] { flex: 1; font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.barra-seleccion .btn { min-height: 40px; padding: 0 14px; }
.seleccionando #resultados a { position: relative; }
.seleccionando #resultados a::after {
  content: ''; position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .9); background: rgba(0, 0, 0, .25); box-sizing: border-box;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
  display: grid; place-items: center; font: 700 13px/1 system-ui, sans-serif; color: transparent;
}
.seleccionando #resultados a.elegido::after { content: '✓'; border-color: var(--accent); background: var(--accent); color: var(--bg); }
.seleccionando #resultados a.elegido .vitrina { outline: 2px solid var(--accent); outline-offset: -2px; }
.seleccionando #resultados .fila::after { top: 50%; transform: translateY(-50%); right: 14px; }
.seleccionando #resultados .fila .derecha { visibility: hidden; }
.seleccionando .vista, .seleccionando { padding-bottom: calc(var(--tab-h) + 90px); }
@media (min-width: 900px) { .barra-seleccion { bottom: calc(var(--tab-h) + 28px); } }

/* ===== Nocturna: componentes de ficha ===== */
h1, h2, h3 { letter-spacing: -.02em; }
.tarjeta .nombre, .fila .nombre { font-weight: 700; }
.tarjeta { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-l); padding: 6px 6px 10px; gap: 0; }
.tarjeta .vitrina { border-radius: 13px; box-shadow: none; }
.tarjeta > div:last-child { padding: 8px 6px 0; }
.tira { display: flex; height: 5px; border-radius: 3px; overflow: hidden; gap: 1px; margin-top: 8px; }
.tira i { display: block; }
.fila .tira { max-width: 180px; }

.ficha-cabecera { text-align: center; padding-top: 18px; }
.ficha-cabecera .casa { color: var(--text-3); font-size: 14px; font-weight: 600; }
.ficha-cabecera h1 { font-size: 2rem; font-weight: 800; margin: 2px 0 10px; }
.ficha-cabecera .chips { justify-content: center; }
.ficha-cabecera .chip { background: var(--pill); color: var(--pill-ink); border: 0; border-radius: 999px; font-weight: 600; font-size: 12.5px; min-height: 26px; padding: 0 11px; }
.datos-ficha {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 14px 0 0;
  background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-align: left;
}
.datos-ficha div { background: var(--bg-elev); padding: 8px 12px; min-width: 0; }
.datos-ficha dt { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); font-weight: 700; }
.datos-ficha dd { margin: 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.datos-ficha dd.sin { color: var(--text-3); font-weight: 400; font-style: italic; }

.bloque { margin-top: 14px; padding: 16px; border: 1px solid var(--line); border-top: 1px solid var(--line); border-radius: var(--r-l); background: var(--bg-elev); }
.bloque > h2, .bloque .seccion-cabecera h2 { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: var(--accent); }
.bloque .chip { background: var(--bg-elev-2); }

.acordes { gap: 5px; }
.acorde { height: 28px; background: none; overflow: visible; }
.acorde .barra-acorde { border-radius: 7px; box-shadow: 0 0 18px -6px var(--c), inset 0 0 0 1px rgba(0, 0, 0, .08); }
.acorde span { line-height: 28px; padding: 0 10px; font-size: 12.5px; font-weight: 700; color: var(--ink, #1d1a1a); white-space: nowrap; }

.piramide { gap: 0; }
.piramide .nivel { grid-template-columns: 1fr; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.piramide .nivel:first-child { border-top: 0; padding-top: 0; }
.piramide .nivel .etiqueta { padding: 0; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.notas-circulos { display: flex; flex-wrap: wrap; gap: 10px 4px; }
.nota-c { width: 70px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: 11.5px; line-height: 1.2; color: var(--text-2); }
.nota-c i {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-style: normal; position: relative; overflow: hidden;
  font-weight: 800; font-size: 14px; box-shadow: 0 0 0 2px var(--bg-elev), 0 0 0 3px rgba(255, 255, 255, .12);
}
.nota-c:active i { transform: scale(.94); }
.nota-c i img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }

.ficha-hero { background: var(--bg); padding: 0 var(--gutter); }
.ficha-hero .vitrina { border-radius: 22px; height: min(52dvh, 440px); margin-top: calc(var(--safe-top) + 12px); }
.ficha-hero .vitrina img { padding: 36px 14% 24px; }
.ficha-hero .flotantes { top: calc(var(--safe-top) + 20px); left: calc(var(--gutter) + 8px); right: calc(var(--gutter) + 8px); }
@media (min-width: 900px) {
  .ficha-hero { padding: 0; background: none; }
  .ficha-hero .vitrina { margin-top: 0; height: 540px; }
  .ficha-cabecera, .ficha-cabecera .chips { text-align: left; justify-content: flex-start; }
}
.obra { margin: 0; border: 0; border-radius: 22px; overflow: hidden; }
@media (min-width: 900px) { .obra { border: 0; } }

/* ===== Inicio: lanzamientos y noticias ===== */
.carrusel-lanz { grid-auto-columns: 148px; }
.lanz { display: flex; flex-direction: column; gap: 2px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-l); padding: 6px 6px 10px; }
.lanz .vitrina { aspect-ratio: 1; border-radius: 13px; box-shadow: none; display: grid; place-items: center; }
.lanz-inicial { font-size: 40px; font-weight: 800; color: #6f5aa8; }
.lanz-cuando { align-self: flex-start; margin: 8px 4px 2px; font-size: 12px; font-weight: 700; color: var(--pill-ink); background: var(--pill); border-radius: 999px; padding: 2px 9px; }
.lanz .nombre { font-weight: 700; font-size: 14px; line-height: 1.25; padding: 0 4px; }
.lanz .casa { color: var(--text-3); font-size: 12.5px; padding: 0 4px; }
.lanz-deseo {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin-top: 8px;
  min-height: 34px; border-radius: 10px; border: 1px solid var(--line); color: var(--text-2); font-size: 13px; font-weight: 600;
  transition: background .12s, color .12s;
}
.lanz-deseo svg { width: 16px; height: 16px; }
.lanz-deseo:active { transform: scale(.97); }
.lanz-deseo.hecho { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.lanz-deseo.hecho svg { fill: currentColor; }

.noticias { display: flex; flex-direction: column; gap: 10px; }
.noticia { display: block; padding: 14px 16px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-l); transition: transform .12s var(--ease-out); }
.noticia:active { transform: scale(.985); }
.noticia h3 { font-size: 16px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.noticia p { color: var(--text-2); font-size: 14.5px; line-height: 1.55; margin: 6px 0 0; }
.noticia-tipo { display: inline-block; margin-bottom: 6px; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.noticia-tipo[data-tipo="ingredientes"] { color: #7fb069; }
.noticia-tipo[data-tipo="resena"] { color: #d9a066; }
.noticia-tipo[data-tipo="industria"] { color: var(--text-3); }
.noticia-fuente { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; color: var(--text-3); font-size: 12.5px; }
.noticia-fuente svg { width: 13px; height: 13px; }

.del-dia { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: start; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-l); padding: 10px; }
.del-dia .vitrina { aspect-ratio: 4 / 5; border-radius: 12px; box-shadow: none; }
.del-dia h3 { font-size: 17px; font-weight: 800; }
.del-dia .casa { color: var(--text-3); font-size: 13.5px; }
.del-dia .motivo { color: var(--text-2); font-size: 13.5px; line-height: 1.45; margin: 6px 0 10px; }
.del-dia .botones { display: flex; gap: 8px; align-items: center; }
.del-dia .btn { min-height: 38px; padding: 0 14px; }
@media (min-width: 900px) { .noticias { display: grid; grid-template-columns: 1fr 1fr; } }

/* ===== Agenda: lanzamientos ===== */
.punto-lanz { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); flex: none; }
.dia { position: relative; }
.dia > .punto-lanz { position: absolute; top: 5px; right: 5px; z-index: 2; }
.cal-leyenda { display: flex; align-items: center; gap: 7px; margin: 10px 2px 0; color: var(--text-3); font-size: 12.5px; }
.lanz-lista { display: flex; flex-direction: column; gap: 8px; }
.lanz-fila { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 14px; }
.lanz-fila .nombre { font-weight: 700; font-size: 15px; }
.lanz-fila .casa { color: var(--text-3); font-size: 13px; }
.lanz-fila .casa a { color: var(--accent); }
.lanz-fila .lanz-deseo { margin: 0; width: 40px; padding: 0; }

/* ---------- Comunidad de Fragrantica (ficha) ---------- */
.com-grande { display: flex; align-items: baseline; gap: 8px; }
.com-grande strong { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.com-grande span { color: var(--text-3); font-size: 13px; }
.com-pila { display: flex; height: 10px; border-radius: 99px; overflow: hidden; gap: 2px; margin: 12px 0 8px; }
.com-ley { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--text-2); }
.com-ley em { font-style: normal; color: var(--text-3); }
.com-fila { display: grid; grid-template-columns: 82px 1fr 40px; align-items: center; gap: 8px; font-size: 13px; margin: 7px 0; color: var(--text-2); }
.com-dos .com-fila { grid-template-columns: 70px 1fr 36px; }
.com-barra { height: 8px; background: var(--bg-elev-2); border-radius: 99px; overflow: hidden; }
.com-barra i { display: block; height: 100%; background: var(--accent); border-radius: 99px; opacity: .55; }
.com-fila.top { color: var(--text); }
.com-fila.top .com-barra i { opacity: 1; box-shadow: 0 0 10px var(--accent-soft); }
.com-fila .n { color: var(--text-3); text-align: right; font-size: 12px; }
.com-dos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.com-dos .etiqueta { display: block; margin-bottom: 4px; }
@media (max-width: 420px) { .com-dos { grid-template-columns: 1fr; } }
.com-veredicto { margin: 10px 0 0; font-size: 13px; color: var(--text-2); }
.com-veredicto b { color: var(--text); }
.com-veredicto em { font-style: normal; color: var(--text-3); }
.com-escala { position: relative; height: 8px; border-radius: 99px; background: linear-gradient(90deg, #e58bb5, #9b8cf0 50%, #6fa8e8); margin: 14px 9px 6px; }
.com-escala b { position: absolute; top: -5px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--bg-elev); transform: translateX(-50%); }
.com-ext { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-3); }
.com-par { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.com-par:first-child { border-top: 0; }
.com-par img, .com-par > i { width: 40px; height: 40px; border-radius: 10px; background: var(--vitrina); object-fit: contain; flex: none; }
.com-par div { flex: 1; min-width: 0; }
.com-par b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.com-par span { font-size: 12px; color: var(--text-3); }
.com-tengo { font-size: 11.5px; font-weight: 800; color: var(--accent-ink); background: var(--accent); padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.com-votos { font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.com-deseo { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); background: var(--bg-elev-2); flex: none; }
.com-deseo svg { width: 18px; height: 18px; }
.com-deseo.hecho { color: var(--accent); }
.com-pc { margin: 0 0 8px; padding: 0; list-style: none; }
.com-pc li { font-size: 14px; color: var(--text-2); padding: 5px 0 5px 22px; position: relative; }
.com-pc li::before { position: absolute; left: 2px; font-weight: 800; }
.com-pc.mas li::before { content: "+"; color: #7fd1a3; }
.com-pc.menos li::before { content: "–"; color: var(--danger); }
.com-nota { font-size: 12px; color: var(--text-3); margin: 6px 0 0; }
.com-art { display: block; font-size: 14px; color: var(--text); padding: 9px 0; border-top: 1px solid var(--line); }
.com-art:first-of-type { border-top: 0; }
.com-art span { display: block; color: var(--text-3); font-size: 12px; margin-top: 2px; }

.logo-login { width: 88px; height: 88px; border-radius: 22px; display: block; margin: 0 auto; box-shadow: var(--shadow); }
