/* Catálogo de ideas (usa los mismos tokens de color de la página) */
#ideasCont, .ideas-cont { min-width: 0; max-width: 100%; }
.ideas-filtros { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ideas-filtros::-webkit-scrollbar { display: none; }
.ideas-filtros + .ideas-filtros { margin-top: 6px; }
/* Con mouse (PC) no se puede arrastrar: los filtros bajan de renglón en lugar de esconderse a la derecha */
@media (hover: hover) and (pointer: fine) { .ideas-filtros { flex-wrap: wrap; overflow: visible; } }
.ideas-chip { flex: none; width: auto; font: inherit; font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 999px; cursor: pointer;
  background: var(--papel); color: var(--tinta); border: 2px solid var(--linea); box-shadow: none; transition: background .15s, color .15s; }
.ideas-chip:hover { filter: none; background: var(--papel-2); }
.ideas-chip:active { transform: none; box-shadow: none; }
.ideas-chip.on { background: var(--c, var(--verde-hondo)); border-color: var(--c, var(--verde-hondo)); color: #fff; }
.ideas-chip.chica { font-size: 13px; padding: 5px 12px; }
.ideas-nota-ideal { margin: 12px 0 0; font-size: 14px; color: rgba(255, 248, 236, .85); }
.ideas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-top: 12px; }
.idea { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: start; background: var(--papel); border-radius: 16px; padding: 14px; box-shadow: 0 6px 18px rgba(0, 0, 0, .14); border: 1px solid var(--linea); min-width: 0; }
.idea-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--c); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .15); }
.idea-ico svg { width: 28px; height: 28px; }
.idea-cuerpo { min-width: 0; display: grid; gap: 4px; }
.idea-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.idea-badges:empty { display: none; }
.ideas-badge { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 8px; letter-spacing: .02em; }
.ideas-badge.ideal { background: var(--rosa); color: #fff; }
.ideas-badge.cerca { background: #fdf0d2; color: #7a5418; }
.idea h3 { margin: 0; font-size: 16px; line-height: 1.25; font-weight: 700; color: var(--tinta); }
.idea-desc { margin: 0; font-size: 14px; color: var(--tinta-2); }
.idea-precio { margin: 2px 0 6px; font-size: 14px; color: var(--tinta-2); font-variant-numeric: tabular-nums; }
.idea-precio b { color: var(--verde-hondo); font-size: 15px; }
.idea-btn { justify-self: start; display: inline-block; font-weight: 700; font-size: 14px; text-decoration: none; color: #fff; background: var(--verde); padding: 8px 14px; border-radius: 10px; box-shadow: 0 3px 0 var(--verde-hondo); }
.idea-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--verde-hondo); }
.ideas-vacio { color: var(--tinta-2); text-align: center; padding: 20px; background: var(--papel); border-radius: 14px; }
.ideas-aviso { font-size: 12px; color: rgba(255, 248, 236, .75); margin: 14px 0 0; line-height: 1.45; }

/* Botón en la tarjeta de regalo: destaca en rojo nochebuena con foco dorado */
.ir-ideas { position: relative; overflow: hidden; display: flex; gap: 14px; align-items: center; text-decoration: none; color: #fff; background: var(--nochebuena); border-radius: 18px; padding: 16px 16px 20px; box-shadow: 0 5px 0 var(--nochebuena-hondo), 0 12px 28px rgba(0, 0, 0, .3); transition: transform .08s, box-shadow .08s; }
.ir-ideas::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--liston); }
.ir-ideas:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--nochebuena-hondo), 0 6px 16px rgba(0, 0, 0, .3); }
.ir-ideas .bombilla { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--oro); display: grid; place-items: center; color: #3a2604; box-shadow: 0 0 0 4px rgba(233, 178, 60, .35); }
.ir-ideas .bombilla svg { width: 26px; height: 26px; }
.ir-ideas b { display: block; font-family: var(--f-fiesta, inherit); font-weight: 400; font-size: 23px; color: #fff; line-height: 1.1; margin-bottom: 3px; }
.ir-ideas small { color: rgba(255, 248, 236, .88); font-size: 14px; line-height: 1.35; display: block; }
.ir-ideas .flecha { margin-left: auto; flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); font-size: 22px; color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .ir-ideas .bombilla { animation: brillo 2.4s ease-in-out infinite; }
  @keyframes brillo { 50% { box-shadow: 0 0 0 9px rgba(233, 178, 60, .12), 0 0 22px rgba(233, 178, 60, .55); } }
}


