/* Tendex · mejora visual 2: login inmersivo, cursor, imanes, paleta Ctrl K, orbes de agentes, actividad y mezcla. */
.logo svg { width: 20px; height: 20px; color: #0b1120; stroke-width: 2.6; }

/* ---------- Login inmersivo ---------- */
.login { position: relative; isolation: isolate; overflow: hidden; }
.fondo-seda { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.login-arte { flex-direction: column; justify-content: space-between; align-items: stretch; padding: 34px 56px 48px; min-height: 100vh; }
.login-arte .marca { position: relative; z-index: 2; font-size: 22px; }
.login-arte .escena-3d { position: absolute; top: 6%; left: 56%; width: 44%; height: 76%; background: none; }
.login-texto { position: relative; z-index: 1; max-width: 560px; animation: subir .9s cubic-bezier(.2,.8,.2,1) both .2s; }
@keyframes subir { from { opacity: 0; transform: translateY(24px); } }
.login-texto h1 { font-size: clamp(32px, 3.6vw, 52px); }
.rotador { display: inline-block; min-height: 1.1em; }
.rotador.sale { animation: salir .35s ease-in both; }
.rotador.entra { animation: entrarPal .5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes salir { to { opacity: 0; transform: translateY(-14px); filter: blur(6px); } }
@keyframes entrarPal { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }
.cinta { margin-top: 22px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); max-width: 560px; }
.cinta-pista { display: flex; gap: 10px; width: max-content; animation: deslizar 38s linear infinite; }
.cinta-pista span { padding: 7px 14px; border-radius: 99px; font-size: 12.5px; color: #cdd4e4; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(8px); white-space: nowrap; }
@keyframes deslizar { to { transform: translateX(-50%); } }
.login-panel { position: relative; z-index: 1; background: none; }
.tarjeta-login { background: rgba(10, 16, 32, .55); backdrop-filter: blur(26px) saturate(140%); padding: 40px 36px; animation: subir .9s cubic-bezier(.2,.8,.2,1) both .35s; }
.tarjeta-login .haz { position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--giro), transparent 0 65%, rgba(111,147,255,.9) 75%, rgba(244,220,170,1) 82%, transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: girar 5s linear infinite; }
.orbe-agentes { position: relative; width: 56px; height: 56px; margin: 8px 0 26px 8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6dd, var(--oro) 35%, #6b4a17 70%); box-shadow: 0 0 40px rgba(216,178,110,.55), inset 0 -6px 16px rgba(0,0,0,.35); animation: respirar 3.2s ease-in-out infinite; }
.orbe-agentes i { position: absolute; inset: -9px; border-radius: 50%; border: 1px solid rgba(244,220,170,.35); animation: girarS 6s linear infinite; }
.orbe-agentes i::before { content: ""; position: absolute; top: -3px; left: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--oro-2); box-shadow: 0 0 10px var(--oro-2); }
.orbe-agentes i:nth-child(2) { inset: -17px; animation-duration: 9s; animation-direction: reverse; border-color: rgba(111,147,255,.3); }
.orbe-agentes i:nth-child(2)::before { background: var(--azul); box-shadow: 0 0 10px var(--azul); }
.orbe-agentes i:nth-child(3) { inset: -25px; animation-duration: 13s; border-style: dashed; border-color: rgba(255,255,255,.08); }
.orbe-agentes i:nth-child(3)::before { display: none; }
@keyframes respirar { 50% { transform: scale(1.06); box-shadow: 0 0 60px rgba(216,178,110,.75), inset 0 -6px 16px rgba(0,0,0,.35); } }
@keyframes girarS { to { transform: rotate(360deg); } }
.campo { position: relative; }
.campo input { width: 100%; padding: 22px 44px 8px 14px; font-size: 15px; }
.campo label { position: absolute; left: 15px; top: 15px; pointer-events: none; transition: all .2s cubic-bezier(.2,.8,.2,1); font-size: 14px; }
.campo input:focus + label, .campo input:not(:placeholder-shown) + label, .campo input:-webkit-autofill + label, .campo input:autofill + label { top: 7px; font-size: 11px; color: var(--oro-2); letter-spacing: .02em; }
.ojo { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); padding: 7px; background: none; box-shadow: none; color: var(--suave); }
.ojo:hover { transform: translateY(-50%); color: var(--texto); filter: none; box-shadow: none; }
.mayus { margin: -4px 0 0; font-size: 12px; color: var(--ambar); }
.tarjeta-login.error { animation: temblor .45s ease; }
@keyframes temblor { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* ---------- Cursor animado ---------- */
.cursor-anillo, .cursor-punto { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; border-radius: 50%; opacity: 0;
  transition: opacity .3s, width .25s, height .25s, margin .25s, background .25s, border-color .25s; }
.cursor-anillo { width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1.5px solid rgba(244,220,170,.6); }
.cursor-punto { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--oro-2); }
body.con-cursor .cursor-anillo, body.con-cursor .cursor-punto { opacity: 1; }
body.cursor-sobre .cursor-anillo { width: 58px; height: 58px; margin: -29px 0 0 -29px; background: rgba(216,178,110,.1); border-color: rgba(244,220,170,.9); }
body.cursor-clic .cursor-anillo { width: 24px; height: 24px; margin: -12px 0 0 -12px; }

/* ---------- Buscador / paleta Ctrl K ---------- */
.buscador { justify-content: flex-start; gap: 10px; width: 100%; padding: 9px 12px; color: var(--suave); background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--borde-2); font-weight: 500; }
.buscador:hover { color: var(--texto); background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px var(--borde-2); transform: none; }
.buscador span { flex: 1; text-align: left; }
kbd { font: 600 10.5px var(--fuente); padding: 2px 6px; border-radius: 6px; color: var(--suave); background: rgba(255,255,255,.06); border: 1px solid var(--borde-2); }
.paleta { position: fixed; inset: 0; z-index: 90; display: grid; place-items: start center; padding-top: 12vh; background: rgba(3, 6, 14, .6); backdrop-filter: blur(8px); animation: aparecer .2s ease; }
@keyframes aparecer { from { opacity: 0; } }
.paleta-caja { width: min(640px, calc(100% - 32px)); border-radius: 20px; overflow: hidden; background: rgba(13, 20, 38, .94); box-shadow: 0 40px 120px -20px rgba(0,0,0,.9), 0 0 0 1px var(--borde-2); animation: caer .25s cubic-bezier(.2,.8,.2,1); }
@keyframes caer { from { transform: translateY(-14px) scale(.98); opacity: 0; } }
.paleta-entrada { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--borde); }
.paleta-entrada input { flex: 1; border: 0; background: none; padding: 4px 0; font-size: 16px; }
.paleta-entrada input:focus { box-shadow: none; }
#paleta-lista { list-style: none; margin: 0; padding: 8px; max-height: 52vh; overflow: auto; }
#paleta-lista li { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 12px; cursor: pointer; }
#paleta-lista li.activo, #paleta-lista li:hover { background: rgba(216,178,110,.1); box-shadow: inset 0 0 0 1px rgba(216,178,110,.25); }
#paleta-lista .pi { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.05); overflow: hidden; }
#paleta-lista .pi img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 2px; }
#paleta-lista small { display: block; color: var(--suave); font-size: 11.5px; }
#paleta-lista .tipo { font-size: 11px; color: var(--tenue); }
#paleta-lista .grupo { display: block; padding: 10px 10px 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--tenue); cursor: default; background: none !important; box-shadow: none !important; }

