/* ==========================================================================
   Los Monster Hermanos — Home v2
   Compact neon cantina hero + catalog polish
   ========================================================================== */

body.lmh-home-v2 {
    --lmh-v2-green: #8bc34a;
    --lmh-v2-green-bright: #c5e86c;
    --lmh-v2-green-dim: #5a7a2e;
    --lmh-v2-glow: rgba(139, 195, 74, 0.45);
    --lmh-v2-card: rgba(14, 16, 20, 0.88);
}

/* --- Hero shell --- */
body.lmh-home-v2 .lmh-hero-v2 {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    max-width: 980px;
    padding: 0;
    border: 1px solid rgba(139, 195, 74, 0.22);
    border-radius: calc(var(--lmh-radius) + 4px);
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(139, 195, 74, 0.1), transparent 55%),
        radial-gradient(90% 70% at 0% 100%, rgba(194, 74, 58, 0.07), transparent 50%),
        linear-gradient(155deg, rgba(22, 25, 32, 0.96), rgba(8, 9, 12, 0.98));
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 0 48px rgba(139, 195, 74, 0.06);
    animation: lmh-v2-hero-in 0.7s var(--lmh-ease-out) both;
}

body.lmh-home-v2 .lmh-hero-v2::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, transparent 38%, transparent 62%, rgba(139, 195, 74, 0.03) 100%);
}

body.lmh-home-v2 .lmh-hero-v2__fx {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: inherit;
}

body.lmh-home-v2 .lmh-hero-v2__mesh {
    position: absolute;
    inset: -40%;
    background:
        conic-gradient(from 210deg at 50% 50%, transparent 0deg, rgba(139, 195, 74, 0.07) 60deg, transparent 120deg, rgba(139, 195, 74, 0.04) 200deg, transparent 280deg);
    animation: lmh-v2-mesh-spin 28s linear infinite;
    opacity: 0.9;
}

body.lmh-home-v2 .lmh-hero-v2__grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(139, 195, 74, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 195, 74, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
    opacity: 0.55;
}

body.lmh-home-v2 .lmh-hero-v2__beam {
    position: absolute;
    top: -20%;
    left: 55%;
    width: 2px;
    height: 140%;
    background: linear-gradient(180deg, transparent, rgba(197, 232, 108, 0.5), transparent);
    transform: rotate(18deg);
    filter: blur(1px);
    animation: lmh-v2-beam-pulse 4.5s ease-in-out infinite;
}

body.lmh-home-v2 .lmh-hero-v2__ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(139, 195, 74, 0.18);
    animation: lmh-v2-ring-pulse 5s ease-in-out infinite;
}

body.lmh-home-v2 .lmh-hero-v2__ring--1 {
    width: 280px;
    height: 280px;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
}

body.lmh-home-v2 .lmh-hero-v2__ring--2 {
    width: 340px;
    height: 340px;
    right: 4%;
    top: 50%;
    transform: translateY(-50%);
    animation-delay: -2.2s;
    border-style: dashed;
    opacity: 0.6;
}

body.lmh-home-v2 .lmh-hero-v2__sparks {
    position: absolute;
    inset: 0;
}

body.lmh-home-v2 .lmh-hero-v2__sparks i {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--lmh-v2-green-bright);
    box-shadow: 0 0 8px var(--lmh-v2-glow);
    animation: lmh-v2-spark-float 6s ease-in-out infinite;
}

body.lmh-home-v2 .lmh-hero-v2__sparks i:nth-child(1) { top: 18%; left: 72%; animation-delay: 0s; }
body.lmh-home-v2 .lmh-hero-v2__sparks i:nth-child(2) { top: 62%; left: 88%; animation-delay: -1.2s; }
body.lmh-home-v2 .lmh-hero-v2__sparks i:nth-child(3) { top: 78%; left: 65%; animation-delay: -2.4s; }
body.lmh-home-v2 .lmh-hero-v2__sparks i:nth-child(4) { top: 28%; left: 92%; animation-delay: -0.8s; }
body.lmh-home-v2 .lmh-hero-v2__sparks i:nth-child(5) { top: 45%; left: 78%; animation-delay: -3.1s; }
body.lmh-home-v2 .lmh-hero-v2__sparks i:nth-child(6) { top: 85%; left: 82%; animation-delay: -1.8s; }

