/* =====================================================================
   PAWS & CARDS — Design System (Pokémon TCG)
   Re-skin of the Kame House app preserving all kh-* class names.
   Based on BrandBook_P&C.pdf (REV.1 Q4 2025 ~ Q1 2026)
   ===================================================================== */

/* Fonts: Aveton (display) local — single weight only.
   Nunito (body/strong — G2 stand-in via 800/900).
   JetBrains Mono for utility metadata. */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

@font-face {
    font-family: 'Aveton';
    src: url('/kame/assets/fonts/aveton/aveton.otf') format('opentype'),
         url('/kame/assets/fonts/aveton/aveton.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Brand core — brandbook p.9 */
    --kh-red:         #A31925;
    --kh-red-bright:  #BE1622;
    --kh-red-deep:    #651413;
    --kh-red-black:   #380F10;
    --kh-white:       #FFFFFF;
    --kh-cream:       #FAFAF9;

    /* Neutrals */
    --kh-n-900: #3C3C3B;
    --kh-n-700: #575756;
    --kh-n-500: #9D9D9C;
    --kh-n-200: #DADADA;
    --kh-n-100: #F4F4F3;
    --kh-n-050: #FAFAF9;

    /* Secondary accent */
    --kh-blue:  #9AD6F1;

    /* Legacy-compat aliases so existing admin/caja JS still paints sanely */
    --kh-orange: var(--kh-red);
    --kh-orange-dark: var(--kh-red-deep);
    --kh-orange-light: var(--kh-red-bright);
    --kh-orange-glow: rgba(163,25,37,.45);
    --kh-orange-glow-soft: rgba(163,25,37,.15);
    --kh-gold: #EEC24A;
    --kh-gold-dark: #CDA53E;
    --kh-gold-glow: rgba(238,194,74,.35);
    --kh-black: #3C3C3B;
    --kh-night: #F4F4F3;
    --kh-night-2: #FAFAF9;
    --kh-panel: #FFFFFF;
    --kh-panel-2: #FAFAF9;
    --kh-panel-3: #F4F4F3;
    --kh-white-pure: #FFFFFF;
    --kh-muted: #575756;
    --kh-muted-2: #9D9D9C;
    --kh-border: #DADADA;
    --kh-border-soft: rgba(56,15,16,.08);

    /* Alt palettes (Poké Ball) — brandbook p.10-12.
       USE ONLY for "casos excepcionales u eventos especiales". */
    /* Master Ball (morado) */
    --kh-alt-master-xd: #2C2151;
    --kh-alt-master-d:  #433172;
    --kh-alt-master:    #5C4491;
    --kh-alt-master-l:  #9375B3;
    /* Love Ball (rosa) */
    --kh-alt-love-xd:   #62113D;
    --kh-alt-love-d:    #B61F6A;
    --kh-alt-love:      #D2569A;
    /* Dive Ball (azul) */
    --kh-alt-dive-xd:   #01374C;
    --kh-alt-dive-d:    #12729F;
    --kh-alt-dive:      #2EABDA;
    --kh-alt-dive-l:    #9AD6F1;
    /* Heal Ball (rosado cálido — comparte el rojo primario) */
    --kh-alt-heal-d:    #CD4547;
    --kh-alt-heal:      #ED6D78;
    /* Ultra Ball (amarillo + neutros) */
    --kh-alt-ultra:     #EEC24A;
    --kh-alt-ultra-d:   #CDA53E;

    /* Status */
    --kh-red-status: #DC2626;
    --kh-red-glow: rgba(220,38,38,.22);
    --kh-green: #16A34A;
    --kh-green-glow: rgba(22,163,74,.22);
    --kh-purple: #7E22CE;

    /* Gradients */
    --kh-grad-hero: linear-gradient(180deg, #380F10 0%, #651413 100%);
    --kh-grad-red: linear-gradient(135deg, #BE1622 0%, #A31925 100%);
    --kh-grad-card: linear-gradient(180deg, #FFFFFF 0%, #FAFAF9 100%);
    --kh-grad-glow: radial-gradient(circle at 50% 0%, rgba(163,25,37,.08) 0%, transparent 70%);

    /* Radii (rounded, humanist feel per Nunito + brandbook amistosidad) */
    --kh-r-sm: 8px;
    --kh-r-md: 14px;
    --kh-r-lg: 22px;
    --kh-r-xl: 32px;
    --kh-r-full: 999px;

    /* Shadows */
    --kh-shadow-sm: 0 1px 2px rgba(56,15,16,.04);
    --kh-shadow-md: 0 4px 14px rgba(56,15,16,.08);
    --kh-shadow-lg: 0 18px 40px rgba(56,15,16,.12);
    --kh-shadow-glow: 0 6px 18px rgba(163,25,37,.28), 0 12px 32px rgba(190,22,34,.18);
    --kh-shadow-gold: 0 6px 20px rgba(238,194,74,.35);

    /* Transitions */
    --kh-t-fast: 150ms cubic-bezier(0.4,0,0.2,1);
    --kh-t-normal: 250ms cubic-bezier(0.4,0,0.2,1);
    --kh-t-bounce: 500ms cubic-bezier(0.34,1.56,0.64,1);

    /* Fonts */
    --kh-font-display: 'Aveton', system-ui, sans-serif;
    --kh-font-body:    'Nunito', system-ui, sans-serif;
    --kh-font-strong:  'Nunito', system-ui, sans-serif;
    --kh-font-mono:    'JetBrains Mono', ui-monospace, monospace;
    /* Legacy alias */
    --kh-font-jp: 'Aveton', system-ui, sans-serif;

    /* Z */
    --kh-z-nav: 100;
    --kh-z-drawer: 300;
    --kh-z-modal: 500;
    --kh-z-toast: 600;
}

/* =====================================================================
   RESET + BASE
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body, body.kame-body {
    font-family: var(--kh-font-body);
    background: var(--kh-white);
    color: var(--kh-red-black);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    font-synthesis: none; /* Aveton has only Regular — no fake bolds */
}

/* Very subtle Pokémon dot pattern overlay */
body.kame-body::before {
    content: '';
    position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background:
        radial-gradient(900px 500px at 85% -5%, rgba(163,25,37,.045), transparent 60%),
        radial-gradient(700px 400px at -10% 30%, rgba(154,214,241,.12), transparent 60%);
}
body.kame-body::after {
    content: '';
    position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background-image: radial-gradient(circle, rgba(56,15,16,.03) 1px, transparent 1.2px);
    background-size: 20px 20px;
    opacity: .55;
}

main, .kame-main { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--kh-red); }
img, svg { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--kh-font-display);
    font-weight: 400; /* Aveton Regular only */
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--kh-red-black);
}
h1 { font-size: clamp(40px, 6vw, 76px); }
h2 { font-size: clamp(32px, 4vw, 52px); }
h3 { font-size: clamp(22px, 2.5vw, 30px); }
h4 { font-size: 18px; }

:focus-visible { outline: 2px solid var(--kh-red); outline-offset: 3px; border-radius: 6px; }

/* =====================================================================
   CONTAINER / LAYOUT HELPERS
   ===================================================================== */
.kh-container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .kh-container { padding: 0 32px; } }

.kh-text-center { text-align: center; }
.kh-text-muted { color: var(--kh-n-700); }
.kh-mt-1 { margin-top: 0.5rem; }
.kh-mt-2 { margin-top: 1rem; }
.kh-mt-3 { margin-top: 1.5rem; }
.kh-mt-4 { margin-top: 2rem; }
.kh-mt-5 { margin-top: 3rem; }
.kh-hide-mobile { }
@media (max-width: 768px) { .kh-hide-mobile { display: none !important; } }
.kh-hide-desktop { display: none; }
@media (max-width: 768px) { .kh-hide-desktop { display: initial; } }

/* Eyebrow / label */
.kh-eyebrow, .kh-section-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px;
    background: rgba(163,25,37,.08);
    color: var(--kh-red);
    border-radius: 999px;
    font-family: var(--kh-font-body);
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}
.kh-section-eyebrow::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--kh-red);
}

/* =====================================================================
   NAVBAR
   ===================================================================== */
.kh-nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: var(--kh-z-nav);
    padding: 14px 0;
    transition: background var(--kh-t-normal), backdrop-filter var(--kh-t-normal),
                border-bottom-color var(--kh-t-normal), padding var(--kh-t-normal);
    /* Brandbook p.18: la marca nunca debe quedar sobre fondos complejos sin
       un respaldo propio. Nav siempre con backing blanco (más fuerte al
       scrollear) para que el imagotipo tenga área de respeto garantizada. */
    background: rgba(255,255,255,.78);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid transparent;
}
.kh-nav.scrolled {
    background: rgba(255,255,255,.94);
    -webkit-backdrop-filter: saturate(170%) blur(18px);
    backdrop-filter: saturate(170%) blur(18px);
    border-bottom-color: var(--kh-n-200);
    padding: 8px 0;
}

.kh-nav-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
    height: 64px;
}

.kh-logo {
    display: flex; align-items: center; gap: 10px;
    color: var(--kh-red-black);
    font-family: var(--kh-font-display);
    font-weight: 400;
    font-size: 1.15rem;
    letter-spacing: -0.015em;
    transition: transform var(--kh-t-normal);
}
.kh-logo:hover { transform: translateY(-1px); color: var(--kh-red-black); }

.kh-logo-mark {
    width: 42px; height: 42px; border-radius: 12px;
    background: var(--kh-red);
    display: grid; place-items: center;
    font-family: var(--kh-font-display);
    font-size: 1.1rem; font-weight: 400;
    color: white;
    box-shadow: inset 0 -4px 0 rgba(0,0,0,.18), 0 6px 18px rgba(163,25,37,.28);
    position: relative; overflow: hidden;
}
.kh-logo-mark::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.5), transparent 60%);
}

.kh-logo-name { display: flex; flex-direction: column; line-height: 1; }
.kh-logo-name strong {
    font-family: var(--kh-font-display);
    font-weight: 400;
    font-size: 1.05rem;
    letter-spacing: -0.015em;
}
.kh-logo-name span {
    font-size: 10px;
    color: var(--kh-red);
    font-family: var(--kh-font-mono);
    letter-spacing: 0.12em;
    margin-top: 2px;
}

.kh-nav-links {
    display: none; align-items: center; gap: 6px; list-style: none;
}
@media (min-width: 980px) { .kh-nav-links { display: flex; } }

.kh-nav-links a {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 14px;
    color: var(--kh-n-700);
    font-weight: 600;
    font-size: 14px;
    border-radius: 10px;
    transition: all var(--kh-t-fast);
    position: relative;
}
.kh-nav-links a:hover,
.kh-nav-links a.active {
    color: var(--kh-red);
    background: rgba(163,25,37,.06);
}
.kh-nav-links a.active::after {
    content: '';
    position: absolute; left: 14px; right: 14px; bottom: 4px;
    height: 2px; background: var(--kh-red); border-radius: 2px;
}

.kh-nav-actions { display: flex; align-items: center; gap: 8px; }

.kh-icon-btn {
    width: 42px; height: 42px; border-radius: 12px;
    display: grid; place-items: center;
    background: var(--kh-n-100);
    border: 1.5px solid transparent;
    color: var(--kh-red-black);
    cursor: pointer;
    position: relative;
    transition: all var(--kh-t-fast);
    font-size: 1.15rem;
}
.kh-icon-btn:hover {
    background: white;
    border-color: var(--kh-red);
    color: var(--kh-red);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(163,25,37,.15);
}

.kh-cart-badge {
    position: absolute; top: -6px; right: -6px;
    background: var(--kh-red); color: white;
    font-family: var(--kh-font-mono);
    font-size: 0.68rem; font-weight: 700;
    padding: 2px 6px; border-radius: 999px;
    min-width: 20px; text-align: center;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(163,25,37,.35);
}

.kh-menu-toggle {
    display: grid; place-items: center;
    width: 42px; height: 42px; border-radius: 12px;
    background: var(--kh-n-100);
    border: 1.5px solid transparent;
    color: var(--kh-red-black);
    font-size: 1.3rem;
}
@media (min-width: 980px) { .kh-menu-toggle { display: none; } }

/* Mobile drawer */
.kh-mobile-drawer {
    position: fixed; top: 0; right: 0;
    width: 88%; max-width: 360px; height: 100vh;
    background: white;
    border-left: 1px solid var(--kh-n-200);
    z-index: var(--kh-z-drawer);
    padding: 88px 20px 24px;
    transform: translateX(100%);
    transition: transform var(--kh-t-bounce);
    overflow-y: auto;
}
.kh-mobile-drawer.open {
    transform: translateX(0);
    box-shadow: -24px 0 60px rgba(56,15,16,.18);
}
.kh-mobile-drawer a {
    display: block;
    padding: 14px 8px;
    color: var(--kh-red-black);
    font-weight: 700;
    font-size: 1rem;
    border-bottom: 1px solid var(--kh-n-100);
    transition: color var(--kh-t-fast);
}
.kh-mobile-drawer a:hover,
.kh-mobile-drawer a.active { color: var(--kh-red); }

.kh-drawer-backdrop {
    position: fixed; inset: 0;
    background: rgba(56,15,16,.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: calc(var(--kh-z-drawer) - 1);
    opacity: 0; pointer-events: none;
    transition: opacity var(--kh-t-normal);
}
.kh-drawer-backdrop.open { opacity: 1; pointer-events: auto; }

.kh-drawer-account-btn { background: var(--kh-red); color: white !important; border-radius: 12px; margin-top: 14px; }
.kh-drawer-account-btn:hover { background: var(--kh-red-bright); }

/* =====================================================================
   BUTTONS
   ===================================================================== */
.kh-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    font-family: var(--kh-font-body);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: -0.005em;
    border: 1.5px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    transition: all var(--kh-t-normal);
    text-decoration: none;
    position: relative;
    line-height: 1.2;
    white-space: nowrap;
}
.kh-btn:active { transform: scale(0.97); }

.kh-btn-primary {
    background: var(--kh-red);
    color: white;
    box-shadow: 0 6px 16px rgba(163,25,37,.28);
}
.kh-btn-primary:hover {
    background: var(--kh-red-bright);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(190,22,34,.36);
}

.kh-btn-secondary, .kh-btn-ghost {
    background: transparent;
    color: var(--kh-red-black);
    border-color: var(--kh-n-200);
}
.kh-btn-secondary:hover, .kh-btn-ghost:hover {
    border-color: var(--kh-red);
    color: var(--kh-red);
    background: rgba(163,25,37,.04);
}

.kh-btn-dark {
    background: var(--kh-red-black);
    color: white;
}
.kh-btn-dark:hover { background: var(--kh-red-deep); color: white; }

.kh-btn-danger { background: var(--kh-red-status); color: white; }
.kh-btn-danger:hover { background: #B91C1C; box-shadow: 0 6px 18px var(--kh-red-glow); }

.kh-btn-gold {
    background: linear-gradient(135deg, var(--kh-gold), var(--kh-gold-dark));
    color: var(--kh-red-black);
}
.kh-btn-gold:hover { box-shadow: var(--kh-shadow-gold); transform: translateY(-1px); }

.kh-btn-sm { padding: 8px 14px; font-size: 12px; }
.kh-btn-lg { padding: 14px 26px; font-size: 15px; }
.kh-btn-xl { padding: 16px 32px; font-size: 16px; }
.kh-btn-block { width: 100%; display: flex; }

.kh-btn[disabled], .kh-btn.disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }

/* Pulsing "pokéball charge" effect — for main CTAs */
.kh-btn-charge { position: relative; isolation: isolate; }
.kh-btn-charge::before {
    content: '';
    position: absolute; inset: -3px;
    border-radius: inherit;
    background: var(--kh-grad-red);
    opacity: .35;
    filter: blur(12px);
    animation: kh-pulse 2.2s ease-in-out infinite;
    z-index: -1;
}
@keyframes kh-pulse {
    0%, 100% { opacity: 0.2; transform: scale(0.98); }
    50%      { opacity: 0.55; transform: scale(1.06); }
}

/* =====================================================================
   HERO
   ===================================================================== */
.kh-hero {
    position: relative;
    min-height: 92vh;
    display: flex; align-items: center; justify-content: center;
    /* extra top padding accounts for fixed promobar (34px) + nav (~78px) */
    padding: 150px 0 80px;
    overflow: hidden;
    background: var(--kh-grad-hero);
    color: white;
}
.kh-hero-bottom-fade {
    position: absolute; bottom: 0; left: 0; right: 0; height: 120px;
    background: linear-gradient(to bottom, transparent 0%, var(--kh-white) 100%);
    z-index: 3; pointer-events: none;
}
.kh-hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background-size: cover; background-position: center 40%;
    background-repeat: no-repeat;
    opacity: .25; filter: saturate(1.2) brightness(0.7);
}
.kh-hero-video {
    position: absolute; inset: 0; z-index: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center 40%;
    opacity: .18; filter: saturate(1.1) brightness(0.7);
}
.kh-hero::before {
    content: '';
    position: absolute; inset: 0; z-index: 1;
    background:
        radial-gradient(ellipse at 25% 80%, rgba(163,25,37,.45) 0%, transparent 48%),
        radial-gradient(ellipse at 75% 20%, rgba(245,176,180,.20) 0%, transparent 40%);
}
.kh-hero::after {
    content: '';
    position: absolute; inset: 0; z-index: 1;
    background-image: radial-gradient(circle, rgba(255,255,255,.05) 1px, transparent 1.5px);
    background-size: 22px 22px; opacity: .5;
}

