/* ==========================================================================
   LEMONLABS — STYLE.CSS (V3.3 CLEAN + MODERN — LIGHT DEFAULT)
   Target: home.php + main_layout.php (ll-*) + blog + single post
   Objetivo: 1 sistema, 0 peleas, look SaaS premium, a11y, perf.
   ========================================================================== */


/* =====================================================
   1) TOKENS
   ===================================================== */

:root {
    /* Brand */
    --accent: #00cc99;
    --accent-hover: #00a37a;
    /* Neutrals */
    --text: #0b0f19;
    --text-2: #58627a;
    --text-3: #9ca3af;
    --bg: #ffffff;
    --bg-soft: #f7f9fc;
    --bg-gray: #F3F4F6;
    /* Borders */
    --border: #e2e6ea;
    --border-soft: rgba(0, 0, 0, .06);
    /* Layout */
    --header-h: 80px;
    --container: 1140px;
    --pad-x: 1.5rem;
    --section-y: 5.25rem;
    /* Radius */
    --r-btn: 12px;
    --r-card: 18px;
    --r-input: 12px;
    /* Shadows */
    --sh-sm: 0 6px 18px rgba(0, 0, 0, .06);
    --sh-md: 0 16px 45px rgba(0, 0, 0, .10);
    --sh-lg: 0 28px 70px rgba(0, 0, 0, .16);
    /* Motion */
    --t-fast: 180ms ease;
    --t-smooth: 320ms cubic-bezier(.16, 1, .3, 1);
    /* Glass */
    --blur: blur(16px) saturate(180%);
    /* A11y */
    --focus: 0 0 0 3px rgba(0, 204, 153, .22);
    /* Typography scale */
    --h1: clamp(2.35rem, 4.6vw, 4.2rem);
    --h2: clamp(2rem, 3.4vw, 2.9rem);
    --lead: 1.12rem;
}


/* =====================================================
   2) BASE / RESET
   ===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--t-fast);
}

:focus-visible {
    outline: none;
    box-shadow: var(--focus);
    border-radius: 10px;
}


/* Scrollbar */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}


/* Headings (base) */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.15;
}


/* =====================================================
   3) GLOBAL "legacy" SECTIONS (blog/otros)
   Mantengo esto para no romper otras páginas.
   ll-section vive aparte (full width).
   ===================================================== */

section {
    padding: 6rem 2rem;
    max-width: 1240px;
    margin: 0 auto;
}

section h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

section>p {
    max-width: 680px;
    margin: 0 auto 4rem auto;
    text-align: center;
    color: var(--text-2);
    font-size: 1.25rem;
}


/* =====================================================
   4) CONTAINERS / UTILITIES
   ===================================================== */

.ll-container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--pad-x);
}

.ll-center {
    text-align: center;
}

.text-muted {
    color: var(--text-2);
}

.text-small {
    font-size: .92rem;
}

.max-58ch {
    max-width: 58ch;
    margin-inline: auto;
}

.max-70ch {
    max-width: 70ch;
    margin-inline: auto;
}

.max-80ch {
    max-width: 80ch;
    margin-inline: auto;
}


/* =====================================================
   5) BUTTONS / INPUTS
   ===================================================== */

.btn-acento,
.btn-secundario {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-weight: 800;
    border-radius: var(--r-btn);
    min-height: 48px;
    padding: .9rem 1.25rem;
    cursor: pointer;
    transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
    user-select: none;
}

.btn-acento {
    background: var(--text);
    color: #fff;
    border: 1px solid transparent;
}

.btn-acento:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 204, 153, .22);
}

.btn-secundario {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secundario:hover {
    background: var(--bg-soft);
    border-color: rgba(0, 0, 0, .18);
    transform: translateY(-1px);
}


/* Forms */

input[type="text"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: .9rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--r-input);
    background: #fff;
    font-size: 1rem;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
    color: var(--text);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: var(--focus);
}


