/* AGT Máquinas — colores corporativos de Flatsome: verde #008555, rojo #e53935. Solo clases agt-maq-*. */
:root{--agtm-v:#008555;--agtm-v2:#006b45;--agtm-vc:#e8f5ee;--agtm-r:#e53935;--agtm-g:#5b6670;--agtm-b:#e3e8ec}
.agt-maq-ico{width:20px;height:20px;flex:0 0 20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* Caja de búsqueda por modelo */
.agt-maq-caja{position:relative;max-width:760px;margin:24px auto 8px}
.agt-maq-caja__ico{position:absolute;left:20px;top:50%;width:22px;height:22px;transform:translateY(-50%);fill:none;stroke:var(--agtm-v);stroke-width:2.2;stroke-linecap:round;pointer-events:none}
.agt-maq-caja .agt-maq-input{width:100%;height:58px;margin:0;padding:0 20px 0 54px;border:2px solid var(--agtm-v);border-radius:50px;font-size:17px;box-shadow:0 6px 18px rgba(0,133,85,.12);background:#fff}
.agt-maq-caja .agt-maq-input:focus{outline:3px solid rgba(0,133,85,.25);outline-offset:2px}
.agt-maq-sug{position:absolute;z-index:60;left:0;right:0;top:calc(100% + 6px);max-height:min(70vh,460px);overflow:auto;background:#fff;border:1px solid var(--agtm-b);border-radius:14px;box-shadow:0 14px 34px rgba(0,0,0,.14)}
.agt-maq-sug__tit{padding:10px 16px 4px;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--agtm-v)}
.agt-maq-sug__vacio{padding:14px 16px;color:var(--agtm-g);font-size:14px}
.agt-maq-op{display:flex;align-items:center;gap:12px;padding:11px 16px;color:#1d2327;text-decoration:none;border-top:1px solid #f1f3f5}
.agt-maq-op:first-child{border-top:0}
.agt-maq-op .agt-maq-ico{color:var(--agtm-v)}
.agt-maq-op:hover,.agt-maq-op.activa{background:var(--agtm-vc);color:#1d2327}
.agt-maq-op__t{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}
.agt-maq-op__t b{font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.agt-maq-op__t small{color:var(--agtm-g);font-size:12px}
.agt-maq-op__n{font-size:12px;font-weight:700;color:var(--agtm-v);white-space:nowrap}
.agt-maq-op--mia .agt-maq-op__t small{color:var(--agtm-v)}

/* Grupo en el desplegable del buscador de la cabecera */
.trivino-live-v12 .agt-maq-live{border-bottom:2px solid var(--agtm-vc);background:#fbfdfc}

/* Cabecera de página */
.agt-maq-titulo .agt-maq-sub{margin:4px 0 6px;color:rgba(255,255,255,.9);font-size:15px}
.agt-maq-h2{margin:28px 0 12px;font-size:20px;color:var(--agtm-v)}
.agt-maq-h3{margin:22px 0 8px;font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:var(--agtm-v)}
.agt-maq-nota{font-size:13px;color:var(--agtm-g)}
.agt-maq-aviso{padding:16px;border-radius:10px;background:#fff8e1}

/* Portada y marca */
.agt-maq-hub,.agt-maq-marca{padding-bottom:40px}
.agt-maq-marcas{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:10px;margin:0;list-style:none}
.agt-maq-marcas li{margin:0}
.agt-maq-marcas a{display:flex;flex-direction:column;gap:2px;padding:14px 16px;border:1px solid var(--agtm-b);border-radius:12px;color:#1d2327;background:#fff;transition:border-color .15s,box-shadow .15s}
.agt-maq-marcas a:hover{border-color:var(--agtm-v);box-shadow:0 4px 14px rgba(0,133,85,.12)}
.agt-maq-marcas strong{font-size:16px}
.agt-maq-marcas span{font-size:12px;color:var(--agtm-g)}
.agt-maq-mis{max-width:760px;margin:0 auto}
.agt-maq-mis__l{display:flex;flex-wrap:wrap;gap:8px;margin:0;list-style:none}
.agt-maq-mis__l li{display:flex;align-items:center;margin:0;border:1.5px solid var(--agtm-v);border-radius:22px;overflow:hidden}
.agt-maq-mis__l a{display:inline-flex;align-items:center;gap:6px;padding:7px 4px 7px 12px;color:var(--agtm-v);font-weight:600}
.agt-maq-quitar{margin:0;min-height:0;padding:0 12px;border:0;background:none;color:var(--agtm-g);font-size:18px;line-height:34px;cursor:pointer}
.agt-maq-quitar:hover{color:var(--agtm-r)}
.agt-maq-tipo{margin-top:8px}
.agt-maq-serie h3{margin:16px 0 8px;font-size:15px;color:#1d2327}
.agt-maq-modelos{display:flex;flex-wrap:wrap;gap:8px;margin:0;list-style:none}
.agt-maq-modelos li{margin:0}
.agt-maq-modelos a{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border:1px solid var(--agtm-b);border-radius:20px;color:#1d2327;font-weight:600;font-size:14px}
.agt-maq-modelos a span{font-weight:400;font-size:12px;color:var(--agtm-g)}
.agt-maq-modelos a:hover{border-color:var(--agtm-v);color:var(--agtm-v)}

/* Página de modelo */
.agt-maq-modelo{padding-top:24px}
.agt-maq-guardar{width:100%;margin:0 0 6px}
.agt-maq-sistemas{margin:0;list-style:none;font-size:14px}
.agt-maq-sistemas li{margin:0}
.agt-maq-sistemas a{display:flex;justify-content:space-between;gap:8px;padding:6px 0;color:#1d2327;border-bottom:1px solid #f1f3f5}
.agt-maq-sistemas a span{color:var(--agtm-g);font-size:12px}
.agt-maq-sistemas li.activo a{color:var(--agtm-v);font-weight:700}
.agt-maq-stock{display:flex;align-items:center;gap:8px;margin:14px 0;font-size:14px}
.agt-maq-stock input{margin:0}
.agt-maq-versiones{margin-top:14px;font-size:13px}
.agt-maq-versiones summary{cursor:pointer;color:var(--agtm-v);font-weight:600}
.agt-maq-versiones ul{margin:8px 0 8px 18px}
.agt-maq-parcial{display:inline-block;padding:2px 8px;border-radius:10px;background:#fff3e0;color:#9a4b00;font-size:11px;font-weight:700}
.products .agt-maq-parcial{display:inline-block;margin:0 0 4px}
/* Fila alineada aunque unas tarjetas lleven «Según versión» y otras no (árbitro 11-nov): la caja de texto ya sale con la misma
   altura en toda la fila (igualado de Flatsome y del scroll); el precio y el botón se pegan abajo. */
.agt-maq-pagina .products .box-text{display:flex;flex-direction:column;align-items:flex-start}
.agt-maq-pagina .products .box-text>.title-wrapper,.agt-maq-pagina .products .box-text>.price-wrapper,.agt-maq-pagina .products .box-text>.add-to-cart-button{align-self:stretch}
.agt-maq-pagina .products .box-text>.price-wrapper{margin-top:auto}
.agt-maq-kit{margin:0 0 22px;padding:16px 18px;border:2px solid var(--agtm-v);border-radius:14px;background:var(--agtm-vc)}
.agt-maq-kit h2{margin:0 0 10px;font-size:18px;color:var(--agtm-v)}
.agt-maq-kit ul{margin:0;list-style:none}
.agt-maq-kit li{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 10px;margin:0;padding:6px 0;border-bottom:1px solid rgba(0,133,85,.15);font-size:14px}
.agt-maq-kit li a{flex:1;min-width:180px;color:#1d2327}
.agt-maq-kit__tipo{min-width:150px;font-weight:700;color:var(--agtm-v2)}
.agt-maq-kit__pie{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-top:12px}
.agt-maq-kit__pie .button{margin:0}
.agt-maq-cta{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin:26px 0;padding:16px 18px;border-radius:14px;background:#f4f7f6;font-size:15px}
.agt-maq-cta .button{margin:0}
.agt-maq-wa{background:#25d366!important;border-color:#25d366!important}
.agt-maq-seo{margin:10px 0 30px;font-size:15px;color:#3c434a}
.agt-maq-seo h2{font-size:18px;color:var(--agtm-v)}
/* Móvil: guardar y tipo de pieza ARRIBA, como una fila de chips con scroll propio (la página no se desplaza a lo ancho) */
@media (max-width:849px){
 .agt-maq-caja{margin:16px 0 6px}
 .agt-maq-lado .col-inner{padding-bottom:0}
 .agt-maq-lado .agt-maq-h3{margin:12px 0 6px}
 .agt-maq-sistemas{display:flex;gap:6px;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:6px;scrollbar-width:thin}
 .agt-maq-sistemas li{flex:0 0 auto}
 .agt-maq-sistemas a{display:inline-flex;gap:6px;padding:6px 12px;border:1px solid var(--agtm-b);border-radius:18px;white-space:nowrap;border-bottom-width:1px}
 .agt-maq-sistemas li.activo a{border-color:var(--agtm-v);background:var(--agtm-vc)}
 .agt-maq-stock{margin:6px 0}
 .agt-maq-versiones{margin:6px 0 10px}
}

/* Ficha */
.agt-maq-ficha{margin:10px 0 14px}
.agt-maq-ok{display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:10px;background:var(--agtm-vc);color:var(--agtm-v2);font-weight:600;font-size:14px}
.agt-maq-ok a{color:inherit;text-decoration:underline}
.agt-maq-ok--parcial{background:#fff3e0;color:#9a4b00}
.agt-maq-monta{margin:26px auto;max-width:1080px}
.agt-maq-monta h2{font-size:20px;color:var(--agtm-v)}
.agt-maq-monta__filtro{max-width:420px;border-radius:24px!important}
.agt-maq-monta__grupos{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px}
.agt-maq-monta__marca{border:1px solid var(--agtm-b);border-radius:12px;padding:8px 14px;background:#fff}
.agt-maq-monta__marca summary{cursor:pointer;font-weight:700}
.agt-maq-monta__marca summary span{font-weight:400;color:var(--agtm-g);font-size:13px}
.agt-maq-monta__marca ul{max-height:260px;overflow:auto;margin:8px 0 0;list-style:none;columns:2;column-gap:14px;font-size:14px}
.agt-maq-monta__marca li{margin:0 0 4px;break-inside:avoid}

/* Portada: buscador por modelo bajo la barra de ventajas */
.agt-maq-home{background:var(--agtm-vc);border-bottom:1px solid #d5ece0;padding:14px 0 4px}
.agt-maq-home__in{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px 22px}
.agt-maq-home__t{margin:0 0 10px;font-size:15px;color:#1d2327;text-align:center}
.agt-maq-home__t strong{color:var(--agtm-v)}
.agt-maq-home .agt-maq-caja{flex:1 1 420px;max-width:620px;margin:0 0 10px}
.agt-maq-home .agt-maq-caja .agt-maq-input{height:48px;font-size:16px;box-shadow:none}
@media (max-width:549px){.agt-maq-home{padding:10px 0 2px}.agt-maq-home__t{font-size:13px;margin-bottom:8px}}

/* Chip «Mi máquina» dentro de la barra verde de ventajas */
.trivino-benefits-inner .agt-maq-chip{display:inline-flex;align-items:center;gap:6px;height:24px;max-width:230px;padding:0 10px;border:1.5px solid rgba(255,255,255,.85);border-radius:14px;color:#fff;font-weight:700;font-size:12.5px;white-space:nowrap;text-decoration:none}
.trivino-benefits-inner .agt-maq-chip span{overflow:hidden;text-overflow:ellipsis}
.trivino-benefits-inner .agt-maq-chip .agt-maq-ico{width:17px;height:17px;flex-basis:17px}
.trivino-benefits-inner .agt-maq-chip:hover{background:#fff;color:var(--agtm-v)}
@media (max-width:549px){.trivino-benefits-inner .agt-maq-chip{grid-column:1/-1;justify-self:stretch;justify-content:center;max-width:none}}

/* Sistemas de la máquina (rejilla tipo Granit/Kramp) */
.agt-maq-grupos{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;margin:0 0 18px}
.agt-maq-grupo{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border:1px solid var(--agtm-b);border-radius:12px;background:#fff;color:#1d2327;line-height:1.2}
.agt-maq-grupo b{font-size:14px}
.agt-maq-grupo span{font-size:12px;color:var(--agtm-g)}
.agt-maq-grupo:hover{border-color:var(--agtm-v)}
.agt-maq-grupo.activo{border:2px solid var(--agtm-v);background:var(--agtm-vc);color:var(--agtm-v2)}
@media (max-width:549px){.agt-maq-grupos{display:flex;overflow-x:auto;padding-bottom:6px}.agt-maq-grupo{flex:0 0 auto;min-width:120px}}
/* Despieces */
.agt-maq-despieces{margin:0 0 22px}
.agt-maq-despieces h2,.agt-maq-dibujo h2{font-size:18px;color:var(--agtm-v);margin:0 0 10px}
.agt-maq-despieces ul{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;margin:0;list-style:none}
.agt-maq-despieces li{margin:0}
.agt-maq-despieces a{display:flex;flex-direction:column;gap:4px;padding:8px;border:1px solid var(--agtm-b);border-radius:12px;background:#fff;color:#1d2327;font-size:13px}
.agt-maq-despieces img{width:100%;height:110px;object-fit:contain;background:#fafafa;border-radius:8px}
.agt-maq-despieces small{color:var(--agtm-g)}
.agt-maq-dibujo{margin:0 0 20px;padding:12px;border:1px solid var(--agtm-b);border-radius:14px;background:#fff}
.agt-maq-dibujo img{display:block;max-width:100%;max-height:560px;margin:0 auto;object-fit:contain}
.agt-maq-solo{display:block;margin:2px 0 4px;color:#9a4b00;font-size:11px;line-height:1.3}

/* 10-nov — revisión móvil (ui-ux): contraste AA, objetivos táctiles de 44 px, letra mínima 12 px, un solo filtro arriba */
.agt-maq-kit h2,.agt-maq-h2,.agt-maq-h3,.agt-maq-home__t strong,.agt-maq-sistemas li.activo a,.agt-maq-versiones summary,.agt-maq-op__n,.agt-maq-sug__tit{color:var(--agtm-v2)}
.agt-maq-kit .woocommerce-Price-amount,.agt-maq-kit b{color:var(--agtm-v2)}
.agt-maq-wa{color:#08341c!important}
.agt-maq-wa:hover{background:#1ebe5a!important}
.agt-maq-parcial,.agt-maq-solo,.agt-maq-sistemas a span,.agt-maq-grupo span{font-size:12px}
.agt-maq-op{min-height:56px}
.agt-maq-guardar{min-height:44px}
.agt-maq-quitar{min-width:44px;line-height:44px}
.agt-maq-mis__l a{min-height:44px}
.agt-maq-modelos a{min-height:40px}
.agt-maq-op__n{font-variant-numeric:tabular-nums}
.agt-maq-vacio{margin:0 0 22px;padding:18px;border:2px dashed var(--agtm-b);border-radius:14px;background:#fff}
.agt-maq-vacio p{margin:0 0 12px}
.agt-maq-vacio .button{margin:0}
.agt-maq-modelos a.agt-maq-sin span{font-style:italic}
.agt-maq-filtro>summary{display:flex;align-items:center;justify-content:space-between;min-height:44px;cursor:pointer;list-style:none;font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--agtm-v2)}
.agt-maq-filtro>summary::-webkit-details-marker{display:none}
.agt-maq-filtro>summary::after{content:"";width:9px;height:9px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin:0 6px 4px 0;transition:transform .15s}
.agt-maq-filtro[open]>summary::after{transform:rotate(-135deg);margin-bottom:-4px}
/* Ampliar la zona táctil sin mover el diseño (chip de la barra verde y migas) */
.trivino-benefits-inner .agt-maq-chip{position:relative}
.trivino-benefits-inner .agt-maq-chip::before{content:"";position:absolute;inset:-10px -4px}
.agt-maq-titulo .breadcrumbs a{display:inline-block;padding:12px 0;margin:-12px 0}
.agt-maq-versiones summary{min-height:44px;display:flex;align-items:center}
@media (max-width:849px){
 .agt-maq-sistemas a{min-height:44px;align-items:center}
 .agt-maq-grupo{min-height:44px;justify-content:center}
 .agt-maq-stock{min-height:44px}
 .agt-maq-stock input{width:20px;height:20px}
}
@media (prefers-reduced-motion:reduce){.agt-maq-filtro>summary::after{transition:none}}
.agt-maq .button.agt-maq-guardar,.agt-maq .button.agt-maq-wa,.agt-maq .button.agt-maq-kit__add{min-height:44px;line-height:1.2;display:inline-flex;align-items:center;justify-content:center}
.agt-maq-kit small{font-size:12px}
.agt-maq-modelo .agt-maq-nota a{display:inline-block;padding:12px 0}
/* 10-nov r2: «Monta en» táctil (44 px) y resultados extra del filtro */
.agt-maq-monta__filtro{min-height:44px}
.agt-maq-monta__marca summary{min-height:44px;display:flex;align-items:center;gap:6px}
.agt-maq-monta__marca li a,.agt-maq-monta__extra a{display:block;padding:12px 0;line-height:1.2}
.agt-maq-monta__extra{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:0 14px;margin:10px 0;list-style:none;font-size:14px}
.agt-maq-monta__extra li{margin:0}
.agt-maq-marcas a,.agt-maq-modelos a{min-height:44px}
/* r3: 44 px reales (el ::before del chip pasa por encima de la fila siguiente, que no es interactiva) */
.agt-maq-monta__marca li a,.agt-maq-monta__extra a{min-height:44px;display:flex;align-items:center;padding:0}
.trivino-benefits-inner .agt-maq-chip{z-index:2}
.trivino-benefits-inner .agt-maq-chip::before{inset:-11px -4px;z-index:2}