.kh-hero-content {
    position: relative; z-index: 2;
    text-align: center; max-width: 900px;
    padding: 0 16px;
}

/* Split layout for the new hero (text left, cardstack right) */
.kh-hero-split {
    position: relative; z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 48px;
    width: 100%;
}
.kh-hero-text { text-align: left; }
.kh-hero-text .kh-hero-stats {
    margin-left: 0; margin-right: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 520px;
}
.kh-hero-visual { display: flex; justify-content: center; }

.kh-hero-tagline {
    font-family: var(--kh-font-body);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #F5B0B4;
    margin: -6px 0 22px;
    opacity: .9;
    animation: kh-fade-up 0.8s ease-out 0.35s both;
}
.kh-hero-tagline span { letter-spacing: 0.2em; font-weight: 500; opacity: .85; }

@media (max-width: 960px) {
    .kh-hero-split { grid-template-columns: 1fr; gap: 24px; text-align: center; }
    .kh-hero-text { text-align: center; }
    .kh-hero-text .kh-hero-stats { max-width: 640px; margin: 40px auto 0; }
    .kh-hero-text .kh-hero-cta { justify-content: center; }
    .kh-hero-visual { order: 2; }
}

.kh-hero-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 16px;
    background: rgba(245,176,180,.18);
    border: 1px solid rgba(245,176,180,.4);
    color: #F5B0B4;
    border-radius: 999px;
    font-family: var(--kh-font-body);
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 24px;
    animation: kh-fade-down 0.8s ease-out 0.1s both;
}

.kh-hero-title {
    font-family: var(--kh-font-display);
    font-weight: 400;
    font-size: clamp(52px, 9vw, 120px);
    line-height: 0.98;
    margin-bottom: 22px;
    letter-spacing: -0.035em;
    color: white;
    animation: kh-power-up 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s both;
}
.kh-hero-title span { color: #F5B0B4; }

.kh-hero-subtitle {
    font-family: var(--kh-font-body);
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255,255,255,.82);
    margin: 0 auto 36px;
    max-width: 620px;
    line-height: 1.55;
    animation: kh-fade-up 0.8s ease-out 0.4s both;
}

.kh-hero-cta {
    display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
    animation: kh-fade-up 0.8s ease-out 0.6s both;
}
.kh-hero-cta .kh-btn-primary { background: white; color: var(--kh-red-black); }
.kh-hero-cta .kh-btn-primary:hover { background: var(--kh-n-100); color: var(--kh-red-black); }
.kh-hero-cta .kh-btn-secondary { border-color: rgba(255,255,255,.3); color: white; }
.kh-hero-cta .kh-btn-secondary:hover { border-color: white; background: rgba(255,255,255,.08); color: white; }

.kh-hero-stats {
    margin-top: 56px;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
    max-width: 700px; margin-left: auto; margin-right: auto;
    animation: kh-fade-up 0.8s ease-out 0.8s both;
}
.kh-hero-stat { text-align: center; }
.kh-hero-stat-num {
    font-family: var(--kh-font-display);
    font-weight: 400;
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: -0.02em;
    color: white;
    line-height: 1;
}
.kh-hero-stat-label {
    font-family: var(--kh-font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255,255,255,.65);
    margin-top: 8px;
}

.kh-hero-scroll {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,.55);
    font-family: var(--kh-font-mono);
    font-size: 10px;
    text-transform: uppercase; letter-spacing: 0.22em;
    animation: kh-bounce 2s ease-in-out infinite;
    z-index: 3;
}
.kh-hero-scroll::before {
    content: ''; display: block; width: 1px; height: 28px;
    margin: 0 auto 8px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,.6));
}

/* =====================================================================
   SECTION
   ===================================================================== */
.kh-section {
    padding: 96px 0;
    position: relative;
}
@media (max-width: 720px) { .kh-section { padding: 64px 0; } }