/* =====================================================
   6) HEADER / NAV
   ===================================================== */

header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-h);
    background: rgba(255, 255, 255, .78);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3rem;
    z-index: 1000;
    transition: background var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
}

header.scrolled {
    background: rgba(255, 255, 255, .92);
    border-bottom-color: rgba(0, 0, 0, .08);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .08);
}

.logo {
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--text);
    letter-spacing: -0.04em;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.logo span {
    color: var(--accent);
}

.desktop-nav ul {
    display: flex;
    gap: 2.2rem;
    list-style: none;
    align-items: center;
}

.desktop-nav a {
    color: var(--text-2);
    font-weight: 650;
    font-size: .95rem;
    position: relative;
    padding: .35rem 0;
}

.desktop-nav a:hover {
    color: var(--text);
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background: var(--accent);
    transition: width var(--t-smooth);
}

.desktop-nav a:hover::after {
    width: 100%;
}

.desktop-nav a.is-active {
    color: var(--text);
}

.desktop-nav a.is-active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
}

main {
    padding-top: var(--header-h);
}


/* =====================================================
   7) MOBILE MENU (de tu inline -> CSS real)
   ===================================================== */

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 15, 25, .45);
    backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-fast), visibility var(--t-fast);
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-container {
    position: fixed;
    top: 0;
    right: -100%;
    width: 86%;
    max-width: 340px;
    height: 100vh;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: -20px 0 60px rgba(0, 0, 0, .18);
    border-left: 1px solid rgba(0, 0, 0, .06);
    padding: 1.6rem;
    transition: right var(--t-smooth);
    z-index: 2000;
    display: flex;
    flex-direction: column;
}

.mobile-menu-container.active {
    right: 0;
}

.mobile-menu-container ul {
    list-style: none;
    padding: 0;
    margin-top: 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.mobile-menu-container a {
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 850;
}

.close-btn {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #6b7280;
    padding: 0 6px;
}


/* Skip link */

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    left: 16px;
    top: 16px;
    width: auto;
    height: auto;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    z-index: 3000;
}


/* =====================================================
   8) HERO (LIGHT + AURORA SUAVE)
   Tu HTML: <section class="hero ll-hero">
   ===================================================== */

.hero.ll-hero {
    /* full width */
    max-width: none;
    margin: 0;
    padding: 6.25rem 0 4.5rem;
    min-height: calc(86vh - var(--header-h));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    /* Light aurora */
    background: radial-gradient(900px 650px at 15% 10%, rgba(0, 204, 153, .18), transparent 55%), radial-gradient(980px 700px at 85% 20%, rgba(59, 130, 246, .14), transparent 55%), linear-gradient(180deg, #ffffff 0%, #fbfdff 55%, #ffffff 100%);
    color: var(--text);
}

.hero.ll-hero::before,
.hero.ll-hero::after {
    content: '';
    position: absolute;
    width: 52vw;
    height: 52vw;
    max-width: 680px;
    max-height: 680px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.22;
    z-index: 0;
    will-change: transform, opacity;
}

.hero.ll-hero::before {
    top: -14%;
    left: -10%;
    background: radial-gradient(circle, rgba(0, 204, 153, .95) 0%, transparent 70%);
    animation: ll-float 10s infinite ease-in-out;
}

.hero.ll-hero::after {
    bottom: -16%;
    right: -10%;
    background: radial-gradient(circle, rgba(59, 130, 246, .95) 0%, transparent 70%);
    animation: ll-float 12s infinite ease-in-out reverse;
}

@keyframes ll-float {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(26px, -46px) scale(1.08);
    }
    66% {
        transform: translate(-18px, 18px) scale(.94);
    }
}

.ll-hero-inner {
    text-align: center;
    max-width: 920px;
    margin: 0 auto;
    padding: 0 var(--pad-x);
    position: relative;
    z-index: 1;
}

