*{box-sizing:border-box}html{font-family:Inter,Arial,sans-serif;color:#0f172a;background:#fff;-webkit-text-size-adjust:100%}body{margin:0;min-height:100vh;display:flex;flex-direction:column;background:#fff}button,input,select,textarea{font:inherit}a{color:#0f172a;text-decoration:none}.topbar{border-bottom:1px solid #e5e7eb;background:rgba(255,255,255,.96);position:sticky;top:0;z-index:50;backdrop-filter:saturate(180%) blur(10px)}.topbar.is-scrolled{box-shadow:0 8px 24px rgba(15,23,42,.06)}.topbar-inner{max-width:1120px;margin:auto;min-height:58px;display:flex;align-items:center;gap:22px;padding:0 18px}.brand{font-weight:900;color:#18c65a;text-decoration:none;font-size:20px;letter-spacing:-.04em;white-space:nowrap}.top-search{flex:1;max-width:430px;margin:auto;position:relative}.top-search i{position:absolute;left:13px;top:50%;transform:translateY(-50%);font-size:13px;color:#64748b}.top-search input{padding-left:36px}input,select,textarea{width:100%;border:1px solid #d9dee8;border-radius:8px;padding:11px 13px;background:#fff;color:#0f172a;outline:none}input:focus,select:focus,textarea:focus{border-color:#18c65a;box-shadow:0 0 0 3px rgba(24,198,90,.12)}.nav-actions{display:flex;gap:15px;align-items:center;font-size:14px}.nav-actions a{display:inline-flex;align-items:center;gap:7px;color:#0f172a}.nav-actions a:hover,a:hover{color:#18c65a}.menu-toggle{display:none;border:1px solid #e5e7eb;background:#fff;border-radius:10px;width:42px;height:42px;align-items:center;justify-content:center;color:#0f172a}.page-shell{max-width:1120px;width:100%;margin:0 auto;flex:1;padding:34px 18px 80px}.footer{border-top:1px solid #e5e7eb;background:#f8f8fa}.footer-inner{max-width:1120px;margin:auto;display:flex;justify-content:space-between;gap:18px;padding:24px 18px;color:#64748b;font-size:13px}.footer-inner a{margin-left:18px;color:#64748b}.hero{margin:18px 0 28px}.hero h1{font-size:42px;line-height:1.05;margin:0 0 12px;letter-spacing:-.06em}.hero p,.muted{color:#64748b}.filters{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:28px}.btn{display:inline-flex;gap:7px;align-items:center;justify-content:center;border:0;border-radius:8px;background:#18c65a;color:#fff!important;font-weight:800;padding:10px 16px;cursor:pointer;text-align:center}.btn:hover{background:#10a84a}.btn:disabled{opacity:.65;cursor:not-allowed}.btn.light{background:#eef2f7;color:#0f172a!important}.btn.danger{background:#e11d48}.btn.small,.btn-small{padding:8px 12px}.wide{width:100%}.alert{padding:12px 14px;border-radius:10px;margin-bottom:16px}.alert.ok{background:#ecfdf3;color:#067647}.alert.error{background:#fff1f2;color:#be123c}.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}.card{border:1px solid #e5e7eb;border-radius:12px;overflow:hidden;background:#fff;box-shadow:0 2px 6px rgba(15,23,42,.06);transition:box-shadow .18s ease,transform .18s ease}.card:hover{box-shadow:0 10px 24px rgba(15,23,42,.1);transform:translateY(-2px)}.photo{height:225px;background:#eafaf0;display:grid;place-items:center}.photo img{width:100%;height:100%;object-fit:cover}.card-body{padding:14px}.card-body h2{font-size:16px;margin:0 0 8px;line-height:1.25;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.price{font-weight:900;color:#18c65a;margin:0 0 8px;font-size:21px}.price.big{font-size:34px}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:6px;padding:4px 8px;font-size:12px;font-weight:800;background:#eef2f7;color:#0f172a}.badge.approved{background:#18c65a;color:#fff}.badge.pending{background:#fef3c7;color:#92400e}.badge.rejected{background:#ffe4e6;color:#be123c}.badge.warn{background:#fbbf24;color:#111827}.empty{border:1px dashed #d9dee8;border-radius:16px;text-align:center;padding:38px;background:#fbfcfd}.detail{display:grid;grid-template-columns:1.05fr .95fr;gap:34px;align-items:start}.product-gallery{display:grid;gap:14px}.main-photo{position:relative;border-radius:14px;overflow:hidden;background:#f1f5f9;border:1px solid #e5e7eb}.main-photo img{width:100%;height:540px;object-fit:cover;display:block}.gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);width:36px;height:36px;border:0;border-radius:999px;background:#fbbf24;color:#0f172a;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 8px 20px rgba(15,23,42,.18)}.gallery-arrow.left{left:14px}.gallery-arrow.right{right:14px}.gallery-thumbs{display:flex;gap:10px;overflow-x:auto;padding-bottom:2px}.gallery-thumb{width:110px;height:90px;border:2px solid transparent;border-radius:8px;overflow:hidden;background:#f1f5f9;padding:0;flex:0 0 auto;cursor:pointer}.gallery-thumb.active{border-color:#18c65a}.gallery-thumb img{width:100%;height:100%;object-fit:cover;display:block}.seller{border:1px solid #e5e7eb;background:#fff;border-radius:14px;padding:18px;margin:20px 0;box-shadow:0 2px 6px rgba(15,23,42,.06)}.seller-head{display:flex;align-items:center;gap:14px}.avatar{width:42px;height:42px;border-radius:12px;background:#18c65a;color:#fff;display:grid;place-items:center;font-weight:900}.product-meta{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 18px}.rate{display:grid;gap:10px;margin-top:16px;border-top:1px solid #e5e7eb;padding-top:16px}.quick{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:20px 0}.quick>a,.quick>div{border:1px solid #e5e7eb;border-radius:14px;padding:18px;background:#fff;display:block}.quick b{display:block;font-size:22px;margin-bottom:6px}.quick span{color:#64748b}.notifications{margin-top:26px}.notification-list{display:grid;gap:10px}.notification-item{display:flex;gap:12px;align-items:flex-start;border:1px solid #e5e7eb;border-radius:14px;padding:14px;background:#fff}.notification-icon{width:34px;height:34px;border-radius:10px;background:#ecfdf3;color:#18c65a;display:grid;place-items:center;flex:0 0 auto}.notification-item b{display:block}.notification-item p{margin:4px 0;color:#64748b}.notification-item small{color:#94a3b8}.section-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}.table-wrap{overflow:auto;border:1px solid #e5e7eb;border-radius:14px}table{width:100%;border-collapse:collapse;background:#fff}th,td{padding:13px 14px;border-bottom:1px solid #e5e7eb;text-align:left}th{background:#f8fafc;color:#64748b;font-size:13px}.inline{display:inline}.inline button{border:0;background:transparent;color:#18c65a;cursor:pointer;margin-left:8px}.legal{max-width:820px}.legal h1{font-size:34px}.adminnav{display:flex;gap:12px;flex-wrap:wrap}.adminnav a{border:1px solid #e5e7eb;border-radius:999px;padding:10px 14px}.cookie-banner{position:fixed;left:20px;right:20px;bottom:20px;margin:auto;max-width:920px;background:#0f172a;color:#fff;border-radius:16px;padding:16px;display:flex;justify-content:space-between;gap:18px;align-items:center;box-shadow:0 20px 40px rgba(0,0,0,.2);z-index:80}.cookie-banner p{margin:.3rem 0;color:#cbd5e1}.cookie-banner form{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.cookie-banner .light{background:#fff;color:#0f172a!important}.stars{display:inline-block;position:relative;font-size:14px;line-height:1;color:#cbd5e1;letter-spacing:1px;white-space:nowrap}.stars-bg,.stars-fill{display:inline-flex;gap:1px}.stars-fill{position:absolute;left:0;top:0;overflow:hidden;color:#fbbf24}.stars-text{font-size:12px;color:#64748b;margin-left:6px;vertical-align:1px}.star-choice{display:flex;flex-direction:row-reverse;justify-content:flex-end;gap:4px}.star-choice input{position:absolute;opacity:0;pointer-events:none}.star-choice label{font-size:22px;color:#cbd5e1;cursor:pointer}.star-choice input:checked~label,.star-choice label:hover,.star-choice label:hover~label{color:#fbbf24}@media(max-width:900px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.filters{grid-template-columns:1fr 1fr}.quick{grid-template-columns:1fr 1fr}.detail{grid-template-columns:1fr}.topbar-inner{flex-wrap:wrap;padding:10px 18px}.top-search{order:3;max-width:none;width:100%;flex-basis:100%}.menu-toggle{display:flex;margin-left:auto}.nav-actions{position:absolute;top:100%;left:14px;right:14px;display:none;flex-direction:column;align-items:stretch;background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:10px;box-shadow:0 20px 40px rgba(15,23,42,.12)}.nav-actions.open{display:flex}.nav-actions a{padding:12px;border-radius:10px}.nav-actions a:hover{background:#f8fafc}.main-photo img{height:460px}}@media(max-width:560px){.page-shell{padding:22px 12px 70px}.hero{margin-top:8px}.hero h1{font-size:32px}.filters{grid-template-columns:1fr}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.card{border-radius:10px}.photo{height:150px}.card-body{padding:10px}.card-body h2{font-size:14px}.price{font-size:17px}.muted{font-size:12px}.badge{font-size:11px;padding:3px 6px}.main-photo img{height:360px}.gallery-thumb{width:82px;height:72px}.footer-inner,.cookie-banner{flex-direction:column;align-items:flex-start}.footer-inner div{display:flex;flex-wrap:wrap;gap:12px}.footer-inner a{margin-left:0}.cookie-banner{left:12px;right:12px;bottom:12px}.quick{grid-template-columns:1fr 1fr;gap:12px}.quick>a,.quick>div{padding:14px}.quick b{font-size:17px}.notification-item{padding:12px}.price.big{font-size:30px}}@media(max-width:360px){.grid{gap:10px}.photo{height:132px}.card-body h2{font-size:13px}.price{font-size:15px}.main-photo img{height:310px}}

/* Catalogo responsive v2: tarjetas consistentes tipo marketplace */
.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;align-items:start}.product-card{min-width:0;border:1px solid #e5e7eb;border-radius:16px;overflow:hidden;background:#fff;box-shadow:0 2px 7px rgba(15,23,42,.08);transition:box-shadow .18s ease,transform .18s ease}.product-card:hover{box-shadow:0 12px 28px rgba(15,23,42,.12);transform:translateY(-2px)}.product-card-link{display:block;color:inherit}.product-card-media{width:100%;aspect-ratio:1/1;background:#eafaf0;display:grid;place-items:center;overflow:hidden}.product-card-media img{width:100%;height:100%;display:block;object-fit:cover}.no-photo{display:grid;gap:8px;place-items:center;color:#64748b;font-size:13px}.no-photo i{font-size:26px}.product-card-info{padding:14px;display:grid;gap:7px}.product-card-title{font-size:16px;line-height:1.22;margin:0;font-weight:900;letter-spacing:-.02em;color:#020617;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;min-height:2.44em}.product-card-price{font-weight:950;color:#18c65a;margin:0;font-size:22px;line-height:1.05;letter-spacing:-.04em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.product-card-locality{margin:0;color:#64748b;font-size:14px;display:flex;align-items:center;gap:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.product-card-locality i{flex:0 0 auto}.product-card-status{justify-self:start;margin-top:2px}.product-card-actions{display:flex;gap:6px;flex-wrap:wrap;align-items:center}.badge.light-sale{background:#f8fafc;color:#64748b;border:1px solid #e5e7eb}.product-card-owner-actions{border-top:1px solid #e5e7eb;padding:10px 14px;background:#fbfcfd;font-size:13px}.product-card-owner-actions a{color:#0f172a;font-weight:700}.product-card-owner-actions a:hover{color:#18c65a}.my-product-grid{margin-top:6px}
@media(max-width:900px){.product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}}
@media(max-width:620px){.topbar-inner{min-height:auto;gap:12px}.brand{font-size:23px}.menu-toggle{width:50px;height:50px;border-radius:14px;font-size:20px}.top-search input{height:50px;border-radius:10px;font-size:18px}.filters{grid-template-columns:1fr;gap:10px;margin-bottom:26px}.filters select{display:none}.filters .btn{width:100%;min-height:50px;font-size:20px;border-radius:9px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.product-card{border-radius:13px}.product-card-media{aspect-ratio:1/1}.product-card-info{padding:10px;gap:6px}.product-card-title{font-size:14px;line-height:1.18;min-height:2.36em}.product-card-price{font-size:19px}.product-card-locality{font-size:13px}.product-card-status{font-size:12px}.product-card-owner-actions{padding:9px 10px}.hero h1{font-size:30px}.hero p{font-size:14px}}
@media(max-width:390px){.page-shell{padding-left:10px;padding-right:10px}.product-grid{gap:10px}.product-card-info{padding:9px}.product-card-title{font-size:13px}.product-card-price{font-size:17px}.product-card-locality{font-size:12px}.product-card-status{font-size:11px;padding:3px 6px}}

/* Corrección final: en móvil los filtros sí se muestran, no solo el botón */
@media(max-width:620px){
  .filters{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
    margin-bottom:22px!important;
  }
  .filters select{
    display:block!important;
    min-height:48px;
    font-size:15px;
    border-radius:10px;
    background:#fff;
  }
  .filters .btn{
    width:100%;
    min-height:50px;
    font-size:17px;
    border-radius:10px;
  }
}

/* Corrección final: chat más estable y usable en móvil */
.chat-empty-message{margin:auto;text-align:center}.msg div{white-space:pre-wrap}.chatwin{min-width:0}.chat aside{min-width:0}.chatitem b,.chatitem span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(max-width:760px){.chat{border-left:0;border-right:0;border-radius:0;margin-left:-12px;margin-right:-12px}.chat aside{max-height:190px}.chatwin{min-height:calc(100vh - 330px)}#messages{padding:12px}.msg{font-size:14px}.chatwin header{padding:12px}.chatwin header h2{font-size:18px}#message-form input{min-height:44px}#message-form .btn{min-width:48px}}
