/* Garantías · cristal óptico. Aislado bajo .wty para no alterar otros módulos. */
.warranty-view{padding:0!important;background:transparent!important}
.wty{--wty-ink:#10213d;--wty-muted:#667792;--wty-line:rgba(105,128,171,.2);--wty-blue:#2477f3;--wty-cyan:#19b8d5;--wty-violet:#7868ef;--wty-green:#1f9d73;--wty-amber:#d98b16;--wty-red:#d94f67;position:relative;min-height:calc(100vh - 110px);padding:22px;overflow:hidden;color:var(--wty-ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",sans-serif;background:radial-gradient(circle at 8% 4%,rgba(82,169,255,.2),transparent 29%),radial-gradient(circle at 88% 10%,rgba(139,113,255,.15),transparent 31%),linear-gradient(160deg,#f5fbff 0%,#f7f7ff 48%,#eef8ff 100%)}
.wty::before,.wty::after{content:"";position:absolute;border-radius:999px;filter:blur(1px);pointer-events:none;opacity:.7}
.wty::before{width:270px;height:270px;right:-90px;top:180px;background:radial-gradient(circle at 35% 30%,rgba(255,255,255,.9),rgba(47,174,244,.16) 35%,rgba(118,104,239,.08) 62%,transparent 70%);border:1px solid rgba(255,255,255,.75)}
.wty::after{width:180px;height:180px;left:-95px;bottom:40px;background:rgba(64,208,195,.1);filter:blur(20px)}
.wty-shell{position:relative;z-index:1;max-width:1540px;margin:auto}
.wty-glass{background:linear-gradient(145deg,rgba(255,255,255,.78),rgba(255,255,255,.48));border:1px solid rgba(255,255,255,.9);box-shadow:0 18px 50px rgba(54,82,130,.11),inset 0 1px 0 rgba(255,255,255,.92);backdrop-filter:blur(22px) saturate(145%);-webkit-backdrop-filter:blur(22px) saturate(145%)}
.wty-hero{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:24px;padding:24px 26px;border-radius:28px;overflow:hidden}
.wty-hero::after{content:"";position:absolute;inset:auto -6% -80% 32%;height:180%;background:linear-gradient(102deg,transparent,rgba(255,255,255,.64),transparent);transform:rotate(-9deg);pointer-events:none}
.wty-kicker{display:flex;align-items:center;gap:8px;margin-bottom:7px;color:#296eae;font-size:.68rem;font-weight:850;letter-spacing:.15em;text-transform:uppercase}
.wty-kicker::before{content:"";width:22px;height:1px;background:currentColor}
.wty-title{margin:0;font-family:"SF Pro Display",Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:clamp(1.8rem,3vw,3.05rem);font-weight:760;letter-spacing:-.055em;line-height:.98}
.wty-title span{background:linear-gradient(100deg,var(--wty-blue),var(--wty-violet));-webkit-background-clip:text;background-clip:text;color:transparent}
.wty-subtitle{max-width:680px;margin:10px 0 0;color:var(--wty-muted);font-size:.9rem;line-height:1.55}
.wty-hero-actions{display:flex;align-items:center;gap:12px;position:relative;z-index:2}
.wty-btn{border:0;border-radius:15px;padding:11px 17px;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;font:750 .82rem/1 Inter,-apple-system,sans-serif;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease,background .2s ease;color:var(--wty-ink)}
.wty-btn:hover{transform:translateY(-2px)}.wty-btn:active{transform:scale(.98)}
.wty-btn:focus-visible,.wty input:focus-visible,.wty select:focus-visible,.wty textarea:focus-visible{outline:3px solid rgba(36,119,243,.2);outline-offset:2px}
.wty-btn-primary{color:#fff;background:linear-gradient(135deg,#2685f5,#5268eb 58%,#7868ef);box-shadow:0 12px 28px rgba(52,105,225,.28),inset 0 1px 0 rgba(255,255,255,.35)}
.wty-btn-soft{background:rgba(255,255,255,.68);border:1px solid rgba(115,137,180,.2);box-shadow:0 8px 20px rgba(55,80,120,.08)}
.wty-btn-danger{color:#b72f4a;background:#fff0f3;border:1px solid #ffd1da}
.wty-lens{width:86px;height:86px;position:relative;border-radius:50%;background:radial-gradient(circle at 30% 22%,#fff 0 8%,rgba(255,255,255,.66) 9%,rgba(75,194,244,.22) 35%,rgba(118,104,239,.22) 68%,rgba(255,255,255,.2));border:1px solid rgba(255,255,255,.92);box-shadow:0 16px 36px rgba(56,114,200,.19),inset -10px -12px 22px rgba(81,105,224,.12),inset 9px 9px 20px rgba(255,255,255,.8);animation:wtyLensFloat 4.6s ease-in-out infinite}
.wty-lens::before{content:"";position:absolute;inset:14px;border:1px solid rgba(255,255,255,.75);border-radius:50%;box-shadow:inset 0 0 20px rgba(56,178,233,.14)}
.wty-lens .material-symbols-outlined{position:absolute;inset:0;display:grid;place-items:center;color:#386fd4;font-size:31px;text-shadow:0 2px 12px rgba(255,255,255,.8)}
@keyframes wtyLensFloat{50%{transform:translateY(-6px) rotate(3deg);box-shadow:0 22px 44px rgba(56,114,200,.23),inset -10px -12px 22px rgba(81,105,224,.13)}}
.wty-stats{display:grid;grid-template-columns:repeat(5,minmax(130px,1fr));gap:12px;margin:14px 0}
.wty-stat{padding:15px 16px;border-radius:20px;position:relative;overflow:hidden}
.wty-stat-label{display:flex;align-items:center;gap:7px;color:var(--wty-muted);font-size:.68rem;font-weight:780}.wty-stat-label .material-symbols-outlined{font-size:16px;color:var(--stat-color,var(--wty-blue))}
.wty-stat-value{margin-top:6px;font-size:1.55rem;font-weight:780;letter-spacing:-.05em}.wty-stat-glow{position:absolute;width:54px;height:54px;right:-15px;bottom:-18px;border-radius:50%;background:var(--stat-color,var(--wty-blue));opacity:.1;filter:blur(8px)}
.wty-toolbar{display:grid;grid-template-columns:minmax(260px,1fr) 190px 190px auto;gap:10px;padding:11px;border-radius:20px;margin-bottom:14px}
.wty-search{position:relative}.wty-search .material-symbols-outlined{position:absolute;left:13px;top:50%;transform:translateY(-50%);font-size:19px;color:#8090aa}.wty-search input{padding-left:40px!important}
.wty input,.wty select,.wty textarea{width:100%;box-sizing:border-box;border:1px solid rgba(118,139,178,.23);border-radius:13px;background:rgba(255,255,255,.71);color:var(--wty-ink);padding:11px 13px;font:600 .82rem/1.35 Inter,-apple-system,sans-serif;box-shadow:inset 0 1px 1px rgba(45,70,110,.025);transition:border-color .18s,box-shadow .18s,background .18s}
.wty textarea{resize:vertical;min-height:88px}.wty input:hover,.wty select:hover,.wty textarea:hover{border-color:rgba(71,119,202,.35);background:rgba(255,255,255,.9)}
.wty-list{display:grid;gap:10px}.wty-case{display:grid;grid-template-columns:74px minmax(190px,1.2fr) minmax(180px,1fr) minmax(150px,.8fr) auto;align-items:center;gap:15px;padding:14px 16px;border-radius:20px;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;cursor:pointer}
.wty-case:hover{transform:translateY(-2px);border-color:rgba(93,131,213,.3);box-shadow:0 20px 46px rgba(54,82,130,.14),inset 0 1px 0 #fff}
.wty-case-orb{width:50px;height:50px;border-radius:17px;display:grid;place-items:center;color:#fff;background:linear-gradient(145deg,var(--orb-a,#36a5ef),var(--orb-b,#7169ec));box-shadow:0 10px 22px color-mix(in srgb,var(--orb-a,#36a5ef) 25%,transparent);position:relative}.wty-case-orb::after{content:"";position:absolute;inset:1px;border-radius:16px;border:1px solid rgba(255,255,255,.35)}
.wty-case-orb .material-symbols-outlined{font-size:23px}.wty-case-num{font-size:.67rem;color:var(--wty-muted);font-weight:770;letter-spacing:.04em}.wty-case-name{font-weight:790;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.wty-case-meta{margin-top:4px;color:var(--wty-muted);font-size:.72rem}.wty-case-product{font-weight:720;font-size:.79rem}.wty-provider{font-size:.72rem;color:var(--wty-muted);margin-top:3px}
.wty-status{display:inline-flex;align-items:center;gap:6px;width:max-content;border-radius:999px;padding:6px 10px;font-size:.66rem;font-weight:800;background:var(--status-bg,#edf5ff);color:var(--status-color,#2569c7);border:1px solid color-mix(in srgb,var(--status-color,#2569c7) 16%,transparent)}.wty-status::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;box-shadow:0 0 0 3px color-mix(in srgb,currentColor 14%,transparent)}
.wty-empty{padding:58px 24px;text-align:center;border-radius:26px}.wty-empty-icon{width:72px;height:72px;margin:0 auto 14px;border-radius:24px;display:grid;place-items:center;background:linear-gradient(145deg,#fff,rgba(219,238,255,.72));box-shadow:0 12px 30px rgba(62,101,163,.12)}.wty-empty-icon .material-symbols-outlined{font-size:32px;color:#4e83d8}.wty-empty h3{margin:0;font-size:1rem}.wty-empty p{color:var(--wty-muted);font-size:.78rem}
.wty-modal{position:fixed;inset:0;z-index:10080;display:grid;place-items:center;padding:18px;background:rgba(18,33,61,.27);backdrop-filter:blur(14px) saturate(120%);-webkit-backdrop-filter:blur(14px) saturate(120%);animation:wtyFade .2s ease}
@keyframes wtyFade{from{opacity:0}to{opacity:1}}
.wty-modal-panel{width:min(960px,96vw);max-height:94vh;overflow:auto;border-radius:30px;background:linear-gradient(145deg,rgba(255,255,255,.95),rgba(244,249,255,.88));border:1px solid rgba(255,255,255,.95);box-shadow:0 30px 90px rgba(18,38,75,.28),inset 0 1px 0 #fff;animation:wtyPanelIn .24s cubic-bezier(.2,.8,.2,1)}
@keyframes wtyPanelIn{from{transform:translateY(10px) scale(.988)}to{transform:none}}
.wty-modal-head{position:sticky;top:0;z-index:5;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 22px;background:rgba(248,251,255,.82);border-bottom:1px solid rgba(107,130,172,.15);backdrop-filter:blur(22px)}
.wty-modal-title{display:flex;align-items:center;gap:11px}.wty-modal-title-icon{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;color:#fff;background:linear-gradient(145deg,#2d8bf4,#6c66ec);box-shadow:0 9px 22px rgba(54,106,222,.24)}.wty-modal-title h2{font-size:1.05rem;margin:0;letter-spacing:-.02em}.wty-modal-title p{font-size:.7rem;color:var(--wty-muted);margin:3px 0 0}.wty-close{width:39px;height:39px;border:1px solid rgba(108,130,169,.18);background:rgba(255,255,255,.68);border-radius:13px;display:grid;place-items:center;cursor:pointer;color:#667792}
.wty-modal-body{padding:20px 22px 24px}.wty-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-bottom:20px}.wty-step{position:relative;padding:9px 10px;border-radius:13px;background:rgba(229,237,248,.58);color:#7888a1;font-size:.68rem;font-weight:770;text-align:center}.wty-step.active{color:#fff;background:linear-gradient(135deg,#2c85f1,#6869ec);box-shadow:0 8px 18px rgba(56,106,219,.2)}.wty-step.done{color:#20765e;background:#e4f7f0}
.wty-section-title{display:flex;align-items:center;gap:8px;font-size:.78rem;font-weight:820;margin:0 0 11px}.wty-section-title .material-symbols-outlined{font-size:19px;color:#3e78d7}
.wty-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.wty-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.wty-field label{display:block;margin:0 0 6px;color:#5f708a;font-size:.67rem;font-weight:780}.wty-field-full{grid-column:1/-1}
.wty-results{display:grid;gap:7px;margin-top:10px;max-height:320px;overflow:auto}.wty-result{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid rgba(112,136,176,.16);border-radius:15px;background:rgba(255,255,255,.66);cursor:pointer;transition:.18s}.wty-result:hover,.wty-result.selected{border-color:rgba(45,123,232,.42);background:#f4f9ff;transform:translateX(2px)}.wty-result-main{display:flex;gap:10px;align-items:center;min-width:0}.wty-avatar{width:38px;height:38px;border-radius:13px;display:grid;place-items:center;font-weight:850;color:#286fc8;background:linear-gradient(145deg,#e5f6ff,#ecebff)}.wty-result-name{font-size:.8rem;font-weight:780}.wty-result-meta{font-size:.68rem;color:var(--wty-muted);margin-top:3px}
.wty-sale{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center}.wty-sale-date{width:50px;text-align:center;padding:7px 4px;border-radius:13px;background:#eef6ff;color:#356da9}.wty-sale-date strong{display:block;font-size:1rem}.wty-sale-date span{font-size:.58rem;font-weight:780;text-transform:uppercase}.wty-money{font-weight:820;font-size:.82rem}
.wty-items{display:grid;gap:9px}.wty-item{position:relative;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;padding:13px;border:1px solid rgba(111,135,177,.18);border-radius:17px;background:rgba(255,255,255,.66);cursor:pointer}.wty-item.selected{border-color:#5191ef;background:linear-gradient(135deg,#f4f9ff,#f7f4ff);box-shadow:0 9px 24px rgba(64,108,189,.1)}.wty-check{width:22px;height:22px;border-radius:8px;border:1.5px solid #9bacbf;display:grid;place-items:center;color:#fff}.wty-item.selected .wty-check{background:linear-gradient(135deg,#3288ed,#6b69ec);border-color:transparent}.wty-check .material-symbols-outlined{font-size:15px}.wty-item-name{font-size:.79rem;font-weight:780}.wty-item-meta{font-size:.67rem;color:var(--wty-muted);margin-top:3px}
.wty-upload{padding:14px;border:1px dashed rgba(68,119,204,.35);border-radius:15px;background:rgba(237,247,255,.55);text-align:center;cursor:pointer;color:#4773b1;font-size:.72rem;font-weight:760}.wty-photos{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.wty-photo{width:70px;height:70px;border-radius:13px;object-fit:cover;border:2px solid #fff;box-shadow:0 4px 13px rgba(53,80,120,.15)}
.wty-sign-wrap{border:1px solid rgba(93,120,169,.22);border-radius:18px;background:rgba(255,255,255,.78);overflow:hidden}.wty-sign-canvas{display:block;width:100%;height:150px;touch-action:none;cursor:crosshair;background:linear-gradient(rgba(255,255,255,.78),rgba(255,255,255,.88)),repeating-linear-gradient(0deg,transparent,transparent 29px,rgba(91,120,167,.08) 30px)}.wty-sign-foot{display:flex;align-items:center;justify-content:space-between;padding:8px 11px;border-top:1px solid rgba(100,128,174,.12);color:var(--wty-muted);font-size:.65rem}
.wty-summary{padding:15px;border-radius:18px;background:linear-gradient(145deg,rgba(238,248,255,.82),rgba(246,243,255,.76));border:1px solid rgba(99,130,186,.15)}.wty-summary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.wty-summary small{display:block;color:var(--wty-muted);font-size:.62rem;font-weight:740;margin-bottom:3px}.wty-summary strong{font-size:.76rem}
.wty-footer{display:flex;justify-content:space-between;gap:10px;margin-top:20px;padding-top:15px;border-top:1px solid rgba(105,130,172,.14)}.wty-footer-right{display:flex;gap:9px}
.wty-detail-hero{display:grid;grid-template-columns:1fr auto;gap:15px;padding:17px;border-radius:20px;background:linear-gradient(135deg,#edf7ff,#f3f0ff);border:1px solid rgba(94,128,187,.16)}.wty-detail-num{font-size:.68rem;font-weight:820;letter-spacing:.08em;color:#4674b5}.wty-detail-name{font-size:1.25rem;font-weight:800;letter-spacing:-.03em;margin-top:4px}.wty-info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:12px}.wty-info{padding:11px;border-radius:14px;background:rgba(255,255,255,.64);border:1px solid rgba(108,134,178,.13)}.wty-info small{display:block;color:var(--wty-muted);font-size:.62rem;font-weight:750;margin-bottom:4px}.wty-info strong{font-size:.74rem}
.wty-portal-signed{display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:11px;margin-top:12px;padding:13px 15px;border:1px solid rgba(13,155,121,.22);border-radius:17px;background:linear-gradient(135deg,rgba(233,252,246,.92),rgba(247,255,252,.76));box-shadow:0 10px 26px rgba(13,155,121,.08);color:#123d35}.wty-portal-signed>.material-symbols-outlined{width:38px;height:38px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(145deg,#0d9b79,#43c5a4);color:#fff;font-size:22px;box-shadow:0 8px 17px rgba(13,155,121,.2)}.wty-portal-signed strong{display:block;font-size:.76rem}.wty-portal-signed p{margin:3px 0 0;color:#55746c;font-size:.64rem}.wty-portal-signed-badge{padding:5px 8px;border-radius:999px;background:#d9f6eb;color:#08745a;font-size:.55rem;font-weight:900;letter-spacing:.08em}
.wty-timeline{margin:14px 0;display:grid;gap:0}.wty-event{display:grid;grid-template-columns:26px 1fr;gap:9px;min-height:50px}.wty-event-mark{position:relative}.wty-event-mark::before{content:"";position:absolute;left:11px;top:18px;bottom:-2px;width:1px;background:#cad8e9}.wty-event:last-child .wty-event-mark::before{display:none}.wty-event-dot{position:relative;z-index:1;width:22px;height:22px;border-radius:8px;background:#e8f3ff;color:#3677ce;display:grid;place-items:center}.wty-event-dot .material-symbols-outlined{font-size:13px}.wty-event strong{display:block;font-size:.72rem}.wty-event p{margin:3px 0 0;color:var(--wty-muted);font-size:.66rem}.wty-event time{font-size:.6rem;color:#91a0b4}
.wty-manage{margin-top:14px;padding:15px;border-radius:18px;border:1px solid rgba(104,130,175,.16);background:rgba(248,251,255,.72)}
@media(max-width:980px){.wty-stats{grid-template-columns:repeat(3,1fr)}.wty-case{grid-template-columns:62px 1fr 1fr auto}.wty-case>div:nth-child(4){display:none}.wty-toolbar{grid-template-columns:1fr 1fr}.wty-toolbar .wty-search{grid-column:1/-1}}
@media(max-width:680px){.wty{padding:10px;min-height:calc(100vh - 80px)}.wty-hero{grid-template-columns:1fr;padding:19px;border-radius:22px}.wty-lens{display:none}.wty-hero-actions{margin-top:4px}.wty-title{font-size:2rem}.wty-subtitle{font-size:.78rem}.wty-stats{grid-template-columns:repeat(2,1fr);gap:8px}.wty-stat{padding:12px}.wty-stat:last-child{grid-column:1/-1}.wty-toolbar{grid-template-columns:1fr}.wty-toolbar .wty-search{grid-column:auto}.wty-case{grid-template-columns:48px 1fr auto;gap:10px;padding:12px}.wty-case-orb{width:42px;height:42px;border-radius:14px}.wty-case>div:nth-child(3),.wty-case>div:nth-child(4){display:none}.wty-modal{padding:0;align-items:end}.wty-modal-panel{width:100%;max-height:96vh;border-radius:25px 25px 0 0}.wty-modal-head{padding:14px 15px}.wty-modal-body{padding:15px}.wty-steps{gap:4px}.wty-step{font-size:0;padding:8px 3px}.wty-step::after{content:attr(data-short);font-size:.62rem}.wty-grid,.wty-grid-3,.wty-summary-grid,.wty-info-grid{grid-template-columns:1fr}.wty-footer{position:sticky;bottom:-24px;background:rgba(250,252,255,.92);margin-left:-15px;margin-right:-15px;padding:12px 15px 18px;z-index:4;backdrop-filter:blur(16px)}.wty-btn{padding:10px 13px}.wty-detail-hero{grid-template-columns:1fr}.wty-detail-hero .wty-status{margin-top:4px}}
@media(max-width:680px){.wty-portal-signed{grid-template-columns:38px 1fr}.wty-portal-signed-badge{grid-column:2;justify-self:start}}
@media(prefers-reduced-motion:reduce){.wty *{scroll-behavior:auto!important;animation:none!important;transition-duration:.01ms!important}}
[data-theme="dark"] .wty{--wty-ink:#edf5ff;--wty-muted:#a5b4ca;background:radial-gradient(circle at 10% 0,rgba(31,117,204,.22),transparent 32%),linear-gradient(160deg,#0c1727,#111426 55%,#0c1b2c)}
[data-theme="dark"] .wty-glass,[data-theme="dark"] .wty-modal-panel{background:linear-gradient(145deg,rgba(24,39,62,.86),rgba(20,29,50,.72));border-color:rgba(255,255,255,.09)}
[data-theme="dark"] .wty input,[data-theme="dark"] .wty select,[data-theme="dark"] .wty textarea,[data-theme="dark"] .wty-result,[data-theme="dark"] .wty-item{background:rgba(16,29,49,.74);color:#edf5ff;border-color:rgba(255,255,255,.11)}