/* ---------- Reflejo en tarjetas inclinadas ---------- */
.reflejo { position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.18), transparent 60%); }
.inclinada > .reflejo { opacity: 1; }

/* ---------- Bento v2 ---------- */
.b-plan { grid-column: span 7; } .b-canal { grid-column: span 5; }
.b-top { grid-column: span 5; } .b-deptos { grid-column: span 4; } .b-embudo { grid-column: span 3; }
.b-actividad { grid-column: span 4; } .b-radar { grid-column: span 4; } .b-perfumes { grid-column: span 4; }
.b-agentes { grid-column: span 12; }
.mezcla { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: center; }
.mezcla .dona { width: 150px; height: 150px; }
.mezcla .dona circle { stroke-width: 18; }
.mezcla .dona circle:hover { stroke-width: 24; }
.mezcla .dona .centro b { font-size: 22px; }
.mezcla ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 12.5px; }
.mezcla li { display: flex; align-items: center; gap: 8px; padding: 3px 6px; border-radius: 8px; transition: background .2s; }
.mezcla li:hover, .mezcla li.activo { background: rgba(255,255,255,.06); }
.mezcla li i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.mezcla li b { margin-left: auto; font-family: var(--titulos); }
.actividad { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; }
.actividad::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(var(--oro), transparent); }
.actividad li { display: grid; grid-template-columns: 10px 1fr; gap: 14px; font-size: 13px; }
.actividad li > i { width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: var(--c, var(--oro)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c, var(--oro)) 20%, transparent); position: relative; z-index: 1; }
.actividad small { display: block; color: var(--suave); font-size: 11.5px; margin-top: 2px; }
.perfumes .fotos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding-top: 6px; }
.perfumes .fotos a { display: flex; flex-direction: column; gap: 5px; text-decoration: none; color: var(--suave); font-size: 10.5px; text-align: center; min-width: 0; }
.perfumes .fotos img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 12px; background: #fff; padding: 4px; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.perfumes .fotos a:hover img { transform: translateY(-5px) scale(1.06); }
.perfumes .fotos b { color: var(--texto); font-size: 12px; }
.perfumes .fotos span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Orbes de agentes ---------- */
.agentes-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.agentes-mini a { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 8px 12px; border-radius: 14px; background: rgba(255,255,255,.025); border: 1px solid var(--borde); color: var(--texto); text-decoration: none; font-size: 12.5px; text-align: center; transition: transform .25s, border-color .25s, background .25s; }
.agentes-mini a:hover { transform: translateY(-4px); border-color: rgba(216,178,110,.4); background: rgba(216,178,110,.06); }
.agentes-mini a small { color: var(--suave); font-size: 11px; margin-top: -6px; }
.orbe { --c: #3a4566; position: relative; width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 30%, #fff), var(--c) 45%, color-mix(in srgb, var(--c) 40%, #000) 85%);
  box-shadow: 0 0 24px color-mix(in srgb, var(--c) 50%, transparent); }