.ll-hero-title {
    font-size: var(--h1);
    line-height: 1.05;
    letter-spacing: -0.045em;
    margin-bottom: 1rem;
    color: var(--text);
}

.ll-hero-subtitle {
    font-size: var(--lead);
    line-height: 1.85;
    max-width: 72ch;
    margin: 0 auto 2rem auto;
    color: var(--text-2);
}

.ll-hero-cta {
    display: flex;
    justify-content: center;
    gap: .9rem;
    flex-wrap: wrap;
    margin-top: .25rem;
}


/* pills in light */

.ll-hero-proof {
    margin-top: 1.25rem;
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 0;
}

.ll-hero-proof li {
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(0, 0, 0, .08);
    padding: .45rem .8rem;
    border-radius: 999px;
    font-size: .92rem;
    color: var(--text-2);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
}


/* =====================================================
   9) ll-SECTION (full width, no peleas)
   ===================================================== */

.ll-section {
    max-width: none;
    margin: 0;
    padding: var(--section-y) 0;
}

.ll-section--soft {
    background: var(--bg-soft);
    border-top: 1px solid rgba(0, 0, 0, .03);
    border-bottom: 1px solid rgba(0, 0, 0, .03);
}

.ll-section-head {
    text-align: center;
    margin-bottom: 2.75rem;
}

.ll-section-head h2 {
    font-size: var(--h2);
    line-height: 1.12;
    letter-spacing: -0.035em;
    margin-bottom: .8rem;
    color: var(--text);
}

.ll-section-head p {
    max-width: 78ch;
    margin: 0 auto;
    color: var(--text-2);
    font-size: 1.06rem;
    line-height: 1.85;
}


/* =====================================================
   10) ll-CARDS / ll-CARD
   ===================================================== */

.ll-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.4rem;
}

.ll-cards--3 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.ll-cards--4 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.ll-card {
    background: rgba(255, 255, 255, .96);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-card);
    padding: 2rem;
    box-shadow: var(--sh-sm);
    transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.ll-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sh-md);
    border-color: rgba(0, 204, 153, .28);
}


/* product line (single truth) */

.ll-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #3b82f6);
    opacity: .9;
}


/* featured border */

.ll-card--featured::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--r-card);
    padding: 2px;
    background: linear-gradient(135deg, rgba(0, 204, 153, .55), rgba(59, 130, 246, .45));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.ll-card h3 {
    font-size: 1.35rem;
    margin-bottom: .75rem;
    color: var(--text);
}

.ll-card p {
    color: var(--text-2);
    line-height: 1.75;
}


/* Badge */

.ll-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: .28rem .7rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .5px;
    text-transform: uppercase;
    border: 1px solid rgba(0, 204, 153, .25);
    background: rgba(0, 204, 153, .12);
    color: #007a5d;
}

.ll-badge--info {
    background: #ecfeff;
    color: #155e75;
    border-color: #a5f3fc;
}

.ll-badge--violet {
    background: #eef2ff;
    color: #3730a3;
    border-color: #c7d2fe;
}

.ll-badge--success {
    background: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}


/* Lists inside ll-card */

.ll-list {
    margin: .9rem 0 0;
    padding-left: 1.15rem;
    color: var(--text-2);
    line-height: 1.7;
}

.ll-list li {
    margin-bottom: .25rem;
}


/* Actions */

.ll-card-actions {
    margin-top: auto;
    padding-top: 1.05rem;
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.ll-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-weight: 900;
    color: var(--accent-hover);
    width: fit-content;
}

.ll-link:hover {
    gap: .7rem;
}

.ll-link--muted {
    color: var(--text-2);
    font-weight: 750;
    opacity: .9;
}


/* =====================================================
   11) SERVICES SPLIT
   ===================================================== */

.ll-split {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 2rem;
    align-items: center;
}