.kh-section-dark {
    background: var(--kh-red-black);
    color: white;
}
.kh-section-dark h1, .kh-section-dark h2, .kh-section-dark h3 { color: white; }
.kh-section-dark .kh-section-eyebrow { background: rgba(245,176,180,.18); color: #F5B0B4; }
.kh-section-dark .kh-section-eyebrow::before { background: #F5B0B4; }
.kh-section-dark .kh-section-subtitle { color: #D9AEB2; }

.kh-section-cream { background: var(--kh-cream); }

.kh-section-header {
    margin-bottom: 48px; max-width: 820px;
}
.kh-section-header.kh-text-center { margin-left: auto; margin-right: auto; }

.kh-section-title {
    font-family: var(--kh-font-display);
    font-weight: 400;
    font-size: clamp(34px, 4.5vw, 56px);
    letter-spacing: -0.02em; line-height: 1.05;
    margin-top: 16px;
    color: inherit;
}
.kh-section-title span { color: var(--kh-red); }
.kh-section-dark .kh-section-title span { color: #F5B0B4; }

.kh-section-subtitle {
    font-size: 17px;
    line-height: 1.55;
    color: var(--kh-n-700);
    margin-top: 18px;
    max-width: 580px;
}
.kh-section-header.kh-text-center .kh-section-subtitle { margin-left: auto; margin-right: auto; }

/* Decorative "pokéball belt" section divider (replaces kame's energy-line) */
.kh-energy-line {
    margin-top: 24px;
    width: 140px; height: 6px; border-radius: 3px;
    background: linear-gradient(90deg, var(--kh-red) 0%, var(--kh-red) 48%, var(--kh-red-black) 48%, var(--kh-red-black) 52%, white 52%, white 100%);
    border: 1px solid var(--kh-n-200);
    position: relative;
}
.kh-section-header.kh-text-center .kh-energy-line { margin-left: auto; margin-right: auto; }
.kh-energy-line::after {
    content: '';
    position: absolute; left: calc(50% - 7px); top: -5px;
    width: 14px; height: 14px; border-radius: 50%;
    background: white; border: 3px solid var(--kh-red-black);
}

/* Section art (background hero images) — kept for compat with existing markup,
   toned down for the light theme */
.kh-section-art {
    position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
}
.kh-section-art img {
    position: absolute; top: 50%; transform: translateY(-50%);
    height: 110%; width: auto; max-width: none;
    opacity: 0.07;
    filter: saturate(0.6) brightness(1.1);
    object-fit: contain;
    right: -4%;
    mask-image: radial-gradient(ellipse 75% 85% at 82% 50%, black 0%, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 75% 85% at 82% 50%, black 0%, black 30%, transparent 75%);
}
.kh-section-art--left img {
    right: auto; left: -4%;
    mask-image: radial-gradient(ellipse 75% 85% at 18% 50%, black 0%, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 75% 85% at 18% 50%, black 0%, black 30%, transparent 75%);
}
@media (max-width: 640px) { .kh-section-art img { opacity: 0.04; } }

/* =====================================================================
   CATEGORY + PRODUCT CARDS
   ===================================================================== */
.kh-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.kh-category-card {
    --cat-color: var(--kh-red);
    display: flex; flex-direction: column; justify-content: space-between;
    gap: 16px;
    padding: 24px;
    background: white;
    border: 1px solid var(--kh-n-200);
    border-radius: var(--kh-r-lg);
    transition: box-shadow var(--kh-t-normal), transform var(--kh-t-fast), border-color var(--kh-t-normal);
    min-height: 180px;
    cursor: pointer;
    text-decoration: none;
    color: var(--kh-red-black);
    position: relative; overflow: hidden;
}
.kh-category-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--cat-color);
    opacity: .85;
}
.kh-category-card:hover {
    border-color: var(--cat-color);
    box-shadow: var(--kh-shadow-lg);
    transform: translateY(-4px);
    color: var(--kh-red-black);
}
.kh-category-icon {
    font-size: 2rem; line-height: 1;
    width: 52px; height: 52px; border-radius: 14px;
    display: grid; place-items: center;
    background: var(--kh-n-100);
    border: 1px solid var(--kh-n-200);
    color: var(--cat-color);
}
.kh-category-name {
    font-family: var(--kh-font-display);
    font-weight: 400; font-size: 22px; letter-spacing: -0.015em;
    margin: 0;
}
.kh-category-desc {
    font-size: 14px; line-height: 1.5; color: var(--kh-n-700); margin: 6px 0 0;
}
.kh-category-count {
    font-family: var(--kh-font-mono); font-size: 12px; color: var(--cat-color);
    font-weight: 700; letter-spacing: 0.02em;
}

.kh-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.kh-product-card {
    background: white;
    border: 1px solid var(--kh-n-200);
    border-radius: var(--kh-r-lg);
    overflow: hidden;
    transition: box-shadow var(--kh-t-normal), transform var(--kh-t-fast), border-color var(--kh-t-normal);
    display: flex; flex-direction: column;
    cursor: pointer; text-decoration: none; color: inherit;
    position: relative;
}
.kh-product-card:hover {
    box-shadow: var(--kh-shadow-lg);
    transform: translateY(-3px);
    border-color: var(--kh-red);
    color: inherit;
}
.kh-product-media {
    aspect-ratio: 3/4;
    background:
        repeating-linear-gradient(135deg, rgba(163,25,37,.07) 0 1px, transparent 1px 14px),
        #FBE9EB;
    display: grid; place-items: center;
    color: var(--kh-red-deep);
    font-family: var(--kh-font-mono); font-size: 11px; text-align: center;
    padding: 16px;
    position: relative; overflow: hidden;
}
.kh-product-media img { width: 100%; height: 100%; object-fit: cover; }
.kh-product-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.kh-product-cat {
    font-family: var(--kh-font-mono); font-size: 11px;
    color: var(--kh-n-500); text-transform: uppercase; letter-spacing: 0.08em;
}
.kh-product-name {
    font-family: var(--kh-font-strong); font-weight: 900;
    font-size: 15px; line-height: 1.25; color: var(--kh-red-black);
    letter-spacing: -0.005em;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.kh-product-price {
    font-family: var(--kh-font-display); font-weight: 400;
    font-size: 22px; color: var(--kh-red-black); letter-spacing: -0.02em;
    margin-top: auto;
}
.kh-product-price .kh-muted-price {
    font-size: 13px; color: var(--kh-n-500); text-decoration: line-through; margin-left: 8px; font-family: var(--kh-font-body); font-weight: 500;
}
.kh-product-stock {
    font-size: 11px; color: var(--kh-green); font-weight: 700; letter-spacing: 0.02em;
    text-transform: uppercase;
}
.kh-product-stock.out { color: var(--kh-red-status); }

.kh-product-badge {
    position: absolute; top: 10px; left: 10px;
    padding: 4px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 800; letter-spacing: 0.02em;
    background: var(--kh-red); color: white;
    box-shadow: 0 4px 10px rgba(163,25,37,.28);
    z-index: 2;
}

/* =====================================================================
   KPI CARDS ("Why us")
   ===================================================================== */
.kh-kpi {
    padding: 28px;
    background: white;
    border: 1px solid var(--kh-n-200);
    border-radius: var(--kh-r-lg);
    transition: box-shadow var(--kh-t-normal), transform var(--kh-t-fast), border-color var(--kh-t-normal);
}
.kh-kpi:hover {
    box-shadow: var(--kh-shadow-lg);
    transform: translateY(-3px);
    border-color: var(--kh-red);
}
.kh-kpi-label {
    font-family: var(--kh-font-mono); font-size: 11px;
    color: var(--kh-n-500); text-transform: uppercase; letter-spacing: 0.1em;
}
.kh-kpi-value {
    font-family: var(--kh-font-display); font-weight: 400;
    font-size: 26px; margin-top: 6px; line-height: 1.15; color: var(--kh-red-black);
    letter-spacing: -0.015em;
}
.kh-kpi-sub { font-size: 14px; color: var(--kh-n-700); margin-top: 8px; line-height: 1.55; }

/* =====================================================================
   CART DRAWER
   ===================================================================== */
.kh-cart-drawer {
    position: fixed; top: 0; right: 0;
    width: 88%; max-width: 420px; height: 100vh;
    background: white;
    border-left: 1px solid var(--kh-n-200);
    z-index: var(--kh-z-drawer);
    transform: translateX(100%);
    transition: transform var(--kh-t-bounce);
    display: flex; flex-direction: column;
    box-shadow: -24px 0 60px rgba(56,15,16,0);
}
.kh-cart-drawer.open {
    transform: translateX(0);
    box-shadow: -24px 0 60px rgba(56,15,16,.18);
}
.kh-cart-head {
    padding: 22px 22px 16px;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--kh-n-100);
}
.kh-cart-head h3 {
    font-family: var(--kh-font-display); font-weight: 400; font-size: 22px;
    letter-spacing: -0.015em;
}
.kh-cart-head-count { font-family: var(--kh-font-mono); font-size: 13px; color: var(--kh-n-500); font-weight: 500; }
.kh-cart-items { flex: 1; overflow-y: auto; padding: 16px 22px; display: flex; flex-direction: column; gap: 14px; }
.kh-cart-item {
    display: grid; grid-template-columns: 64px 1fr auto; gap: 12px;
    padding: 10px 0; border-bottom: 1px solid var(--kh-n-100);
}
.kh-cart-item-img { width: 64px; height: 64px; border-radius: 10px; background: var(--kh-n-100); object-fit: cover; }
.kh-cart-item-name { font-family: var(--kh-font-strong); font-weight: 900; font-size: 14px; line-height: 1.25; }
.kh-cart-item-price { color: var(--kh-red); font-weight: 800; font-size: 14px; }
.kh-cart-qty { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; }
.kh-cart-qty button {
    width: 26px; height: 26px; border-radius: 8px;
    background: var(--kh-n-100); color: var(--kh-red-black);
    font-weight: 800; font-size: 14px;
}
.kh-cart-qty button:hover { background: var(--kh-n-200); }
.kh-cart-foot {
    padding: 18px 22px 24px;
    border-top: 1px solid var(--kh-n-100);
    background: var(--kh-cream);
    display: flex; flex-direction: column; gap: 12px;
}
.kh-cart-total { display: flex; justify-content: space-between; align-items: baseline; }
.kh-cart-total strong { font-family: var(--kh-font-display); font-weight: 400; font-size: 24px; letter-spacing: -0.02em; }
.kh-cart-empty { padding: 40px 22px; text-align: center; color: var(--kh-n-700); }
.kh-cart-empty .kh-cart-empty-illo {
    width: 140px; height: auto; display: block; margin: 0 auto 16px;
    animation: kh-cart-empty-bob 4s ease-in-out infinite;
}
@keyframes kh-cart-empty-bob {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50%      { transform: translateY(-6px) rotate(2deg); }
}
@media (prefers-reduced-motion: reduce) {
    .kh-cart-empty .kh-cart-empty-illo { animation: none; }
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.kh-footer {
    background: var(--kh-red-black);
    color: #E8C9CC;
    padding: 72px 0 40px;
    margin-top: 64px;
    position: relative;
    overflow: hidden;
}
.kh-footer::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(600px 300px at 90% 0%, rgba(245,176,180,.08), transparent 60%),
        radial-gradient(400px 200px at 0% 100%, rgba(163,25,37,.15), transparent 60%);
    pointer-events: none;
}
.kh-footer > * { position: relative; z-index: 1; }
.kh-footer .kh-logo { color: white; }
.kh-footer .kh-logo-name strong { color: white; }
.kh-footer-grid {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
}
.kh-footer-col h4 {
    font-family: var(--kh-font-strong); font-weight: 900;
    color: white; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
    margin-bottom: 16px;
}
.kh-footer-col a, .kh-footer-col p {
    display: block; font-size: 14px; color: #D9AEB2;
    padding: 6px 0;
    transition: color var(--kh-t-fast);
}
.kh-footer-col a:hover { color: white; }
.kh-footer-about p { margin-top: 18px; line-height: 1.6; max-width: 340px; padding: 0; }
.kh-footer-bottom {
    margin-top: 48px; padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: 13px; color: #B5898D;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
@media (max-width: 860px) { .kh-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .kh-footer-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   WHATSAPP FAB
   ===================================================================== */
.kh-whatsapp-fab {
    position: fixed; bottom: 22px; right: 22px;
    width: 60px; height: 60px; border-radius: 50%;
    background: #25D366; color: white;
    display: grid; place-items: center;
    box-shadow: 0 10px 26px rgba(37,211,102,.45);
    z-index: 400;
    transition: transform var(--kh-t-normal), box-shadow var(--kh-t-normal);
    animation: kh-wa-bounce 4s ease-in-out infinite;
}
.kh-whatsapp-fab:hover {
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 16px 36px rgba(37,211,102,.55);
    color: white;
}
@keyframes kh-wa-bounce {
    0%, 92%, 100% { transform: translateY(0); }
    95% { transform: translateY(-8px); }
    98% { transform: translateY(-3px); }
}

/* =====================================================================
   TOASTS
   ===================================================================== */
.kh-toast-container {
    position: fixed; top: 20px; right: 20px;
    z-index: var(--kh-z-toast);
    display: flex; flex-direction: column; gap: 10px;
    max-width: 360px;
}
.kh-toast {
    padding: 14px 18px;
    background: white;
    border: 1px solid var(--kh-n-200);
    border-left: 4px solid var(--kh-red);
    border-radius: 14px;
    box-shadow: var(--kh-shadow-lg);
    animation: kh-slide-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.kh-toast h4 { font-family: var(--kh-font-strong); font-weight: 900; font-size: 14px; color: var(--kh-red-black); margin: 0; }
.kh-toast p { font-size: 13px; color: var(--kh-n-700); margin-top: 4px; }
.kh-toast.success { border-left-color: var(--kh-green); }
.kh-toast.error { border-left-color: var(--kh-red-status); }
.kh-toast.warning { border-left-color: var(--kh-gold-dark); }
@keyframes kh-slide-in { from { opacity: 0; transform: translateX(40px);} to { opacity: 1; transform: translateX(0);} }

/* =====================================================================
   FORMS / INPUTS  (used in login, admin, caja, filters)
   ===================================================================== */
.kh-input, .kh-select, .kh-textarea,
input[type="text"]:not([class]), input[type="email"]:not([class]),
input[type="password"]:not([class]), input[type="number"]:not([class]),
input[type="search"]:not([class]), input[type="tel"]:not([class]),
textarea:not([class]), select:not([class]) {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--kh-font-body); font-size: 14px;
    border-radius: 12px;
    border: 1.5px solid var(--kh-n-200);
    background: white;
    color: var(--kh-red-black);
    outline: none;
    transition: border-color var(--kh-t-fast), box-shadow var(--kh-t-fast);
}
.kh-input::placeholder, input::placeholder, textarea::placeholder { color: var(--kh-n-500); }
.kh-input:focus, .kh-select:focus, .kh-textarea:focus,
input:focus, textarea:focus, select:focus {
    border-color: var(--kh-red);
    box-shadow: 0 0 0 3px rgba(163,25,37,.1);
}
.kh-label {
    display: block;
    font-size: 13px; font-weight: 700; color: var(--kh-red-black);
    margin-bottom: 6px;
}

/* Filter chips */
.kh-chip, .kh-filter-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    font-family: var(--kh-font-body); font-weight: 700; font-size: 13px;
    border: 1.5px solid var(--kh-n-200);
    background: white;
    color: var(--kh-red-black);
    cursor: pointer;
    transition: all var(--kh-t-fast);
}
.kh-chip:hover, .kh-filter-chip:hover { border-color: var(--kh-red); color: var(--kh-red); }
.kh-chip.active, .kh-filter-chip.active {
    background: var(--kh-red); color: white; border-color: var(--kh-red);
}
.kh-chip-alt-master { background: rgba(92,68,145,.14); color: var(--kh-alt-master-d); border-color: transparent; }
.kh-chip-alt-dive   { background: rgba(46,171,218,.14); color: var(--kh-alt-dive-d); border-color: transparent; }
.kh-chip-alt-ultra  { background: rgba(238,194,74,.22); color: #8A6A1F; border-color: transparent; }
.kh-chip-alt-love   { background: rgba(210,86,154,.14); color: var(--kh-alt-love-d); border-color: transparent; }
.kh-chip-alt-heal   { background: rgba(237,109,120,.18); color: var(--kh-alt-heal-d); border-color: transparent; }

/* Badges */
.kh-badge {
    display: inline-block; padding: 3px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 800; letter-spacing: 0.02em;
    background: var(--kh-n-100); color: var(--kh-red-black);
}
.kh-badge-red { background: rgba(163,25,37,.08); color: var(--kh-red); }
.kh-badge-green { background: rgba(22,163,74,.14); color: var(--kh-green); }

/* =====================================================================
   ADMIN / CAJA — generic neutral styling
   ===================================================================== */
.kh-table {
    width: 100%; border-collapse: separate; border-spacing: 0;
    background: white; border: 1px solid var(--kh-n-200);
    border-radius: 14px; overflow: hidden;
    font-size: 14px;
}
.kh-table th, .kh-table td { padding: 12px 16px; text-align: left; }
.kh-table th {
    background: var(--kh-cream);
    font-family: var(--kh-font-body); font-weight: 800; font-size: 12px;
    text-transform: uppercase; letter-spacing: 0.08em; color: var(--kh-n-700);
    border-bottom: 1px solid var(--kh-n-200);
}
.kh-table tr + tr td { border-top: 1px solid var(--kh-n-100); }
.kh-table tr:hover td { background: rgba(163,25,37,.03); }

.kh-card, .kh-panel {
    background: white; border: 1px solid var(--kh-n-200); border-radius: var(--kh-r-lg);
    padding: 24px;
    box-shadow: var(--kh-shadow-sm);
}

/* =====================================================================
   REVEAL ANIMATIONS
   ===================================================================== */
.kh-reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.kh-reveal.in { opacity: 1; transform: translateY(0); }
.kh-reveal-stagger > * { opacity: 0; transform: translateY(14px); }
.kh-reveal-stagger.in > * { animation: kh-fade-up .5s ease forwards; }
.kh-reveal-stagger.in > *:nth-child(1) { animation-delay: 0.0s; }
.kh-reveal-stagger.in > *:nth-child(2) { animation-delay: .08s; }
.kh-reveal-stagger.in > *:nth-child(3) { animation-delay: .16s; }
.kh-reveal-stagger.in > *:nth-child(4) { animation-delay: .24s; }
.kh-reveal-stagger.in > *:nth-child(5) { animation-delay: .32s; }
.kh-reveal-stagger.in > *:nth-child(6) { animation-delay: .40s; }
.kh-reveal-stagger.in > *:nth-child(7) { animation-delay: .48s; }

@keyframes kh-power-up {
    0%   { opacity: 0; transform: translateY(40px) scale(0.92); filter: blur(8px); }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes kh-fade-up { from { opacity: 0; transform: translateY(18px);} to { opacity: 1; transform: translateY(0);} }
@keyframes kh-fade-down { from { opacity: 0; transform: translateY(-18px);} to { opacity: 1; transform: translateY(0);} }
@keyframes kh-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: .6;}
    50%      { transform: translateX(-50%) translateY(6px); opacity: 1;}
}

/* =====================================================================
   POKÉBALL ANIMATIONS (Pokémon-themed decorative layer)
   ===================================================================== */

/* Ki particles → pokéball particles (sparkles drifting upward) */
.kh-ki-particles {
    position: absolute; inset: 0; pointer-events: none; z-index: 1;
    overflow: hidden;
}
.kh-ki-particle {
    position: absolute;
    width: 10px; height: 10px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #ffffff 0%, #F5B0B4 55%, #BE1622 100%);
    opacity: 0;
    box-shadow: 0 0 12px rgba(190,22,34,.6);
    animation: kh-particle-rise 5s linear infinite;
}
@keyframes kh-particle-rise {
    0%   { transform: translateY(0) scale(0.6); opacity: 0; }
    10%  { opacity: 0.9; }
    90%  { opacity: 0.3; }
    100% { transform: translateY(-120vh) scale(1.1); opacity: 0; }
}

/* Floating pokéballs layer — for hero + big sections */
.kh-pokeballs {
    position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0;
}
.kh-pokeball {
    position: absolute;
    width: 120px; height: 120px;
    background-image: url('/kame/assets/pokeball.svg');
    background-size: contain; background-repeat: no-repeat;
    opacity: .14;
    filter: drop-shadow(0 8px 18px rgba(56,15,16,.28));
    will-change: transform;
    animation: kh-float 14s ease-in-out infinite, kh-spin 22s linear infinite;
}
.kh-pokeball.kh-pb-1 { top: 8%; left: 6%; width: 90px; height: 90px; animation-duration: 12s, 20s; opacity: .18; }
.kh-pokeball.kh-pb-2 { top: 60%; left: 12%; width: 140px; height: 140px; animation-duration: 18s, 30s; animation-direction: reverse; opacity: .12; }
.kh-pokeball.kh-pb-3 { top: 22%; right: 8%; width: 110px; height: 110px; animation-duration: 16s, 26s; opacity: .16; }
.kh-pokeball.kh-pb-4 { bottom: 12%; right: 18%; width: 80px; height: 80px; animation-duration: 14s, 18s; animation-direction: reverse; opacity: .2; }
.kh-pokeball.kh-pb-5 { top: 45%; left: 55%; width: 60px; height: 60px; animation-duration: 10s, 14s; opacity: .22; }

@keyframes kh-float {
    0%, 100% { transform: translate(0, 0); }
    25%      { transform: translate(14px, -18px); }
    50%      { transform: translate(-10px, 8px); }
    75%      { transform: translate(16px, 18px); }
}
@keyframes kh-spin { from { rotate: 0deg; } to { rotate: 360deg; } }

/* Rolling pokéball loader */
.kh-pokeball-loader {
    width: 52px; height: 52px;
    background-image: url('/kame/assets/pokeball.svg');
    background-size: contain; background-repeat: no-repeat;
    animation: kh-roll 1.4s linear infinite;
    filter: drop-shadow(0 6px 12px rgba(163,25,37,.25));
}
@keyframes kh-roll {
    0%   { transform: translateX(-40px) rotate(0deg); }
    50%  { transform: translateX(0) rotate(540deg); }
    100% { transform: translateX(40px) rotate(1080deg); }
}

/* Static hero pokéball mark (for the logo region) */
.kh-pokeball-mark {
    width: 42px; height: 42px;
    background-image: url('/kame/assets/pokeball.svg');
    background-size: contain; background-repeat: no-repeat;
    display: inline-block; vertical-align: middle;
    filter: drop-shadow(0 4px 10px rgba(163,25,37,.3));
}
.kh-pokeball-mark.spin { animation: kh-spin 10s linear infinite; }

/* =====================================================================
   PAGE: CATALOG / TIENDA
   ===================================================================== */
.kh-catalog-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; }
@media (max-width: 900px) { .kh-catalog-layout { grid-template-columns: 1fr; } }
.kh-sidebar {
    background: white; border: 1px solid var(--kh-n-200); border-radius: var(--kh-r-lg);
    padding: 22px; position: sticky; top: 100px;
    align-self: start;
}
.kh-sidebar h4 {
    font-family: var(--kh-font-strong); font-weight: 900; font-size: 12px;
    text-transform: uppercase; letter-spacing: 0.1em; color: var(--kh-n-700);
    margin: 18px 0 10px;
}
.kh-sidebar h4:first-child { margin-top: 0; }
.kh-sidebar-cat {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 12px; border-radius: 10px;
    font-weight: 600; font-size: 14px;
    cursor: pointer;
    transition: background var(--kh-t-fast);
    color: var(--kh-red-black);
    text-decoration: none;
}
.kh-sidebar-cat:hover { background: var(--kh-n-100); color: var(--kh-red); }
.kh-sidebar-cat.active { background: var(--kh-red); color: white; }
.kh-sidebar-cat .count {
    font-family: var(--kh-font-mono); font-size: 12px; opacity: .7; font-weight: 500;
}

.kh-toolbar {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    flex-wrap: wrap; margin-bottom: 20px;
}

/* =====================================================================
   PAGE: PRODUCT
   ===================================================================== */
.kh-product-page { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .kh-product-page { grid-template-columns: 1fr; } }
.kh-product-hero-img {
    aspect-ratio: 4/5;
    background: var(--kh-n-100);
    border: 1px solid var(--kh-n-200);
    border-radius: var(--kh-r-lg);
    overflow: hidden;
}
.kh-product-hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* =====================================================================
   PAGE: TORNEOS
   ===================================================================== */
.kh-tournament-banner {
    position: relative; width: 100%; height: 280px;
    overflow: hidden; border-radius: var(--kh-r-xl);
    margin-bottom: 40px;
    background: linear-gradient(135deg, var(--kh-red-black) 0%, var(--kh-red-deep) 50%, var(--kh-red) 100%);
}
.kh-tournament-banner img {
    width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
    filter: brightness(0.55) saturate(1.2);
}
.kh-tournament-banner::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(56,15,16,.75) 0%, transparent 60%);
    pointer-events: none;
}
.kh-tournament-banner-text {
    position: absolute; bottom: 24px; left: 24px; z-index: 2;
    font-family: var(--kh-font-display); font-weight: 400;
    font-size: clamp(24px, 3.5vw, 40px);
    color: white;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 18px rgba(0,0,0,.4);
}
.kh-tournament-banner-text span { color: #F5B0B4; }
@media (max-width: 768px) { .kh-tournament-banner { height: 180px; } }

/* =====================================================================
   LOGIN PAGE
   ===================================================================== */
.kh-auth-wrap {
    min-height: 100vh; display: grid; place-items: center;
    padding: 40px 20px;
    background: linear-gradient(180deg, var(--kh-red-black) 0%, var(--kh-red-deep) 100%);
    position: relative; overflow: hidden;
}
.kh-auth-card {
    position: relative; z-index: 2;
    width: 100%; max-width: 440px;
    background: white; border-radius: var(--kh-r-xl);
    padding: 40px 32px;
    box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.kh-auth-card h1 {
    font-family: var(--kh-font-display); font-weight: 400;
    font-size: 32px; margin-bottom: 6px; color: var(--kh-red-black);
}
.kh-auth-card p { color: var(--kh-n-700); font-size: 14px; margin-bottom: 22px; }

/* =====================================================================
   RANKING
   ===================================================================== */
.kh-rank-row {
    display: grid; grid-template-columns: 52px 1fr auto; gap: 16px; align-items: center;
    padding: 14px 18px; background: white; border: 1px solid var(--kh-n-200);
    border-radius: 14px; margin-bottom: 8px;
    transition: border-color var(--kh-t-fast), transform var(--kh-t-fast);
}
.kh-rank-row:hover { border-color: var(--kh-red); transform: translateX(3px); }
.kh-rank-pos {
    font-family: var(--kh-font-display); font-weight: 400;
    font-size: 28px; color: var(--kh-n-500); text-align: center;
    letter-spacing: -0.02em;
}
.kh-rank-row:nth-child(1) .kh-rank-pos,
.kh-rank-row.gold .kh-rank-pos { color: var(--kh-gold); }
.kh-rank-row:nth-child(2) .kh-rank-pos,
.kh-rank-row.silver .kh-rank-pos { color: var(--kh-n-500); }
.kh-rank-row:nth-child(3) .kh-rank-pos,
.kh-rank-row.bronze .kh-rank-pos { color: #BE7F3F; }

/* =====================================================================
   GALLERY
   ===================================================================== */
.kh-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 14px;
}
.kh-gallery-tile {
    border-radius: var(--kh-r-lg);
    overflow: hidden; background: var(--kh-n-100);
    position: relative; cursor: pointer;
    transition: transform var(--kh-t-normal);
}
.kh-gallery-tile:hover { transform: scale(1.015); }
.kh-gallery-tile img { width: 100%; height: 100%; object-fit: cover; }
.kh-gallery-tile.span-2 { grid-column: span 2; grid-row: span 2; }
@media (max-width: 720px) {
    .kh-gallery-grid { grid-template-columns: 1fr 1fr; }
    .kh-gallery-tile.span-2 { grid-column: auto; grid-row: auto; }
}

/* =====================================================================
   IMPORTACIONES — info cards
   ===================================================================== */
.kh-step-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.kh-step {
    padding: 24px; background: white; border: 1px solid var(--kh-n-200);
    border-radius: var(--kh-r-lg);
    position: relative;
}
.kh-step-num {
    width: 48px; height: 48px; border-radius: 14px;
    background: var(--kh-red); color: white;
    display: grid; place-items: center;
    font-family: var(--kh-font-display); font-weight: 400; font-size: 20px;
    letter-spacing: -0.02em;
    box-shadow: 0 6px 16px rgba(163,25,37,.28);
}
.kh-step h3 {
    font-family: var(--kh-font-strong); font-weight: 900; font-size: 18px;
    margin-top: 16px; letter-spacing: -0.005em;
}
.kh-step p { font-size: 14px; color: var(--kh-n-700); margin-top: 8px; line-height: 1.55; }

/* =====================================================================
   UTILITY
   ===================================================================== */
.mono, .kh-mono { font-family: var(--kh-font-mono); }
.muted { color: var(--kh-n-700); }
.small { font-size: 13px; }
hr.kh-divider { border: 0; border-top: 1px solid var(--kh-n-200); margin: 32px 0; }

/* Legacy TCG-specific hacks kept for backward compat */
.tcg-game-tab.tcg-active { background: var(--kh-red); color: white; border-color: var(--kh-red); font-weight: 800; }
.tcg-result-row:hover { background: rgba(163,25,37,.05); }

/* Reduce motion preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =====================================================================
   MANIFESTO — the brandbook's core quote (p.2)
   ===================================================================== */
.kh-manifesto {
    position: relative;
    padding: 56px 48px;
    text-align: center;
    border-radius: var(--kh-r-xl);
    background:
        radial-gradient(800px 400px at 50% 0%, rgba(163,25,37,.04), transparent 60%),
        var(--kh-cream);
    border: 1px solid var(--kh-n-200);
}
.kh-manifesto-mark {
    width: 110px; height: 110px;
    margin: 0 auto 24px;
    background-image: url('/kame/assets/cat-in-box.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 10px 22px rgba(163,25,37,.24));
    animation: kh-breathe 6s ease-in-out infinite;
}
.kh-manifesto-quote {
    font-family: var(--kh-font-display);
    font-weight: 400;
    font-size: clamp(22px, 2.8vw, 34px);
    line-height: 1.3;
    color: var(--kh-red-black);
    letter-spacing: -0.015em;
    margin: 0 auto;
    max-width: 780px;
}
.kh-manifesto-quote em {
    font-style: italic;
    color: var(--kh-red);
}
.kh-manifesto-open, .kh-manifesto-close {
    font-family: var(--kh-font-display);
    font-size: 1.5em;
    color: var(--kh-red);
    opacity: .7;
}
.kh-manifesto-open { margin-right: 4px; }
.kh-manifesto-close { margin-left: 2px; }
.kh-manifesto-attr {
    margin-top: 28px;
    font-family: var(--kh-font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--kh-n-500);
}
@keyframes kh-breathe {
    0%, 100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-6px) scale(1.02); }
}
@media (max-width: 720px) {
    .kh-manifesto { padding: 40px 24px; }
    .kh-manifesto-mark { width: 84px; height: 84px; }
}

/* =====================================================================
   COMPATIBILITY — extra classes used by kame.js renderProductCard()
   and the in-tree pages (reveal on scroll, specific badges, etc.)
   ===================================================================== */

/* Product card: kame.js uses .kh-product-image + -placeholder + -price-old/consult */
.kh-product-card { display: flex; flex-direction: column; }
.kh-product-image {
    position: relative;
    aspect-ratio: 3/4;
    background:
        repeating-linear-gradient(135deg, rgba(163,25,37,.07) 0 1px, transparent 1px 14px),
        #FBE9EB;
    overflow: hidden;
}
.kh-product-image img { width: 100%; height: 100%; object-fit: cover; }
.kh-product-image-placeholder {
    width: 100%; height: 100%;
    display: grid; place-items: center;
    font-size: 48px;
    color: var(--kh-n-500);
}

.kh-product-price-old {
    font-size: 13px; color: var(--kh-n-500);
    text-decoration: line-through;
    margin-left: 10px; font-family: var(--kh-font-body); font-weight: 500;
}
.kh-product-price-consult {
    font-family: var(--kh-font-body); font-weight: 700; font-size: 15px;
    color: var(--kh-red); letter-spacing: 0;
}
.kh-product-stock.low { color: var(--kh-gold-dark); }

/* Badges used by renderProductCard */
.kh-badge-out      { background: var(--kh-n-200); color: var(--kh-n-700); }
.kh-badge-sale     { background: var(--kh-red); color: white; }
.kh-badge-featured { background: var(--kh-gold); color: var(--kh-red-black); }
.kh-badge-new      { background: var(--kh-green); color: white; }
.kh-badge-out, .kh-badge-sale, .kh-badge-featured, .kh-badge-new {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    padding: 4px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 800; letter-spacing: .02em;
    box-shadow: 0 4px 10px rgba(56,15,16,.15);
}

/* Reveal observer alias — kame.js toggles .visible, layout.js toggles .in.
   Support both for compatibility. */
.kh-reveal.visible, .kh-reveal-stagger.visible,
.kh-reveal.in, .kh-reveal-stagger.in { opacity: 1; transform: translateY(0); }
.kh-reveal-stagger.visible > *, .kh-reveal-stagger.in > * { animation: kh-fade-up .5s ease forwards; }

/* Form group layout used across pages */
.kh-form-group { margin-bottom: 14px; }
.kh-flex { display: flex; }
.kh-gap-1 { gap: 8px; }
.kh-gap-2 { gap: 12px; }
.kh-gap-3 { gap: 16px; }
.kh-mb-1 { margin-bottom: 8px; }
.kh-mb-2 { margin-bottom: 12px; }
.kh-mb-3 { margin-bottom: 16px; }
.kh-hidden { display: none !important; }

/* Ki-particle "drift" variant supported by kame.js initKiParticles() */
.kh-ki-particle {
    --drift: 0px;
    animation: kh-particle-rise 6s linear infinite;
}
@keyframes kh-particle-rise-drift {
    0%   { transform: translate(0, 0) scale(0.6); opacity: 0; }
    10%  { opacity: 0.9; }
    90%  { opacity: 0.3; }
    100% { transform: translate(var(--drift), -120vh) scale(1.1); opacity: 0; }
}

/* Global min-height padding for non-hero pages (nav is fixed) */
body.kame-body > main,
body.kame-body > .kame-main {
    min-height: 60vh;
}

/* Login / auth inherit — already styled via kh-kpi + kh-input classes */

/* =====================================================================
   OFFICIAL BRAND ASSETS — logos, cat illustrations, Pokémon-type icons
   All PNGs in /kame/assets/brand/ per brandbook delivery
   ===================================================================== */

/* Logo mark as an <img> (replaces the old .kh-logo-mark div background) */
.kh-logo-mark-img {
    width: 44px; height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(163,25,37,.18));
    transition: transform var(--kh-t-fast);
}
.kh-logo:hover .kh-logo-mark-img { transform: translateY(-1px) rotate(-3deg); }

