@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Source+Serif+4:wght@600;700&display=swap');
:root{--orange:#ff6a00;--ink:#0f172a;--muted:#64748b;--border:#e2e8f0;--soft:#f8fafc;--shadow:0 12px 30px rgba(15,23,42,.07)}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:var(--soft);color:var(--ink);font-family:'IBM Plex Sans',sans-serif}h1,h2,h3{font-family:'Source Serif 4',serif}.nav{position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;padding:10px 5vw;background:#fffffff0;border-bottom:1px solid var(--border)}.logo img{display:block;width:220px;height:56px;object-fit:cover}@media(max-width:560px){.logo img{width:150px;height:40px}}.nav-actions{display:flex;align-items:center;gap:16px}.nav a,.link-button{color:var(--muted);font-weight:600;text-decoration:none}.nav form{margin:0}.link-button{padding:0;border:0;background:none;cursor:pointer}.user{font-size:.85rem}.button{display:inline-flex;align-items:center;justify-content:center;padding:11px 18px;border:0;border-radius:10px;font-weight:600;text-decoration:none;cursor:pointer}.primary{background:var(--orange);color:#fff!important}.dark{background:var(--ink);color:#fff!important}.danger{background:#ef4444;color:#fff!important}.outline{border:1px solid var(--border);background:#fff}.full{width:100%}button:disabled{opacity:.5}.hero{padding:75px 5vw;text-align:center;color:#fff;background:radial-gradient(circle at 30% 30%,#ff6a0040,transparent 42%),linear-gradient(135deg,#0b0d10,#1a1a1a)}.hero h1{margin:0 0 10px;font-size:clamp(2.2rem,5vw,3.6rem)}.hero p{margin:0;color:#ffffffad}.catalog-layout{display:grid;grid-template-columns:240px 1fr;gap:25px;width:min(1400px,92vw);margin:32px auto}.filters form,.panel{display:grid;gap:12px}.panel{padding:20px;border:1px solid var(--border);border-radius:14px;background:#fff}.panel h3{margin:0;padding-bottom:10px;border-bottom:1px solid var(--border)}.panel label{color:var(--muted)}.panel input{accent-color:var(--orange)}.products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.product-card{display:flex;flex-direction:column;padding:18px;border:1px solid var(--border);border-radius:18px;background:#fff;transition:.25s}.product-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}.product-image{display:grid;place-items:center;aspect-ratio:1;border-radius:12px;background:var(--soft)}.product-image img{width:85%;height:85%;object-fit:contain}.product-card h3,.product-card>strong{text-align:center}.product-card>strong{margin-bottom:15px;color:var(--orange)}.actions{display:grid;gap:8px;margin-top:auto}.actions form{margin:0}.detail-wrap{width:min(1200px,92vw);margin:35px auto}.breadcrumb{margin-bottom:18px;color:var(--muted)}.detail{display:grid;grid-template-columns:1fr 1fr;gap:55px;padding:45px;border:1px solid var(--border);border-radius:18px;background:#fff;box-shadow:var(--shadow)}.detail-image{display:grid;place-items:center;aspect-ratio:1;background:var(--soft)}.detail-image img{width:82%;height:82%;object-fit:contain}.detail-info{display:flex;flex-direction:column;justify-content:center}.brand{color:var(--orange);font-size:.78rem;font-weight:700;text-transform:uppercase}.detail-info h1{font-size:2.5rem}.price,.total strong{color:var(--orange);font-size:1.8rem}.detail-info p{padding-top:20px;border-top:1px solid var(--border);color:var(--muted)}.detail-info .actions{display:flex}.cart-layout{display:grid;grid-template-columns:1fr 390px;gap:28px;width:min(1320px,94vw);margin:35px auto}.cart-panel,.shipping{padding:30px;border:1px solid var(--border);border-radius:18px;background:#fff;box-shadow:var(--shadow)}.cart-header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border)}.cart-items{display:grid;gap:14px;margin-top:20px}.cart-item{display:grid;grid-template-columns:90px 1fr auto auto;gap:18px;align-items:center;padding:16px;border:1px solid var(--border);border-radius:14px}.cart-image{width:90px;height:90px}.cart-image img{width:100%;height:100%;object-fit:contain}.quantity{display:flex;align-items:center;gap:8px}.quantity button{width:34px;height:34px;border:1px solid var(--border);background:var(--soft)}.total{padding-top:22px;text-align:right}.shipping p,.auth-card small{color:var(--muted)}footer{margin-top:35px;padding:24px;border-top:1px solid var(--border);background:#fff;color:var(--muted);text-align:center}.auth-body{display:grid;min-height:100vh;place-items:center;padding:24px;background:radial-gradient(circle at top right,#fff4ed,#fff 55%)}.auth-card{width:min(430px,100%);padding:34px;border:1px solid var(--border);border-radius:26px;background:#fff;box-shadow:0 22px 60px #0f172a17}.auth-card img{display:block;width:190px;height:120px;margin:auto;object-fit:contain}.auth-card h1,.auth-card>p{text-align:center}.auth-card label{display:grid;gap:7px;margin-top:16px}.auth-card input{padding:13px;border:1px solid var(--border);border-radius:10px;outline:none;transition:border-color .2s,box-shadow .2s}.auth-card input:hover{border-color:#cbd5e1}.auth-card input:focus{border-color:var(--orange);box-shadow:0 0 0 4px rgba(255,106,0,.1)}.auth-card form>.button{margin-top:20px}.auth-card small{display:block;margin-top:18px;text-align:center}.alert{margin-top:15px;padding:12px;background:#fef2f2;color:#b91c1c}.alert.success{border-radius:10px;background:#f0fdf4;color:#15803d}@media(max-width:1100px){.products{grid-template-columns:repeat(3,1fr)}.cart-layout{grid-template-columns:1fr}}@media(max-width:800px){.catalog-layout{grid-template-columns:1fr}.products{grid-template-columns:repeat(2,1fr)}.detail{grid-template-columns:1fr;padding:25px}.user{display:none}}@media(max-width:560px){.products{grid-template-columns:1fr}.cart-item{grid-template-columns:70px 1fr}.quantity,.cart-item>form{grid-column:span 2}.cart-header{align-items:flex-start;flex-direction:column}}
.order-list{display:grid;gap:14px;margin-top:20px}.order-card{display:grid;grid-template-columns:1fr auto auto auto;gap:22px;align-items:center;padding:18px 20px;border:1px solid var(--border);border-radius:14px;transition:.25s}.order-card:hover{box-shadow:var(--shadow)}.order-card h3{margin:0}.order-date,.order-count,.order-empty{color:var(--muted)}.order-date{display:block;margin-top:6px;font-size:.85rem}.order-status{padding:6px 12px;border:1px solid var(--border);border-radius:999px;background:var(--soft);color:var(--muted);font-size:.72rem;font-weight:700;letter-spacing:.4px;text-transform:uppercase;white-space:nowrap}.order-total{color:var(--orange);font-size:1.15rem;white-space:nowrap}.order-empty{margin-top:20px}@media(max-width:700px){.order-card{grid-template-columns:1fr auto;gap:12px 18px}.order-count{grid-column:1}}
.auth-card p a{color:var(--ink);font-weight:600;text-decoration:underline;text-decoration-color:var(--border);text-decoration-thickness:2px;text-underline-offset:4px;transition:text-decoration-color .2s}.auth-card p a:hover,.auth-card p a:focus-visible{text-decoration-color:var(--orange)}.auth-card .divider{display:flex;align-items:center;gap:14px;margin:22px 0 16px;color:var(--muted);font-size:.8rem}.auth-card .divider::before,.auth-card .divider::after{content:"";flex:1;height:1px;background:var(--border)}.auth-card .social-row{display:flex;gap:10px}.auth-card .social-btn{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;padding:11px 8px;border:1px solid var(--border);border-radius:10px;background:#fff;color:var(--ink);font-size:.85rem;font-weight:600;text-decoration:none;transition:border-color .2s,background .2s,transform .2s,box-shadow .2s}.auth-card .social-btn:hover,.auth-card .social-btn:focus-visible{border-color:var(--orange);background:#fff4ed;transform:translateY(-2px);box-shadow:0 4px 16px rgba(255,106,0,.1)}.auth-card .social-btn svg{width:20px;height:20px;flex-shrink:0}@media(max-width:380px){.auth-card .social-btn .btn-label{display:none}}.auth-card .code-input{font-size:1.4rem;font-weight:600;letter-spacing:.45em;font-variant-numeric:tabular-nums}.resend-form{margin:0}.link-inline{padding:0;border:0;background:none;color:var(--ink);font:inherit;font-weight:600;text-decoration:underline;text-decoration-color:var(--border);text-decoration-thickness:2px;text-underline-offset:3px;cursor:pointer;transition:text-decoration-color .2s}.link-inline:hover,.link-inline:focus-visible{text-decoration-color:var(--orange)}.auth-body .auth-card{position:relative;z-index:1}.auth-rain{position:fixed;inset:0;z-index:0;overflow:hidden;pointer-events:none}.auth-rain span{position:absolute;top:-70px;left:var(--x);width:var(--size);height:var(--size);color:var(--orange);opacity:var(--op);animation:auth-fall var(--dur) linear var(--delay) infinite;will-change:transform}.auth-rain span.dark{color:var(--ink);opacity:calc(var(--op)*.6)}.auth-rain svg{display:block;width:100%;height:100%}@keyframes auth-fall{from{transform:translate3d(0,0,0) rotate(0)}to{transform:translate3d(var(--drift),calc(100vh + 140px),0) rotate(var(--rot))}}@media(prefers-reduced-motion:reduce){.auth-rain span{top:var(--y);animation:none}}.input-icon{position:relative;display:block}.input-icon>svg{position:absolute;top:50%;left:13px;width:18px;height:18px;color:var(--muted);transform:translateY(-50%);pointer-events:none}.auth-card .input-icon input{width:100%;padding-left:42px}.input-icon:focus-within>svg{color:var(--orange)}
/* Mi perfil */
.profile-page{width:min(920px,92vw);margin:36px auto 48px}
.profile-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:22px}
.profile-head h1{margin:0 0 6px;font-size:2.2rem}
.profile-head p{margin:0;color:var(--muted)}
.profile-notice{display:flex;gap:14px;align-items:flex-start;margin-bottom:18px;padding:16px 18px;border:1px solid #fed7aa;border-radius:14px;background:#fff7ed;color:#9a3412}
.profile-notice svg{flex-shrink:0;width:22px;height:22px;margin-top:1px}
.profile-notice div{display:grid;gap:3px}
.profile-notice span{font-size:.92rem}
.profile-page .alert{margin:0 0 18px;border-radius:12px}
.profile-form{display:grid;gap:20px}
.profile-card{padding:26px 28px;border:1px solid var(--border);border-radius:18px;background:#fff;box-shadow:var(--shadow)}
.profile-card h2{margin:0 0 18px;padding-bottom:12px;border-bottom:1px solid var(--border);font-size:1.3rem}
.profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px}
.profile-grid .span-2{grid-column:span 2}
.profile-grid label{display:grid;gap:7px;color:var(--ink);font-size:.9rem;font-weight:600}
.profile-grid .optional{color:var(--muted);font-weight:400}
.profile-grid input,.profile-grid select,.profile-grid textarea{width:100%;padding:12px 13px;border:1px solid var(--border);border-radius:10px;background:#fff;color:var(--ink);font:inherit;font-weight:400;outline:none;transition:border-color .2s,box-shadow .2s}
.profile-grid textarea{resize:vertical}
.profile-grid input:hover,.profile-grid select:hover,.profile-grid textarea:hover{border-color:#cbd5e1}
.profile-grid input:focus,.profile-grid select:focus,.profile-grid textarea:focus{border-color:var(--orange);box-shadow:0 0 0 4px rgba(255,106,0,.1)}
.profile-grid input:disabled,.profile-grid input[readonly],.profile-grid select:disabled{background:var(--soft);color:var(--muted)}
.profile-grid input[readonly]:focus{border-color:var(--border);box-shadow:none}
.profile-grid small{color:var(--muted);font-size:.8rem;font-weight:400}
.cp-status[data-kind=loading]{color:var(--orange)}
.cp-status[data-kind=ok]{color:#15803d}
.cp-status[data-kind=error]{color:#b91c1c}
.phone-field{display:flex}
.phone-prefix{display:grid;place-items:center;padding:0 12px;border:1px solid var(--border);border-right:0;border-radius:10px 0 0 10px;background:var(--soft);color:var(--muted);font-weight:600}
.phone-field input{border-radius:0 10px 10px 0}
.profile-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:12px}
@media(max-width:640px){.profile-grid{grid-template-columns:1fr}.profile-grid .span-2{grid-column:auto}.profile-card{padding:20px}.profile-actions .button{flex:1}}
.profile-page .button.outline{color:var(--ink);transition:border-color .2s,color .2s,background .2s}
.profile-page .button.outline:hover,.profile-page .button.outline:focus-visible{border-color:var(--orange);background:#fff4ed;color:var(--orange)}
.profile-grid input,.profile-grid select{height:46px}
.profile-page.narrow{width:min(560px,92vw)}
.profile-grid.single{grid-template-columns:1fr}
.profile-grid .input-icon input{padding-left:42px}
/* Catálogo: barra de filtros compacta */
.catalog{width:min(1400px,92vw);margin:28px auto}
.filter-bar{display:flex;align-items:center;gap:14px;margin-bottom:14px;padding:12px;border:1px solid var(--border);border-radius:16px;background:#fff;box-shadow:var(--shadow)}
.chip-row{display:flex;flex:1;gap:8px;min-width:0;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.chip-row::-webkit-scrollbar{display:none}
.chip-row .chip{flex-shrink:0;padding:8px 16px;border:1px solid var(--border);border-radius:999px;background:#fff;color:var(--ink);font-size:.9rem;font-weight:600;text-decoration:none;white-space:nowrap;transition:border-color .2s,background .2s,color .2s}
.chip-row .chip:hover,.chip-row .chip:focus-visible{border-color:var(--orange);color:var(--orange);outline:none}
.chip-row .chip.active{border-color:var(--orange);background:var(--orange);color:#fff}
.brand-filter{position:relative;flex-shrink:0;margin:0}
.brand-filter svg{position:absolute;top:50%;left:12px;width:17px;height:17px;color:var(--muted);transform:translateY(-50%);pointer-events:none}
.brand-filter select{min-width:200px;height:40px;padding:0 34px 0 36px;border:1px solid var(--border);border-radius:999px;background:#fff;color:var(--ink);font:inherit;font-size:.9rem;font-weight:600;cursor:pointer;outline:none;transition:border-color .2s,box-shadow .2s}
.brand-filter select:hover{border-color:#cbd5e1}
.brand-filter select:focus{border-color:var(--orange);box-shadow:0 0 0 4px rgba(255,106,0,.1)}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.results-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 4px 16px;color:var(--muted);font-size:.9rem}
.results-meta .clear-filters{display:inline-flex;align-items:center;gap:6px;color:var(--ink);font-weight:600;text-decoration:underline;text-decoration-color:var(--border);text-decoration-thickness:2px;text-underline-offset:4px;transition:text-decoration-color .2s}
.results-meta .clear-filters:hover{text-decoration-color:var(--orange)}
.results-meta .clear-filters svg{width:15px;height:15px}
.empty-results{display:grid;gap:4px;padding:40px;border:1px dashed var(--border);border-radius:16px;background:#fff;color:var(--muted);text-align:center}
.empty-results strong{color:var(--ink)}
@media(max-width:700px){.filter-bar{flex-direction:column;align-items:stretch;gap:10px}.chip-row{margin:0 -12px;padding:0 12px}.brand-filter select{width:100%}}
.nav-actions>.button{white-space:nowrap}@media(max-width:480px){.nav-actions>.button.outline{display:none}}
/* Catálogo: búsqueda y paginación */
.search-bar{position:relative;display:flex;align-items:center;gap:10px;margin-bottom:12px}
.search-bar>svg{position:absolute;top:50%;left:18px;width:20px;height:20px;color:var(--muted);transform:translateY(-50%);pointer-events:none}
.search-bar input{flex:1;min-width:0;height:50px;padding:0 48px 0 50px;border:1px solid var(--border);border-radius:999px;background:#fff;color:var(--ink);font:inherit;font-size:1rem;box-shadow:var(--shadow);outline:none;transition:border-color .2s,box-shadow .2s}
.search-bar input::-webkit-search-cancel-button{display:none}
.search-bar input:focus{border-color:var(--orange);box-shadow:0 0 0 4px rgba(255,106,0,.1)}
.search-bar:focus-within>svg{color:var(--orange)}
.search-bar .search-clear{position:absolute;top:50%;right:118px;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;color:var(--muted);transform:translateY(-50%)}
.search-bar .search-clear:hover{background:var(--soft);color:var(--ink)}
.search-bar .search-clear svg{width:16px;height:16px}
.search-bar .button{height:50px;padding:0 24px;border-radius:999px}
.pagination{display:flex;align-items:center;justify-content:center;gap:10px;margin:32px 0 8px;flex-wrap:wrap}
.page-numbers{display:flex;align-items:center;gap:6px}
.pagination a,.pagination span.page-number,.pagination .page-step{display:inline-grid;place-items:center;min-width:42px;height:42px;padding:0 12px;border:1px solid var(--border);border-radius:12px;background:#fff;color:var(--ink);font-weight:600;text-decoration:none;transition:border-color .2s,color .2s,background .2s}
.pagination .page-step{display:inline-flex;gap:6px}
.pagination a:hover,.pagination a:focus-visible{border-color:var(--orange);color:var(--orange);outline:none}
.pagination .current{border-color:var(--orange);background:var(--orange);color:#fff}
.pagination .disabled{opacity:.45}
.page-gap{padding:0 4px;color:var(--muted)}
@media(max-width:560px){.search-bar .button{padding:0 16px}.search-bar .search-clear{right:94px}.pagination .page-step{min-width:0;padding:0 10px}.page-numbers .page-number:not(.current){display:none}}
.pagination .page-number.current{border-color:var(--orange);background:var(--orange);color:#fff}
/* Ficha de producto compacta + relacionados */
.pd-wrap{width:min(1200px,92vw);margin:22px auto 40px}
.pd-breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:14px;color:var(--muted);font-size:.9rem}
.pd-breadcrumb a{color:var(--ink);font-weight:600;text-decoration:none}
.pd-breadcrumb a:hover{color:var(--orange)}
.pd-breadcrumb [aria-current]{overflow:hidden;max-width:40ch;text-overflow:ellipsis;white-space:nowrap}
.pd-card{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:36px;align-items:center;padding:28px;border:1px solid var(--border);border-radius:18px;background:#fff;box-shadow:var(--shadow)}
.pd-image{display:grid;place-items:center;height:min(420px,56vh);border-radius:14px;background:#fff}
.pd-image img{width:100%;height:100%;object-fit:contain}
.pd-info{display:flex;flex-direction:column;gap:12px;min-width:0}
.pd-tags{display:flex;flex-wrap:wrap;gap:8px}
.pd-tag{padding:4px 12px;border:1px solid var(--border);border-radius:999px;background:var(--soft);color:var(--muted);font-size:.75rem;font-weight:700;letter-spacing:.4px;text-transform:uppercase}
.pd-tag.brand{border-color:#fed7aa;background:#fff7ed;color:var(--orange)}
.pd-info h1{margin:0;font-size:clamp(1.5rem,2.6vw,2.1rem);line-height:1.2}
.pd-price{color:var(--orange);font-size:1.9rem;line-height:1}
.pd-price small{font-size:.95rem;font-weight:600}
.pd-stock{font-size:.88rem;font-weight:600}
.pd-stock.ok{color:#15803d}
.pd-stock.out{color:#b91c1c}
.pd-desc{margin:0;padding-top:12px;border-top:1px solid var(--border);color:var(--muted);line-height:1.6}
.pd-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:6px}
.pd-actions form{margin:0}
.pd-actions .button{padding:12px 22px}
.pd-actions .button.outline{color:var(--ink)}
.pd-actions .button.outline:hover{border-color:var(--orange);color:var(--orange)}
.pd-related{margin-top:34px}
.pd-related-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:16px}
.pd-related-head h2{margin:0;font-size:1.5rem}
.pd-related-head a{color:var(--ink);font-weight:600;text-decoration:none}
.pd-related-head a:hover{color:var(--orange)}
a.product-image{text-decoration:none}
@media(max-width:800px){.pd-card{grid-template-columns:1fr;gap:18px;padding:18px}.pd-image{height:280px}.pd-actions .button,.pd-actions form{flex:1}.pd-actions form .button{width:100%}}
.pd-breadcrumb .pd-home{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:8px;transition:background .2s,color .2s}.pd-breadcrumb .pd-home:hover,.pd-breadcrumb .pd-home:focus-visible{background:#fff4ed;color:var(--orange)}.pd-breadcrumb .pd-home svg{width:19px;height:19px}
.pd-image,.product-image{position:relative;overflow:hidden}.pd-image img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.product-image img{position:absolute;inset:7.5%;width:85%;height:85%;object-fit:contain}
.product-card{scroll-margin-top:110px}
.cart-toast{position:fixed;right:24px;bottom:24px;z-index:60;display:flex;align-items:center;gap:12px;max-width:min(420px,calc(100vw - 32px));padding:14px 18px;border-left:4px solid var(--orange);border-radius:12px;background:var(--ink);color:#fff;box-shadow:0 18px 40px rgba(15,23,42,.25);animation:toast-in .35s cubic-bezier(.2,.9,.3,1.2),toast-out .4s ease 4.5s forwards}
.cart-toast:hover,.cart-toast:focus-within{animation-play-state:paused}
.cart-toast svg{flex-shrink:0;width:22px;height:22px;padding:3px;border-radius:50%;background:var(--orange)}
.cart-toast span{font-size:.92rem;line-height:1.35}
.cart-toast a{flex-shrink:0;color:var(--orange);font-weight:700;text-decoration:none;white-space:nowrap}
.cart-toast a:hover{text-decoration:underline}
@keyframes toast-in{from{opacity:0;transform:translateY(16px)}}
@keyframes toast-out{to{opacity:0;transform:translateY(16px);visibility:hidden}}
@media(max-width:560px){.cart-toast{right:16px;bottom:16px;left:16px;max-width:none}}
@media(prefers-reduced-motion:reduce){.cart-toast{animation:toast-out 0s 4.5s forwards}}
.success-wrap{display:grid;place-items:center;width:min(640px,92vw);min-height:calc(100vh - 190px);margin:32px auto}
.success-card{width:100%;padding:38px 34px;border:1px solid var(--border);border-radius:22px;background:#fff;box-shadow:var(--shadow);text-align:center}
.success-check{width:76px;height:76px;margin:0 auto 14px}
.success-check svg{width:100%;height:100%;fill:none;stroke-linecap:round;stroke-linejoin:round}
.success-check circle{stroke:var(--orange);stroke-width:3;fill:#fff4ed;stroke-dasharray:151;stroke-dashoffset:151;animation:success-draw .6s ease-out forwards}
.success-check path{stroke:var(--orange);stroke-width:4;stroke-dasharray:36;stroke-dashoffset:36;animation:success-draw .35s ease-out .5s forwards}
@keyframes success-draw{to{stroke-dashoffset:0}}
.success-card h1{margin:0 0 8px;font-size:clamp(1.7rem,4vw,2.2rem)}
.success-lead{margin:0 0 24px;color:var(--muted)}
.success-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:0 0 26px;text-align:left}
.success-summary>div{padding:12px 14px;border:1px solid var(--border);border-radius:12px;background:var(--soft)}
.success-summary .wide{grid-column:1/-1}
.success-summary dt{color:var(--muted);font-size:.75rem;font-weight:700;letter-spacing:.4px;text-transform:uppercase}
.success-summary dd{margin:4px 0 0;font-weight:600;overflow-wrap:anywhere}
.success-total{color:var(--orange)}
.success-tx{font-family:ui-monospace,Consolas,monospace;font-size:.9rem}
.success-actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:center}
@media(max-width:560px){.success-card{padding:28px 18px}.success-summary{grid-template-columns:1fr 1fr}.success-summary>div:nth-child(3){grid-column:1/-1}.success-actions .button{flex:1}}
@media(prefers-reduced-motion:reduce){.success-check circle,.success-check path{animation:none;stroke-dashoffset:0}}
/* ---------- Mis compras ---------- */
.orders-wrap{width:min(1100px,92vw);margin:28px auto}
.orders-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:18px}
.orders-head h1{margin:0;font-size:clamp(1.6rem,3vw,2rem)}
.orders-head p{margin:4px 0 0;color:var(--muted)}
.orders-list{display:grid;gap:12px}
.order-row{--tone:var(--orange);--tone-bg:#fff4ed;display:grid;grid-template-columns:84px 1fr auto;gap:18px;align-items:center;padding:16px 20px;border:1px solid var(--border);border-radius:16px;background:#fff;color:var(--ink);text-decoration:none;transition:box-shadow .2s,transform .2s,border-color .2s}
.order-row:hover{border-color:#cbd5e1;box-shadow:var(--shadow);transform:translateY(-2px)}
.order-row:focus-visible{outline:2px solid var(--orange);outline-offset:3px}
.status-enviado{--tone:#0369a1;--tone-bg:#e0f2fe}
.status-entregado{--tone:#15803d;--tone-bg:#dcfce7}
.status-cancelado{--tone:#64748b;--tone-bg:#f1f5f9}
.order-thumb{position:relative;width:84px;height:84px;overflow:hidden;border-radius:12px;background:var(--soft)}
.order-thumb img{position:absolute;inset:8%;width:84%;height:84%;object-fit:contain}
.order-main{display:grid;gap:3px;min-width:0}
.order-badge{justify-self:start;padding:3px 10px;border-radius:999px;background:var(--tone-bg);color:var(--tone);font-size:.72rem;font-weight:700;letter-spacing:.3px;text-transform:uppercase}
.order-headline{font-size:1.02rem;color:var(--tone)}
.order-product{overflow:hidden;font-weight:600;text-overflow:ellipsis;white-space:nowrap}
.order-meta{color:var(--muted);font-size:.85rem}
.order-side{display:grid;gap:6px;justify-items:end;white-space:nowrap}
.order-side strong{font-size:1.1rem}
.order-link{color:var(--orange);font-size:.88rem;font-weight:700}
.orders-empty{display:grid;justify-items:center;gap:8px;padding:56px 20px;border:1px dashed var(--border);border-radius:18px;background:#fff;color:var(--muted);text-align:center}
.orders-empty svg{width:52px;height:52px;color:var(--orange)}
.orders-empty strong{color:var(--ink);font-size:1.1rem}
.orders-empty .button{margin-top:8px}
@media(max-width:640px){.order-row{grid-template-columns:64px 1fr;gap:12px;padding:14px}.order-thumb{width:64px;height:64px}.order-side{grid-column:1/-1;grid-auto-flow:column;justify-content:space-between;align-items:center}.orders-head{flex-direction:column;align-items:flex-start}}

/* Detalle del pedido */
.od-grid{display:grid;grid-template-columns:1fr 380px;gap:20px;align-items:start}
.od-col{display:grid;gap:20px;min-width:0}
.od-card{padding:24px 26px;border:1px solid var(--border);border-radius:18px;background:#fff;box-shadow:var(--shadow)}
.od-card h2{margin:0 0 16px;font-size:1.15rem}
.od-status{--tone:var(--orange);--tone-bg:#fff4ed;border-top:4px solid var(--tone)}
.od-status h1{margin:10px 0 4px;color:var(--tone);font-size:clamp(1.4rem,3vw,1.8rem)}
.od-sub{margin:0;color:var(--muted)}
.od-steps{display:grid;grid-template-columns:repeat(4,1fr);margin:26px 0 6px;padding:0;list-style:none;counter-reset:s}
.od-steps li{position:relative;display:grid;justify-items:center;gap:6px;color:var(--muted);font-size:.82rem;font-weight:600;text-align:center}
.od-steps li::before{content:"";position:absolute;top:8px;left:-50%;width:100%;height:3px;background:var(--border)}
.od-steps li:first-child::before{display:none}
.od-steps li.done::before,.od-steps li.current::before{background:var(--tone)}
.od-steps .od-dot{position:relative;z-index:1;width:19px;height:19px;border:3px solid var(--border);border-radius:50%;background:#fff}
.od-steps li.done .od-dot{border-color:var(--tone);background:var(--tone)}
.od-steps li.current .od-dot{border-color:var(--tone);box-shadow:0 0 0 5px var(--tone-bg)}
.od-steps li.done,.od-steps li.current{color:var(--ink)}
.od-steps small{color:var(--muted);font-weight:400}
.od-shipment{display:flex;flex-wrap:wrap;align-items:center;gap:14px 28px;margin-top:20px;padding:14px 16px;border-radius:12px;background:var(--soft)}
.od-shipment .button{margin-left:auto}
.od-label{display:block;color:var(--muted);font-size:.75rem;font-weight:700;letter-spacing:.3px;text-transform:uppercase}
.od-mono{font-family:ui-monospace,Consolas,monospace;font-size:.92rem;overflow-wrap:anywhere}
.od-timeline{margin:0;padding:0;list-style:none}
.od-timeline li{position:relative;display:grid;grid-template-columns:22px 1fr;gap:12px;padding-bottom:18px}
.od-timeline li::before{content:"";position:absolute;top:14px;bottom:-2px;left:6px;width:2px;background:var(--border)}
.od-timeline li:last-child{padding-bottom:0}
.od-timeline li:last-child::before{display:none}
.od-timeline .od-dot{width:14px;height:14px;margin-top:3px;border-radius:50%;background:#cbd5e1}
.od-timeline li.latest .od-dot{background:var(--orange);box-shadow:0 0 0 4px #fff4ed}
.od-timeline strong{display:block;font-weight:600}
.od-timeline li:not(.latest) strong{color:#475569;font-weight:500}
.od-timeline small{color:var(--muted);text-transform:none}
.od-timeline small::first-letter{text-transform:uppercase}
.od-items{display:grid;gap:12px;margin:0;padding:0;list-style:none}
.od-items li{display:grid;grid-template-columns:56px 1fr auto;gap:12px;align-items:center}
.od-item-img{position:relative;width:56px;height:56px;overflow:hidden;border-radius:10px;background:var(--soft)}
.od-item-img img{position:absolute;inset:8%;width:84%;height:84%;object-fit:contain}
.od-items a{color:var(--ink);font-weight:600;text-decoration:none}
.od-items a:hover{color:var(--orange)}
.od-items small{display:block;color:var(--muted)}
.od-total{display:flex;justify-content:space-between;align-items:baseline;margin-top:16px;padding-top:14px;border-top:1px solid var(--border)}
.od-total strong{color:var(--orange);font-size:1.25rem}
.od-info dl{display:grid;gap:4px;margin:0}
.od-info dt{margin-top:10px;color:var(--muted);font-size:.75rem;font-weight:700;letter-spacing:.3px;text-transform:uppercase}
.od-info dt:first-child{margin-top:0}
.od-info dd{margin:0;line-height:1.5}
@media(max-width:900px){.od-grid{grid-template-columns:1fr}}
@media(max-width:520px){.od-card{padding:18px}.od-steps{font-size:.72rem}.od-shipment .button{width:100%;margin-left:0}}
.orders-head .button.outline{color:var(--ink)}.orders-head .button.outline:hover{border-color:var(--orange);color:var(--orange)}
.od-eta{margin:2px 0 6px;color:var(--ink);font-size:1.05rem;font-weight:700}.od-eta::first-letter{text-transform:uppercase}
/* Reembolsos */
.status-reembolsado{--tone:#7c3aed;--tone-bg:#ede9fe}
.od-refund{display:flex;gap:14px;align-items:flex-start;border-left:4px solid #7c3aed;background:#faf5ff}
.od-refund svg{flex-shrink:0;width:30px;height:30px;color:#7c3aed}
.od-refund strong{display:block;font-size:1.05rem}
.od-refund span,.od-refund small{display:block;color:var(--muted)}
.od-refund small{margin-top:4px;font-size:.8rem}
.od-cancel summary{color:var(--muted);font-weight:700;cursor:pointer}
.od-cancel summary:hover,.od-cancel[open] summary{color:#b91c1c}
.od-cancel p{color:var(--muted)}
.od-cancel form{display:grid;gap:10px}
.od-cancel label{font-weight:600}
.od-optional{color:var(--muted);font-weight:400}
.od-cancel select{padding:11px 12px;border:1px solid var(--border);border-radius:10px;background:#fff;font:inherit}
.od-cancel select:focus{border-color:var(--orange);outline:none;box-shadow:0 0 0 4px rgba(255,106,0,.1)}
.od-confirm{display:flex;gap:8px;align-items:center;font-weight:500!important}
.od-confirm input{width:18px;height:18px;accent-color:#b91c1c}
.od-danger{background:#fee2e2;color:#b91c1c!important;font:inherit;font-weight:700}
.od-danger:hover{background:#b91c1c;color:#fff!important}
/* Línea de tiempo pareja: puntos iguales, centrados con la primera línea de texto, y la línea va de centro a centro */
.od-timeline li{grid-template-columns:14px 1fr;gap:14px}
.od-timeline li::before{top:12px;bottom:-12px;left:6px;width:2px}
.od-timeline .od-dot{position:relative;z-index:1;width:14px;height:14px;margin-top:5px;box-shadow:0 0 0 3px #fff}
.od-timeline li.latest .od-dot{box-shadow:0 0 0 3px #fff}
/* Páginas legales */
.legal-wrap{width:min(860px,92vw);margin:28px auto}
.legal-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}
.legal-tabs a{padding:8px 14px;border:1px solid var(--border);border-radius:999px;background:#fff;color:var(--muted);font-size:.88rem;font-weight:600;text-decoration:none}
.legal-tabs a:hover{border-color:var(--orange);color:var(--orange)}
.legal-tabs a.active{border-color:var(--orange);background:#fff4ed;color:var(--orange)}
.legal-dev-note{margin:0 0 18px;padding:12px 14px;border:1px solid #fde68a;border-radius:12px;background:#fffbeb;color:#92400e;font-size:.88rem}
.legal-doc{padding:32px 36px;border:1px solid var(--border);border-radius:18px;background:#fff;box-shadow:var(--shadow);line-height:1.65}
.legal-doc h1{margin:0;font-size:clamp(1.6rem,3vw,2rem)}
.legal-updated{margin:4px 0 22px;color:var(--muted);font-size:.88rem}
.legal-doc h2{margin:26px 0 8px;font-size:1.15rem}
.legal-doc p,.legal-doc li{color:#334155}
.legal-doc ul,.legal-doc ol{padding-left:22px}
.legal-doc li{margin-bottom:6px}
.legal-doc a{color:var(--ink);font-weight:600;text-decoration:underline;text-decoration-color:var(--orange);text-underline-offset:3px}
.legal-doc code{padding:1px 6px;border-radius:6px;background:var(--soft);font-size:.85em}
.legal-table{overflow-x:auto}
.legal-table table{width:100%;border-collapse:collapse;font-size:.9rem}
.legal-table th,.legal-table td{padding:10px 12px;border-bottom:1px solid var(--border);text-align:left;vertical-align:top}
.legal-table th{color:var(--muted);font-size:.78rem;letter-spacing:.3px;text-transform:uppercase}
@media(max-width:560px){.legal-doc{padding:22px 18px}}
footer .legal-footer a{color:var(--muted)}
.social-legal{margin:12px 0 0;color:#64748b;font-size:12px;line-height:1.45;text-align:center}
/* ---------- Carrusel de la portada ---------- */
.hero-carousel{position:relative;overflow:hidden;background:#0b0d10;color:#fff}
.hero-track{display:flex;transition:transform .6s cubic-bezier(.22,.7,.2,1)}
.hero-slide{--accent:#ff6a00;--glow:#ff6a0055;flex:0 0 100%;display:grid;grid-template-columns:1.1fr .9fr;align-items:center;gap:36px;min-height:360px;padding:44px max(5vw,calc((100vw - 1180px)/2));background:radial-gradient(circle at 78% 50%,var(--glow),transparent 45%),linear-gradient(120deg,#0b0d10 0%,#151821 60%,#1b1f2a 100%)}
.hero-slide.theme-blue{--accent:#3b82f6;--glow:#3b82f650}
.hero-slide.theme-violet{--accent:#a855f7;--glow:#a855f750}
.hero-slide.theme-green{--accent:#22c55e;--glow:#22c55e45}
.hero-copy{max-width:540px}
.hero-kicker{display:inline-block;margin-bottom:12px;padding:5px 12px;border:1px solid color-mix(in srgb,var(--accent) 55%,transparent);border-radius:999px;color:var(--accent);font-size:.78rem;font-weight:700;letter-spacing:.6px;text-transform:uppercase}
.hero-copy h1,.hero-copy h2{margin:0 0 12px;color:#fff;font-size:clamp(1.9rem,4vw,3rem);line-height:1.1}
.hero-copy p{margin:0 0 24px;color:#ffffffb3;font-size:1.05rem;line-height:1.5}
.hero-cta{display:inline-flex;align-items:center;gap:8px;padding:13px 22px;border-radius:12px;background:var(--accent);color:#fff;font-weight:700;text-decoration:none;box-shadow:0 10px 30px var(--glow);transition:transform .2s,box-shadow .2s}
.hero-cta:hover{transform:translateY(-2px);box-shadow:0 14px 34px var(--glow)}
.hero-cta:focus-visible{outline:2px solid #fff;outline-offset:3px}
.hero-visual{position:relative;justify-self:center;width:min(300px,100%);aspect-ratio:1;border-radius:24px;background:#fff;box-shadow:0 30px 60px #00000080,0 0 0 1px #ffffff14}
.hero-visual img{position:absolute;inset:10%;width:80%;height:80%;object-fit:contain}
.hero-arrow{position:absolute;top:50%;z-index:2;display:grid;place-items:center;width:44px;height:44px;border:1px solid #ffffff2e;border-radius:50%;background:#0b0d10a6;color:#fff;cursor:pointer;transform:translateY(-50%);transition:background .2s,border-color .2s;backdrop-filter:blur(6px)}
.hero-arrow svg{width:20px;height:20px}
.hero-arrow:hover{border-color:var(--orange);background:var(--orange)}
.hero-arrow:focus-visible{outline:2px solid #fff;outline-offset:2px}
.hero-arrow.prev{left:16px}.hero-arrow.next{right:16px}
.hero-dots{position:absolute;bottom:16px;left:50%;z-index:2;display:flex;gap:8px;transform:translateX(-50%)}
.hero-dots button{width:9px;height:9px;padding:0;border:0;border-radius:999px;background:#ffffff59;cursor:pointer;transition:width .3s,background .3s}
.hero-dots button[aria-current="true"]{width:26px;background:#fff}
.hero-dots button:focus-visible{outline:2px solid #fff;outline-offset:3px}
@media(max-width:760px){
  .hero-slide{grid-template-columns:1fr;gap:20px;min-height:0;padding:30px 22px 52px;text-align:center}
  .hero-copy{max-width:none}
  .hero-copy p{margin-bottom:18px;font-size:.95rem}
  .hero-visual{order:-1;width:150px;border-radius:18px}
  .hero-arrow{display:none}
}
@media(prefers-reduced-motion:reduce){.hero-track{transition:none}}
@media(min-width:761px){.hero-slide{padding-left:max(80px,calc((100vw - 1180px)/2));padding-right:max(80px,calc((100vw - 1180px)/2))}}

/* Selects: flecha propia en lugar del botón nativo (que en Windows se ve como un cuadro gris al abrir). */
select:not([multiple]):not([size]){-webkit-appearance:none;-moz-appearance:none;appearance:none;padding-right:38px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%2364748b%27 stroke-width=%272.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27m6 9 6 6 6-6%27/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 12px center!important;background-size:16px!important;cursor:pointer}
select:not([multiple]):not([size]):focus{background-image:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23ff6a00%27 stroke-width=%272.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27m6 9 6 6 6-6%27/%3E%3C/svg%3E")!important}
select::-ms-expand{display:none}
select:disabled{cursor:not-allowed;opacity:.6}