.orbe.ok { --c: #3fd99a; animation: respirar2 2.6s ease-in-out infinite; }
.orbe.parcial { --c: #f5b84b; }
.orbe.pendiente { box-shadow: none; opacity: .85; }
.orbe::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid transparent; border-top-color: color-mix(in srgb, var(--c) 70%, #fff); animation: girarS 1.6s linear infinite; }
.orbe.parcial::after { animation-duration: 3s; }
.orbe.pendiente::after { animation: none; border: 1px dashed rgba(255,255,255,.14); }
@keyframes respirar2 { 50% { box-shadow: 0 0 42px color-mix(in srgb, var(--c) 75%, transparent); } }
.agentes-mini a:hover .orbe::after, .agente:hover .orbe::after { animation-duration: .7s; }

/* ---------- Centro de agentes v2 ---------- */
.aprobaciones { display: grid; grid-template-columns: 52px 1fr auto; gap: 18px; align-items: center; margin-bottom: 18px; }
.aprob-ic { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; color: var(--oro-2); background: rgba(216,178,110,.1); box-shadow: inset 0 0 0 1px rgba(216,178,110,.3); }
.aprob-ic svg { width: 24px; height: 24px; }
.aprobaciones h3 { font-size: 16px; }
.aprobaciones .nota { margin: 4px 0 0; max-width: 640px; }
.aprob-estado { text-align: center; padding: 10px 18px; border-radius: 14px; background: rgba(63,217,154,.08); border: 1px solid rgba(63,217,154,.25); }
.aprob-estado b { display: block; font: 700 26px var(--titulos); color: var(--verde); }
.aprob-estado span { font-size: 11.5px; color: var(--suave); }
.agente .cab .orbe { width: 44px; height: 44px; }
.pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pasos li { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; font-size: 12.5px; color: #c4cadb; }
.pasos li > i { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 700; }
.pasos li.hecho > i { background: rgba(63,217,154,.15); color: var(--verde); }
.pasos li.espera > i { background: rgba(255,255,255,.06); color: var(--tenue); }
.pasos li small { color: var(--suave); font-size: 11px; }

/* ---------- Vitrina con fotos ---------- */
.vitrina .foto-p { width: 100%; aspect-ratio: 1; border-radius: 14px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.vitrina .foto-p img { width: 86%; height: 86%; object-fit: contain; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.vitrina .tarjeta:hover .foto-p img { transform: scale(1.08) rotate(-2deg); }
.miniatura-t { width: 36px; height: 36px; border-radius: 8px; object-fit: contain; background: #fff; padding: 2px; vertical-align: middle; margin-right: 10px; }

.iman { transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s, filter .2s; }

@media (max-width: 1200px) {
  .b-actividad, .b-radar, .b-perfumes { grid-column: span 6; }
}
@media (max-width: 900px) {
  .login-arte { min-height: 62vh; padding: 22px 20px 26px; }
  .login-arte .escena-3d { top: 8%; left: 0; width: 100%; height: 44%; opacity: .85; }
  .buscador span, .buscador kbd { display: none; }
  .buscador { width: auto; }
  .mezcla { grid-template-columns: 1fr; justify-items: center; }
  .mezcla ul { width: 100%; }
  .aprobaciones { grid-template-columns: 1fr; }
  .cursor-anillo, .cursor-punto { display: none; }
}