body.lmh-home-v2 .lmh-hero-v2__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(200px, 0.9fr);
    gap: 12px 28px;
    align-items: center;
    padding: 28px 28px 26px;
}

/* --- Copy column --- */
body.lmh-home-v2 .lmh-hero-v2__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    padding: 5px 12px 5px 8px;
    border-radius: 999px;
    border: 1px solid rgba(139, 195, 74, 0.28);
    background: rgba(139, 195, 74, 0.08);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--lmh-v2-green-bright);
    animation: lmh-v2-fade-up 0.55s var(--lmh-ease-out) 0.08s both;
}

body.lmh-home-v2 .lmh-hero-v2__eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--lmh-v2-green-bright);
    box-shadow: 0 0 10px var(--lmh-v2-glow);
    animation: lmh-v2-dot-pulse 2s ease-in-out infinite;
}

body.lmh-home-v2 .lmh-hero-v2__title {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 0.92;
    text-align: left;
}

body.lmh-home-v2 .lmh-hero-v2__title-line {
    font-family: var(--lmh-mexican);
    font-size: clamp(2.1rem, 5.5vw, 3.4rem);
    letter-spacing: 0.02em;
    color: var(--lmh-cream);
    animation: lmh-v2-title-pop 0.65s var(--lmh-ease-out) 0.12s both;
}

body.lmh-home-v2 .lmh-hero-v2__title-line--accent {
    font-size: clamp(2.35rem, 6vw, 3.75rem);
    background: linear-gradient(92deg, var(--lmh-v2-green-bright) 0%, #eef5dc 45%, var(--lmh-v2-green) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation:
        lmh-v2-title-pop 0.65s var(--lmh-ease-out) 0.2s both,
        lmh-v2-shimmer 5s ease-in-out 1s infinite;
    filter: drop-shadow(0 0 20px rgba(139, 195, 74, 0.25));
}

body.lmh-home-v2 .lmh-hero-v2 .lmh-hero__welcome {
    margin: 12px 0 0;
    max-width: none;
    text-align: left;
    font-size: 0.95rem;
    animation: lmh-v2-fade-up 0.6s ease 0.28s both;
}

body.lmh-home-v2 .lmh-hero-v2 .lmh-hero__tagline {
    margin: 10px 0 0;
    max-width: 42ch;
    text-align: left;
    font-size: 0.92rem;
    animation: lmh-v2-fade-up 0.6s ease 0.34s both;
}

body.lmh-home-v2 .lmh-hero-v2 .lmh-hero__tagline::before {
    margin: 0 0 10px;
    width: 36px;
    height: 2px;
    background: linear-gradient(90deg, var(--lmh-v2-green), transparent);
    opacity: 1;
}

body.lmh-home-v2 .lmh-hero-v2__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 14px;
    margin-top: 18px;
    animation: lmh-v2-fade-up 0.6s var(--lmh-ease-out) 0.42s both;
}

body.lmh-home-v2 .lmh-hero-v2__cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px 12px 20px;
    border-radius: 999px;
    border: 1px solid rgba(197, 232, 108, 0.45);
    background:
        linear-gradient(135deg, rgba(139, 195, 74, 0.95), rgba(90, 122, 46, 0.95));
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.35),
        0 0 24px rgba(139, 195, 74, 0.25);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.88rem;
    overflow: hidden;
    transition:
        transform var(--lmh-dur-fast) var(--lmh-ease-spring),
        box-shadow var(--lmh-dur-med) ease;
}

body.lmh-home-v2 .lmh-hero-v2__cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.22) 50%, transparent 70%);
    transform: translateX(-120%);
    animation: lmh-v2-cta-shine 3.5s ease-in-out infinite;
}

body.lmh-home-v2 .lmh-hero-v2__cta:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.4),
        0 0 36px rgba(139, 195, 74, 0.38);
}

body.lmh-home-v2 .lmh-hero-v2__cta:active {
    transform: translateY(0) scale(0.98);
}

body.lmh-home-v2 .lmh-hero-v2__cta-arrow {
    display: inline-flex;
    transition: transform var(--lmh-dur-fast) var(--lmh-ease-spring);
}

body.lmh-home-v2 .lmh-hero-v2__cta:hover .lmh-hero-v2__cta-arrow {
    transform: translateX(4px);
}