/* Nav lockup — reemplaza mark+texto con el logo horizontal del brandbook */
.kh-logo-lockup { gap: 0; }
.kh-logo-lockup .kh-logo-mark-anim {
    position: relative;
    display: inline-block;
    height: 64px;
    aspect-ratio: 1054 / 375;   /* aspect real de logoletrascolor.png (logogatopata lo iguala) */
    width: auto;
    flex: 0 0 auto;
}
.kh-logo-lockup-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(163,25,37,.18));
    transition: opacity .12s linear, transform var(--kh-t-fast);
}
.kh-logo-lockup .kh-logo-frame-b { opacity: 0; }
.kh-logo-lockup.is-paw .kh-logo-frame-a,
.kh-logo-lockup .kh-logo-mark-anim.is-paw .kh-logo-frame-a { opacity: 0; }
.kh-logo-lockup.is-paw .kh-logo-frame-b,
.kh-logo-lockup .kh-logo-mark-anim.is-paw .kh-logo-frame-b { opacity: 1; }
.kh-logo-lockup:hover .kh-logo-lockup-img { transform: translateY(-1px); }
@media (max-width: 720px) {
    .kh-logo-lockup .kh-logo-mark-anim { height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
    .kh-logo-lockup-img { transition: none; }
    .kh-logo-lockup .kh-logo-frame-b { opacity: 0 !important; }
    .kh-logo-lockup .kh-logo-frame-a { opacity: 1 !important; }
}

.kh-logo-name strong { white-space: nowrap; }

/* Footer lockup (outline B&N version — brandbook p.9) */
.kh-footer-lockup {
    height: 72px;
    width: auto;
    max-width: 320px;
    filter: brightness(0) invert(1); /* forces pure white for dark footer */
}

/* Hero: full-color horizontal lockup (logo + wordmark + tagline) */
.kh-hero-lockup {
    display: block;
    margin: 0 auto 24px;
    max-width: min(560px, 80%);
    width: 100%;
    height: auto;
    /* Soft red glow so it reads on the dark red-black hero */
    filter: drop-shadow(0 0 30px rgba(255,255,255,.1)) drop-shadow(0 10px 24px rgba(56,15,16,.5));
    animation: kh-fade-down 0.9s ease-out 0.1s both;
}
.kh-hero-lockup--dark { filter: brightness(0) invert(1) drop-shadow(0 10px 24px rgba(0,0,0,.4)); }

/* Big hero imagotipo (when shown solo instead of the lockup) */
.kh-hero-mark {
    width: 180px; height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,.4));
    animation: kh-breathe 6s ease-in-out infinite;
}

/* Manifesto mark — swap to official PNG */
.kh-manifesto-mark {
    background-image: url('/kame/assets/brand/logogato1.png');
    width: 130px; height: 130px;
}

/* =====================================================================
   POKÉMON-TYPE ICONS
   Replace the inline emojis in category cards / services with these
   brandbook-authored icons.
   ===================================================================== */
.pc-icon {
    width: 44px; height: 44px;
    object-fit: contain;
    display: block;
}
.pc-icon-lg { width: 60px; height: 60px; }
.pc-icon-sm { width: 28px; height: 28px; }

/* Category icon container gets a tinted badge; the PNG sits inside */
.kh-category-icon {
    /* override the earlier emoji-sized version with a PNG-ready slot */
    padding: 8px;
}
.kh-category-icon .pc-icon {
    width: 36px; height: 36px;
    filter: drop-shadow(0 2px 4px rgba(56,15,16,.1));
}

/* Type icon circle wrapper (for services, hero, features) */
.pc-type-badge {
    width: 56px; height: 56px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--kh-n-100);
    border: 1.5px solid var(--kh-n-200);
    transition: transform var(--kh-t-fast), background var(--kh-t-fast);
}
.pc-type-badge:hover { transform: translateY(-2px) rotate(-6deg); background: white; }
.pc-type-badge .pc-icon { width: 32px; height: 32px; }

/* =====================================================================
   CAT ILLUSTRATIONS
   ===================================================================== */
/* gatocara.png — minimalist line-art cat face (accent/watermark) */
.pc-cat-face {
    width: 64px; height: 64px;
    object-fit: contain;
    opacity: 0.9;
}

/* gatodespereza.png — full stretching cat (mascot hero) */
.pc-cat-stretch {
    width: 100%;
    max-width: 320px;
    height: auto;
    filter: drop-shadow(0 12px 28px rgba(56,15,16,.18));
    animation: kh-cat-stretch 7s ease-in-out infinite;
}
@keyframes kh-cat-stretch {
    0%, 100% { transform: rotate(0deg) translateY(0); }
    25%      { transform: rotate(-2deg) translateY(-4px); }
    75%      { transform: rotate(2deg) translateY(2px); }
}

/* caja.png — empty open box (shipping/unboxing cue) */
.pc-box-open {
    width: 120px; height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(56,15,16,.2));
}

/* Watermark positioning for cat-face inside value cards */
.pc-watermark-cat {
    position: absolute;
    bottom: 14px; right: 14px;
    width: 52px; height: 52px;
    opacity: 0.12;
    pointer-events: none;
    filter: grayscale(1);
}
.kh-kpi { position: relative; overflow: hidden; }

/* =====================================================================
   CARD STACK (hero) — official illustrated TCG cards
   Replaces the CSS-drawn 3-card stack with 4 real brand cards
   ===================================================================== */
.pc-cardstack {
    position: relative;
    width: 100%; height: 520px;
    max-width: 520px;
    margin: 0 auto;
}
.pc-cardstack img {
    position: absolute;
    width: 220px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,.35));
    transition: transform .6s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
}
.pc-cardstack .pc-card-red    { left: 2%;   top: 40px;  transform: rotate(-12deg); z-index: 2; }
.pc-cardstack .pc-card-blue   { left: 25%;  top: 0;     transform: rotate(-3deg);  z-index: 3; }
.pc-cardstack .pc-card-purple { left: 48%;  top: 20px;  transform: rotate(6deg);   z-index: 2; }
.pc-cardstack .pc-card-green  { left: 68%;  top: 80px;  transform: rotate(14deg);  z-index: 1; }

.pc-cardstack:hover .pc-card-red    { transform: rotate(-18deg) translateY(-6px); }
.pc-cardstack:hover .pc-card-blue   { transform: rotate(-5deg)  translateY(-12px); }
.pc-cardstack:hover .pc-card-purple { transform: rotate(9deg)   translateY(-10px); }
.pc-cardstack:hover .pc-card-green  { transform: rotate(20deg)  translateY(-4px); }

/* Each card gently floats even at rest */
.pc-cardstack img { animation: pc-card-float 5s ease-in-out infinite; }
.pc-cardstack .pc-card-red    { animation-delay: 0s;   }
.pc-cardstack .pc-card-blue   { animation-delay: .8s;  }
.pc-cardstack .pc-card-purple { animation-delay: 1.6s; }
.pc-cardstack .pc-card-green  { animation-delay: 2.4s; }
@keyframes pc-card-float {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -8px; }
}

@media (max-width: 900px) {
    .pc-cardstack { height: 380px; }
    .pc-cardstack img { width: 150px; }
}
@media (max-width: 520px) {
    .pc-cardstack { height: 300px; }
    .pc-cardstack img { width: 110px; }
    .pc-cardstack .pc-card-red    { left: 0%; }
    .pc-cardstack .pc-card-green  { left: 62%; }
}

/* =====================================================================
   POKÉMON-TYPE: tagged service / filter chip with icon on the left
   ===================================================================== */
.pc-chip-type {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px 6px 6px;
    background: var(--kh-n-100);
    border-radius: 999px;
    font-size: 12px; font-weight: 800; letter-spacing: .02em;
    color: var(--kh-red-black);
}
.pc-chip-type img { width: 22px; height: 22px; object-fit: contain; }

/* Why Us — split layout with mascot illustration */
.kh-whyus-layout {
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    gap: 56px;
    align-items: center;
}
.kh-whyus-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 28px;
    margin-top: 32px;
}
.kh-whyus-item {
    display: flex; flex-direction: column; gap: 8px;
}
.kh-whyus-item .kh-kpi-value { margin-top: 4px; }
.kh-whyus-mascot {
    position: relative;
    display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.kh-mascot-halo {
    position: absolute;
    top: 10%; left: 50%;
    transform: translateX(-50%);
    width: 70%; height: 70%;
    background: radial-gradient(circle at 50% 50%, rgba(245,176,180,.35) 0%, rgba(163,25,37,.1) 40%, transparent 70%);
    filter: blur(18px);
    z-index: 0;
    pointer-events: none;
}
.kh-whyus-mascot .pc-cat-stretch { position: relative; z-index: 1; max-width: 280px; }
.kh-mascot-caption {
    position: relative; z-index: 1;
    text-align: center;
    font-family: var(--kh-font-body);
}
.kh-mascot-caption span {
    display: block;
    font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
    color: #F5B0B4; margin-bottom: 6px;
}
.kh-mascot-caption strong {
    display: block;
    font-family: var(--kh-font-display); font-weight: 400;
    font-size: 18px; letter-spacing: -0.01em;
    color: white; line-height: 1.3;
    max-width: 260px; margin: 0 auto;
}
@media (max-width: 960px) {
    .kh-whyus-layout { grid-template-columns: 1fr; gap: 32px; }
    .kh-whyus-mascot { order: -1; }
    .kh-whyus-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .kh-whyus-grid { grid-template-columns: 1fr; }
}

/* Japanese tagline treatment */
.pc-tagline-jp {
    font-family: var(--kh-font-mono);
    font-size: 11px;
    letter-spacing: 0.3em;
    color: var(--kh-n-500);
    margin-top: 4px;
    text-transform: uppercase;
}

/* =====================================================================
   TYPE STRIP — showcase de los 11 iconos del brandbook
   ===================================================================== */
.kh-type-strip-section {
    padding: 56px 0 40px;
    border-top: 1px solid var(--kh-n-100);
    border-bottom: 1px solid var(--kh-n-100);
    background: var(--kh-cream);
}
.kh-type-strip-head {
    text-align: center;
    margin-bottom: 28px;
}
.kh-type-strip-head .pc-tagline-jp {
    display: block;
    color: var(--kh-red); opacity: .8;
    margin-bottom: 10px;
}
.kh-type-strip-title {
    font-family: var(--kh-font-display);
    font-weight: 400;
    font-size: clamp(20px, 2.5vw, 28px);
    letter-spacing: -0.015em;
    color: var(--kh-red-black);
    margin: 0;
}
.kh-type-strip-title em {
    font-style: italic;
    color: var(--kh-red);
}
.kh-type-strip {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}
.kh-type-strip-track {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 8px 0;
}
.kh-type-strip-track .pc-type-badge {
    width: 64px; height: 64px;
    background: white;
    border-color: var(--kh-n-200);
    box-shadow: var(--kh-shadow-sm);
    animation: pc-type-pop 3s ease-in-out infinite;
}
.kh-type-strip-track .pc-type-badge:nth-child(odd) { animation-delay: -.5s; }
.kh-type-strip-track .pc-type-badge:nth-child(3n) { animation-delay: -1.2s; }
.kh-type-strip-track .pc-type-badge:nth-child(5n) { animation-delay: -1.8s; }
@keyframes pc-type-pop {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-5px); }
}
.kh-type-strip-track .pc-icon { width: 36px; height: 36px; }

/* =====================================================================
   NOTICIAS — card grid para el feed de novedades del landing
   ===================================================================== */
.kh-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 36px;
}
.kh-news-card {
    --news-accent: var(--kh-red);
    display: flex; flex-direction: column;
    background: white;
    border: 1px solid var(--kh-n-200);
    border-radius: var(--kh-r-lg);
    overflow: hidden;
    cursor: pointer;
    transition: border-color var(--kh-t-normal), box-shadow var(--kh-t-normal), transform var(--kh-t-fast);
    position: relative;
}
.kh-news-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--news-accent);
    z-index: 2;
}
.kh-news-card:hover {
    border-color: var(--news-accent);
    box-shadow: var(--kh-shadow-lg);
    transform: translateY(-4px);
}
.kh-news-card:hover .kh-news-media img { transform: scale(1.04) rotate(-2deg); }
.kh-news-card:hover .kh-news-link { color: var(--news-accent); gap: 10px; }

