/* Movimiento local: sin imágenes, fuentes ni dependencias adicionales. */
:root { --mk-ease: cubic-bezier(.22, 1, .36, 1); }
.mk-curtain {
    position: fixed; inset: 0; z-index: 1000000;
    display: grid; place-items: center; padding: 24px;
    background: #0b0b0b; color: #d4af37;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .25s ease, visibility .25s;
}
.mk-curtain.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }
.mk-curtain::before {
    content: ''; position: absolute; width: min(80vw, 360px); aspect-ratio: 1;
    border-radius: 50%; background: radial-gradient(circle, #d4af3714, transparent 68%);
}
.mk-signature { position: relative; text-align: center; width: min(100%, 280px); }
.mk-emblem {
    position: relative; display: grid; place-items: center;
    width: 104px; height: 104px; margin: 0 auto 30px;
    border: 1px solid #d4af3738; border-radius: 50%;
    font: 42px Georgia, serif; letter-spacing: -5px; padding-right: 5px;
    box-shadow: 0 0 44px #d4af370b;
}
.mk-emblem::after {
    content: ''; position: absolute; inset: -8px; border: 1px solid transparent;
    border-top-color: #d4af37; border-bottom-color: #d4af3730; border-radius: 50%;
    animation: mk-orbit 3s linear infinite;
}
.mk-brand { margin: 0; font: 26px Georgia, serif; letter-spacing: 6px; color: #f2e4b8; }
.mk-caption { margin: 12px 0 30px; font: 9px system-ui, sans-serif; letter-spacing: 4px; text-transform: uppercase; color: #a3997a; }
.mk-progress { height: 1px; overflow: hidden; background: #d4af3728; margin: 0 32px; }
.mk-progress::after { content: ''; display: block; height: 100%; background: #d4af37; transform-origin: left; animation: mk-progress 1s var(--mk-ease) both; }
.mk-status { margin: 20px 0 0; font: 11px system-ui, sans-serif; letter-spacing: 1px; color: #aaa18b; }
.mk-busy { overflow: hidden; }
.mk-enter { animation: mk-enter .65s var(--mk-ease) both; }
.mk-reveal {
    animation: mk-enter .7s var(--mk-ease) var(--mk-card-delay, 0ms) backwards,
        mk-card-drift 6s ease-in-out calc(.7s + var(--mk-card-delay, 0ms)) infinite;
}
.product-card:nth-child(even) { --mk-drift: 3px; }
.product-card::after {
    content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
    border-radius: inherit; opacity: 0;
    background: linear-gradient(110deg, transparent 30%, #efd99912 48%, transparent 66%);
}
.product-card.mk-reveal::after { animation: mk-card-light 9s ease-in-out var(--mk-card-delay, 0ms) infinite; }
@keyframes mk-card-drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(var(--mk-drift, -3px)); } }
@keyframes mk-card-light {
    0%, 55%, 100% { opacity: 0; transform: translateX(-85%); }
    65% { opacity: 1; }
    82%, 99% { opacity: 0; transform: translateX(85%); }
}
.mk-hero-title { --mk-hero-delay: 0ms; --mk-hero-period: 6s; --mk-hero-lift: -3px; }
.mk-hero-copy { --mk-hero-delay: 140ms; --mk-hero-period: 7s; --mk-hero-lift: -2px; }
.mk-hero-action { --mk-hero-delay: 280ms; --mk-hero-period: 5.5s; --mk-hero-lift: -2px; }
.mk-hero-note { --mk-hero-delay: 420ms; --mk-hero-period: 8s; --mk-hero-lift: -1px; }
.mk-hero-visible .mk-hero-item {
    position: relative;
    animation: mk-enter .8s var(--mk-ease) var(--mk-hero-delay) backwards,
        mk-hero-float var(--mk-hero-period) ease-in-out calc(.8s + var(--mk-hero-delay)) infinite;
}
.mk-hero-visible .mk-hero-glow { animation: mk-hero-glow 10s ease-in-out infinite; }
.mk-hero-visible .mk-hero-action i { animation: mk-hero-arrow 4.5s ease-in-out 1.2s infinite; }
.mk-hero-action:active { transform: scale(.97) !important; }
@keyframes mk-hero-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(var(--mk-hero-lift)); } }
@keyframes mk-hero-glow { 0%, 100% { transform: translate(0, 0) scale(1); opacity: .65; } 50% { transform: translate(-50px, 35px) scale(1.35); opacity: 1; } }
@keyframes mk-hero-arrow { 0%, 70%, 100% { transform: translateX(0); } 82% { transform: translateX(4px); } }
/* Pausar incluso la entrada mientras la bienvenida cubre la pantalla. */
:is(.mk-busy, .mk-motion-paused) :is(.mk-reveal, .mk-reveal .product-image, .mk-hero-item, .mk-hero-glow, .mk-hero-action i),
:is(.mk-busy, .mk-motion-paused) .product-card::after { animation-play-state: paused; }
.mk-reveal .product-image { animation: mk-image-settle 1.1s var(--mk-ease) var(--mk-card-delay, 0ms) backwards; }
@keyframes mk-image-settle { from { transform: scale(1.045); } to { transform: scale(1); } }
@keyframes mk-orbit { to { transform: rotate(360deg); } }
@keyframes mk-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes mk-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.categories-scroll {
    scroll-snap-type: x proximity; scroll-behavior: smooth;
    overscroll-behavior-x: contain; padding: 4px 2px;
    gap: 10px; -webkit-overflow-scrolling: touch;
}
.category-pill {
    flex: 0 0 auto; scroll-snap-align: start; text-decoration: none;
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 10px 20px; border-radius: 24px;
    background: linear-gradient(145deg, #202020, #141414);
    transition: transform .3s var(--mk-ease), border-color .3s, background-color .3s, color .3s;
}
.category-pill.active { background: linear-gradient(135deg, #d4af372b, #d4af370d); box-shadow: inset 0 1px #f5dfa120; color: #edcf76; }
.mk-category-shell { display: flex; align-items: center; gap: 4px; min-width: 0; }
.mk-category-shell .categories-scroll { flex: 1; min-width: 0; margin-bottom: 0; }
.mk-scroll-arrow {
    flex: 0 0 28px; height: 44px; padding: 0; border: 0; border-radius: 16px;
    display: flex; align-items: center; justify-content: center; align-self: center;
    -webkit-appearance: none; appearance: none;
    background: transparent; color: #d4af37; cursor: pointer;
    transition: opacity .25s;
}
.mk-scroll-arrow:disabled { opacity: .15; cursor: default; }
.mk-scroll-arrow[hidden] { display: none; }
.category-pill:active, .btn-gold:active, .add-to-cart-btn:active { transform: scale(.96); }
.bottom-nav { border-top-color: #d4af3724; }
.nav-item { transition: color .3s ease, transform .3s var(--mk-ease); }
.nav-item:active { transform: translateY(-3px); }
.nav-item.active i { filter: drop-shadow(0 0 6px #d4af3740); }
.search-container:focus-within { border-color: #d4af37; box-shadow: 0 0 0 3px #d4af3710; }
.product-name { text-align: center; }
.product-card { box-shadow: 0 6px 18px #00000020; transition: transform .35s var(--mk-ease), border-color .35s, box-shadow .35s; }
.product-card .product-image { transition: transform .7s var(--mk-ease); }
.product-card:active { transform: scale(.985) !important; border-color: #d4af3770; box-shadow: 0 4px 20px #d4af3712; }
.product-card:active .product-image { transform: scale(1.035); }
.app-header { -webkit-backdrop-filter: blur(10px); }
.bottom-nav { -webkit-backdrop-filter: blur(16px); }
/* Iconos tipográficos locales: nunca recurrir a símbolos o emoji del sistema. */
.fa-solid, .fa-regular, .fa-brands { -webkit-font-smoothing: antialiased; font-style: normal; font-variant: normal; text-rendering: auto; }
/* La navegación mantiene fijos el encabezado y la barra inferior. */
@view-transition { navigation: auto; }
:root { --mk-slide: 100%; --mk-retreat: -22%; }
:root[data-mk-direction="back"] { --mk-slide: -100%; --mk-retreat: 22%; }
.app-header { view-transition-name: mk-header; }
.bottom-nav { view-transition-name: mk-navigation; }
::view-transition-group(root) { overflow: clip; }
::view-transition-image-pair(root) { isolation: isolate; }
::view-transition-old(root) { animation: mk-page-out .85s var(--mk-ease) both; mix-blend-mode: normal; }
::view-transition-new(root) { animation: mk-page-in .85s var(--mk-ease) both; mix-blend-mode: normal; }
::view-transition-group(mk-header), ::view-transition-group(mk-navigation) { z-index: 2; animation-duration: .85s; }
::view-transition-old(mk-header), ::view-transition-old(mk-navigation) { animation: none; opacity: 0; }
::view-transition-new(mk-header), ::view-transition-new(mk-navigation) { animation: none; }
@keyframes mk-page-in { from { transform: translateX(var(--mk-slide)); } to { transform: translateX(0); } }
@keyframes mk-page-out { to { transform: translateX(var(--mk-retreat)); opacity: .65; } }
/* Alternativa ligera para Safari antiguo: conserva el contenido mientras navega. */
.mk-fallback-in .app-container > :not(.app-header):not(.bottom-nav) { animation: mk-fallback-in .65s var(--mk-ease) backwards; }
.mk-fallback-out .app-container > :not(.app-header):not(.bottom-nav) { transform: translateX(var(--mk-retreat)); opacity: .8; transition: transform .3s ease, opacity .3s; }
@keyframes mk-fallback-in { from { opacity: .65; transform: translateX(calc(var(--mk-slide) * .18)); } to { opacity: 1; transform: translateX(0); } }
:where(a, button, input, select):focus-visible { outline: 2px solid #d4af37; outline-offset: 4px; }
@media (hover: hover) {
    .category-pill:hover { border-color: #d4af3780; color: #edcf76; transform: translateY(-2px); }
    .product-card:hover { border-color: #d4af3755; transform: translateY(-3px); }
    .product-card:hover .product-image { transform: scale(1.035); }
}
@media (prefers-reduced-motion: reduce) {
    .mk-curtain { transition: none; }
    .mk-emblem::after, .mk-progress::after, .mk-enter, .mk-reveal { animation: none; }
    .categories-scroll { scroll-behavior: auto; }
    .category-pill, .nav-item, .product-card { transition: none; }
    .product-card .product-image { transition: none; transform: none; animation: none; }
    .product-card::after { display: none; animation: none; }
    .mk-hero-visible :is(.mk-hero-item, .mk-hero-glow, .mk-hero-action i) { animation: none; }
    .mk-fallback-in .app-container > *, .mk-fallback-out .app-container > * { animation: none; transform: none; transition: none; opacity: 1; }
    ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