body.lmh-home-v2 .lmh-hero-v2__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

body.lmh-home-v2 .lmh-hero-v2__pill {
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--lmh-muted);
    white-space: nowrap;
    transition:
        border-color var(--lmh-dur-fast) ease,
        color var(--lmh-dur-fast) ease,
        background var(--lmh-dur-fast) ease;
}

body.lmh-home-v2 .lmh-hero-v2__pill:hover {
    border-color: rgba(139, 195, 74, 0.35);
    color: var(--lmh-v2-green-bright);
    background: rgba(139, 195, 74, 0.06);
}

/* --- Visual column --- */
body.lmh-home-v2 .lmh-hero-v2__visual {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    animation: lmh-v2-fade-up 0.7s var(--lmh-ease-out) 0.18s both;
}

body.lmh-home-v2 .lmh-hero-v2__logo-orbit {
    position: relative;
    width: min(220px, 42vw);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
}

body.lmh-home-v2 .lmh-hero-v2__logo-halo {
    position: absolute;
    inset: -8%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 195, 74, 0.22) 0%, transparent 68%);
    animation: lmh-v2-halo-breathe 4s ease-in-out infinite;
}

body.lmh-home-v2 .lmh-hero-v2__logo-orbit::before,
body.lmh-home-v2 .lmh-hero-v2__logo-orbit::after {
    content: "";
    position: absolute;
    inset: -4%;
    border-radius: 50%;
    border: 1px solid rgba(139, 195, 74, 0.2);
}

body.lmh-home-v2 .lmh-hero-v2__logo-orbit::before {
    animation: lmh-v2-orbit-spin 18s linear infinite;
    border-top-color: rgba(197, 232, 108, 0.55);
    border-right-color: transparent;
}

body.lmh-home-v2 .lmh-hero-v2__logo-orbit::after {
    inset: -12%;
    animation: lmh-v2-orbit-spin 24s linear infinite reverse;
    border-bottom-color: rgba(139, 195, 74, 0.35);
    border-left-color: transparent;
    opacity: 0.7;
}

body.lmh-home-v2 .lmh-hero-v2__logo {
    position: relative;
    z-index: 1;
    width: 78%;
    height: auto;
    margin: 0;
    filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.5));
    animation: lmh-v2-logo-float 5s ease-in-out infinite;
    transition: transform 0.35s var(--lmh-ease-out);
}

body.lmh-home-v2 .lmh-hero-v2__visual.is-tilt .lmh-hero-v2__logo {
    animation: none;
}

/* --- Guest page layout --- */
body.lmh-home-v2.lmh-home-guest-open .lmh-main {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 88px);
    padding: 16px 16px 32px;
}

body.lmh-home-v2.lmh-home-guest-open .lmh-header {
    border-bottom-color: rgba(139, 195, 74, 0.12);
    background: rgba(8, 9, 12, 0.82);
    backdrop-filter: blur(14px);
}

/* --- Catalog polish (logged in) --- */
body.lmh-home-v2.lmh-home-catalog-open .lmh-main {
    padding-top: 18px;
}

body.lmh-home-v2 .lmh-catalog-v2 .lmh-lines-nav__panel {
    border-color: rgba(139, 195, 74, 0.24);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.38),
        0 0 0 1px rgba(139, 195, 74, 0.06) inset;
}

body.lmh-home-v2 .lmh-catalog-v2 .lmh-lines-nav__title::after {
    background: linear-gradient(90deg, var(--lmh-v2-green), transparent);
}

body.lmh-home-v2 .lmh-catalog-v2 .lmh-lines-nav__link.is-active {
    border-color: rgba(139, 195, 74, 0.45);
    background: rgba(139, 195, 74, 0.1);
    box-shadow: -3px 0 0 var(--lmh-v2-green);
}

body.lmh-home-v2 .lmh-catalog-v2 .lmh-carousel-section {
    border-color: rgba(139, 195, 74, 0.14);
    background:
        linear-gradient(160deg, rgba(20, 23, 28, 0.92), rgba(10, 11, 14, 0.95));
    transition:
        border-color var(--lmh-dur-med) ease,
        box-shadow var(--lmh-dur-med) ease,
        transform var(--lmh-dur-med) var(--lmh-ease-out);
}