.kh-news-media {
    position: relative;
    aspect-ratio: 16/10;
    background:
        radial-gradient(circle at 70% 30%, rgba(163,25,37,.05), transparent 55%),
        var(--kh-n-100);
    display: grid; place-items: center;
    overflow: hidden;
}
.kh-news-media img {
    width: 72%; height: auto; max-height: 84%;
    object-fit: contain;
    transition: transform var(--kh-t-normal);
    filter: drop-shadow(0 12px 24px rgba(56,15,16,.18));
}
.kh-news-badge {
    position: absolute; top: 14px; left: 14px; z-index: 2;
    padding: 5px 12px; border-radius: 999px;
    background: var(--news-accent); color: white;
    font-family: var(--kh-font-body);
    font-size: 11px; font-weight: 800; letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 6px 14px rgba(56,15,16,.18);
}
.kh-news-body {
    padding: 20px 22px 22px;
    display: flex; flex-direction: column; gap: 10px;
    flex: 1;
}
.kh-news-date {
    font-family: var(--kh-font-mono);
    font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--kh-n-500);
}
.kh-news-title {
    font-family: var(--kh-font-display);
    font-weight: 400;
    font-size: 22px;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--kh-red-black);
    margin: 0;
}
.kh-news-title em {
    font-style: italic; color: var(--news-accent);
}
.kh-news-excerpt {
    font-size: 14px;
    color: var(--kh-n-700);
    line-height: 1.55;
    margin: 0;
}
.kh-news-link {
    margin-top: auto;
    font-family: var(--kh-font-body);
    font-weight: 800; font-size: 13px;
    color: var(--kh-red-black);
    letter-spacing: 0.02em;
    display: inline-flex; align-items: center; gap: 6px;
    transition: color var(--kh-t-fast), gap var(--kh-t-fast);
}

/* =====================================================================
   ARTICLE PAGE (/noticia/:slug) — editorial read-view
   ===================================================================== */
.pc-article {
    --article-accent: var(--kh-red);
    position: relative;
}

.pc-article-hero {
    position: relative;
    padding: 100px 0 40px;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(163,25,37,.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(245,176,180,.15) 0%, transparent 55%),
        linear-gradient(180deg, #380F10 0%, #651413 100%);
    color: white;
    overflow: hidden;
}
@media (min-width: 1100px) {
    .pc-article-hero { padding: 120px 0 60px; }
}
.pc-article-hero::before {
    content: '';
    position: absolute; inset: 0; z-index: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.05) 1px, transparent 1.3px);
    background-size: 22px 22px;
    opacity: .4;
}
.pc-pokeballs { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.pc-pokeballs .kh-pokeball { opacity: 0.1; }
.pc-article-hero-inner {
    position: relative; z-index: 2;
    max-width: 920px;
}
.pc-back-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--kh-font-body);
    font-weight: 700; font-size: 13px;
    letter-spacing: 0.02em;
    color: #F5B0B4;
    padding: 6px 12px;
    background: rgba(245,176,180,.12);
    border: 1px solid rgba(245,176,180,.25);
    border-radius: 999px;
    transition: all var(--kh-t-fast);
    margin-bottom: 32px;
}
.pc-back-link:hover {
    color: white;
    background: rgba(245,176,180,.22);
    border-color: rgba(245,176,180,.5);
    transform: translateX(-2px);
}
.pc-article-meta {
    display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
    margin-bottom: 22px;
}
.pc-article-category {
    display: inline-flex; padding: 5px 14px; border-radius: 999px;
    background: var(--article-accent);
    color: white;
    font-family: var(--kh-font-body);
    font-weight: 800; font-size: 11px;
    letter-spacing: 0.12em; text-transform: uppercase;
    box-shadow: 0 6px 18px rgba(56,15,16,.3);
}
.pc-article-date {
    font-family: var(--kh-font-mono);
    font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
    color: rgba(245,176,180,.75);
}
.pc-article-title {
    font-family: var(--kh-font-display);
    font-weight: 400;
    font-size: clamp(36px, 6vw, 68px);
    letter-spacing: -0.03em;
    line-height: 1;
    color: white;
    margin: 0 0 24px;
    max-width: 16ch;
    animation: kh-power-up 0.9s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.1s both;
}
.pc-article-excerpt {
    font-size: clamp(17px, 1.8vw, 20px);
    line-height: 1.55;
    color: rgba(255,255,255,.82);
    max-width: 640px;
    margin: 0;
    font-weight: 400;
}
/* Image stacks below the meta + title + excerpt at every viewport,
   centered. Keeps its own aspect ratio (no cropping) and caps height. */
.pc-article-hero-image {
    position: relative;
    width: 100%;
    max-width: 920px;
    margin: 36px auto 8px;
    z-index: 4; /* above .pc-article-fade so it isn't washed out */
    pointer-events: none;
    text-align: center;
}
@media (max-width: 640px) {
    .pc-article-hero-image {
        width: calc(100% - 32px);
        margin: 28px auto 4px;
    }
}
.pc-article-hero-image img {
    max-width: 100%;
    max-height: 60vh;
    height: auto;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,.5));
    border-radius: var(--kh-r-xl);
    display: inline-block;
}
@media (max-width: 640px) {
    .pc-article-hero-image img { max-height: 50vh; }
}
.pc-article-hero-image .pc-article-hero-fallback {
    width: 100%; height: 100%;
    display: grid; place-items: center;
    opacity: 0.18;
}
.pc-article-hero-image .pc-article-hero-fallback img {
    width: 70%; height: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,.5));
}
.pc-article-fade {
    position: absolute; bottom: 0; left: 0; right: 0; height: 120px;
    background: linear-gradient(to bottom, transparent, white 100%);
    z-index: 3; pointer-events: none;
}

/* Body layout */
.pc-article-body-wrap { background: white; padding: 80px 0; }
.pc-article-body-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 56px;
    align-items: start;
}
@media (max-width: 860px) {
    .pc-article-body-inner { grid-template-columns: 1fr; }
    .pc-article-sidebar { order: -1; }
}

.pc-article-body {
    max-width: 720px;
    font-family: var(--kh-font-body);
    font-size: 18px;
    line-height: 1.75;
    color: var(--kh-red-black);
}
.pc-article-body > * + * { margin-top: 18px; }
.pc-article-body p { margin: 0; }
.pc-article-body h2 {
    font-family: var(--kh-font-display);
    font-weight: 400;
    font-size: clamp(26px, 3vw, 34px);
    letter-spacing: -0.02em;
    margin-top: 44px !important;
    line-height: 1.15;
    color: var(--kh-red-black);
}
.pc-article-body h2::before {
    content: ''; display: inline-block;
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--article-accent);
    margin-right: 12px;
    vertical-align: middle;
    transform: translateY(-2px);
}
.pc-article-body h3 {
    font-family: var(--kh-font-strong);
    font-weight: 900;
    font-size: 20px;
    letter-spacing: -0.005em;
    margin-top: 30px !important;
    color: var(--kh-red-black);
}
.pc-article-body a {
    color: var(--article-accent);
    font-weight: 700;
    border-bottom: 1.5px solid rgba(163,25,37,.35);
    transition: border-color .15s ease;
}
.pc-article-body a:hover { border-bottom-color: var(--article-accent); }
.pc-article-body strong { font-weight: 800; color: var(--kh-red-black); }
.pc-article-body em { color: var(--article-accent); font-style: italic; font-weight: 500; }
.pc-article-body code {
    font-family: var(--kh-font-mono); font-size: .9em;
    background: var(--kh-n-100); color: var(--kh-red-deep);
    padding: 2px 6px; border-radius: 6px;
}
.pc-article-body ul {
    padding-left: 22px;
    list-style: none;
}
.pc-article-body ul li {
    position: relative;
    margin-top: 10px;
    padding-left: 10px;
}
.pc-article-body ul li::before {
    content: ''; position: absolute;
    left: -16px; top: 12px;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--article-accent);
}
.pc-article-body blockquote {
    margin: 28px 0 !important;
    padding: 20px 24px;
    border-left: 4px solid var(--article-accent);
    background: var(--kh-cream);
    border-radius: 0 14px 14px 0;
    font-family: var(--kh-font-display);
    font-weight: 400;
    font-size: 20px;
    line-height: 1.4;
    color: var(--kh-red-black);
    letter-spacing: -0.005em;
}
.pc-article-body img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: var(--kh-r-lg);
    margin: 28px 0 !important;
    box-shadow: 0 10px 30px rgba(56,15,16,.12);
}

/* Skeleton loader */
.pc-article-skeleton { display: flex; flex-direction: column; gap: 14px; }
.pc-skel {
    background: linear-gradient(90deg, var(--kh-n-100) 0%, var(--kh-n-200) 50%, var(--kh-n-100) 100%);
    background-size: 200% 100%;
    animation: pc-shimmer 1.6s linear infinite;
    border-radius: 8px;
}
.pc-skel-line { height: 18px; }
.pc-skel-80 { width: 80%; } .pc-skel-100 { width: 100%; } .pc-skel-60 { width: 60%; } .pc-skel-90 { width: 92%; }
@keyframes pc-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Sidebar */
.pc-article-sidebar { position: sticky; top: 110px; }
.pc-share-card {
    background: var(--kh-cream);
    border: 1px solid var(--kh-n-200);
    border-radius: var(--kh-r-lg);
    padding: 22px;
    position: relative;
    overflow: hidden;
}
.pc-share-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--article-accent);
}
.pc-share-label {
    font-family: var(--kh-font-mono);
    font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--kh-n-500);
    margin-bottom: 14px;
}
.pc-share-buttons { display: flex; flex-direction: column; gap: 8px; }
.pc-share-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    background: white;
    border: 1.5px solid var(--kh-n-200);
    border-radius: 10px;
    font-family: var(--kh-font-body);
    font-weight: 700; font-size: 14px;
    color: var(--kh-red-black);
    cursor: pointer;
    transition: all var(--kh-t-fast);
    width: 100%;
}
.pc-share-btn:hover {
    border-color: var(--article-accent);
    color: var(--article-accent);
    transform: translateX(2px);
}
.pc-share-btn svg { flex-shrink: 0; }
.pc-cat-mascot {
    position: absolute;
    bottom: -10px; right: -10px;
    width: 70px; height: 70px;
    opacity: 0.12;
    pointer-events: none;
}
.pc-cat-mascot img { width: 100%; height: auto; }

/* Related section (reuses .kh-news-grid + .kh-news-card) */
.pc-article-related { background: var(--kh-cream); padding-top: 60px; padding-bottom: 60px; }

/* =====================================================================
   NEWS LISTING (/noticias) — uses same news-card grid
   ===================================================================== */
.pc-news-page { padding: 140px 0 80px; min-height: 70vh; }
.pc-news-hero {
    padding: 0;
    margin-bottom: 48px;
}

/* =====================================================================
   ADMIN — NEWS TAB
   ===================================================================== */
.kh-news-admin-table {
    display: flex; flex-direction: column; gap: 14px;
}
.kh-news-admin-row {
    --accent: var(--kh-red);
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 20px;
    padding: 16px;
    background: white;
    border: 1px solid var(--kh-n-200);
    border-left: 4px solid var(--accent);
    border-radius: 14px;
    transition: box-shadow var(--kh-t-fast), transform var(--kh-t-fast);
}
.kh-news-admin-row:hover {
    box-shadow: var(--kh-shadow-md);
    transform: translateX(2px);
}
.kh-news-admin-thumb {
    width: 120px; height: 90px;
    border-radius: 10px;
    background: var(--kh-n-100);
    display: grid; place-items: center;
    overflow: hidden;
}
.kh-news-admin-thumb img { width: 100%; height: 100%; object-fit: cover; }
.kh-news-admin-noimg { font-size: 28px; opacity: 0.4; }
.kh-news-admin-body { min-width: 0; }
.kh-news-admin-meta {
    display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
    margin-bottom: 6px;
}
.kh-news-admin-category {
    display: inline-flex;
    padding: 3px 10px; border-radius: 999px;
    background: rgba(163,25,37,.08);
    color: var(--accent);
    font-family: var(--kh-font-body);
    font-size: 11px; font-weight: 800; letter-spacing: 0.06em;
    text-transform: uppercase;
}
.kh-news-admin-date {
    font-family: var(--kh-font-mono);
    font-size: 11px; letter-spacing: 0.1em;
    color: var(--kh-n-500); text-transform: uppercase;
}
.kh-news-admin-draft {
    padding: 3px 10px; border-radius: 999px;
    background: rgba(238,194,74,.2);
    color: #8A6A1F;
    font-size: 11px; font-weight: 800; letter-spacing: 0.06em;
    text-transform: uppercase;
}
.kh-news-admin-title {
    font-family: var(--kh-font-strong);
    font-weight: 900;
    font-size: 17px;
    line-height: 1.25;
    margin: 2px 0 4px;
    color: var(--kh-red-black);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.kh-news-admin-excerpt {
    font-size: 13px;
    color: var(--kh-n-700);
    line-height: 1.5;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.kh-news-admin-slug {
    font-family: var(--kh-font-mono);
    font-size: 11px;
    color: var(--kh-n-500);
}
.kh-news-admin-actions {
    display: flex; align-items: center; gap: 6px;
    flex-wrap: wrap;
    align-self: center;
}
@media (max-width: 760px) {
    .kh-news-admin-row { grid-template-columns: 90px 1fr; }
    .kh-news-admin-thumb { width: 90px; height: 70px; }
    .kh-news-admin-actions {
        grid-column: 1 / -1;
        padding-top: 8px;
        border-top: 1px solid var(--kh-n-100);
        justify-content: flex-end;
    }
}

/* Category card with caja.png background illustration (Importaciones) */
.pc-card-caja { position: relative; overflow: hidden; }
.pc-card-caja-bg {
    position: absolute;
    right: -10px; bottom: -14px;
    width: 130px; height: auto;
    opacity: .16;
    pointer-events: none;
    transition: opacity var(--kh-t-normal), transform var(--kh-t-normal);
    filter: drop-shadow(0 8px 16px rgba(56,15,16,.15));
    z-index: 0;
}
.pc-card-caja:hover .pc-card-caja-bg {
    opacity: 0.32;
    transform: scale(1.08) rotate(-4deg);
}
.pc-card-caja > *:not(.pc-card-caja-bg) { position: relative; z-index: 1; }


/* =====================================================================
   v2 — E-COMMERCE LIFT (May 2026)
   Promo ticker bar + trust strip + hero mascot video + new type icons.
   Asset path: /kame/assets/v2/{anim,illos,types}/
   ===================================================================== */

/* ---------- Promo ticker bar (top of every page) ---------- */
.kh-promobar {
    background: var(--kh-red-black);
    color: #FAFAF9;
    overflow: hidden;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: calc(var(--kh-z-nav, 100) + 1);
    border-bottom: 1px solid rgba(255,255,255,.06);
    font-family: var(--kh-font-mono, 'JetBrains Mono', monospace);
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    height: 34px;
    display: flex;
    align-items: center;
}
/* push the fixed nav below the promobar */
.kame-body .kh-nav { top: 34px; }
@media (max-width: 640px) {
    .kame-body .kh-nav { top: 30px; }
}
.kh-promobar-track {
    display: inline-flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    animation: kh-promo-marquee 42s linear infinite;
    will-change: transform;
}
.kh-promobar-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 28px;
    color: rgba(255,255,255,.86);
}
.kh-promobar-dot {
    display: inline-block;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--kh-red-bright);
    box-shadow: 0 0 0 3px rgba(190,22,34,.18);
}
.kh-promobar:hover .kh-promobar-track { animation-play-state: paused; }
@keyframes kh-promo-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .kh-promobar-track { animation: none; }
}
@media (max-width: 640px) {
    .kh-promobar { height: 30px; font-size: 10px; }
    .kh-promobar-item { padding: 0 18px; }
}

