/*
Theme Name: MAQUIT
Theme URI: https://maquit.app
Author: SYSMAX
Description: MAQUIT — experiencia web unificada con la aplicación Android.
Version: 5.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: simage
*/
:root{--green:#078449;--green-dark:#05663a;--orange:#ff8a18;--blue:#2389ea;--brown:#8b6746;--ink:#17171d;--muted:#71786f;--line:#e7ece8;--bg:#f7faf8;--bar:72px;--bottom:72px;--max:1180px;--shadow:0 10px 28px rgba(13,39,25,.10)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;padding-top:var(--bar);padding-bottom:calc(var(--bottom) + env(safe-area-inset-bottom));overflow-x:hidden}a{text-decoration:none;color:inherit}button,input,select,textarea{font:inherit}.maquit-shell{width:min(calc(100% - 28px),var(--max));margin-inline:auto}
.maquit-topbar{height:var(--bar);position:fixed;inset:0 0 auto;z-index:8000;background:rgba(255,255,255,.96);border-bottom:1px solid var(--line);backdrop-filter:blur(18px)}.maquit-topbar__inner{height:100%;display:grid;grid-template-columns:48px 1fr 48px;align-items:center}.maquit-icon-btn{border:0;background:transparent;width:44px;height:44px;display:grid;place-items:center;padding:8px;color:#1e2923;border-radius:14px}.maquit-menu-btn{gap:5px;align-content:center}.maquit-menu-btn span{height:2.5px;width:25px;background:currentColor;border-radius:3px;display:block}.maquit-profile-btn svg{width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}.maquit-brand{justify-self:center;display:flex;flex-direction:column;align-items:center;line-height:1}.maquit-brand__name{font:900 31px/.86 "Space Grotesk",Inter,sans-serif;letter-spacing:-1.8px}.maquit-brand__by{font-size:10px;font-weight:900;letter-spacing:.08em;color:var(--green);margin-top:3px;text-align:center}
.main-nav{position:fixed;z-index:9000;top:calc(var(--bar) + 8px);right:14px;width:min(320px,calc(100vw - 28px));padding:10px;background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:0 24px 65px rgba(0,0,0,.18);transform:translateY(-8px) scale(.98);opacity:0;visibility:hidden;transition:.18s ease}.main-nav.is-open{opacity:1;visibility:visible;transform:none}.main-nav a{display:block;padding:14px 16px;border-radius:13px;font-weight:750}.main-nav a:hover{background:#f0f7f3;color:var(--green)}
.maquit-hero{position:relative;min-height:310px;display:flex;align-items:flex-end;overflow:hidden;background:#123}.maquit-hero__image{position:absolute;inset:0;background:url('market-vegetables.jpg') center 54%/cover no-repeat;filter:none;transform:scale(1.002)}.maquit-hero__shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,25,12,.12) 5%,rgba(0,20,10,.22) 48%,rgba(0,18,10,.72) 100%)}.maquit-hero__content{position:relative;z-index:1;padding:34px 0 22px}.maquit-hero__copy h1{color:#fff;margin:0 0 18px;font-size:clamp(2rem,6vw,4rem);line-height:.98;letter-spacing:-.035em;text-shadow:0 3px 18px rgba(0,0,0,.36)}.maquit-hero__copy strong{font-weight:900}.maquit-search-launch{width:min(100%,760px);min-height:58px;background:#fff;border:0;border-radius:999px;display:flex;align-items:center;gap:14px;padding:0 22px;color:#4e4c55;box-shadow:0 8px 26px rgba(0,0,0,.18);font-weight:650;text-align:left}.maquit-search-launch svg{width:25px;height:25px;fill:none;stroke:#4e4c55;stroke-width:2}.maquit-search-launch span{flex:1}
.maquit-main-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:18px}.maquit-core-actions{display:contents}.maquit-core-actions>.sc-home{display:contents!important}.maquit-core-actions .sc-cards:not([hidden]){display:contents!important}.maquit-core-actions .sc-home>[hidden]{display:none!important}.maquit-core-actions .sc-card,.maquit-action{min-height:148px;border:0;border-radius:24px;color:#fff;display:flex!important;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:18px 12px;box-shadow:var(--shadow);position:relative;overflow:hidden}.maquit-core-actions .sc-card:before,.maquit-action:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 20% 5%,rgba(255,255,255,.28),transparent 50%)}.maquit-core-actions .sc-card--comprar{background:linear-gradient(145deg,#079452,#047b45)!important;order:1}.maquit-core-actions .sc-card--vender{background:linear-gradient(145deg,#ff9b21,#f07b08)!important;order:2}.maquit-action--order{background:linear-gradient(145deg,#2696f7,#1978db);order:3}.maquit-action--offers{background:linear-gradient(145deg,#9a724e,#7d5939);order:4}.maquit-core-actions .sc-card__icon,.maquit-action__icon{font-size:32px;line-height:1;margin-bottom:10px;position:relative}.maquit-core-actions .sc-card__title,.maquit-action b{font-size:20px!important;line-height:1!important;font-weight:900!important;color:#fff!important;position:relative}.maquit-core-actions .sc-card__desc,.maquit-core-actions .sc-card__go{display:none!important}.maquit-action small{font-size:13px;margin-top:8px;opacity:.95;position:relative}
.maquit-featured{padding:26px 0 8px}.maquit-section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px}.maquit-section-head h2{font-size:24px;margin:0;font-weight:900;letter-spacing:-.03em}.maquit-section-head button{border:0;background:transparent;color:var(--green);font-weight:850}.maquit-product-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.maquit-product-mini{background:#fff;border:1px solid #ebefec;border-radius:20px;overflow:hidden;box-shadow:0 7px 22px rgba(0,0,0,.06);position:relative}.maquit-product-mini__hit{position:absolute;inset:0;border:0;background:transparent;z-index:1;cursor:pointer}.maquit-product-mini__image{height:145px;background:#eef2ef center/cover no-repeat;display:grid;place-items:center;color:#8a918c;font-weight:900;letter-spacing:.08em}.maquit-product-mini__body{padding:13px;position:relative;z-index:2;pointer-events:none}.maquit-product-mini h3{margin:0 0 4px;font-size:17px}.maquit-product-mini p{margin:0;font-weight:850}.maquit-product-mini small{display:block;color:var(--muted);margin:4px 0 10px}.maquit-mini-buy{pointer-events:auto;width:100%;border:0;background:var(--green);color:#fff;border-radius:11px;padding:9px;font-weight:850;cursor:pointer}.maquit-home-spacer{height:6px}
.maquit-bottom-nav{position:fixed;z-index:8500;inset:auto 0 0;height:calc(var(--bottom) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:#fff;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(4,1fr);box-shadow:0 -10px 28px rgba(0,0,0,.06)}.maquit-bottom-nav a,.maquit-bottom-nav button{border:0;background:transparent;color:#504d58;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-weight:700}.maquit-bottom-nav span{font-size:26px;line-height:1}.maquit-bottom-nav small{font-size:12px}.maquit-bottom-nav .is-active{color:var(--green)}
/* Catálogo del Core con la estética de la app */
.sc-catalogo:not([hidden]){position:fixed!important;z-index:10000!important;inset:var(--bar) 0 calc(var(--bottom) + env(safe-area-inset-bottom))!important;background:#f8faf8!important;color:var(--ink)!important;overflow-y:auto!important;padding:18px max(16px,calc((100vw - var(--max))/2)) 30px!important}.sc-catalogo__buscar-wrap{position:sticky;top:0;z-index:3;display:flex;justify-content:flex-end}.sc-catalogo__buscar{background:#fff!important;color:var(--green)!important;border:1px solid var(--line)!important;box-shadow:var(--shadow)!important}.sc-catalogo__grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important;margin-top:14px!important}.sc-producto{background:#fff!important;border:1px solid #e7ece8!important;border-radius:20px!important;overflow:hidden!important;box-shadow:0 8px 24px rgba(0,0,0,.06)!important}.sc-producto__foto{height:170px!important;background:#eef2ef center/cover no-repeat!important;display:grid!important;place-items:center!important;color:#8a918c!important;font-weight:900!important;letter-spacing:.08em!important}.sc-producto__body{padding:14px!important}.sc-producto__body h4{margin:0 0 5px!important;color:var(--ink)!important;font-size:18px!important}.sc-producto__meta{color:var(--muted)!important;margin:3px 0!important}.sc-producto__precio{color:#163d2a!important;font-weight:900!important;font-size:18px!important}.sc-producto__contactar{width:100%!important;border:0!important;background:var(--green)!important;color:#fff!important;border-radius:12px!important;padding:11px!important;font-weight:900!important}.sc-producto__contactar:disabled{background:#b8bdb9!important}.sc-back{border:0!important;background:transparent!important;color:#3f4742!important;font-weight:800!important;padding:10px 0!important}.sc-catalogo__filtros{background:#fff!important;border:1px solid var(--line)!important;border-radius:18px!important;padding:12px!important;box-shadow:var(--shadow)!important}
/* Chats */
body.sc-chat-open .maquit-topbar,body.sc-chat-open .maquit-bottom-nav,body.sc-chat-open .main-nav{display:none!important}.sc-chat-modal:not([hidden]),.sc-flow-modal:not([hidden]){position:fixed!important;z-index:2147483000!important;inset:0!important;display:flex!important;align-items:stretch!important;justify-content:center!important;background:rgba(8,17,12,.56)!important}.sc-chat-modal .sc-modal__box{width:min(100%,680px)!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important;background:#f4f7f5!important;display:flex!important;flex-direction:column!important}.sc-chat__header{background:var(--green)!important;color:#fff!important}.sc-chat__log{padding:16px!important}.sc-chat__msg--simage{background:#fff!important;color:#222!important;border-radius:8px 18px 18px 18px!important;box-shadow:0 2px 8px rgba(0,0,0,.06)!important}.sc-chat__msg--usuario{background:#dff5e7!important;color:#173322!important;border-radius:18px 8px 18px 18px!important}.sc-chat__form{background:#fff!important;border-top:1px solid var(--line)!important;padding:10px!important}.sc-chat__input{border:1px solid #dce4df!important;border-radius:999px!important}.sc-chat__send{background:var(--green)!important;color:#fff!important;border-radius:50%!important}.sc-compra-resumen{background:#fff!important;border:1px solid var(--line)!important;border-radius:16px!important;padding:14px!important}.sc-chat__confirmar{background:var(--green)!important;color:#fff!important;border:0!important;border-radius:13px!important;padding:13px!important;font-weight:900!important}
/* Páginas internas */
.site-main,.entry-content{color:var(--ink)}body:not(.home) main{width:min(calc(100% - 28px),var(--max));margin:24px auto}.wp-block-group,.entry-content{max-width:100%}
@media(max-width:820px){.maquit-main-actions{grid-template-columns:repeat(2,1fr)}.maquit-product-strip,.sc-catalogo__grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.maquit-hero{min-height:290px}.maquit-hero__content{padding-bottom:18px}}
@media(max-width:460px){:root{--bar:68px;--bottom:70px}.maquit-shell{width:min(calc(100% - 20px),var(--max))}.maquit-brand__name{font-size:27px}.maquit-hero{min-height:270px}.maquit-hero__copy h1{font-size:2.15rem}.maquit-search-launch{min-height:52px}.maquit-main-actions{gap:10px;margin-top:12px}.maquit-core-actions .sc-card,.maquit-action{min-height:126px;border-radius:20px;padding:12px 8px}.maquit-core-actions .sc-card__title,.maquit-action b{font-size:17px!important}.maquit-action small{font-size:11px}.maquit-featured{padding-top:20px}.maquit-product-strip{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:5px}.maquit-product-mini{min-width:72vw;scroll-snap-align:start}.sc-catalogo__grid{grid-template-columns:1fr!important}.sc-producto__foto{height:210px!important}}

/* =========================================================
   MAQUIT 5.1 — paridad visual con Android
   ========================================================= */
body.home{padding-top:0!important}
body.home .maquit-topbar{background:linear-gradient(180deg,rgba(0,0,0,.34),rgba(0,0,0,0))!important;border-bottom:0!important;backdrop-filter:none!important;box-shadow:none!important}
body.home .maquit-menu-btn,body.home .maquit-profile-btn{color:#fff!important;background:rgba(0,0,0,.18)!important}
body.home .maquit-brand__name,body.home .maquit-brand__by{color:#fff!important;text-shadow:0 2px 10px rgba(0,0,0,.26)}
body.home .maquit-brand__name{font-size:28px!important}.maquit-brand__by{margin-top:1px!important;line-height:9px!important}

.maquit-hero{min-height:315px!important;align-items:flex-end!important;background:#163628!important}
.maquit-hero__image{background-image:url('market-products-crisp.jpg')!important;background-position:center 56%!important;background-size:cover!important;filter:none!important;transform:none!important;image-rendering:auto!important}
.maquit-hero__shade{background:linear-gradient(180deg,rgba(0,0,0,.18) 0%,rgba(0,0,0,.03) 42%,rgba(0,0,0,.74) 100%)!important}
.maquit-hero__content{padding:98px 0 22px!important}
.maquit-hero__copy h1{font-size:clamp(2rem,4.8vw,3.7rem)!important;line-height:1.01!important;margin-bottom:14px!important;max-width:720px!important}
.maquit-search-launch{min-height:50px!important;max-width:760px!important;box-shadow:0 5px 18px rgba(0,0,0,.16)!important}

.maquit-main-actions{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;margin-top:14px!important}
.maquit-core-actions .sc-card,.maquit-action{min-height:126px!important;border-radius:18px!important;padding:12px 8px!important;box-shadow:0 4px 14px rgba(22,45,31,.10)!important}
.maquit-core-actions .sc-card__title,.maquit-action b{font-size:15px!important}.maquit-action small{font-size:11px!important;margin-top:4px!important}.maquit-core-actions .sc-card__icon,.maquit-action__icon{font-size:27px!important;margin-bottom:7px!important}
.maquit-core-actions .sc-card--vender .sc-card__icon{font-size:0!important}.maquit-core-actions .sc-card--vender .sc-card__icon:after{content:'+';display:grid;place-items:center;font-size:28px;font-weight:900;width:30px;height:30px;border:2px solid rgba(255,255,255,.95);border-radius:9px;color:#fff}

.maquit-featured{padding-top:20px!important}.maquit-section-head h2{font-size:20px!important}.maquit-product-mini{border-radius:18px!important;box-shadow:0 3px 12px rgba(0,0,0,.05)!important}.maquit-product-mini__image{height:112px!important}.maquit-product-mini__body{padding:10px!important}.maquit-mini-buy{padding:8px!important;border-radius:10px!important}

/* El perfil es una cuenta, no un segundo menú */
.maquit-profile-btn{border-radius:50%!important}

/* Páginas de cuenta como en Android: limpias, sin fotografía de fondo */
.page-mi-gestion,.page-mi-finca,.page-mi-credito{background:#f7faf8!important}
.page-mi-gestion main,.page-mi-finca main,.page-mi-credito main{width:min(calc(100% - 20px),1080px)!important;margin:12px auto 0!important}
.page-mi-gestion .entry-header,.page-mi-finca .entry-header,.page-mi-credito .entry-header{display:none!important}
.page-mi-gestion .mkprod-app,.page-mi-finca .mkprod-app,.page-mi-credito .mkprod-app{background:#f7faf8!important}

/* Catálogo más próximo a la app */
.sc-catalogo:not([hidden]){background:#f7faf8!important}.sc-producto{border-radius:18px!important;box-shadow:0 3px 12px rgba(0,0,0,.05)!important}.sc-producto__foto{height:145px!important}.sc-producto__contactar{min-height:42px!important}

@media(max-width:820px){
 body.home .maquit-topbar{height:68px!important}
 .maquit-hero{min-height:315px!important}.maquit-hero__content{padding:92px 0 18px!important}
 .maquit-main-actions{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important}
 .maquit-core-actions .sc-card,.maquit-action{min-height:118px!important;border-radius:17px!important;padding:10px 4px!important}
 .maquit-core-actions .sc-card__title,.maquit-action b{font-size:12px!important}.maquit-action small{font-size:9px!important;line-height:11px!important}.maquit-core-actions .sc-card__icon,.maquit-action__icon{font-size:24px!important}
}
@media(max-width:460px){
 body.home .maquit-brand__name{font-size:23px!important}.maquit-brand__by{font-size:8px!important}
 .maquit-hero{min-height:300px!important}.maquit-hero__copy h1{font-size:2rem!important;line-height:1.02!important}.maquit-hero__content{padding-top:86px!important}
 .maquit-shell{width:min(calc(100% - 20px),var(--max))!important}
 .maquit-main-actions{gap:6px!important}.maquit-core-actions .sc-card,.maquit-action{min-height:110px!important}.maquit-core-actions .sc-card__title,.maquit-action b{font-size:10.5px!important}.maquit-action small{font-size:8px!important}
 .maquit-product-strip{display:flex!important;overflow-x:auto!important}.maquit-product-mini{min-width:155px!important}.maquit-product-mini__image{height:88px!important}
}