.ll-split h2 {
    text-align: left;
    font-size: clamp(1.9rem, 2.8vw, 2.4rem);
    margin-bottom: .9rem;
}

.ll-split p {
    text-align: left;
    max-width: 72ch;
    margin: 0 0 1.15rem 0;
    color: var(--text-2);
    font-size: 1.05rem;
    line-height: 1.85;
}

.ll-metric-card {
    border-radius: var(--r-card);
    border: 1px solid var(--border-soft);
    background: #fff;
    box-shadow: var(--sh-md);
    padding: 2rem;
}

.ll-metric-card h3 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.ll-metric {
    font-size: 1.28rem;
    font-weight: 950;
    letter-spacing: -0.03em;
    margin-bottom: .35rem;
}

.ll-metric-note {
    margin-top: 1rem;
    color: var(--text-2);
    font-size: .95rem;
}


/* =====================================================
   12) TAGS
   ===================================================== */

.ll-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    justify-content: center;
}

.ll-tag {
    border-radius: 999px;
    padding: .55rem .9rem;
    border: 1px solid rgba(0, 0, 0, .08);
    background: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .05);
    font-weight: 900;
    font-size: .95rem;
    transition: transform var(--t-fast), border-color var(--t-fast);
}

.ll-tag:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 204, 153, .28);
}


/* =====================================================
   13) FAQ
   ===================================================== */

.ll-faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.ll-faq-item {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: var(--r-card);
    padding: 1.6rem;
    box-shadow: var(--sh-sm);
}

.ll-faq-item h3 {
    font-size: 1.05rem;
    margin-bottom: .45rem;
}

.ll-faq-item p {
    color: var(--text-2);
    line-height: 1.7;
}


/* =====================================================
   14) CTA FINAL (ll-cta + cta-final) — LIGHT SITE, DARK CTA OK
   (Si no quieres CTA oscuro, dime y lo dejo claro también)
   ===================================================== */

.cta-final.ll-cta {
    max-width: none;
    margin: 0;
    padding: 6rem 0;
    background: radial-gradient(900px 700px at 20% 10%, rgba(0, 204, 153, .14), transparent 55%), radial-gradient(900px 700px at 80% 20%, rgba(59, 130, 246, .14), transparent 55%), #111827;
    color: #fff;
    text-align: center;
}

.cta-final.ll-cta h2 {
    color: #fff;
    margin-bottom: 1rem;
}

.ll-cta-sub {
    max-width: 60ch;
    margin: 0 auto 2rem auto;
    color: rgba(255, 255, 255, .78);
    line-height: 1.8;
}

.ll-cta-actions {
    display: flex;
    gap: .9rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.2rem;
}

.ll-cta-note {
    margin-top: 1rem;
    color: rgba(255, 255, 255, .72);
    opacity: .95;
    font-size: .95rem;
}


/* Secondary button inside dark CTA */

.cta-final.ll-cta .btn-secundario {
    border-color: rgba(255, 255, 255, .22);
    color: rgba(255, 255, 255, .92);
    background: rgba(255, 255, 255, .06);
}

.cta-final.ll-cta .btn-secundario:hover {
    background: rgba(255, 255, 255, .10);
    border-color: rgba(255, 255, 255, .32);
}


/* =====================================================
   15) FOOTER
   ===================================================== */

footer {
    background: #fff;
    padding: 5rem 5% 2rem;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 1240px;
    margin: 0 auto;
}

footer h4 {
    font-size: .85rem;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
}

footer a {
    display: block;
    color: var(--text-2);
    margin-bottom: .75rem;
    font-size: .95rem;
    font-weight: 650;
}

footer a:hover {
    color: var(--accent-hover);
}

.footer-bottom {
    text-align: center;
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid #f3f4f6;
    color: #9ca3af;
    font-size: .85rem;
}


/* =====================================================
   16) BLOG / POST
   ===================================================== */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.2rem;
}