/* ---------- Hero mascot (replaces pc-cardstack) ---------- */
.pc-hero-mascot {
    position: relative;
    width: 100%;
    max-width: 540px;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    margin-inline: auto;
}
.pc-hero-mascot-video,
.pc-hero-mascot-fallback {
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 28px;
    /* the WebM has transparent bg from After Effects rigging; if not, the red hero blends */
    mix-blend-mode: normal;
    filter: drop-shadow(0 32px 60px rgba(56,15,16,.45)) drop-shadow(0 8px 16px rgba(0,0,0,.25));
    z-index: 2;
}
.pc-hero-mascot-fallback {
    /* fallback only shown when video is unsupported / fails */
    display: none;
}
.pc-hero-mascot:not(:has(video)) .pc-hero-mascot-fallback,
.pc-hero-mascot video[poster]:not([src])  ~ .pc-hero-mascot-fallback {
    display: block;
}
.pc-hero-mascot-glow {
    grid-area: 1 / 1;
    width: 86%; height: 86%;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, rgba(245,176,180,.55) 0%, rgba(245,176,180,.18) 35%, transparent 70%);
    filter: blur(36px);
    z-index: 1;
    animation: pc-mascot-pulse 7s ease-in-out infinite;
}
@keyframes pc-mascot-pulse {
    0%, 100% { transform: scale(1); opacity: .8; }
    50%      { transform: scale(1.08); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .pc-hero-mascot-glow { animation: none; }
    .pc-hero-mascot-video { display: none; }
    .pc-hero-mascot-fallback { display: block; }
}
@media (max-width: 960px) {
    .pc-hero-mascot { max-width: 380px; }
}

/* ---------- Hero rating badge (zardocards-style social proof) ---------- */
.kh-hero-rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 22px;
    padding: 8px 14px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 13px;
    color: rgba(255,255,255,.95);
    letter-spacing: .01em;
}
.kh-hero-rating strong { font-weight: 700; color: #FFD24A; }
.kh-hero-rating-meta { color: rgba(255,255,255,.72); font-size: 12px; }
.kh-hero-stars { display: inline-flex; align-items: center; gap: 1px; }
.kh-hero-stars svg { display: block; }

/* ---------- Trust strip (under hero) ---------- */
.kh-trust-strip {
    background: var(--kh-cream);
    border-bottom: 1px solid var(--kh-border-soft);
    padding: 28px 0;
    position: relative;
    z-index: 2;
}
.kh-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.kh-trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: white;
    border: 1px solid var(--kh-border);
    border-radius: 14px;
    transition: transform var(--kh-t-fast, 160ms ease),
                box-shadow var(--kh-t-fast, 160ms ease),
                border-color var(--kh-t-fast, 160ms ease);
}
.kh-trust-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -16px rgba(56,15,16,.18);
    border-color: rgba(163,25,37,.22);
}
.kh-trust-icon {
    flex: 0 0 44px;
    width: 44px; height: 44px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, rgba(163,25,37,.08), rgba(163,25,37,.02));
    border-radius: 12px;
    color: var(--kh-red);
}
.kh-trust-icon img { width: 26px; height: 26px; object-fit: contain; }
.kh-trust-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kh-trust-text strong {
    font-family: var(--kh-font-display, 'Aveton', system-ui);
    font-size: 14px;
    font-weight: 700;
    color: var(--kh-n-900);
    letter-spacing: -0.005em;
    line-height: 1.2;
}
.kh-trust-text span {
    font-size: 12px;
    color: var(--kh-n-700);
    line-height: 1.35;
}
@media (max-width: 960px) {
    .kh-trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
    .kh-trust-grid { grid-template-columns: 1fr; }
    .kh-trust-strip { padding: 20px 0; }
}

/* ---------- New type-strip badges (replaces icon{N}.png) ---------- */
.pc-type-badge.pc-type-badge-v2 {
    background: white;
    border: 1.5px solid rgba(56,15,16,.08);
    box-shadow: 0 4px 14px -8px rgba(56,15,16,.18);
}
.pc-type-badge.pc-type-badge-v2 .pc-icon {
    width: 42px;
    height: 42px;
    object-fit: contain;
    /* the new type SVGs are colored — let them show natural */
    filter: none;
}
.pc-type-badge.pc-type-badge-v2:hover {
    transform: translateY(-3px) rotate(-4deg) scale(1.04);
    border-color: rgba(163,25,37,.22);
    box-shadow: 0 10px 22px -10px rgba(163,25,37,.35);
}

/* =====================================================================
   v2 — SCROLL STORYTELLING SCENES
   Full-width transitions between sections. Each scene shows the
   designer's section pose (Sections/01-04.svg) with a short caption.
   ===================================================================== */
.kh-scene {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 64px 24px;
    display: grid;
    place-items: center;
    /* alternating cream / white tones so scenes feel like punctuation */
    background: linear-gradient(180deg, var(--kh-cream) 0%, var(--kh-white) 100%);
    border-block: 1px solid var(--kh-border-soft);
}
.kh-scene-02 { background: linear-gradient(180deg, var(--kh-white) 0%, var(--kh-cream) 100%); }
.kh-scene-03 { background: linear-gradient(180deg, var(--kh-cream) 0%, #FFF6F1 100%); }
.kh-scene-04 {
    /* leads into the dark why-us section — soften with a warm gradient */
    background: linear-gradient(180deg, var(--kh-white) 0%, #F4ECEC 100%);
    border-bottom: none;
}

/* subtle decorative pokeball watermark per scene */
.kh-scene::before {
    content: "";
    position: absolute;
    inset: auto -8% -50% auto;
    width: 420px; height: 420px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, rgba(163,25,37,.08) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.kh-scene-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 40px;
    max-width: 1100px;
    width: 100%;
}

.kh-scene-num {
    font-family: var(--kh-font-mono, 'JetBrains Mono', monospace);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--kh-red);
    justify-self: end;
    text-align: right;
    white-space: nowrap;
    position: relative;
    padding-right: 24px;
    opacity: 0;
    transform: translateX(-12px);
    transition: opacity 800ms ease 200ms, transform 800ms ease 200ms;
}
.kh-scene-num::after {
    content: "";
    position: absolute;
    right: 0; top: 50%;
    width: 12px; height: 1px;
    background: var(--kh-red);
}

.kh-scene-cat {
    width: clamp(180px, 22vw, 280px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 18px 28px rgba(56,15,16,.18));
    opacity: 0;
    /* transform is owned by JS parallax — CSS only fades opacity */
    transition: opacity 900ms cubic-bezier(.2, .8, .2, 1);
    will-change: transform, opacity;
}

.kh-scene-caption {
    font-family: var(--kh-font-display, 'Aveton', system-ui);
    font-size: clamp(22px, 3.4vw, 38px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.015em;
    color: var(--kh-n-900);
    margin: 0;
    justify-self: start;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 900ms ease 350ms, transform 900ms ease 350ms;
}
.kh-scene-caption br { display: block; }

/* Reveal — triggered by IntersectionObserver via .is-in */
.kh-scene.is-in .kh-scene-num,
.kh-scene.is-in .kh-scene-caption {
    opacity: 1;
    transform: none;
}
.kh-scene.is-in .kh-scene-cat { opacity: 1; }

/* Honour reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .kh-scene-num, .kh-scene-cat, .kh-scene-caption {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Mobile: stack the three columns */
@media (max-width: 760px) {
    .kh-scene { padding: 48px 20px; }
    .kh-scene-inner {
        grid-template-columns: 1fr;
        gap: 16px;
        text-align: center;
    }
    .kh-scene-num { justify-self: center; padding-right: 0; }
    .kh-scene-num::after { display: none; }
    .kh-scene-caption { justify-self: center; }
    .kh-scene-cat { width: clamp(160px, 50vw, 220px); margin-inline: auto; }
}
/* =====================================================================
   v2 — E-COMMERCE FULL REWRITE (May 2026 · final delivery)
   Replaces the manifesto-heavy landing with a zardocards-style storefront.
   ===================================================================== */

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Kill the buggy fallback img (video has its own poster) */
.pc-hero-mascot-fallback { display: none !important; }

/* ---------- SHOP HERO (compacto, banner-style) ---------- */
.kh-hero.kh-hero-shop {
    min-height: 0;
    padding: 170px 0 80px;
}
.kh-hero-shop .kh-hero-bottom-fade { height: 80px; }

.kh-hero-shop-grid {
    position: relative; z-index: 2;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
    gap: 60px;
    width: 100%;
}
.kh-hero-shop-text { text-align: left; }

.kh-hero-shop-title {
    font-family: var(--kh-font-display, 'Aveton', system-ui);
    font-size: clamp(40px, 6.4vw, 76px);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.025em;
    color: white;
    margin: 14px 0 18px;
}
.kh-hero-shop-title span { color: #F5B0B4; display: inline-block; }

.kh-hero-shop-sub {
    font-size: clamp(15px, 1.4vw, 18px);
    color: rgba(255,255,255,.84);
    max-width: 520px;
    line-height: 1.55;
    margin-bottom: 18px;
}

.kh-hero-quicklinks {
    list-style: none; padding: 0; margin: 24px 0 0;
    display: flex; flex-wrap: wrap; gap: 8px 18px;
    font-family: var(--kh-font-mono, 'JetBrains Mono', monospace);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.kh-hero-quicklinks a {
    color: rgba(255,255,255,.72);
    text-decoration: none;
    padding: 6px 0;
    border-bottom: 1px solid transparent;
    transition: color 200ms ease, border-color 200ms ease;
}
.kh-hero-quicklinks a:hover { color: white; border-color: rgba(255,255,255,.6); }

.kh-btn-ghost-light {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255,255,255,.4);
}
.kh-btn-ghost-light:hover {
    background: rgba(255,255,255,.1);
    border-color: white;
    color: white;
}

.kh-hero-shop-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.pc-hero-mascot.pc-hero-mascot-shop {
    max-width: 460px;
    aspect-ratio: 1 / 1;
}
.pc-hero-mascot.pc-hero-mascot-shop .pc-hero-mascot-video {
    border-radius: 24px;
    filter: drop-shadow(0 28px 50px rgba(56,15,16,.5));
}

@media (max-width: 960px) {
    .kh-hero.kh-hero-shop { padding: 150px 0 60px; }
    .kh-hero-shop-grid { grid-template-columns: 1fr; gap: 32px; }
    .kh-hero-shop-text { text-align: center; }
    .kh-hero-shop-sub { margin-inline: auto; }
    .kh-hero-quicklinks { justify-content: center; }
    .kh-hero-shop-visual { order: -1; }
    .pc-hero-mascot.pc-hero-mascot-shop { max-width: 320px; }
    .kh-hero-rating { margin-inline: auto; }
    .kh-hero-cta { justify-content: center; }
}

/* ---------- SHOP section frame ---------- */
.kh-shop-section {
    padding: 60px 0;
    position: relative;
}
.kh-shop-section-cream { background: var(--kh-cream); }

.kh-shop-section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}
.kh-shop-eyebrow {
    display: inline-block;
    font-family: var(--kh-font-mono, 'JetBrains Mono', monospace);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--kh-red);
    margin-bottom: 6px;
}
.kh-shop-section-title {
    font-family: var(--kh-font-display, 'Aveton', system-ui);
    font-size: clamp(26px, 3.2vw, 40px);
    font-weight: 400;
    color: var(--kh-n-900);
    margin: 0;
    line-height: 1.05;
    letter-spacing: -0.02em;
}
.kh-shop-section-link {
    font-family: var(--kh-font-mono, 'JetBrains Mono', monospace);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--kh-n-700);
    text-decoration: none;
    border-bottom: 1px solid var(--kh-n-200);
    padding-bottom: 4px;
    transition: color 200ms ease, border-color 200ms ease;
}
.kh-shop-section-link:hover { color: var(--kh-red); border-color: var(--kh-red); }

/* ---------- CATEGORY PILLS ---------- */
.kh-shop-categories { padding: 32px 0 0; }
.kh-pill-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
}
.kh-pill-row::-webkit-scrollbar { height: 4px; }
.kh-pill-row::-webkit-scrollbar-thumb { background: var(--kh-n-200); border-radius: 4px; }
.kh-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: white;
    border: 1.5px solid var(--kh-border);
    border-radius: 999px;
    font-family: var(--kh-font-mono, 'JetBrains Mono', monospace);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--kh-n-900);
    text-decoration: none;
    white-space: nowrap;
    transition: all 200ms ease;
    flex: 0 0 auto;
}
.kh-pill img { width: 22px; height: 22px; object-fit: contain; }
.kh-pill:hover {
    background: var(--kh-red);
    color: white;
    border-color: var(--kh-red);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -10px rgba(163,25,37,.4);
}

/* ---------- PRODUCT GRID (shop variant: tighter, 4-col) ---------- */
.kh-product-grid.kh-product-grid-shop {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 1100px) { .kh-product-grid.kh-product-grid-shop { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .kh-product-grid.kh-product-grid-shop { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 420px)  { .kh-product-grid.kh-product-grid-shop { grid-template-columns: 1fr; } }

/* ---------- BENTO COLLECTIONS ---------- */
.kh-bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 16px;
}
.kh-bento-tile {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: var(--tile-color, var(--kh-red));
    color: white;
    text-decoration: none;
    isolation: isolate;
    transition: transform 280ms cubic-bezier(.2,.8,.2,1), box-shadow 280ms ease;
    box-shadow: 0 8px 22px -10px rgba(56,15,16,.25);
}
.kh-bento-tile-lg {
    grid-column: span 2;
    grid-row: span 2;
}
.kh-bento-tile-bg {
    position: absolute; inset: 0;
    background-size: 70% auto;
    background-position: 110% 110%;
    background-repeat: no-repeat;
    opacity: .45;
    z-index: 0;
    transition: transform 600ms cubic-bezier(.2,.8,.2,1), opacity 400ms ease;
}
.kh-bento-tile::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,.35) 0%, transparent 50%, rgba(0,0,0,.45) 100%);
    z-index: 0;
}
.kh-bento-tile-content {
    position: relative; z-index: 1;
    padding: 22px;
    display: flex; flex-direction: column;
    height: 100%;
    justify-content: flex-end;
}
.kh-bento-tile-eyebrow {
    font-family: var(--kh-font-mono, 'JetBrains Mono', monospace);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,.78);
    margin-bottom: 6px;
}
.kh-bento-tile h3 {
    font-family: var(--kh-font-display, 'Aveton', system-ui);
    font-size: clamp(20px, 2.4vw, 30px);
    font-weight: 400;
    margin: 0 0 6px;
    letter-spacing: -0.015em;
    line-height: 1.05;
}
.kh-bento-tile-lg h3 { font-size: clamp(28px, 3.4vw, 44px); }
.kh-bento-tile p {
    margin: 0 0 14px;
    font-size: 13px;
    color: rgba(255,255,255,.85);
    line-height: 1.4;
}
.kh-bento-tile-cta {
    display: inline-block;
    align-self: flex-start;
    font-family: var(--kh-font-mono, 'JetBrains Mono', monospace);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 8px 14px;
    border: 1.5px solid rgba(255,255,255,.4);
    border-radius: 999px;
    transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}
.kh-bento-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px -14px rgba(56,15,16,.4);
}
.kh-bento-tile:hover .kh-bento-tile-bg {
    transform: scale(1.06) rotate(-2deg);
    opacity: .55;
}
.kh-bento-tile:hover .kh-bento-tile-cta {
    background: white;
    color: var(--tile-color, var(--kh-red));
    border-color: white;
}
@media (max-width: 900px) {
    .kh-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
    .kh-bento-tile-lg { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 520px) {
    .kh-bento { grid-template-columns: 1fr; grid-auto-rows: 160px; }
    .kh-bento-tile-lg { grid-column: span 1; }
}

/* ---------- IMPORT BANNER ---------- */
.kh-import-banner {
    display: grid;
    grid-template-columns: 1.4fr .8fr;
    align-items: center;
    gap: 32px;
    padding: 44px 48px;
    background:
        radial-gradient(ellipse at 100% 100%, rgba(154,214,241,.4) 0%, transparent 60%),
        linear-gradient(135deg, var(--kh-alt-dive-d) 0%, var(--kh-alt-dive-xd) 100%);
    border-radius: 24px;
    color: white;
    text-decoration: none;
    overflow: hidden;
    position: relative;
    transition: transform 300ms ease;
}
.kh-import-banner:hover { transform: translateY(-3px); }
.kh-import-banner-text { position: relative; z-index: 1; }
.kh-import-banner-text .kh-shop-eyebrow { color: #B7E5F8; }
.kh-import-banner-text h2 {
    font-family: var(--kh-font-display, 'Aveton', system-ui);
    font-size: clamp(28px, 3.4vw, 44px);
    font-weight: 400;
    margin: 4px 0 10px;
    line-height: 1.05;
    letter-spacing: -0.02em;
}
.kh-import-banner-text p {
    color: rgba(255,255,255,.86);
    margin: 0 0 20px;
    line-height: 1.5;
    max-width: 480px;
}
.kh-import-banner-text .kh-btn-primary {
    background: white;
    color: var(--kh-alt-dive-xd);
}
.kh-import-banner-art {
    display: flex; justify-content: center; align-items: center;
}
.kh-import-banner-art img {
    width: 100%;
    max-width: 240px;
    filter: drop-shadow(0 18px 28px rgba(0,0,0,.35));
    transform: rotate(-6deg);
    transition: transform 600ms cubic-bezier(.2,.8,.2,1);
}
.kh-import-banner:hover .kh-import-banner-art img { transform: rotate(-10deg) translateY(-6px); }
@media (max-width: 760px) {
    .kh-import-banner { grid-template-columns: 1fr; padding: 32px 24px; gap: 16px; text-align: center; }
    .kh-import-banner-text p { margin-inline: auto; }
    .kh-import-banner-art { order: -1; }
    .kh-import-banner-art img { max-width: 160px; }
}

/* ---------- TESTIMONIALS ---------- */
.kh-testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 32px;
}
@media (max-width: 900px) {
    .kh-testimonials { grid-template-columns: 1fr; }
}
.kh-testimonial {
    background: white;
    border: 1px solid var(--kh-border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}
.kh-testimonial:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 32px -16px rgba(56,15,16,.18);
    border-color: rgba(163,25,37,.18);
}
.kh-testimonial-stars { display: inline-flex; gap: 2px; }
.kh-testimonial-stars svg { display: block; }
.kh-testimonial-quote {
    font-family: var(--kh-font-display, 'Aveton', system-ui);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.45;
    color: var(--kh-n-900);
    margin: 0;
    letter-spacing: -0.005em;
}
.kh-testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--kh-n-100);
}
.kh-testimonial-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--kh-red) 0%, var(--kh-red-deep) 100%);
    color: white;
    display: grid; place-items: center;
    font-family: var(--kh-font-display, 'Aveton', system-ui);
    font-size: 18px;
    font-weight: 700;
}
.kh-testimonial-author strong {
    display: block;
    font-size: 14px;
    color: var(--kh-n-900);
    line-height: 1.2;
}
.kh-testimonial-author span {
    font-size: 12px;
    color: var(--kh-n-500);
}