/* Botón flotante fijo (esquina inferior derecha) hacia el catálogo */
.fab-ideas { position: fixed; z-index: 50; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; text-decoration: none;
  background: var(--oro); color: #3a2604; box-shadow: 0 4px 0 #a87916, 0 10px 24px rgba(0, 0, 0, .35), 0 0 0 4px rgba(255, 248, 236, .9); transition: transform .08s; }
.fab-ideas svg { width: 30px; height: 30px; }
.fab-ideas:active { transform: translateY(3px); box-shadow: 0 1px 0 #a87916, 0 6px 14px rgba(0, 0, 0, .3), 0 0 0 4px rgba(255, 248, 236, .9); }
@media (prefers-reduced-motion: no-preference) {
  .fab-ideas { animation: fab-brillo 2.4s ease-in-out infinite; }
  @keyframes fab-brillo { 50% { box-shadow: 0 4px 0 #a87916, 0 10px 24px rgba(0, 0, 0, .35), 0 0 0 4px rgba(255, 248, 236, .9), 0 0 26px 8px rgba(233, 178, 60, .55); } }
}

/* Editor del catálogo en el panel */
.cat-top { display: flex; justify-content: space-between; align-items: end; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--tinta-2); font-weight: 600; }
.cat-rev { display: grid; gap: 4px; font-size: 12px; margin: 0; }
.cat-rev input { width: auto; padding: 6px 8px; font-size: 14px; }
.cat-lista { list-style: none; margin: 10px 0; padding: 0; }
.cat-lista > li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px dashed var(--linea); }
.cat-lista > li:first-child { border-top: 0; }
.cat-lista > li.oculto-cat { opacity: .5; }
.cat-lista > li:has(.cat-form) { display: block; }
.cat-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.cat-info { flex: 1; min-width: 0; }
.cat-info b { display: block; font-size: 14px; overflow-wrap: anywhere; }
.cat-info small { color: var(--tinta-2); font-size: 12px; }
.cat-acc { display: flex; gap: 2px; flex: none; }
.cat-link { width: auto; background: none; border: 0; box-shadow: none; padding: 4px 6px; font: inherit; font-size: 13px; font-weight: 600; color: var(--nochebuena); cursor: pointer; }
.cat-link:hover { text-decoration: underline; filter: none; }
.cat-link:active { transform: none; box-shadow: none; }
.cat-form { display: grid; gap: 8px; background: var(--papel-2); border-radius: 14px; padding: 12px; margin: 8px 0; }
.cat-form label { display: grid; gap: 4px; margin: 0; font-size: 13px; font-weight: 600; }
.cat-opc { font-weight: 400; color: var(--tinta-2); }
.cat-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cat-edades { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }
.cat-edades legend { font-weight: 600; margin-bottom: 4px; padding: 0; }
.cat-edades label { display: flex; align-items: center; gap: 6px; font-weight: 500; }
.cat-edades input { width: 18px; height: 18px; accent-color: var(--verde); }
.cat-botones { display: flex; gap: 8px; }
.cat-btn { flex: 1; font: inherit; font-weight: 700; font-size: 14px; padding: 10px 14px; border-radius: 12px; cursor: pointer; background: transparent; color: var(--verde-hondo); border: 2px dashed #c9b28c; box-shadow: none; width: 100%; }
.cat-btn:active { transform: none; box-shadow: none; }
.cat-btn.prim { background: var(--verde); color: #fff; border: 0; box-shadow: 0 3px 0 var(--verde-hondo); }
.cat-btn.prim:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--verde-hondo); }
.cat-msg { font-size: 13px; padding: 8px 10px; border-radius: 10px; background: #e1f3e8; color: var(--verde-hondo); margin-top: 8px; }
.cat-msg.err { background: #fde3e3; color: var(--nochebuena-hondo); margin: 0; }
@media (max-width: 380px) { .cat-g2 { grid-template-columns: 1fr; } }