.blog-card {
    background: #fff;
    border-radius: var(--r-card);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform var(--t-fast), box-shadow var(--t-fast);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sh-md);
}

.card-image-top {
    height: 220px;
    width: 100%;
    object-fit: cover;
    transition: transform 600ms ease;
}

.blog-card:hover .card-image-top {
    transform: scale(1.05);
}

.card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta {
    font-size: .8rem;
    color: var(--text-3);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: .75rem;
}

.single-post-wrapper {
    background: var(--bg-gray);
    width: 100%;
    padding: 4rem 1rem;
    min-height: 100vh;
}

.single-post-container {
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--r-card);
    box-shadow: var(--sh-md);
    padding: 4rem;
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 4rem;
    align-items: start;
}

.article-header {
    grid-column: 1 / -1;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 2rem;
}

.article-meta {
    background: #eff6ff;
    color: #2563eb;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 900;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1.25rem;
}

.article-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 1.25rem;
    color: #000;
    line-height: 1.1;
}

.article-featured-image {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 3rem;
    grid-column: 1 / -1;
    max-height: 500px;
    object-fit: cover;
}

.article-content {
    font-size: 1.08rem;
    color: #374151;
    line-height: 1.85;
}

.article-content p {
    margin-bottom: 1.25rem;
}

.article-content h2 {
    font-size: 1.7rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #111;
    scroll-margin-top: 140px;
}

.article-content h3 {
    font-size: 1.35rem;
    margin-top: 2rem;
    margin-bottom: .8rem;
    color: #222;
}

.article-content ul,
.article-content ol {
    margin-left: 1.2rem;
    margin-bottom: 1.6rem;
    color: var(--text-2);
}

pre {
    background: #0f172a;
    color: #e5e7eb;
    padding: 1.35rem;
    border-radius: 12px;
    overflow-x: auto;
    margin-bottom: 1.6rem;
    font-size: .92rem;
    font-family: 'Fira Code', ui-monospace, SFMono-Regular, Menlo, monospace;
    border: 1px solid rgba(255, 255, 255, .08);
}

code {
    background: rgba(0, 0, 0, 0.06);
    padding: .18rem .38rem;
    border-radius: 8px;
    font-size: .92em;
    font-family: 'Fira Code', ui-monospace, SFMono-Regular, Menlo, monospace;
    color: #d63384;
}

pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

blockquote {
    border-left: 4px solid var(--accent);
    font-style: italic;
    font-size: 1.06rem;
    color: #4b5563;
    margin: 2rem 0;
    background: #f9fafb;
    padding: 1.25rem 1.4rem;
    border-radius: 0 12px 12px 0;
}