/* ---------- NEWSLETTER ---------- */
.kh-newsletter {
    background: linear-gradient(135deg, var(--kh-red-deep) 0%, var(--kh-red-black) 100%);
    color: white;
    padding: 64px 0;
    position: relative;
    overflow: hidden;
}
.kh-newsletter::before {
    content: "";
    position: absolute;
    inset: -100px auto auto -100px;
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(245,176,180,.3) 0%, transparent 70%);
    pointer-events: none;
}
.kh-newsletter::after {
    content: "";
    position: absolute;
    inset: auto -100px -100px auto;
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(154,214,241,.18) 0%, transparent 70%);
    pointer-events: none;
}
.kh-newsletter-inner {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 40px;
}
.kh-newsletter-text h2 {
    font-family: var(--kh-font-display, 'Aveton', system-ui);
    font-size: clamp(26px, 3.4vw, 40px);
    font-weight: 400;
    margin: 4px 0 12px;
    letter-spacing: -0.02em;
    line-height: 1.05;
}
.kh-newsletter-text p {
    color: rgba(255,255,255,.78);
    margin: 0;
    line-height: 1.5;
    max-width: 480px;
}
.kh-newsletter-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.kh-newsletter-form input[type="email"] {
    flex: 1 1 240px;
    background: rgba(255,255,255,.08);
    border: 1.5px solid rgba(255,255,255,.16);
    border-radius: 999px;
    padding: 14px 22px;
    color: white;
    font-size: 15px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    outline: none;
    transition: border-color 200ms ease, background 200ms ease;
}
.kh-newsletter-form input[type="email"]:focus {
    border-color: rgba(255,255,255,.5);
    background: rgba(255,255,255,.14);
}
.kh-newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,.5); }
.kh-newsletter-form .kh-btn { flex: 0 0 auto; }
.kh-newsletter-note {
    grid-column: 1 / -1;
    margin: 12px 0 0;
    font-size: 13px;
    color: rgba(255,255,255,.85);
    min-height: 18px;
}
@media (max-width: 800px) {
    .kh-newsletter { padding: 48px 0; }
    .kh-newsletter-inner { grid-template-columns: 1fr; gap: 24px; text-align: center; }
    .kh-newsletter-text p { margin-inline: auto; }
    .kh-newsletter-form { justify-content: center; }
}

/* ---------- MEGAMENU ---------- */
.kh-nav-megaitem { position: relative; }
.kh-nav-caret { font-size: 10px; opacity: .6; margin-left: 2px; }
.kh-megamenu {
    position: absolute;
    top: 100%; left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 560px;
    background: white;
    border: 1px solid var(--kh-border);
    border-radius: 16px;
    box-shadow: 0 24px 40px -16px rgba(56,15,16,.25);
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease, transform 200ms ease;
    z-index: 1000;
}
.kh-nav-megaitem:hover .kh-megamenu,
.kh-nav-megaitem:focus-within .kh-megamenu {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.kh-megamenu-col h4 {
    font-family: var(--kh-font-mono, 'JetBrains Mono', monospace);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--kh-red);
    margin: 0 0 10px;
}
.kh-megamenu-col a {
    display: block;
    padding: 6px 0;
    font-size: 14px;
    color: var(--kh-n-900);
    text-decoration: none;
    transition: color 160ms ease, transform 160ms ease;
}
.kh-megamenu-col a:hover { color: var(--kh-red); transform: translateX(3px); }
@media (max-width: 980px) { .kh-megamenu { display: none; } }
/* =====================================================================
   v2 round 2 — Footer expansion, hero polish, micro-interactions
   ===================================================================== */

/* ---------- Footer payment / social additions ---------- */
.kh-footer-social {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.kh-footer-social a {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    color: rgba(255,255,255,.85);
    transition: background 200ms ease, border-color 200ms ease, color 200ms ease, transform 200ms ease;
}
.kh-footer-social a:hover {
    background: var(--kh-red);
    border-color: var(--kh-red);
    color: white;
    transform: translateY(-2px);
}
.kh-footer-loc {
    margin-top: 12px !important;
    color: rgba(255,255,255,.55) !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
}
.kh-footer-payments {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.kh-footer-payments-label {
    font-family: var(--kh-font-mono, 'JetBrains Mono', monospace);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255,255,255,.5);
}
.kh-footer-payments-icons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.kh-pay-chip {
    padding: 6px 14px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    font-family: var(--kh-font-mono, 'JetBrains Mono', monospace);
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,.85);
    letter-spacing: 0.04em;
}

/* ---------- Hero polish — bigger, cleaner mascot ---------- */
.pc-hero-mascot.pc-hero-mascot-shop {
    max-width: 520px;
}
.pc-hero-mascot-shop .pc-hero-mascot-glow {
    width: 95%; height: 95%;
}
.pc-hero-mascot-shop .pc-hero-mascot-video {
    /* Strengthen the drop shadow so the cat reads against the red bg */
    filter:
        drop-shadow(0 30px 50px rgba(0,0,0,.5))
        drop-shadow(0 0 24px rgba(245,176,180,.35));
}

/* Make the hero area slightly less aggressive — no oversized title */
.kh-hero.kh-hero-shop {
    padding: 144px 0 72px;
}
.kh-hero-shop .kh-hero-shop-title {
    font-size: clamp(38px, 5.6vw, 64px);
}

/* The hero bottom-fade was too tall and overlapping with the trust strip */
.kh-hero-shop .kh-hero-bottom-fade { height: 60px; }

/* ---------- Spacing — tighter rhythm between sections ---------- */
.kh-shop-section { padding: 64px 0; }
.kh-shop-section + .kh-shop-section { padding-top: 0; }
.kh-shop-categories { padding: 48px 0 16px; }
.kh-shop-categories + .kh-shop-section { padding-top: 24px; }

/* ---------- Product cards — tighter, hover lift ---------- */
.kh-product-grid-shop .kh-product-card {
    background: white;
    border: 1px solid var(--kh-border);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: var(--kh-n-900);
    display: flex; flex-direction: column;
    transition: transform 280ms cubic-bezier(.2,.8,.2,1),
                box-shadow 280ms ease,
                border-color 280ms ease;
    position: relative;
}
.kh-product-grid-shop .kh-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 40px -16px rgba(56,15,16,.22);
    border-color: rgba(163,25,37,.2);
}
.kh-product-grid-shop .kh-product-image {
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, var(--kh-n-100) 0%, var(--kh-cream) 100%);
    display: grid; place-items: center;
    overflow: hidden;
    position: relative;
}
.kh-product-grid-shop .kh-product-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 500ms cubic-bezier(.2,.8,.2,1);
}
.kh-product-grid-shop .kh-product-card:hover .kh-product-image img {
    transform: scale(1.04);
}
.kh-product-grid-shop .kh-product-image-placeholder {
    font-size: 56px;
    opacity: .25;
}
.kh-product-grid-shop .kh-product-body {
    padding: 14px 16px 16px;
    display: flex; flex-direction: column;
    gap: 6px;
}
.kh-product-grid-shop .kh-product-cat {
    font-family: var(--kh-font-mono, 'JetBrains Mono', monospace);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--kh-n-500);
}
.kh-product-grid-shop .kh-product-name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--kh-n-900);
    margin: 0;
    /* clamp to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
}
.kh-product-grid-shop .kh-product-stock {
    font-size: 11px;
    font-weight: 600;
    color: #2D7A3E;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.kh-product-grid-shop .kh-product-stock.low { color: #C68A1B; }
.kh-product-grid-shop .kh-product-stock.out { color: var(--kh-n-500); }
.kh-product-grid-shop .kh-product-price {
    font-family: var(--kh-font-display, 'Aveton', system-ui);
    font-size: 20px;
    font-weight: 700;
    color: var(--kh-n-900);
    margin-top: 2px;
}
.kh-product-grid-shop .kh-product-price-old {
    font-family: inherit;
    font-size: 13px;
    color: var(--kh-n-500);
    text-decoration: line-through;
    margin-left: 8px;
    font-weight: 500;
}
.kh-product-grid-shop .kh-badge {
    position: absolute;
    top: 10px; left: 10px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: 6px;
    font-family: var(--kh-font-mono, 'JetBrains Mono', monospace);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}
.kh-product-grid-shop .kh-badge-sale     { background: #FFD24A; color: #4A3500; }
.kh-product-grid-shop .kh-badge-featured { background: var(--kh-red); color: white; }
.kh-product-grid-shop .kh-badge-new      { background: #2D7A3E; color: white; }
.kh-product-grid-shop .kh-badge-out      { background: var(--kh-n-500); color: white; }

/* ---------- Bento — tighter image cropping ---------- */
.kh-bento-tile-bg {
    background-size: 60% auto;
    background-position: 105% 105%;
    opacity: .35;
}

/* ---------- Pill row — better margin under hero ---------- */
.kh-shop-categories .kh-shop-section-head {
    margin-bottom: 18px;
}

@media (max-width: 760px) {
    .kh-footer-payments { gap: 10px; }
    .kh-pay-chip { font-size: 10px; padding: 4px 10px; }
}

/* v2 round 2b — Cap news grid to 3 cols and constrain media height */
.kh-shop-section .kh-news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 100%;
}
@media (max-width: 900px) {
    .kh-shop-section .kh-news-grid { grid-template-columns: 1fr; }
}
.kh-shop-section .kh-news-card { max-width: none; }
.kh-shop-section .kh-news-media { aspect-ratio: 16/10; }
/* =====================================================================
   v2 round 3 — Search modal, hero polish, micro-detail tightening
   ===================================================================== */

/* ---------- SEARCH MODAL ---------- */
.kh-search-modal {
    position: fixed;
    inset: 0;
    z-index: calc(var(--kh-z-nav, 100) + 100);
    opacity: 0;
    pointer-events: none;
    transition: opacity 250ms cubic-bezier(.2,.8,.2,1);
}
.kh-search-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}
.kh-search-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(56, 15, 16, .55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.kh-search-modal-panel {
    position: relative;
    max-width: 720px;
    margin: 12vh auto 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 32px 80px -24px rgba(56,15,16,.4);
    overflow: hidden;
    transform: translateY(-20px);
    transition: transform 280ms cubic-bezier(.2,.8,.2,1);
}
.kh-search-modal.is-open .kh-search-modal-panel {
    transform: translateY(0);
}
.kh-search-form {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--kh-n-100);
}
.kh-search-form svg {
    flex: 0 0 auto;
    color: var(--kh-n-700);
}
.kh-search-form input[type="search"] {
    flex: 1;
    border: 0;
    background: transparent;
    font-size: 18px;
    font-family: inherit;
    color: var(--kh-n-900);
    outline: 0;
    padding: 4px 0;
}
.kh-search-form input[type="search"]::placeholder { color: var(--kh-n-500); }
.kh-search-form input[type="search"]::-webkit-search-cancel-button { display: none; }
.kh-search-close {
    flex: 0 0 auto;
    width: 32px; height: 32px;
    display: grid; place-items: center;
    border: 0;
    background: var(--kh-n-100);
    color: var(--kh-n-700);
    border-radius: 50%;
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: background 200ms ease, color 200ms ease;
}
.kh-search-close:hover {
    background: var(--kh-red);
    color: white;
}
.kh-search-suggestions {
    padding: 18px 24px 22px;
    background: var(--kh-cream);
}
.kh-search-suggestions-label {
    font-family: var(--kh-font-mono, 'JetBrains Mono', monospace);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--kh-n-500);
    margin: 0 0 10px;
}
.kh-search-suggestions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.kh-search-suggestions-row a {
    display: inline-block;
    padding: 7px 14px;
    background: white;
    border: 1px solid var(--kh-border);
    border-radius: 999px;
    font-size: 13px;
    color: var(--kh-n-900);
    text-decoration: none;
    transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.kh-search-suggestions-row a:hover {
    background: var(--kh-red);
    color: white;
    border-color: var(--kh-red);
    transform: translateY(-1px);
}

/* ---------- Hero — tighten further ---------- */
.kh-hero.kh-hero-shop { padding: 134px 0 64px; min-height: 0; }
.kh-hero.kh-hero-shop .kh-hero-shop-grid { gap: 48px; }

@media (max-width: 960px) {
    .kh-hero.kh-hero-shop { padding: 130px 0 48px; }
}

/* ---------- Newsletter — tighter form alignment ---------- */
.kh-newsletter { padding: 56px 0; }
.kh-newsletter-inner { gap: 32px; }
.kh-newsletter-form { align-items: center; }

/* ---------- News card hover — refine ---------- */
.kh-shop-section .kh-news-card {
    border-radius: 16px;
    overflow: hidden;
    background: white;
    border: 1px solid var(--kh-border);
    text-decoration: none;
    color: inherit;
    display: flex; flex-direction: column;
    transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
}
.kh-shop-section .kh-news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 32px -16px rgba(56,15,16,.18);
    border-color: var(--news-accent, var(--kh-red));
}

/* ---------- Tighten section padding when 2 .kh-shop-section follow ---------- */
.kh-shop-section { padding-top: 56px; padding-bottom: 56px; }

/* ---------- Pill spacing fix — title above and pills under ---------- */
.kh-shop-categories .kh-shop-section-head { align-items: center; }
.kh-shop-categories .kh-shop-section-title { font-size: clamp(22px, 2.6vw, 30px); }
/* =====================================================================
   v2 round 4 — STORE HERO CAROUSEL + Free shipping chip
   First impression = TIENDA: carousel of promotional slides + product
   row immediately under, no branding-heavy hero.
   ===================================================================== */

