/* Brand motion is applied around the catalog, without replacing its palette. */
[hidden] { display: none !important; }
.ml-preloader { position:fixed; inset:0; z-index:10000; display:grid; place-content:center; justify-items:center; gap:17px; background:#151719; color:#f5f4f0; opacity:0; visibility:hidden; pointer-events:none; transition:opacity .26s ease,visibility .26s; }
.show-metal-preloader .ml-preloader { opacity:1; visibility:visible; }
.ml-preloader p { margin:0; text-transform:uppercase; font-weight:800; font-size:15px; letter-spacing:.24em; }
.ml-preloader strong { color:#ffcc29; }
.ml-loader-badge { display:grid; place-items:center; width:115px; height:103px; border:1px solid #77725d80; border-radius:19px; background:linear-gradient(160deg,#292c31,#151719); box-shadow:0 16px 42px #0005; overflow:hidden; position:relative; }
.ml-loader-badge img { object-fit:contain; }
.ml-loader-badge span { position:absolute; inset:auto 0 0; height:2px; background:#ffffff18; }
.ml-loader-badge span::after { position:absolute; inset:0; content:""; background:#ffcc29; transform-origin:left; animation:metal-load 1s cubic-bezier(.14,.63,.35,1) both; }
@keyframes metal-load { from { transform:scaleX(.05); } to { transform:scaleX(1); } }

.site-header .brand img { object-fit:contain; }
.hero-wide .hero-media::after { content:""; position:absolute; inset:0; z-index:2; background:linear-gradient(105deg, transparent 40%, #fff0 43%, #fdf6cf22 47%, transparent 53%); transform:translateX(-110%); pointer-events:none; animation:hero-surface-shine 11s 2s ease-in-out infinite; }
@keyframes hero-surface-shine { 0%, 34% { transform:translateX(-110%); } 53%, 100% { transform:translateX(110%); } }
a,button { -webkit-tap-highlight-color:transparent; }
.button, .ml-float, .add-button { transition:background-color .18s, box-shadow .2s, color .18s, transform .2s; }
.button:focus-visible,.ml-float:focus-visible,.add-button:focus-visible { outline:2px solid #a57c00; outline-offset:4px; }
@media (hover:hover) { .button.primary:hover,.add-button:hover { box-shadow:0 6px 20px #ffcc2950; } .ml-float:hover { transform:translateY(-3px); } }

.category-tabs a { display:inline-flex; align-items:center; gap:7px; padding:10px 14px; border:1px solid #dcdedb; border-radius:7px; color:inherit; text-decoration:none; font-size:12px; line-height:1.25; font-weight:800; white-space:nowrap; }
.category-tabs a.active,.category-tabs a:hover { background:#191a1c; color:#fff; border-color:#191a1c; }
.category-tabs a.active .icon { color:#ffcc29; }
.catalog-page-hero { padding-bottom:18px; }
.catalog-page-hero .breadcrumbs { margin-bottom:32px; }
.catalog-page-hero + .catalog-section { padding-top:30px; }
.card-stock { margin-top:8px; color:#575d5e; font-size:12px; line-height:1.4; }
.search-label { font-size:12px; letter-spacing:.11em; text-transform:uppercase; color:#585b5d; margin:20px 0 6px; }
.search-result h4 { font-size:15px; margin:0 0 3px; color:#1d2024; }
.search-result small { display:block; line-height:1.35; }
.search-site-icon { width:55px; height:47px; display:grid; place-items:center; color:#292710; background:#fff4ce; border-radius:8px; flex:none; }

.theme-preview-banner { padding:9px 16px; text-align:center; background:#ffe57d; color:#222; font-size:13px; font-weight:800; position:relative; z-index:60; }
.theme-preview-banner a { margin-inline-start:8px; text-decoration:underline; color:inherit; }
.season-banner { --festive:#fddc7d; position:relative; isolation:isolate; overflow:hidden; border-block:1px solid #dfba5442; color:#fffaf0; background:radial-gradient(90% 180% at 88% 0,#3d3321,#211f1b 56%,#17191b); }
[data-theme=navidad] .season-banner { background:radial-gradient(95% 180% at 16% 85%,#39252b 2%,#222822 58%,#17221c); }
.season-shell { min-height:153px; padding:30px 0 24px; position:relative; display:flex; align-items:center; justify-content:space-between; gap:25px; isolation:isolate; }
.season-main { position:relative; z-index:2; max-width:635px; padding-left:min(15vw,156px); }
.season-brand { font-size:10px; text-transform:uppercase; font-weight:800; letter-spacing:.18em; color:var(--festive); }
.season-banner h2 { margin:1px 0 4px; color:#fffbef; font-family:"Barlow Condensed",sans-serif; font-size:clamp(32px,4.2vw,62px); line-height:.99; font-weight:800; text-transform:none; }
.season-banner p { font-size:13px; line-height:1.42; margin:0; color:#fff9e4; }
.season-countdown { display:grid; grid-template-columns:repeat(4,1fr); gap:7px; z-index:2; flex:none; }
.season-countdown div { text-align:center; border:1px solid #ffe5a34d; background:#111517ba; border-radius:9px; padding:9px 7px; min-width:51px; }
.season-countdown b { display:block; font-size:23px; line-height:1.05; font-variant-numeric:tabular-nums; color:#ffe199; }
.season-countdown span { font-size:9px; text-transform:uppercase; letter-spacing:.09em; color:#f4ecd9; }
.season-decor { pointer-events:none; position:absolute; user-select:none; z-index:0; }
.season-left { width:clamp(130px,20vw,265px); height:auto; top:50%; left:-2.5%; transform:translateY(-45%); filter:saturate(.7); opacity:.48; mask-image:linear-gradient(90deg,#000 33%,transparent 95%); }
.season-right { width:clamp(82px,12vw,183px); height:auto; right:-2%; bottom:-52px; opacity:.43; }
.season-year { display:flex; right:2%; top:1%; opacity:.32; letter-spacing:-.05em; transform:rotate(-7deg); }
.season-year span { font:900 clamp(63px,11vw,165px)/1.08 "Barlow Condensed",sans-serif; color:#e9bb5b; text-shadow:0 3px 0 #705318, 1px 4px 14px #ffe9ac67; }
.season-year span:nth-child(even) { transform:translateY(9px) rotate(6deg); }
.celebrating .season-year { right:8%; opacity:.65; }
.season-garland { position:absolute; inset:0 0 auto; z-index:1; height:16px; display:flex; justify-content:space-around; align-items:flex-start; border-top:1px solid #c69d49; pointer-events:none; }
.season-garland i { position:relative; background:radial-gradient(circle at 30% 27%,#fff9e9,var(--ball,#c99e49) 42%,#1d1a13 130%); border-radius:50%; width:10px; height:11px; margin-top:4px; box-shadow:0 0 9px var(--ball,#e9b955); animation:ornament-glow 2.4s ease-in-out alternate infinite; }
.season-garland i::before { position:absolute; width:3px; height:5px; top:-4px; left:4px; background:#d2a764; content:""; }
.season-garland i:nth-child(3n) { --ball:#a63543; animation-delay:-1s; }
.season-garland i:nth-child(4n) { --ball:#759d7a; animation-delay:-.6s; }
.season-garland i:nth-child(5n) { --ball:#d4b970; animation-delay:-1.4s; }
[data-theme=ano-nuevo] .season-garland i { --ball:#e8b455; width:6px; height:6px; }
@keyframes ornament-glow { from { opacity:.58; } to { opacity:1; } }
[data-theme=navidad] .button.primary:not(:disabled),[data-theme=ano-nuevo] .button.primary:not(:disabled) { background-image:linear-gradient(110deg,transparent 50%,#fff3 80%); }
#ambient { position:fixed; inset:0; z-index:38; pointer-events:none; overflow:hidden; }
.snowflake { position:absolute; width:var(--size); height:var(--size); left:var(--x); top:-8px; border-radius:50%; background:#fff; opacity:.84; box-shadow:0 0 3px #7595b8; animation:fall-snow var(--time) var(--phase) linear infinite; }
.flying-sleigh { position:absolute; width:clamp(150px,24vw,345px); height:auto; top:24vh; left:0; opacity:.86; filter:drop-shadow(0 8px 15px #100c0990); animation:fly-sleigh 24s -1s linear infinite; }
@keyframes fall-snow { to { transform:translate(var(--drift),calc(100dvh + 20px)); opacity:.24; } }
@keyframes fly-sleigh { 0%,27% { transform:translate3d(-360px,0,0) rotate(2deg); } 48% { transform:translate3d(32vw,11vh,0) rotate(-7deg); } 71%,100% { transform:translate3d(115vw,-14vh,0) rotate(-9deg); } }
.fireworks-canvas { position:absolute; width:100%; height:100%; }

.ml-tools { display:flex; flex-direction:column; align-items:end; gap:10px; right:calc(18px + env(safe-area-inset-right,0px)); bottom:calc(24px + env(safe-area-inset-bottom,0px)); z-index:62; }
.ml-float { height:49px; width:49px; border:1px solid #fff3; display:grid; place-content:center; text-decoration:none; border-radius:13px; color:#1c1e1f; box-shadow:0 7px 21px #0003; padding:0; overflow:hidden; }
.ml-float .icon { width:23px; height:23px; }
.ml-radio { color:#222527; background:#fff; }
.ml-assistant { background:#202225; border-color:#ffcc29; }
.ml-assistant img { object-fit:contain; }
.ml-whatsapp { background:#187d4b; color:#fff; }
.ml-whatsapp:hover { color:#fff; background:#11663b; }
.contact-dialog { width:min(480px,calc(100% - 28px)); }
.modal label { min-width:0; }
.contact-dialog form,.measure-body { padding:20px 24px 26px; }
.contact-dialog form { display:grid; gap:14px; }
.contact-dialog h2,.search-dialog h2 { margin:0; }
.contact-dialog p { margin:4px 0 0; }
.contact-dialog label { display:grid; gap:6px; font-size:13px; font-weight:800; }
.contact-dialog input,.contact-dialog textarea,.contact-dialog select,.quote-form select { width:100%; padding:10px 12px; border:1px solid #cfd1d1; background:#fafafa; border-radius:7px; color:#202325; font:inherit; }
.measurement-link { font-size:12px; color:inherit; background:none; border:0; padding:0; text-align:start; text-decoration:underline; }
.measure-body .button { margin:10px 3px 4px 0; }
.measure-body p { font-size:14px; }

.assistant-dialog { width:min(434px,calc(100% - 32px)); max-height:min(660px,90dvh); padding:0; overflow:hidden; border:1px solid #d1d1ca; border-radius:18px; background:#f5f4ef; }
.assistant-dialog[open] { display:grid; grid-template-rows:auto minmax(130px,1fr) auto auto; }
.assistant-head { padding:13px 12px 13px 15px; background:#202326; color:#fff; display:flex; align-items:center; justify-content:space-between; gap:5px; border-bottom:3px solid #ffcc29; }
.assistant-brand { display:flex; align-items:center; gap:10px; min-width:0; }
.assistant-brand img { width:40px; height:38px; padding:4px; border:1px solid #f8cc5666; border-radius:9px; object-fit:contain; }
.assistant-head > div:last-child { display:flex; gap:3px; }
.assistant-head .icon-button { width:34px; height:34px; background:none; color:#fff; border:1px solid #ffffff28; border-radius:7px; }
.assistant-head h2 { font:800 15px/1.2 Manrope,sans-serif; margin:0; color:#fff; }
.assistant-head span { font-size:10px; color:#f9dc8f; }
.chat-log { min-height:245px; max-height:395px; overflow:auto; scrollbar-gutter:stable; padding:15px; display:flex; flex-direction:column; gap:8px; }
.chat-bubble { padding:10px 12px; font-size:13px; line-height:1.48; white-space:pre-wrap; overflow-wrap:anywhere; max-width:93%; flex:none; }
.chat-bubble.from-agent { align-self:flex-start; background:white; border:1px solid #e6e4dd; border-radius:3px 12px 12px; color:#24282a; }
.chat-bubble.from-user { align-self:flex-end; background:#ffe385; border-radius:12px 3px 12px 12px; color:#2a2517; }
.chat-typing { display:flex; gap:4px; }
.chat-typing i { width:6px; height:6px; border-radius:50%; background:#937231; animation:typing-dot .8s infinite alternate; }
.chat-typing i:nth-child(2) { animation-delay:.17s; }
.chat-typing i:nth-child(3) { animation-delay:.34s; }
@keyframes typing-dot { to { opacity:.35; transform:translateY(-3px); } }
.chat-models { display:grid; gap:5px; flex:none; }
.chat-models article { display:grid; grid-template-columns:60px minmax(0,1fr); align-items:center; padding:6px; gap:9px; border:1px solid #e0ded3; border-radius:9px; background:#fff; }
.chat-models img { width:60px; height:65px; border-radius:5px; object-fit:contain; background:#f2f2ef; }
.chat-models a { display:block; color:#232523; font-weight:800; font-size:12px; text-decoration:underline; text-decoration-color:#b88624; }
.chat-models small { display:block; color:#4a4e4c; font-size:11px; }
.chat-models button,.chat-quick button { padding:4px 7px; color:#28240e; background:#fff3c4; border:1px solid #e2cb74; border-radius:6px; font:800 11px Manrope,sans-serif; }
.chat-models button { margin-top:4px; }
.chat-quick { padding:9px 11px; display:flex; flex-wrap:wrap; gap:5px; }
.chat-quick button { min-height:32px; display:inline-flex; align-items:center; gap:3px; }
.chat-quick button .icon { width:12px; height:12px; }
#chatForm { padding:10px 12px 12px; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:7px; background:#fff; border-top:1px solid #e8e8e0; }
#chatForm input { border:1px solid #d0d1cb; border-radius:8px; min-width:0; padding:10px; font-size:16px; }
#chatForm .button { min-width:43px; min-height:40px; padding:8px; }

@media(min-width:800px) { .assistant-dialog { margin:auto 76px 22px auto; } }
@media(max-width:700px) {
    .product-grid, .product-grid.list-view { display:grid; grid-template-columns:minmax(0,1fr); gap:15px; }
    .product-grid .product-visual { min-height:210px; aspect-ratio:1.32; }
    .product-grid .product-info { padding:15px 16px; }
    .product-grid .product-info h3 { min-height:0; font-size:16px; }
    .product-grid .product-dimensions,.product-grid .product-card-bottom strong { font-size:13px; }
    .catalog-options { grid-template-columns:minmax(0,1fr) auto; }
    .catalog-list-toggle { display:none !important; }
    .catalog-search input,.search-field input,.quote-form input,.quote-form textarea,.quote-form select,.contact-dialog input,.contact-dialog textarea,.contact-dialog select { font-size:16px; }
    .category-tabs a { padding:9px 10px; font-size:11px; }
    .catalog-page-hero .breadcrumbs { margin-bottom:20px; }
    .ml-tools { right:calc(10px + env(safe-area-inset-right,0px)); bottom:calc(15px + env(safe-area-inset-bottom,0px)); gap:8px; }
    .ml-float { width:44px; height:44px; border-radius:11px; }
    .ml-float .icon { width:21px; height:21px; }
    .season-shell { min-height:125px; flex-direction:column; gap:9px; justify-content:center; align-items:flex-start; padding:18px 0 11px; }
    .season-main { padding-left:0; }
    .season-banner h2 { font-size:34px; }
    .season-banner p { font-size:11px; max-width:85%; }
    .season-brand { font-size:8px; }
    .season-countdown { gap:4px; }
    .season-countdown div { padding:5px 4px; min-width:42px; }
    .season-countdown b { font-size:17px; }
    .season-countdown span { font-size:8px; }
    .season-left { left:auto; right:-12%; opacity:.38; width:140px; mask-image:linear-gradient(270deg,#000 45%,transparent 100%); }
    .season-right { width:92px; bottom:-35px; opacity:.34; }
    .season-year { top:auto; bottom:1%; right:1%; }
    .season-year span { font-size:65px; }
    .season-garland i:nth-child(even) { display:none; }
    .chat-log { min-height:130px; }
    .assistant-dialog[open] { max-height:min(580px,90dvh); }
    .footer-bottom { padding-inline-end:40px; }
}
@media(prefers-reduced-motion:reduce) { .hero-wide .hero-media::after, #ambient,.ml-preloader { display:none; } }
@media print { .ml-tools,.season-banner,.ml-preloader { display:none !important; } }
[data-motion=off] .season-garland i,[data-motion=off] .hero-wide .hero-media::after { animation:none; }

.hero-wide:not(.is-artwork) { background:radial-gradient(120% 130% at 85% 16%,#32363b 0%,#1a1e21 49%,#111416 100%); }
.hero-wide:not(.is-artwork) .hero-media { inset:39px max(30px,calc((100vw - 1360px)/2)) 115px auto; width:clamp(325px,46vw,670px); overflow:hidden; border:1px solid #ffffff45; border-radius:16px; background:#dadee0; box-shadow:0 22px 52px #0006; z-index:2; }
.hero-wide:not(.is-artwork) .hero-backdrop { width:100%; height:100%; object-fit:cover; object-position:center; }
.hero-wide:not(.is-artwork) .hero-scrim { background:linear-gradient(130deg,#ffffff21,transparent 34%,transparent 82%,#1a222329); }
.hero-wide:not(.is-artwork) .hero-grid { opacity:.19; }
.hero-wide:not(.is-artwork) .hero-inner { min-height:560px; height:auto; padding-block:48px; }
.hero-wide:not(.is-artwork) .hero-copy { max-width:min(49%,580px); }
.hero-wide:not(.is-artwork) .hero-copy .hero-title { font-size:clamp(56px,6vw,101px); margin:0 0 16px; line-height:.91; letter-spacing:-.016em; }
.hero-wide:not(.is-artwork) .hero-text>p { font-size:clamp(14px,1.2vw,17px); color:#e0e3e3; line-height:1.55; }
.hero-wide:not(.is-artwork) .hero-edition { display:none; }
.hero-wide:not(.is-artwork) .hero-contact { text-decoration:underline; text-underline-offset:4px; }
.hero-wide.image-unavailable .hero-copy { max-width:100%; }
@media(max-width:760px) {
    .hero-wide:not(.is-artwork) { display:grid; grid-template-columns:minmax(0,1fr); padding-top:0; }
    .hero-wide:not(.is-artwork) .hero-inner { grid-row:1; min-height:0; padding-block:30px 18px; }
    .hero-wide:not(.is-artwork) .hero-copy { max-width:none; }
    .hero-wide:not(.is-artwork) .hero-copy .hero-title { font-size:clamp(44px,10vw,72px); margin-bottom:12px; }
    .hero-wide:not(.is-artwork) .hero-text>p { margin:0 0 15px; }
    .hero-wide:not(.is-artwork) .hero-footnote { display:none; }
    .hero-wide:not(.is-artwork) .hero-media { grid-row:2; position:relative; inset:auto; width:auto; height:clamp(195px,54vw,310px); margin:0 18px 16px; border-radius:11px; box-shadow:0 9px 19px #0004; }
    .hero-wide:not(.is-artwork) .hero-controlbar { grid-row:3; }
}
@media(max-width:700px) {
    .catalog-page-hero { padding-top:28px; padding-bottom:12px; }
    .catalog-page-hero h1 { font-size:clamp(41px,12.2vw,61px); margin:8px 0 12px; }
    .catalog-page-hero .breadcrumbs { margin-bottom:15px; }
    .catalog-page-hero p { margin-top:9px; }
    .catalog-page-hero + .catalog-section { padding-top:18px; }
}
