/* ==========================================================================
   LA PARADITA V58 · Tienda pulida
   Mismo concepto (rojo Paradita, blanco y neutros cálidos), con una sola tipografía
   propia, tarjetas coherentes en toda la página y estados de stock claros.
   Se carga al final. El color principal sigue saliendo del Centro visual (--lp53-primary).
   ========================================================================== */
@font-face{font-family:"Onest";font-style:normal;font-weight:300 900;font-display:swap;
 src:url(assets/fonts/onest-latin-wght-normal.woff2) format("woff2");
 unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Onest";font-style:normal;font-weight:300 900;font-display:swap;
 src:url(assets/fonts/onest-latin-ext-wght-normal.woff2) format("woff2");
 unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

:root{
 --s-red:var(--lp53-primary,#ed0014);
 --s-ink:var(--lp53-heading,#1f1b20);
 --s-text:#4b4550;
 --s-mute:#6b6470;
 --s-line:#ebe7e5;
 --s-page:#f4f2f1;
 --s-card:#fff;
 --s-ok:#157347;
 --s-low:#b45309;
 --s-out:#8a8390;
 --s-font:"Onest",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
 --s-r:14px;
}

/* ---------- Tipografía: una familia, escala clara ---------- */
html body{font-family:var(--s-font)!important;font-feature-settings:"ss01" 0;letter-spacing:-.003em}
html body :is(h1,h2,h3,h4,button,input,select,textarea,.price,.lp54-fprice){font-family:var(--s-font)!important}
/* Los estilos «Elegante» y «Redondeado» del Centro visual siguen mandando en los títulos */
html body.lp56-f-elegant :is(h1,h2,h3){font-family:Georgia,"Times New Roman",serif!important}
html body.lp56-f-round :is(h1,h2,h3){font-family:ui-rounded,"SF Pro Rounded",var(--s-font)!important}
html body main h2{letter-spacing:-.02em;font-weight:800}
html body :is(.price,.lp54-fprice,[class*="price"] b,[class*="price"] strong){font-variant-numeric:tabular-nums;letter-spacing:-.01em}

/* ---------- Encabezados de sección: rótulo, título y «Ver todo» siempre en el mismo orden ---------- */
html .lp57-headrow>span:first-child,html .lp57-headrow>.eyebrow,html .lp57-headrow>small:first-child{flex:0 0 100%!important;order:0!important;text-align:left!important;margin:0 0 6px!important}
html .lp57-headrow>h2{order:1!important;flex:1 1 auto!important;text-align:left!important;margin:0!important}
html .lp57-headrow>.lp57-all{order:2!important;margin-left:auto!important;white-space:nowrap;font-weight:700;font-size:14px;text-decoration:none}
html .lp57-headrow>.lp57-all:hover{text-decoration:underline;text-underline-offset:3px}
html .lp57-headrow>p{order:3!important;flex:0 0 100%!important;text-align:left!important;margin:6px 0 0!important}

/* ---------- Tarjetas de producto: misma anatomía en carruseles y catálogo ---------- */
html.lp57 #products>article.product,html.lp57 .lp57-rail>.lp28-feature-card{border:1px solid var(--s-line)!important;border-radius:var(--s-r)!important;box-shadow:none!important;background:var(--s-card)!important;transition:border-color .15s,box-shadow .15s!important;transform:none!important}
@media (hover:hover){
 html.lp57 #products>article.product:hover,html.lp57 .lp57-rail>.lp28-feature-card:hover{border-color:#d9d3d0!important;box-shadow:0 10px 28px -18px rgba(31,27,32,.35)!important}
}
html.lp57 #products .picture,html.lp57 .lp57-rail .lp43-feature-picture{background:#fff!important;aspect-ratio:1/1;border-radius:calc(var(--s-r) - 4px) calc(var(--s-r) - 4px) 0 0!important}
html.lp57 #products .picture img,html.lp57 .lp57-rail .lp43-feature-picture img{object-fit:contain!important;width:100%!important;height:100%!important}
html.lp57 #products .content h3,html.lp57 .lp57-rail .lp28-feature-card h3{font-size:15px!important;font-weight:600!important;line-height:1.3!important;color:var(--s-ink)!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.6em}
html.lp57 #products .lp57-brand{font-size:11.5px!important;letter-spacing:.06em!important;color:var(--s-mute)!important;font-weight:700!important}
html.lp57 #products .content>small.eyebrow{display:none!important}
html.lp57 #products .content>p:not([class]){display:none!important}
html.lp57 #products .price,html.lp57 .lp57-rail .lp54-fprice,html.lp57 .lp57-rail .lp28-feature-card>p>b{font-size:20px!important;font-weight:800!important;color:var(--s-red)!important}
html.lp57 #products .price del,html.lp57 #products .price s,html.lp57 .lp57-rail .lp54-fprice del,html.lp57 .lp57-rail .lp54-fprice s{font-size:13px!important;font-weight:500!important;color:var(--s-out)!important;margin-left:6px}

/* Estado de stock: verde disponible, ámbar últimas unidades, gris agotado */
html.lp57 #products .chip{font-size:12.5px!important;font-weight:600!important;letter-spacing:0!important;text-transform:none!important;color:var(--s-ok)!important}
html.lp57 #products .chip.low{color:var(--s-low)!important}
html.lp57 #products .chip.out{color:var(--s-out)!important}
html.lp57 #products .chip::before{content:""!important;display:inline-block;width:7px;height:7px;border-radius:50%;background:currentColor;margin-right:6px;vertical-align:1px}
html.lp57 #products article.product.lp58-out .picture img{opacity:.55;filter:grayscale(.4)}
html.lp57 #products article.product.lp58-out .lp23-card-actions button{background:#fff!important;color:var(--s-ink)!important;border:1px solid #d9d3d0!important;box-shadow:none!important}

/* Botones de tarjeta: uno solo, ancho completo y sin flechas decorativas */
html.lp57 #products .lp23-card-actions button,html.lp57 .lp57-rail .lp28-open{border-radius:10px!important;min-height:44px!important;font-weight:700!important;font-size:14px!important;box-shadow:none!important}
html.lp57 #products .lp23-card-actions button{width:100%}
html.lp57 .lp57-rail .lp28-open{width:auto!important;align-self:stretch}
/* Tarjeta de «Oportunidades» (imagen suelta y precio en párrafo) con la misma anatomía */
html.lp57 .lp57-rail>.lp28-feature-card>img{aspect-ratio:1/1;width:100%!important;height:auto!important;object-fit:contain!important;background:#fff!important;border:0!important;border-radius:calc(var(--s-r) - 4px) calc(var(--s-r) - 4px) 0 0!important;margin:0!important}
html.lp57 main .lp57-rail.lp57-rail>.lp28-feature-card>h3{text-align:left!important;border:0!important}
html.lp57 main .lp57-rail>.lp28-feature-card>p:not(.lp54-fnote)>b{display:block;margin-top:2px}
html.lp57 .lp57-rail>.lp28-feature-card>p:not(.lp54-fnote){text-align:left!important;color:var(--s-mute)!important;font-size:13px!important}
html.lp57 .lp57-rail .lp29-old-price{color:var(--s-out)!important;font-size:13px!important;font-weight:500!important;margin-left:6px;text-decoration:line-through}
html.lp57 .lp57-rail .lp29-promo-pill,html.lp57 .lp57-rail .lp28-tag{font-size:11.5px!important;font-weight:700!important;letter-spacing:.02em!important;border-radius:6px!important}

/* Imagen faltante: un cuadro sereno en lugar del logo gigante */
html .lp58-noimg{background:#f6f4f3!important;display:grid!important;place-items:center}
html .lp58-noimg img{width:34%!important;height:auto!important;opacity:.22;filter:grayscale(1)}

/* ---------- Catálogo: un solo buscador (el de la cabecera) ---------- */
html.lp57 #catalogo .lp58-hide-search{display:none!important}
html.lp57 #catalogo .lp58-hide-refresh{display:none!important}

/* ---------- Elementos flotantes: menos ruido ---------- */
html #lp35-privacy{display:none!important}            /* pasa a un enlace en el pie de página */
html #lp36-toggle{display:none!important}             /* diagnóstico interno */
html .lp55-hi{max-width:220px}
@media (max-width:767.98px){
 html .lp54-top{display:none!important}               /* en celular ya hay barra inferior */
 html .lp55-hi{display:none!important}
}

/* ---------- Pie de página: logo visible sobre fondo oscuro ---------- */
html footer.lp54-footer img[src*="logo-blanco"]{content:url(assets/logo-rojo-transparente.png);filter:brightness(0) invert(1)!important;width:auto!important;height:44px!important;object-fit:contain}
html .lp58-footlinks{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:6px}
html .lp58-footlinks button{all:unset;cursor:pointer;color:inherit;opacity:.75;font-size:13px}
html .lp58-footlinks button:hover{opacity:1;text-decoration:underline;text-underline-offset:3px}
html .lp58-footlinks button:focus-visible{outline:2px solid #fff;outline-offset:2px}

/* ---------- Una sola columna: todas las secciones arrancan en el mismo borde ---------- */
:root{--s-wrap:1240px;--s-gutter:clamp(16px,4vw,32px)}
html main#inicio>section:not(#hero):not(.bottom){max-width:none!important;width:auto!important;margin-left:0!important;margin-right:0!important;
 padding-left:max(var(--s-gutter),calc((100% - var(--s-wrap))/2))!important;padding-right:max(var(--s-gutter),calc((100% - var(--s-wrap))/2))!important}
html main#inicio>section.bottom{max-width:var(--s-wrap)!important;margin-left:auto!important;margin-right:auto!important}
@media (max-width:1300px){html main#inicio>section.bottom{margin-left:var(--s-gutter)!important;margin-right:var(--s-gutter)!important}}
html main#inicio>section{scroll-margin-top:96px}

@media (prefers-reduced-motion:reduce){
 html.lp57 #products>article.product,html.lp57 .lp57-rail>.lp28-feature-card{transition:none!important}
}

/* ---------- Celular ---------- */
@media (max-width:767.98px){
 /* Corrección: una regla antigua (V54) limitaba cada tarjeta a la mitad de su celda → tarjetas de ~76 px */
 html #products>article.product{max-width:none!important;flex:initial!important;width:auto!important;min-width:0}
 html.lp57 #products{gap:10px!important}
 html.lp57 #products .content{padding:10px 10px 12px!important}
 html.lp57 #products .content h3{font-size:14px!important}
 html.lp57 #products .price{font-size:17px!important}
 html.lp57 #products .lp23-card-actions button{min-height:42px!important;font-size:13.5px!important;padding:8px!important}
 html.lp57 #products .lp29-promo-pill{font-size:11px!important;line-height:1.3!important}
 html .lp57-headrow>h2{font-size:22px!important;line-height:1.2!important}
}
/* Dos juegos de flechas en «Destacados»: se quedan las del carrusel (aparecen al pasar el mouse); en celular se desliza */
html.lp57 .lp43-feature-controls{display:none!important}

html .lp43-product-page #selected-stock>button.primary{min-height:52px!important;border-radius:12px!important;font-size:16px!important;font-weight:700!important}
@media (max-width:767.98px){html .lp43-product-page #selected-stock>button.primary{width:100%!important}}

/* Aviso «Producto añadido al carrito»: una píldora compacta, también dentro de la ficha */
html #lp28-toast{position:fixed!important;left:50%!important;right:auto!important;top:auto!important;bottom:calc(20px + env(safe-area-inset-bottom))!important;transform:translateX(-50%)!important;z-index:2147483000!important;
 display:flex!important;align-items:center!important;gap:6px!important;width:max-content!important;max-width:calc(100vw - 32px)!important;margin:0!important;padding:6px 6px 6px 16px!important;border-radius:999px!important;
 background:var(--s-ink)!important;color:#fff!important;border:0!important;box-shadow:0 14px 34px -12px rgba(0,0,0,.45)!important;font-size:14px!important;animation:lp58-toast .2s ease-out}
html #lp28-toast p{margin:0!important;color:#fff!important;font-weight:600!important;font-size:14px!important}
html #lp28-toast button{all:unset!important;cursor:pointer!important;display:grid!important;place-items:center!important;width:36px!important;height:36px!important;border-radius:50%!important;color:#fff!important;font-size:20px!important;line-height:1!important;opacity:.8}
html #lp28-toast button:hover{opacity:1;background:rgba(255,255,255,.12)!important}
@keyframes lp58-toast{from{opacity:0;transform:translate(-50%,8px)}to{opacity:1;transform:translate(-50%,0)}}
@media (max-width:767.98px){html #lp28-toast{bottom:calc(76px + env(safe-area-inset-bottom))!important}}

/* Ficha: «Agregar al carrito» manda; «Comprar ahora» es la segunda opción y «Seguir comprando» un enlace */
html .lp43-product-page .lp30-product-actions{display:flex!important;flex-direction:column-reverse!important;gap:10px!important;margin-top:10px!important}
html .lp43-product-page #lp30-buy-now{background:#fff!important;color:var(--s-red)!important;border:1.5px solid var(--s-red)!important;box-shadow:none!important;min-height:50px!important;border-radius:12px!important;font-weight:700!important;width:100%}
html .lp43-product-page #lp30-buy-now:hover{background:#fff5f5!important}
html .lp43-product-page #finish-view{background:transparent!important;border:0!important;box-shadow:none!important;color:var(--s-mute)!important;font-weight:600!important;min-height:44px!important;text-decoration:underline;text-underline-offset:3px}
@media (prefers-reduced-motion:reduce){html #lp28-toast{animation:none}}

/* Formulario de pedido: 16 px evita el zoom automático del iPhone al escribir */
@media (max-width:767.98px){html #v21-form :is(input,select,textarea){font-size:16px!important}}

/* ---------- Mi cuenta: la cabecera ya no se sale de la pantalla en celular ---------- */
@media (max-width:767.98px){
 html .lp41-account-page>header.header{flex-wrap:wrap!important;gap:8px 12px!important;padding:10px 16px!important}
 html .lp41-account-page>header nav{flex-wrap:wrap;gap:4px 14px!important;min-width:0}
 html .lp41-account-page .lp26-account{max-width:100%!important;min-width:0}
 html .lp41-account-page .lp26-account .lp54-lbl{display:none!important}
 html .lp41-account-page .lp41-logo{font-size:15px!important}
 html .lp41-account-page .lp41-logo img{width:36px!important;height:36px!important}
}