/* ---------- Store hero carousel ---------- */
.kh-storehero {
    position: relative;
    /* Clear the fixed promobar (34px) + nav (~76px). Compact hero. */
    margin-top: 110px;
    overflow: hidden;
    background: var(--kh-cream);
    isolation: isolate;
}
.kh-storehero-viewport {
    overflow: hidden;
    position: relative;
}
.kh-storehero-track {
    display: flex;
    transition: transform 700ms cubic-bezier(.2, .8, .2, 1);
    will-change: transform;
}
.kh-storehero-slide {
    flex: 0 0 100%;
    min-width: 0;
    position: relative;
    color: white;
    padding: 56px 0;
    overflow: hidden;
}
.kh-storehero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr .85fr;
    align-items: center;
    gap: 40px;
    min-height: 380px;
}
.kh-storehero-text { max-width: 560px; }
.kh-storehero-eyebrow {
    display: inline-block;
    font-family: var(--kh-font-mono, 'JetBrains Mono', monospace);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    background: rgba(255,255,255,.16);
    padding: 6px 14px;
    border-radius: 999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.18);
    margin-bottom: 16px;
}
.kh-storehero-text h2 {
    font-family: var(--kh-font-display, 'Aveton', system-ui);
    font-size: clamp(38px, 5.6vw, 68px);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.025em;
    margin: 0 0 16px;
    color: white;
}
.kh-storehero-highlight { color: #FFD24A; }
.kh-shs-3 .kh-storehero-highlight { color: #FFE08A; }
.kh-shs-4 .kh-storehero-highlight { color: #C7B0FF; }
.kh-storehero-text p {
    font-size: clamp(15px, 1.3vw, 17px);
    color: rgba(255,255,255,.86);
    line-height: 1.5;
    margin: 0 0 24px;
    max-width: 520px;
}
.kh-storehero-cta {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.kh-storehero-cta .kh-btn-primary {
    background: white;
    color: var(--kh-red-black);
    box-shadow: 0 14px 32px -12px rgba(0,0,0,.5);
}
.kh-storehero-cta .kh-btn-primary:hover {
    background: var(--kh-cream);
    color: var(--kh-red-black);
    transform: translateY(-2px);
}
.kh-storehero-link {
    color: rgba(255,255,255,.85);
    text-decoration: none;
    font-family: var(--kh-font-mono, 'JetBrains Mono', monospace);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-bottom: 1px solid rgba(255,255,255,.4);
    padding-bottom: 4px;
    transition: color 200ms ease, border-color 200ms ease;
}
.kh-storehero-link:hover { color: white; border-color: white; }

/* Slide-specific gradient backgrounds */
.kh-shs-1 {
    background:
        radial-gradient(ellipse at 90% 110%, rgba(255,210,74,.25) 0%, transparent 60%),
        linear-gradient(135deg, var(--kh-red) 0%, var(--kh-red-deep) 65%, var(--kh-red-black) 100%);
}
.kh-shs-2 {
    background:
        radial-gradient(ellipse at 0% 0%, rgba(255,224,138,.32) 0%, transparent 55%),
        linear-gradient(135deg, #6B2D14 0%, #3F1808 100%);
}
.kh-shs-3 {
    background:
        radial-gradient(ellipse at 100% 0%, rgba(154,214,241,.4) 0%, transparent 55%),
        linear-gradient(135deg, var(--kh-alt-dive-d) 0%, var(--kh-alt-dive-xd) 100%);
}
.kh-shs-4 {
    background:
        radial-gradient(ellipse at 100% 100%, rgba(199,176,255,.3) 0%, transparent 55%),
        linear-gradient(135deg, var(--kh-alt-master) 0%, var(--kh-alt-master-xd) 100%);
}

/* Subtle dot pattern overlay on each slide */
.kh-storehero-slide::after {
    content: "";
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1.4px);
    background-size: 22px 22px;
    pointer-events: none;
    opacity: .55;
    z-index: 0;
}

/* Hero ART column — visual */
.kh-storehero-art {
    position: relative;
    height: 100%;
    min-height: 360px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.kh-storehero-art-bg {
    position: absolute;
    inset: 5% 10%;
    border-radius: 28px;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.18) 0%, rgba(255,255,255,.04) 50%, transparent 70%);
    filter: blur(14px);
    z-index: 0;
}

/* Slide 1: 3 floating cards */
.kh-storehero-art-card {
    position: absolute;
    width: 38%;
    max-width: 220px;
    filter: drop-shadow(0 24px 36px rgba(0,0,0,.45));
    animation: pc-card-float 5s ease-in-out infinite;
}
.kh-storehero-art-card-1 { left: 10%;  top: 12%; transform: rotate(-12deg); animation-delay: 0s; z-index: 2; }
.kh-storehero-art-card-2 { left: 32%;  top: 28%; transform: rotate(2deg);   animation-delay: .8s; z-index: 3; }
.kh-storehero-art-card-3 { left: 54%;  top: 8%;  transform: rotate(14deg);  animation-delay: 1.6s; z-index: 1; }

/* Slide 2/3/4: hero single object */
.kh-storehero-art-hero {
    width: 70%;
    max-width: 360px;
    filter: drop-shadow(0 32px 48px rgba(0,0,0,.55));
    animation: pc-hero-bob 5s ease-in-out infinite;
    z-index: 1;
    position: relative;
}
.kh-storehero-art-hero-tilt { transform: rotate(-8deg); }
.kh-storehero-art-hero-float { transform: rotate(4deg); animation-duration: 6s; }
@keyframes pc-hero-bob {
    0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
    50%      { transform: translateY(-12px) rotate(var(--rot, 0deg)); }
}
.kh-storehero-art-hero-tilt { --rot: -8deg; }
.kh-storehero-art-hero-float { --rot: 4deg; }

/* Price badge on slide 2 */
.kh-storehero-art-tag {
    position: absolute;
    right: 10%;
    bottom: 16%;
    background: #FFD24A;
    color: var(--kh-red-black);
    font-family: var(--kh-font-display, 'Aveton', system-ui);
    font-size: 22px;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 14px;
    transform: rotate(8deg);
    z-index: 4;
    box-shadow: 0 18px 28px -10px rgba(0,0,0,.45);
}

/* Carousel arrows */
.kh-storehero-arrow {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    z-index: 5;
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border-radius: 50%;
    border: 0;
    background: rgba(255,255,255,.18);
    color: white;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 200ms ease, transform 200ms ease;
}
.kh-storehero-arrow:hover {
    background: rgba(255,255,255,.32);
    transform: translateY(-50%) scale(1.07);
}
.kh-storehero-prev { left: 24px; }
.kh-storehero-next { right: 24px; }

/* Carousel dots */
.kh-storehero-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 8px;
}
.kh-storehero-dot {
    width: 26px; height: 4px;
    border: 0;
    border-radius: 2px;
    background: rgba(255,255,255,.34);
    cursor: pointer;
    padding: 0;
    transition: background 200ms ease, width 200ms ease;
}
.kh-storehero-dot.is-active {
    background: white;
    width: 38px;
}

/* Mobile */
@media (max-width: 880px) {
    .kh-storehero { margin-top: 100px; }
    .kh-storehero-slide { padding: 40px 0; }
    .kh-storehero-grid {
        grid-template-columns: 1fr;
        min-height: 0;
        gap: 24px;
        text-align: center;
    }
    .kh-storehero-text { margin-inline: auto; }
    .kh-storehero-text p { margin-inline: auto; }
    .kh-storehero-cta { justify-content: center; }
    .kh-storehero-art { min-height: 220px; }
    .kh-storehero-art-card { width: 28%; max-width: 130px; }
    .kh-storehero-art-card-1 { left: 18%; }
    .kh-storehero-art-card-2 { left: 36%; }
    .kh-storehero-art-card-3 { left: 54%; }
    .kh-storehero-art-hero { max-width: 200px; width: 60%; }
    .kh-storehero-arrow { display: none; }
}

/* ---------- Tighter shop section under carousel ---------- */
.kh-shop-section.kh-shop-section-tight { padding-top: 36px; }
.kh-shop-categories { padding: 22px 0 6px; }
.kh-shop-categories .kh-shop-section-head { margin-bottom: 0; }

/* ---------- FREE SHIPPING CHIP on cards ---------- */
.kh-shipping-chip {
    position: absolute;
    top: 10px; right: 10px;
    z-index: 2;
    padding: 4px 10px;
    background: linear-gradient(135deg, #2D7A3E 0%, #1F5C2D 100%);
    color: white;
    border-radius: 6px;
    font-family: var(--kh-font-mono, 'JetBrains Mono', monospace);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 10px -4px rgba(45,122,62,.5);
    line-height: 1.2;
}

/* Existing kh-badge already has top:10 left:10, this complements at top right */
.kh-product-grid-shop .kh-shipping-chip {
    top: 10px; right: 10px;
}

/* Hide the old branded hero from prior version (just in case it lingers in cache) */
.kh-hero.kh-hero-shop { display: none !important; }

/* =============================================================================
   PEEK CAT — rigged cat anchored to the seam between hero and shop grid
   ──────────────────────────────────────────────────────────────────────────
   The cat lives INSIDE .kh-storehero (position: absolute) at its bottom-right
   edge, sized to spill ~110px below the hero's bottom border. Half the body
   reads against red (still inside the slider), paws/tail drop onto the cream
   shop background. Idle motion comes from the SVGator player itself; we only
   provide a subtle scroll-linked parallax (cat lags ~60px slower than the
   page so it lingers a beat as the hero leaves).
   Requires .kh-storehero to allow overflow: visible.
   ============================================================================= */
/* The cat must paint ABOVE every section that comes after the slider in flow.
   Local z-index inside .kh-storehero isn't enough — we need the slider's
   stacking context to win against the next sections. */
.kh-storehero {
    overflow: visible;          /* override prior 'hidden' so cat can spill */
    position: relative;
    z-index: 10;
}
.kh-storehero-viewport { overflow: hidden; }   /* slide track keeps its clip */
.kh-shop-categories,
.kh-auctions-section {
    position: relative;
    z-index: 1;                 /* below the slider's stacking context */
}

.kh-peek-cat {
    position: absolute;
    /* Anchored just below the seam so the cat's front paws appear to rest
       on the red→cream divide. The body sits above (in the red), paws/tail
       extend a few pixels into the cream below. */
    bottom: -120px;
    right: 6%;
    width: 280px;
    aspect-ratio: 2934 / 3058;
    z-index: 5;
    pointer-events: none;
    filter: drop-shadow(0 18px 22px rgba(70, 20, 0, .25));
    will-change: transform;
}
.kh-peek-cat > object,
.kh-peek-cat > object > img {
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
    user-select: none;
    background: transparent;
}

/* Parallax intentionally removed — cat scrolls with the page, no offset.
   Keeps the cat firmly attached to the slider seam at all scroll positions. */

/* ---- Reduced motion --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .kh-peek-cat { animation: none !important; translate: 0 0 !important; }
}

/* ---- Tablet ---------------------------------------------------------- */
@media (max-width: 1023px) {
    .kh-peek-cat { width: 220px; right: 4%; bottom: -95px; }
}

/* ---- Mobile: cat moves to centered + smaller, doesn't compete with grid */
@media (max-width: 599px) {
    .kh-peek-cat {
        width: 130px;
        right: 4%;
        bottom: -45px;
        translate: 0 0;       /* override centered translate from previous design */
    }
    /* Pull the next section up so the cat's paws have a visible "ground" to
       rest on — without this, in mobile the cat looks like it's floating in
       the white gap between hero and pills. Tuned so pills get breathing
       room from the cat's body (~14px clearance). */
    .kh-shop-categories {
        margin-top: -8px;
        padding-top: 18px;       /* explicit top padding for the pills */
    }
    /* Compress the slider on small screens so the cat doesn't get pushed
       below the fold by an oversized slide. Tighter padding, smaller art,
       smaller h1 — the whole slide + cat now fits in ≤90vh. */
    .kh-storehero { margin-top: 72px; }
    .kh-storehero-slide { padding: 18px 0 28px; }
    .kh-storehero-grid { gap: 14px; min-height: 0; }
    .kh-storehero-text h2 {
        font-size: clamp(28px, 7.5vw, 40px) !important;
        line-height: 1.02;
    }
    .kh-storehero-text p { font-size: 13px; line-height: 1.45; }
    .kh-storehero-eyebrow { font-size: 10px; padding: 4px 10px; margin-bottom: 10px; }
    .kh-storehero-cta { gap: 8px; flex-wrap: wrap; }
    .kh-storehero-cta .kh-btn-primary { padding: 10px 18px; font-size: 13px; }
    .kh-storehero-art { min-height: 130px; }
    .kh-storehero-art-card { width: 24%; max-width: 92px; }
    .kh-storehero-art-hero { max-width: 140px; width: 46%; }
    .kh-storehero-art-tag { font-size: 12px; padding: 5px 10px; }
    .kh-storehero-dots { bottom: 10px; }
}

/* =============================================================================
   AUCTIONS — public list (grid of cards)
   ============================================================================= */
.kh-auctions-section {
    /* Adds a soft tint band so the auctions feel like a separate hot zone
       within the otherwise cream background. */
    background: linear-gradient(180deg, var(--kh-cream, #F8EFD8) 0%, #FFF6E0 100%);
}
.kh-auction-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.kh-auction-card {
    position: relative;
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,.04), 0 1px 0 rgba(0,0,0,.02);
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
}
.kh-auction-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0,0,0,.10);
}
.kh-auction-media {
    position: relative;
    aspect-ratio: 4/3;
    background: linear-gradient(160deg, #FFE08A 0%, #FFB36B 60%, #E6707B 100%);
    overflow: hidden;
}
.kh-auction-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.kh-auction-timer {
    position: absolute;
    top: 10px; right: 10px;
    background: rgba(0,0,0,.78);
    color: white;
    font-family: var(--kh-font-mono, 'JetBrains Mono', ui-monospace, monospace);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px 5px 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(6px);
    letter-spacing: .02em;
}
.kh-auction-timer-dot {
    width: 7px; height: 7px;
    background: #4ADE80;
    border-radius: 50%;
    box-shadow: 0 0 8px #4ADE80;
}
.kh-auction-card.is-urgent .kh-auction-timer {
    background: var(--kh-red, #E63946);
    animation: kh-auction-pulse 1.4s ease-in-out infinite;
}
.kh-auction-card.is-urgent .kh-auction-timer-dot {
    background: white;
    box-shadow: 0 0 8px rgba(255,255,255,.8);
}
@keyframes kh-auction-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.06); }
}
.kh-auction-feat {
    position: absolute;
    top: 10px; left: 10px;
    background: var(--kh-yellow, #FFD24A);
    color: #5A4400;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 5px 10px;
    border-radius: 999px;
}
.kh-auction-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}
.kh-auction-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
    /* clamp to 2 lines so cards stay aligned even with long names */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.kh-auction-price {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
}
.kh-auction-price-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--kh-muted, #6B6B72);
    font-weight: 600;
}
.kh-auction-price-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--kh-ink, #1B1B1F);
    letter-spacing: -.02em;
    display: block;
    line-height: 1.1;
    margin-top: 2px;
}
.kh-auction-bidcount {
    font-size: 11px;
    color: var(--kh-muted, #6B6B72);
    background: var(--kh-cream, #F8EFD8);
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 600;
    white-space: nowrap;
}
.kh-btn-block { width: 100%; text-align: center; }
.kh-auction-bid-btn { font-size: 13px; padding: 12px 14px; }

.kh-auction-card.is-ended {
    opacity: .65;
    filter: saturate(.4);
}
.kh-auction-card.is-ended .kh-auction-timer {
    background: rgba(0,0,0,.55);
}
.kh-auction-card.is-ended .kh-auction-timer-dot { display: none; }

/* Tablet */
@media (max-width: 1023px) {
    .kh-auction-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
    .kh-auction-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .kh-auction-price-value { font-size: 18px; }
    .kh-auction-title { font-size: 14px; }
}
@media (max-width: 480px) {
    .kh-auction-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   GENERIC ADMIN MODAL (kh-modal) — used by admin-tienda for all CRUD dialogs
   ===================================================================== */
.kh-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9100;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.kh-modal.open { display: flex; }
.kh-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 12, 18, 0.62);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
}
.kh-modal-content {
    position: relative;
    z-index: 1;
    background: #FFF8EC;
    color: #1A1A1A;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: khModalPop 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}
.kh-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    flex-shrink: 0;
}
.kh-modal-head h3 {
    margin: 0;
    font-family: var(--kh-font-display);
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--kh-red, #A31925);
}
.kh-modal-content label,
.kh-modal-content .kh-label {
    color: #4A4A4A;
}
.kh-modal-content input,
.kh-modal-content select,
.kh-modal-content textarea {
    color: #1A1A1A;
}
/* News modal: two-column layout (form + sidebar with image) that collapses on narrow screens */
.news-modal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1.5rem;
}
@media (max-width: 820px) {
    .news-modal-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}
.kh-modal-body {
    padding: 18px 20px;
    overflow-y: auto;
    flex: 1 1 auto;
}
.kh-modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 20px;
    border-top: 1px solid var(--kh-border-soft, rgba(0,0,0,0.07));
    flex-shrink: 0;
    background: rgba(0,0,0,0.02);
}
.kh-icon-btn {
    background: transparent;
    border: 0;
    color: var(--kh-muted, #777);
    width: 32px; height: 32px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 16px;
    display: grid; place-items: center;
    transition: background 0.15s, color 0.15s;
}
.kh-icon-btn:hover { background: rgba(0,0,0,0.06); color: var(--kh-red); }
@keyframes khModalPop {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 640px) {
    .kh-modal { padding: 8px; }
    .kh-modal-content { max-height: calc(100vh - 16px); border-radius: 12px; }
}

/* =====================================================================
   WELCOME POPUP (modal de bienvenida para clientes nuevos)
   ===================================================================== */
#kh-welcome-popup {
    position: fixed; inset: 0; z-index: 9000;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
    animation: khWelcomeFade 0.4s ease;
}
.kh-welcome-backdrop {
    position: absolute; inset: 0;
    background: rgba(15, 18, 26, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.kh-welcome-modal {
    position: relative;
    background: #FFF8EC;
    border-radius: 24px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
    width: 100%; max-width: 460px;
    overflow: hidden;
    animation: khWelcomePop 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2);
    border: 2px solid #FFE8B5;
}
.kh-welcome-close {
    position: absolute; top: 12px; right: 14px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff; border: 0;
    width: 32px; height: 32px;
    border-radius: 999px; cursor: pointer;
    font-size: 16px; line-height: 1;
    display: grid; place-items: center;
    z-index: 2;
    transition: background 0.2s;
}
.kh-welcome-close:hover { background: rgba(0, 0, 0, 0.8); }
.kh-welcome-image {
    background: linear-gradient(135deg, #A31925 0%, #FF6B00 100%);
    padding: 28px 20px 8px;
    text-align: center;
}
.kh-welcome-image img {
    max-width: 100%; height: auto; max-height: 160px;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
}
.kh-welcome-body {
    padding: 24px 28px 28px;
    text-align: center;
}
.kh-welcome-body h2 {
    font-family: var(--kh-font-display);
    font-size: 1.55rem;
    line-height: 1.15;
    margin: 0 0 12px;
    color: #1a1a1a;
    text-transform: uppercase;
}
.kh-welcome-body > p {
    color: #565550; font-size: 0.95rem;
    line-height: 1.5; margin: 0 0 20px;
}
.kh-welcome-code-row {
    display: flex; gap: 8px; align-items: stretch;
    background: #FFE8B5;
    border: 2px dashed #C9961E;
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 8px;
}
.kh-welcome-code {
    flex: 1;
    font-family: var(--kh-font-mono);
    font-size: 1.4rem;
    font-weight: 700;
    color: #A31925;
    letter-spacing: 0.08em;
    text-align: center;
    background: #fff;
    border-radius: 8px;
    padding: 10px 12px;
    display: grid; place-items: center;
}
.kh-welcome-copy {
    background: #1a1a1a;
    color: #fff; border: 0;
    border-radius: 8px;
    padding: 0 16px;
    font-family: var(--kh-font-display);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
}
.kh-welcome-copy:hover { background: #FF6B00; color: #1a1a1a; }
.kh-welcome-hint {
    display: block;
    color: #888;
    font-size: 0.78rem;
    margin: 4px 0 18px;
}
.kh-welcome-cta {
    width: 100%;
    justify-content: center;
}
@keyframes khWelcomeFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes khWelcomePop {
    from { opacity: 0; transform: translateY(40px) scale(0.92); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}
@media (max-width: 480px) {
    .kh-welcome-body { padding: 20px; }
    .kh-welcome-body h2 { font-size: 1.3rem; }
    .kh-welcome-code { font-size: 1.15rem; }
}
