.pallet-section{max-width:1280px;margin:12px auto;border:1px solid #dce8ef;border-radius:14px;background:#f4f9fc;color:#274555}.pallet-heading{display:flex;align-items:center;gap:12px;min-height:64px;padding:12px 18px;cursor:pointer;list-style:none;box-sizing:border-box}.pallet-heading::-webkit-details-marker{display:none}.pallet-heading:focus-visible{outline:3px solid #51a4ed;outline-offset:3px;border-radius:12px}.pallet-symbol{display:grid;place-items:center;flex-shrink:0;width:36px;height:36px;border-radius:10px;background:#dfedfa;font-size:25px;color:#3289cc}.pallet-heading-text{display:flex;flex-direction:column;gap:3px;min-width:0}.pallet-heading-text strong{font-size:16px;font-weight:750}.pallet-heading-text small{font-size:12px;color:#647e8c}.pallet-toggle{margin-left:auto;display:flex;align-items:center;gap:8px;color:#2378b7;font-size:13px;font-weight:700;white-space:nowrap}.pallet-close-label{display:none}.pallet-section[open] .pallet-open-label{display:none}.pallet-section[open] .pallet-close-label{display:inline}.pallet-chevron{font-size:20px;transition:transform .18s}.pallet-section[open] .pallet-chevron{transform:rotate(180deg)}.pallet-expanded{padding:4px 18px 18px}.pallet-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px}.pallet-card{background:white;border-radius:14px;overflow:hidden;border:1px solid #e0e9ef;max-width:360px}.pallet-photo{height:145px;position:relative;padding:22px;box-sizing:border-box;background:#fff}.pallet-photo img{width:100%;height:100%;object-fit:contain}.pallet-badge{position:absolute;top:10px;left:10px;background:#e8543f;color:white;padding:5px 8px;font-size:9px;letter-spacing:1px;font-weight:800;border-radius:6px}.pallet-content{padding:16px}.pallet-content>small{color:#788f9c}.pallet-content h3{font-size:17px;line-height:1.25;margin:6px 0 12px}.pallet-pack{background:#f0f6fa;border-radius:8px;padding:9px;font-size:12px}.pallet-price{font-size:25px;font-weight:800;letter-spacing:-.5px}.pallet-price small{font-size:12px;font-weight:400;letter-spacing:0}.pallet-unit{font-size:12px;color:#607783}.pallet-per-unit{padding:8px 10px;background:#eaf4fc;border-radius:8px;color:#365b70;font-size:12px;line-height:1.5}.pallet-per-unit strong{font-size:17px;color:#2378b7}.pallet-content button{width:100%;background:#51a4ed;color:white;border:0;border-radius:9px;padding:12px;font-weight:750;cursor:pointer}.pallet-content button:disabled{opacity:.6}.pallet-note{font-size:12px;color:#607783;margin:15px 0 0}.pallet-feedback{font-size:13px;font-weight:600}@media(max-width:600px){.pallet-section{margin:10px;border-radius:12px}.pallet-heading{gap:9px;padding:11px;min-height:62px}.pallet-heading-text strong{font-size:14px}.pallet-heading-text small{font-size:11px}.pallet-toggle{font-size:12px;gap:4px}.pallet-symbol{width:30px;height:30px;font-size:22px}.pallet-expanded{padding:0 11px 12px}.pallet-grid{grid-template-columns:1fr}.pallet-card{max-width:none}.pallet-photo{height:135px}}

/* Banda fina con el carrito de la marca. */
.pallet-section{margin:10px auto;background:linear-gradient(100deg,#fff6ee 0%,#fff 48%,#edf7ff 100%);border-color:#ecdcd1;border-radius:12px}
.pallet-heading{min-height:46px;padding:5px 15px;gap:11px;position:relative}
.pallet-mascot{width:62px;height:54px;object-fit:contain;flex-shrink:0;margin:-9px 0 -7px;transform:rotate(-4deg)}
.pallet-heading-text{flex-direction:row;align-items:baseline;gap:12px;flex-wrap:wrap}
.pallet-heading-text strong{font-size:15px;color:#d34d36;letter-spacing:-.2px}
.pallet-heading-text small{font-size:12px;color:#607783}
.pallet-toggle{background:#51a4ed;color:white;padding:6px 11px;border-radius:18px;font-size:12px}
.pallet-chevron{font-size:16px;line-height:1}
.pallet-expanded{padding-top:12px}
@media(max-width:600px){.pallet-section{margin:10px}.pallet-heading{min-height:46px;padding:5px 9px;gap:7px}.pallet-mascot{width:49px;height:47px;margin:-6px 0}.pallet-heading-text{flex-direction:column;align-items:flex-start;gap:1px;flex-wrap:nowrap}.pallet-heading-text strong{font-size:12px}.pallet-heading-text small{font-size:10px}.pallet-toggle{font-size:11px;padding:6px 8px;gap:4px}}

/* Saludo completo y título destacado, manteniendo la altura compacta. */
.pallet-section{background:linear-gradient(100deg,#fff0de 0%,#fff8ef 45%,#e5f3ff 100%);border:1px solid #f3c298;border-left:4px solid #e8543f;box-shadow:0 2px 9px #e8543f10}
.pallet-heading{overflow:visible;gap:10px}
.pallet-mascot{width:68px;height:51px;margin:-6px 0;transform:none;overflow:visible;object-fit:contain}
.pallet-heading-text strong{font-size:17px;font-weight:850;color:#d8432e;letter-spacing:.1px}
.pallet-heading-text small{font-size:12px;font-weight:600;color:#57788c}
.pallet-toggle{background:#e8543f;box-shadow:0 2px 5px #e8543f22}
@media(max-width:600px){.pallet-heading{padding:5px 8px;gap:5px}.pallet-mascot{width:57px;height:46px;margin:-5px 0}.pallet-heading-text strong{font-size:14px}.pallet-heading-text small{font-size:10px}.pallet-toggle{font-size:11px;padding:6px 8px}}

/* Tarjetas compactas: unidad principal, total del pallet secundario. */
.pallet-grid{grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:12px;align-items:start}
.pallet-card{max-width:280px;border-radius:12px}
.pallet-photo{height:104px;padding:18px 20px 6px}
.pallet-content{padding:10px 12px 12px}
.pallet-content>small{font-size:11px}
.pallet-content h3{font-size:14px;line-height:1.25;margin:4px 0 8px;overflow-wrap:anywhere}
.pallet-pack{margin:0 0 8px;padding:6px 8px;font-size:11px;border-radius:6px}
.pallet-unit-primary{display:flex;align-items:baseline;gap:6px;line-height:1.15}
.pallet-unit-primary strong{font-size:29px;font-weight:850;letter-spacing:-.8px;color:#2378b7}
.pallet-unit-primary span{font-size:12px;color:#527587}
.pallet-content .pallet-price-condition{display:block;font-size:10px;color:#728994;margin:3px 0 8px}
.pallet-total-secondary{font-size:12px;color:#607783}
.pallet-total-secondary strong{font-size:13px;font-weight:650;color:#365b70}
.pallet-unit{font-size:11px;margin:4px 0 10px}
.pallet-content button{padding:9px;font-size:12px;border-radius:8px}
@media(max-width:600px){.pallet-grid{grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:10px}.pallet-card{max-width:none}.pallet-photo{height:94px;padding:18px 14px 4px}.pallet-content{padding:9px 10px 10px}.pallet-unit-primary strong{font-size:26px}.pallet-unit-primary span{font-size:10px}.pallet-content h3{font-size:13px}.pallet-total-secondary strong{font-size:12px}}

/* Un único pallet aprovecha todo el ancho móvil. */
@media(max-width:600px){
 .pallet-grid.pallet-grid-single{grid-template-columns:minmax(0,1fr)}
 .pallet-card:only-child{display:grid;grid-template-columns:100px minmax(0,1fr);width:100%;max-width:none;box-sizing:border-box;align-items:center}
 .pallet-card:only-child .pallet-photo{height:130px;padding:31px 9px 12px;align-self:start}
 .pallet-card:only-child .pallet-badge{top:10px;left:7px;font-size:8px;padding:5px 6px;letter-spacing:.5px}
 .pallet-card:only-child .pallet-content{min-width:0;padding:12px 10px 12px 0}
 .pallet-card:only-child .pallet-content h3{margin:3px 0 6px}
 .pallet-card:only-child .pallet-pack{margin-bottom:7px;padding:5px 6px;font-size:10px}
 .pallet-card:only-child .pallet-unit-primary strong{font-size:27px}
 .pallet-card:only-child .pallet-unit{margin:3px 0 8px}
}

/* Una tarjeta destacada por vez, con cinta plegada. */
.pallet-showcase{display:flex;flex-direction:column;align-items:center;padding:6px 5px 0;gap:14px}
.pallet-featured{width:min(100%,360px);aspect-ratio:1;box-sizing:border-box;padding:18px;display:flex;flex-direction:column;gap:12px;background:linear-gradient(145deg,#fff,#fafcfe);border:1px solid #e2e9ed;border-radius:14px;box-shadow:7px 9px 0 #9fb3b91a,0 9px 23px #27455514;position:relative}
.pallet-featured-top{display:flex;align-items:center;gap:14px;min-width:0;min-height:86px}
.pallet-featured-top>img{width:88px;height:80px;object-fit:contain;flex-shrink:0}
.pallet-featured-top>div{min-width:0}
.pallet-featured-top small{font-size:11px;color:#788f9c}
.pallet-featured-top h3{font-size:16px;line-height:1.25;margin:4px 0 7px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.pallet-featured-tag{font-size:8px;font-weight:800;letter-spacing:1px;color:#e8543f}
.pallet-ribbon{position:relative;margin:0 -27px 0 -8px;padding:10px 16px;display:flex;align-items:center;gap:10px;background:linear-gradient(110deg,#e8543f,#f57857);color:white;box-shadow:0 4px 8px #e8543f1a;flex-wrap:wrap}
.pallet-ribbon:after{content:"";position:absolute;right:0;top:100%;width:0;height:0;border-top:9px solid #a93627;border-right:9px solid transparent}
.pallet-ribbon>strong{font-size:35px;line-height:1;font-weight:850;letter-spacing:-1px}
.pallet-ribbon>span{font-size:13px;font-weight:700;line-height:1.35}
.pallet-ribbon small{display:block;font-size:10px;font-weight:400}
.pallet-featured-facts{display:flex;flex-direction:column;gap:6px;padding:2px 0;margin-top:auto}
.pallet-featured-facts>div{display:flex;justify-content:space-between;gap:8px;font-size:11px;border-bottom:1px solid #edf0f2;padding-bottom:5px;line-height:1.3}
.pallet-featured-facts span{color:#718894}.pallet-featured-facts strong{color:#365b70;font-weight:650;text-align:right}
.pallet-featured-buy{padding:10px 12px;border:0;border-radius:7px;background:#51a4ed;color:white;font-size:13px;font-weight:750;cursor:pointer;min-height:38px}
.pallet-featured-buy:disabled{opacity:.6;cursor:wait}
.pallet-pager{display:flex;gap:18px;align-items:center;color:#607783;font-size:12px}
.pallet-pager button{width:38px;height:38px;border-radius:50%;border:1px solid #d1e0e9;background:white;color:#2378b7;font-size:26px;cursor:pointer}.pallet-pager button:disabled{opacity:.5}
@media(max-width:600px){.pallet-featured{padding:14px;gap:9px}.pallet-featured-top{min-height:72px;gap:10px}.pallet-featured-top>img{width:72px;height:68px}.pallet-featured-top h3{font-size:14px;margin:3px 0 5px}.pallet-ribbon{margin-right:-23px;padding:9px 12px;gap:8px}.pallet-ribbon>strong{font-size:31px}.pallet-ribbon>span{font-size:12px}.pallet-featured-facts{gap:5px}.pallet-featured-facts>div{font-size:10px;padding-bottom:4px}.pallet-featured-buy{min-height:36px;padding:8px}}

/* Precio unitario alineado al extremo derecho de la cinta. */
.pallet-ribbon{justify-content:flex-end;text-align:right}
.pallet-ribbon>strong{order:2}
.pallet-ribbon>span{order:1;text-align:right}

/* Imagen más visible y tarjeta más baja, con precio ligeramente menor. */
.pallet-featured{aspect-ratio:auto;padding:14px 18px;gap:10px}
.pallet-featured-top{min-height:106px;gap:13px}
.pallet-featured-top>img{width:112px;height:102px}
.pallet-ribbon{padding:8px 14px;gap:9px}
.pallet-ribbon>strong{font-size:31px}
.pallet-ribbon>span{font-size:12px}
.pallet-ribbon small{font-size:9px}
.pallet-featured-facts{margin-top:0;gap:5px;padding:3px 0 0}
.pallet-featured-facts>div{padding-bottom:4px}
.pallet-featured-buy{min-height:35px;padding:8px 12px}
@media(max-width:600px){
 .pallet-featured{padding:11px 14px;gap:9px}
 .pallet-featured-top{min-height:96px;gap:11px}
 .pallet-featured-top>img{width:100px;height:94px}
 .pallet-featured-top h3{font-size:14px}
 .pallet-ribbon{padding:8px 12px;gap:8px}
 .pallet-ribbon>strong{font-size:28px}
 .pallet-ribbon>span{font-size:11px}
 .pallet-ribbon small{font-size:9px}
 .pallet-featured-facts{margin-top:0;gap:5px}
 .pallet-featured-buy{min-height:34px;padding:8px}
}

/* Título primero e imagen ampliable dentro de la misma altura. */
.pallet-image-open{width:132px;height:102px;flex-shrink:0;border:0;padding:0;background:transparent;cursor:zoom-in;display:block}
.pallet-image-open img{display:block;width:100%;height:100%;object-fit:contain}
.pallet-featured-top h3{margin:0 0 5px}
.pallet-featured-top small{display:block}
.pallet-lightbox{position:fixed;inset:0;z-index:10050;display:flex;align-items:center;justify-content:center;padding:20px;background:#132633b8;box-sizing:border-box;overscroll-behavior:contain}
.pallet-lightbox-panel{position:relative;width:min(100%,720px);max-height:90dvh;background:white;border-radius:16px;padding:45px 20px 18px;box-sizing:border-box;overflow:auto;box-shadow:0 20px 70px #0004}
.pallet-lightbox-panel>img{display:block;width:100%;height:min(60vh,560px);object-fit:contain}
.pallet-lightbox-panel>p{margin:15px 0 0;text-align:center;color:#365b70;font-size:15px;font-weight:650}
.pallet-lightbox-close{position:absolute;right:8px;top:8px;width:36px;height:36px;border:0;border-radius:50%;background:#eef4f8;color:#365b70;font-size:28px;line-height:1;cursor:pointer}
@media(max-width:600px){.pallet-image-open{width:120px;height:94px}.pallet-featured-top{gap:10px}.pallet-featured-top h3{margin:0 0 5px}.pallet-lightbox{padding:12px}}

.pallet-featured{touch-action:pan-y pinch-zoom}
.pallet-login-note{font-size:11px;line-height:1.4;color:#607783}
.pallet-swipe-hint{display:none;font-size:11px;color:#718894}
@media(pointer:coarse){.pallet-swipe-hint{display:block}}

/* Cambio suave y corto, sin desplazar el resto de la página. */
.pallet-featured{transition:transform 280ms cubic-bezier(.22,.61,.36,1),opacity 200ms ease;will-change:transform,opacity}
.pallet-featured.pallet-sale-izquierda{transform:translateX(-18px);opacity:0;transition-duration:150ms}
.pallet-featured.pallet-sale-derecha{transform:translateX(18px);opacity:0;transition-duration:150ms}
.pallet-featured.pallet-entra-derecha{transform:translateX(22px);opacity:0;transition:none}
.pallet-featured.pallet-entra-izquierda{transform:translateX(-22px);opacity:0;transition:none}
@media(prefers-reduced-motion:reduce){.pallet-featured{transition:none!important;transform:none!important}}

/* Carrusel nativo: el contenido acompaña al dedo, sin reemplazar tarjetas. */
.pallet-carousel{display:flex;width:min(100%,380px);gap:20px;overflow-x:auto;overflow-y:hidden;padding:9px 10px 15px;box-sizing:border-box;scroll-snap-type:x mandatory;scroll-padding-inline:10px;scroll-behavior:smooth;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;touch-action:auto}
.pallet-carousel::-webkit-scrollbar{display:none}
.pallet-carousel>.pallet-featured{flex:0 0 100%;width:100%;min-width:0;scroll-snap-align:start;scroll-snap-stop:always;touch-action:auto;transition:none;transform:none;opacity:1;will-change:auto}
.pallet-carousel .pallet-image-open,.pallet-carousel .pallet-image-open img{touch-action:auto;-webkit-user-drag:none;user-select:none}
@media(prefers-reduced-motion:reduce){.pallet-carousel{scroll-behavior:auto}}