body.lmh-home-v2 .lmh-catalog-v2 .lmh-carousel-section:hover {
    border-color: rgba(139, 195, 74, 0.28);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28), 0 0 24px rgba(139, 195, 74, 0.05);
}

body.lmh-home-v2 .lmh-catalog-v2 .lmh-flavor-card {
    transition:
        transform var(--lmh-dur-med) var(--lmh-ease-spring),
        border-color var(--lmh-dur-fast) ease,
        box-shadow var(--lmh-dur-med) ease;
}

body.lmh-home-v2 .lmh-catalog-v2 .lmh-flavor-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(139, 195, 74, 0.35);
    box-shadow:
        0 14px 28px rgba(0, 0, 0, 0.35),
        0 0 20px rgba(139, 195, 74, 0.08);
}

body.lmh-home-v2 .lmh-catalog-v2 .lmh-drink-feed-bar {
    border: 1px solid rgba(139, 195, 74, 0.16);
    border-radius: var(--lmh-radius);
    background: linear-gradient(135deg, rgba(18, 21, 26, 0.95), rgba(10, 12, 15, 0.92));
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

body.lmh-home-v2 .lmh-catalog-v2 .lmh-user-ratings-top {
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0;
    margin-top: var(--neon-gap, 8px);
}

/* --- Keyframes --- */
@keyframes lmh-v2-hero-in {
    from { opacity: 0; transform: translateY(18px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes lmh-v2-mesh-spin {
    to { transform: rotate(360deg); }
}

@keyframes lmh-v2-beam-pulse {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 0.85; }
}

@keyframes lmh-v2-ring-pulse {
    0%, 100% { transform: translateY(-50%) scale(1); opacity: 0.5; }
    50% { transform: translateY(-50%) scale(1.04); opacity: 0.85; }
}

@keyframes lmh-v2-spark-float {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.4; }
    50% { transform: translateY(-12px) scale(1.3); opacity: 1; }
}

@keyframes lmh-v2-dot-pulse {
    0%, 100% { box-shadow: 0 0 6px var(--lmh-v2-glow); }
    50% { box-shadow: 0 0 14px var(--lmh-v2-glow); }
}

@keyframes lmh-v2-title-pop {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes lmh-v2-fade-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes lmh-v2-shimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

@keyframes lmh-v2-cta-shine {
    0%, 70%, 100% { transform: translateX(-120%); }
    35% { transform: translateX(120%); }
}

@keyframes lmh-v2-halo-breathe {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.08); opacity: 1; }
}

@keyframes lmh-v2-orbit-spin {
    to { transform: rotate(360deg); }
}

@keyframes lmh-v2-logo-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* --- Responsive --- */
@media (max-width: 720px) {
    body.lmh-home-v2 .lmh-hero-v2__inner {
        grid-template-columns: 1fr;
        padding: 22px 18px 20px;
        text-align: center;
    }

    body.lmh-home-v2 .lmh-hero-v2__title,
    body.lmh-home-v2 .lmh-hero-v2 .lmh-hero__welcome,
    body.lmh-home-v2 .lmh-hero-v2 .lmh-hero__tagline {
        text-align: center;
    }

    body.lmh-home-v2 .lmh-hero-v2 .lmh-hero__tagline::before {
        margin-left: auto;
        margin-right: auto;
    }

    body.lmh-home-v2 .lmh-hero-v2__actions {
        justify-content: center;
    }

    body.lmh-home-v2 .lmh-hero-v2__pills {
        justify-content: center;
    }

    body.lmh-home-v2 .lmh-hero-v2__visual {
        order: -1;
        min-height: 160px;
    }

    body.lmh-home-v2 .lmh-hero-v2__logo-orbit {
        width: min(160px, 50vw);
    }

    body.lmh-home-v2 .lmh-hero-v2__ring--1,
    body.lmh-home-v2 .lmh-hero-v2__ring--2 {
        right: 50%;
        transform: translate(50%, -50%);
    }

    body.lmh-home-v2 .lmh-hero-v2__eyebrow {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.lmh-home-v2 .lmh-hero-v2,
    body.lmh-home-v2 .lmh-hero-v2__mesh,
    body.lmh-home-v2 .lmh-hero-v2__logo,
    body.lmh-home-v2 .lmh-hero-v2__cta::before,
    body.lmh-home-v2 .lmh-hero-v2__title-line--accent {
        animation: none !important;
    }
}