.article-toc {
    position: sticky;
    top: 120px;
    background: #fff;
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.article-toc strong {
    display: block;
    margin-bottom: 1rem;
    font-size: .8rem;
    letter-spacing: 1px;
    color: var(--text-3);
    text-transform: uppercase;
}

.toc-list li {
    margin-bottom: .8rem;
}

.toc-list a {
    font-size: .92rem;
    color: var(--text-2);
    display: block;
    line-height: 1.4;
    border-left: 2px solid transparent;
    padding-left: 12px;
}

.toc-list a:hover,
.toc-list a.active {
    color: var(--accent);
    border-left-color: var(--accent);
}


/* =====================================================
   17) RESPONSIVE
   ===================================================== */

@media (max-width: 1024px) {
    .single-post-container {
        grid-template-columns: 1fr;
        padding: 3rem 2rem;
    }
    .article-toc {
        display: none;
    }
    .ll-split {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .ll-split h2,
    .ll-split p {
        text-align: center;
        margin-inline: auto;
    }
    .ll-metric-card {
        max-width: 640px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0 1.5rem;
    }
    .desktop-nav {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    /* legacy sections */
    section {
        padding: 4rem 1.5rem;
    }
    /* hero */
    .hero.ll-hero {
        padding: 5.25rem 0 3.75rem;
    }
    .ll-hero-title {
        font-size: clamp(2.25rem, 7vw, 3rem);
    }
    /* stacks */
    .ll-hero-cta,
    .ll-cta-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .ll-hero-cta .btn-acento,
    .ll-hero-cta .btn-secundario,
    .ll-cta-actions .btn-acento,
    .ll-cta-actions .btn-secundario {
        width: 100%;
    }
     :root {
        --pad-x: 1.25rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}


/* =====================================================
   18) PREFERS-REDUCED-MOTION
   ===================================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
    }
    .hero.ll-hero::before,
    .hero.ll-hero::after {
        animation: none !important;
        transform: none !important;
    }
    .ll-card,
    .blog-card {
        transition: none !important;
    }
}


/* =====================================================
   19) IMPORTANT: NO AUTO-DARK
   Evita que el sistema meta fondo negro sin que tú lo pidas.
   ===================================================== */

@media (prefers-color-scheme: dark) {
    body {
        background: var(--bg) !important;
        color: var(--text) !important;
    }
}


/* =====================================================
   FIX: Menú móvil NO clickeable (overlay encima)
   Pegar al FINAL del style.css
   ===================================================== */


/* 1) Por defecto: overlay NO intercepta clicks */

.menu-overlay {
    pointer-events: none;
}


/* 2) Cuando está activo: sí intercepta (para cerrar tocando fuera) */

.menu-overlay.active {
    pointer-events: auto;
}


/* 3) Z-INDEX: overlay SIEMPRE debajo del drawer */

.menu-overlay {
    z-index: 2990 !important;
}

.mobile-menu-container {
    z-index: 3000 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
}


/* 4) Asegura que links/botones dentro del menú reciban click */

.mobile-menu-container a,
.mobile-menu-container button {
    pointer-events: auto !important;
}


/* 5) Si algún CSS viejo le bajó opacidad al menú, lo blindamos */

.mobile-menu-container.active {
    opacity: 1 !important;
    visibility: visible !important;
}


/* 6) BONUS: evita bugs raros de stacking en algunos móviles */

header,
body {
    transform: none !important;
}


/* =====================================================
   MOBILE MENU (drawer) + overlay — LemonLabs
   ===================================================== */


/* Skip link accesible */

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    left: 16px;
    top: 16px;
    width: auto;
    height: auto;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    z-index: 5000;
}


/* Overlay: NO bloquea clicks cuando está apagado */

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 15, 25, .45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2990;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    /* ahora sí para cerrar tocando fuera */
}


/* Drawer */

.mobile-menu-container {
    position: fixed;
    top: 0;
    right: -100%;
    width: 86%;
    max-width: 320px;
    height: 100vh;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: -14px 0 40px rgba(0, 0, 0, .14);
    padding: 1.6rem;
    transition: right .35s cubic-bezier(.16, 1, .3, 1);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
    touch-action: manipulation;
}

.mobile-menu-container.active {
    right: 0;
}

.mobile-menu-brand {
    margin-bottom: 12px;
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -.03em;
}

.mobile-menu-brand span {
    color: var(--color-acento);
}

.close-btn {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    padding: 0 6px;
}

.mobile-menu-container ul {
    list-style: none;
    padding: 0;
    margin-top: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.mobile-menu-container a {
    text-decoration: none;
    color: var(--color-texto-principal, #0b0f19);
    font-size: 1.05rem;
    font-weight: 800;
    display: block;
}

.mobile-cta {
    margin-top: .6rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, .08);
}

.mobile-cta-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
}


/* Active nav (desktop) */

.desktop-nav a.is-active {
    color: var(--color-texto-principal);
}

.desktop-nav a.is-active::after {
    width: 100%;
}


/* Responsive */

@media (max-width:768px) {
    .desktop-nav {
        display: none !important;
    }
    .mobile-menu-btn {
        display: block;
    }
}