:root {
    --bg: #f4f7fb;
    --paper: #ffffff;
    --paper-2: #f8fbff;
    --ink: #0b1220;
    --text: #182235;
    --muted: #65748b;
    --line: #dce5f2;
    --cyan: #06b6d4;
    --blue: #2563eb;
    --violet: #7c3aed;
    --magenta: #d946ef;
    --amber: #f59e0b;
    --orange: #fb6b28;
    --green: #10b981;
    --danger: #dc2626;
    --success: #16a34a;
    --dark: #07111f;
    --dark-2: #101a2d;
    --shadow: 0 24px 70px rgba(7, 17, 31, .13);
    --shadow-soft: 0 14px 38px rgba(7, 17, 31, .08);
    --radius: 26px;
    --radius-lg: 34px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 8% 0%, rgba(6,182,212,.16), transparent 26rem),
        radial-gradient(circle at 92% 4%, rgba(217,70,239,.12), transparent 25rem),
        linear-gradient(180deg, #f8fbff 0%, var(--bg) 42%, #eef4fb 100%);
    color: var(--text);
    line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1200px, calc(100% - 36px)); margin: 0 auto; }

.site-header {
    background: rgba(255,255,255,.91);
    border-bottom: 1px solid rgba(220,229,242,.85);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 28px rgba(7, 17, 31, .04);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 950; font-size: 20px; letter-spacing: -.5px; color: var(--ink); }
.brand-mark {
    width: 42px; height: 42px; border-radius: 15px;
    display: inline-grid; place-items: center;
    background:
        linear-gradient(135deg, rgba(255,255,255,.18), transparent),
        conic-gradient(from 210deg, var(--cyan), var(--blue), var(--violet), var(--magenta), var(--amber), var(--cyan));
    color: #fff;
    box-shadow: 0 14px 34px rgba(37, 99, 235, .25);
    font-size: 14px;
    letter-spacing: -.8px;
}
.main-nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-weight: 800; color: #526173; }
.main-nav a { padding: 9px 12px; border-radius: 999px; }
.main-nav a:hover { background: #eef6ff; color: var(--blue); }
.nav-admin { color: #94a3b8 !important; }
.nav-cta { min-height: 42px; }

.button, button, input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    border-radius: 999px;
    border: 0;
    background: linear-gradient(135deg, var(--blue), var(--violet));
    color: white;
    padding: 0 22px;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(37,99,235,.22);
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.button:hover, button:hover, input[type="submit"]:hover { transform: translateY(-1px); filter: brightness(1.03); box-shadow: 0 18px 38px rgba(37,99,235,.28); }
.button.secondary { background: var(--dark); }
.button.light { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.button.dark { background: linear-gradient(135deg, var(--dark), #17233a); }
.button.danger { background: var(--danger); }
.button.small { min-height: 38px; padding: 0 15px; font-size: 14px; }
.actions { display: flex; gap: 11px; flex-wrap: wrap; align-items: center; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .13em;
}
.eyebrow:before {
    content: "";
    width: 10px; height: 10px; border-radius: 999px;
    background: conic-gradient(var(--cyan), var(--violet), var(--magenta), var(--amber), var(--cyan));
    box-shadow: 0 0 0 5px rgba(37,99,235,.08);
}

/* Home */
.home-hero {
    position: relative;
    overflow: hidden;
    padding: 74px 0 44px;
    color: #fff;
    background:
        radial-gradient(circle at 8% 18%, rgba(6,182,212,.28), transparent 29rem),
        radial-gradient(circle at 94% 12%, rgba(217,70,239,.24), transparent 27rem),
        linear-gradient(135deg, #07111f 0%, #101a2d 46%, #111827 100%);
}
.home-hero:after {
    content: "";
    position: absolute; inset: auto 0 0 0; height: 140px;
    background: linear-gradient(180deg, transparent, rgba(244,247,251,.98));
    pointer-events: none;
}
.home-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .86fr); gap: 46px; align-items: center; }
.home-hero .eyebrow { color: #8be9ff; }
.home-hero h1, .blog-hero h1 {
    margin: 12px 0 20px;
    font-size: clamp(44px, 7vw, 82px);
    line-height: .93;
    letter-spacing: -3.2px;
}
.home-hero p, .blog-hero p, .page-heading p, .lead { color: var(--muted); font-size: 19px; margin: 0 0 26px; }
.home-hero p { color: rgba(255,255,255,.76); max-width: 720px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; max-width: 700px; }
.hero-stat {
    padding: 16px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 22px;
    background: rgba(255,255,255,.07);
    backdrop-filter: blur(12px);
}
.hero-stat strong { display: block; font-size: 24px; letter-spacing: -.8px; }
.hero-stat span { color: rgba(255,255,255,.68); font-size: 13px; font-weight: 750; }
.hero-visual {
    min-height: 470px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 38px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.05)),
        radial-gradient(circle at 70% 18%, rgba(245,158,11,.28), transparent 14rem),
        rgba(255,255,255,.06);
    box-shadow: 0 34px 90px rgba(0,0,0,.32);
}
.hero-visual:before {
    content: "";
    position: absolute; width: 360px; height: 360px; right: -90px; top: -110px; border-radius: 50%;
    background: conic-gradient(from 20deg, var(--cyan), var(--blue), var(--violet), var(--magenta), var(--amber), var(--cyan));
    filter: blur(1px); opacity: .74;
}
.hero-visual:after {
    content: "CMYK";
    position: absolute; left: 28px; bottom: 28px; color: rgba(255,255,255,.14);
    font-size: 82px; line-height: 1; font-weight: 950; letter-spacing: -5px;
}
.press-mock {
    position: absolute; left: 30px; right: 30px; top: 34px;
    border-radius: 24px; padding: 20px;
    background: #fff; color: var(--ink); box-shadow: var(--shadow);
    transform: rotate(-2deg);
}
.press-mock-top { height: 22px; border-radius: 999px; background: linear-gradient(90deg, #dbeafe, #f5d0fe, #fef3c7); margin-bottom: 14px; }
.press-mock strong { display: block; font-size: 22px; letter-spacing: -.5px; }
.press-mock span { color: var(--muted); font-weight: 800; font-size: 13px; }
.mock-grid { position: absolute; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; left: 46px; right: 46px; bottom: 44px; z-index: 2; }
.mock-item {
    min-height: 130px; border-radius: 24px; background: rgba(255,255,255,.94); color: var(--ink); padding: 18px; box-shadow: var(--shadow-soft);
    display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; position: relative;
}
.mock-item:after { content: ""; position: absolute; width: 90px; height: 90px; right: -24px; bottom: -24px; border-radius: 999px; background: conic-gradient(var(--cyan), var(--violet), var(--amber), var(--cyan)); opacity: .75; }
.mock-item strong { position: relative; z-index: 1; font-size: 18px; }
.mock-item span { position: relative; z-index: 1; color: var(--muted); font-size: 13px; font-weight: 850; }
.mock-item.wide { grid-column: 1 / -1; min-height: 110px; }

.section { padding: 58px 0; }
.section-tight { padding: 36px 0; }
.section-soft { background: linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,.76)); border-top: 1px solid rgba(220,229,242,.65); border-bottom: 1px solid rgba(220,229,242,.65); }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-title h2 { font-size: clamp(30px, 4.8vw, 48px); line-height: 1; margin: 5px 0 0; letter-spacing: -1.7px; color: var(--ink); }
.section-title p { color: var(--muted); margin: 8px 0 0; max-width: 620px; }
.section-title > a, .text-link { color: var(--blue); font-weight: 950; }
.feature-strip { margin-top: -28px; position: relative; z-index: 2; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feature-tile { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 22px; box-shadow: var(--shadow-soft); }
.feature-icon { width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(6,182,212,.16), rgba(124,58,237,.16)); color: var(--blue); font-weight: 950; margin-bottom: 14px; }
.feature-tile strong { display: block; font-size: 18px; color: var(--ink); }
.feature-tile p { color: var(--muted); margin: 6px 0 0; font-size: 14px; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(37,99,235,.25); }
.card-body { padding: 21px; }
.card h3 { margin: 0 0 10px; font-size: 22px; line-height: 1.18; letter-spacing: -.55px; color: var(--ink); }
.card p { color: var(--muted); margin: 0 0 14px; }
.product-card, .blog-card { position: relative; }
.product-card:before, .blog-card:before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--cyan), var(--blue), var(--violet), var(--magenta), var(--amber)); opacity: .95; }
.product-img, .post-img { aspect-ratio: 4/3; object-fit: cover; width: 100%; background: #e7eef7; }
.product-detail-img { width: 100%; border-radius: 24px; aspect-ratio: 4/3; object-fit: cover; box-shadow: var(--shadow-soft); }
.image-placeholder {
    aspect-ratio: 4/3;
    display: grid;
    place-items: end start;
    width: 100%;
    color: #fff;
    font-weight: 950;
    text-align: left;
    padding: 22px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 18%, rgba(255,255,255,.55), transparent 6rem),
        conic-gradient(from 210deg at 70% 28%, var(--cyan), var(--blue), var(--violet), var(--magenta), var(--amber), var(--cyan)),
        linear-gradient(135deg, #0f172a, #172554);
}
.image-placeholder:before {
    content: "";
    position: absolute; width: 170px; height: 170px; right: -35px; bottom: -46px; border-radius: 44px;
    background: rgba(255,255,255,.18); transform: rotate(18deg); border: 1px solid rgba(255,255,255,.18);
}
.image-placeholder:after {
    content: "";
    position: absolute; left: 20px; top: 20px; width: 78px; height: 78px; border-radius: 24px;
    background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.22); box-shadow: inset 0 0 0 8px rgba(255,255,255,.07);
}
.image-placeholder.large { min-height: 320px; border-radius: 24px; }
.price { font-weight: 950; color: var(--blue) !important; }
.price.big { font-size: 36px; margin: 10px 0 12px; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 950; background: #eaf4ff; color: var(--blue); margin: 0; }
.badge.published { background: #dcfce7; color: #166534; }
.badge.draft { background: #fef3c7; color: #92400e; }
.badge.scheduled { background: #dbeafe; color: #1e40af; }

.content-page { padding: 52px 0 84px; }
.content-card { background: var(--paper); border: 1px solid var(--line); border-radius: 30px; padding: 30px; box-shadow: var(--shadow-soft); }
.page-heading { margin-bottom: 26px; max-width: 840px; }
.page-heading h1 { font-size: clamp(38px, 6.2vw, 68px); line-height: .95; letter-spacing: -2.5px; margin: 8px 0 14px; color: var(--ink); }
.category-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
.category-pills.horizontal-scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
.pill {
    display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
    border: 1px solid var(--line);
    background: #fff;
    color: #526173;
    border-radius: 999px;
    min-height: 42px;
    padding: 0 16px;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(7,17,31,.04);
}
.pill span { color: #94a3b8; }
.pill.active, .pill:hover { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--blue), var(--violet)); }
.pill.active span, .pill:hover span { color: rgba(255,255,255,.78); }
.product-detail-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 30px; align-items: start; }
.media-card { padding: 14px; background: linear-gradient(135deg, #fff, #eef6ff); }
.product-detail-card h1 { font-size: clamp(36px, 5vw, 58px); line-height: .98; letter-spacing: -1.9px; margin: 10px 0; color: var(--ink); }

/* Blog portal */
.blog-hero {
    position: relative;
    overflow: hidden;
    padding: 70px 0 54px;
    color: #fff;
    background:
        radial-gradient(circle at 12% 14%, rgba(6,182,212,.25), transparent 25rem),
        radial-gradient(circle at 85% 4%, rgba(217,70,239,.22), transparent 25rem),
        linear-gradient(135deg, #07111f 0%, #101a2d 56%, #0f172a 100%);
}
.blog-hero .eyebrow { color: #8be9ff; }
.blog-hero p { color: rgba(255,255,255,.76); max-width: 740px; }
.blog-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 42px; align-items: center; }
.blog-search { display: flex; gap: 10px; max-width: 760px; padding: 8px; border-radius: 999px; background: #fff; border: 1px solid rgba(255,255,255,.2); box-shadow: 0 22px 50px rgba(0,0,0,.26); }
.blog-search input { border: 0; min-height: 48px; border-radius: 999px; box-shadow: none; padding-left: 18px; }
.blog-search button { min-height: 48px; }
.blog-hero-panel {
    border-radius: 32px;
    padding: 26px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    backdrop-filter: blur(16px);
    box-shadow: 0 28px 70px rgba(0,0,0,.24);
}
.blog-hero-panel strong { font-size: 20px; }
.blog-hero-panel ul { margin: 14px 0 0; padding-left: 20px; color: rgba(255,255,255,.76); }
.blog-hero-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.blog-hero-metric { border-radius: 20px; padding: 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12); }
.blog-hero-metric b { display: block; font-size: 24px; }
.blog-hero-metric span { color: rgba(255,255,255,.68); font-size: 12px; font-weight: 850; }
.blog-category-strip { background: rgba(255,255,255,.78); border-top: 1px solid rgba(220,229,242,.75); border-bottom: 1px solid rgba(220,229,242,.75); padding: 18px 0; backdrop-filter: blur(12px); }
.blog-listing-page { padding-top: 42px; }
.blog-layout, .article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 34px; align-items: start; }
.results-heading { margin-bottom: 22px; }
.results-heading h2 { margin: 4px 0 0; font-size: 31px; color: var(--ink); }
.featured-post-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .84fr);
    gap: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 34px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 28px;
    position: relative;
}
.featured-post-card:before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--cyan), var(--blue), var(--violet), var(--magenta), var(--amber)); z-index: 3; }
.featured-image-link img, .featured-image-link .image-placeholder { height: 100%; min-height: 390px; object-fit: cover; }
.featured-post-body { padding: 38px; display: flex; flex-direction: column; justify-content: center; }
.featured-post-body h2 { font-size: clamp(32px, 4.6vw, 50px); line-height: .98; margin: 12px 0 14px; letter-spacing: -1.7px; color: var(--ink); }
.featured-post-body p { color: var(--muted); }
.blog-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.blog-card-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.blog-card-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.blog-card-topline span { color: var(--muted); font-size: 13px; font-weight: 950; }
.post-meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 13px; font-weight: 850; margin: 12px 0 14px; }
.post-meta span { display: inline-flex; align-items: center; gap: 7px; }
.post-meta span:before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--amber); }
.post-meta.large { font-size: 14px; justify-content: center; }
.sidebar-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 24px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 20px;
}
.sidebar-card h3 { margin: 0 0 12px; font-size: 21px; letter-spacing: -.4px; color: var(--ink); }
.sidebar-card p { color: var(--muted); margin: 0 0 16px; }
.newsletter-card { background: linear-gradient(155deg, rgba(6,182,212,.12), rgba(124,58,237,.12)), #fff; }
.sidebar-links { display: grid; gap: 8px; }
.sidebar-links a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); color: #526173; font-weight: 850; }
.sidebar-links a:last-child { border-bottom: 0; }
.sidebar-links strong { color: var(--blue); }
.mini-post-list, .mini-product-list { display: grid; gap: 12px; }
.mini-post-list a { display: grid; gap: 4px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.mini-post-list a:last-child { border-bottom: 0; padding-bottom: 0; }
.mini-post-list span { color: var(--blue); font-size: 12px; font-weight: 950; text-transform: uppercase; letter-spacing: .08em; }
.mini-post-list strong { line-height: 1.25; color: var(--ink); }
.mini-product-list a { display: grid; grid-template-columns: 58px 1fr; gap: 12px; align-items: center; color: #526173; font-weight: 950; }
.mini-product-list img { width: 58px; height: 58px; border-radius: 16px; object-fit: cover; background: #e7eef7; }
.mini-product-list a:not(:has(img)) { grid-template-columns: 1fr; }
.empty-state { text-align: center; }

.article-page { padding-bottom: 86px; }
.article-hero { padding: 64px 0 48px; text-align: center; color: #fff; background: radial-gradient(circle at 18% 10%, rgba(6,182,212,.20), transparent 24rem), linear-gradient(135deg, var(--dark), #111827); }
.article-hero-inner { max-width: 960px; }
.breadcrumb { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; color: rgba(255,255,255,.66); font-size: 14px; font-weight: 850; margin-bottom: 18px; }
.breadcrumb a:hover { color: #fff; }
.article-hero .badge { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.16); }
.article-hero h1 { font-size: clamp(42px, 7vw, 82px); line-height: .93; letter-spacing: -3px; margin: 13px 0 18px; }
.article-excerpt { color: rgba(255,255,255,.76); font-size: 21px; max-width: 780px; margin: 0 auto 18px; }
.article-main { min-width: 0; }
.article-featured-image { width: 100%; border-radius: 34px; aspect-ratio: 16/9; object-fit: cover; box-shadow: var(--shadow); margin-bottom: 24px; }
.article-summary-box, .article-cta-box, .toc-mobile { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 24px; box-shadow: var(--shadow-soft); margin-bottom: 24px; }
.article-summary-box strong { font-size: 18px; color: var(--ink); }
.article-summary-box p { color: var(--muted); margin: 6px 0 0; }
.premium-content { background: #fff; border: 1px solid var(--line); border-radius: 34px; padding: clamp(24px, 5vw, 58px); box-shadow: var(--shadow-soft); font-size: 18px; }
.article-content h2 { margin: 44px 0 14px; font-size: clamp(30px, 4vw, 42px); line-height: 1.05; letter-spacing: -1.2px; color: var(--ink); }
.article-content h2:first-child { margin-top: 0; }
.article-content h3 { margin: 32px 0 10px; font-size: 25px; line-height: 1.18; color: var(--ink); }
.article-content p { color: #334155; margin: 0 0 18px; }
.article-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.article-content ul, .article-content ol { padding-left: 24px; color: #334155; }
.article-content li { margin-bottom: 8px; }
.article-content blockquote { margin: 30px 0; padding: 22px 24px; border-left: 6px solid var(--blue); background: linear-gradient(135deg, #eff8ff, #f7f0ff); border-radius: 20px; color: #1e3a5f; font-weight: 800; }
.article-content table { width: 100%; border-collapse: collapse; margin: 24px 0; overflow: hidden; border-radius: 16px; }
.article-content th, .article-content td { border: 1px solid var(--line); padding: 12px; text-align: left; }
.article-content th { background: #f1f7ff; }
.article-content pre, .article-content code { background: #0f172a; color: #e2e8f0; border-radius: 12px; }
.article-content code { padding: 2px 6px; }
.article-content pre { padding: 16px; overflow-x: auto; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.article-tags span { padding: 8px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-weight: 950; font-size: 13px; }
.article-cta-box { display: flex; justify-content: space-between; align-items: center; gap: 22px; background: linear-gradient(135deg, rgba(6,182,212,.12), rgba(124,58,237,.12)), #fff; }
.article-cta-box h2 { margin: 4px 0 8px; font-size: 31px; line-height: 1.05; color: var(--ink); }
.article-cta-box p { color: var(--muted); margin: 0; }
.related-section { margin-top: 36px; }
.article-sidebar { position: sticky; top: 100px; }
.toc-card ol, .toc-mobile ol { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.toc-card a, .toc-mobile a { color: var(--muted); font-weight: 850; }
.toc-card a:hover, .toc-mobile a:hover { color: var(--blue); }
.toc-card .level-3, .toc-mobile .level-3 { margin-left: 12px; font-size: 14px; }
.toc-mobile { display: none; }
.author-card { text-align: center; }
.author-avatar { width: 62px; height: 62px; border-radius: 22px; margin: 0 auto 12px; display: grid; place-items: center; color: #fff; font-weight: 950; background: conic-gradient(var(--cyan), var(--violet), var(--magenta), var(--amber), var(--cyan)); }
.contact-card { max-width: 820px; }
.contact-card h1 { font-size: clamp(36px, 5vw, 60px); line-height: .98; margin: 8px 0 14px; color: var(--ink); }

.site-footer { border-top: 1px solid var(--line); padding: 42px 0; color: var(--muted); background: rgba(255,255,255,.82); }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand { color: var(--ink); margin-bottom: 8px; }
.footer-links { display: flex; gap: 18px; font-weight: 850; }
.footer-links a:hover { color: var(--blue); }

/* Admin */
.admin-body { background: #f8fafc; display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-sidebar { background: #111827; color: white; padding: 22px; display: flex; flex-direction: column; gap: 8px; position: sticky; top: 0; height: 100vh; }
.admin-sidebar a { padding: 11px 12px; border-radius: 12px; color: #e5e7eb; }
.admin-sidebar a:hover { background: rgba(255,255,255,.08); }
.admin-logo { font-weight: 950; margin-bottom: 16px; color: #fff !important; }
.admin-main { padding: 28px; min-width: 0; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; gap: 16px; }
.admin-topbar h1 { margin: 0; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--shadow-soft); margin-bottom: 18px; }
.table-wrap { overflow-x: auto; }
table.admin-table { width: 100%; border-collapse: collapse; background: #fff; }
table.admin-table th, table.admin-table td { border-bottom: 1px solid var(--line); padding: 12px; text-align: left; vertical-align: top; }
table.admin-table th { color: var(--muted); font-size: 13px; text-transform: uppercase; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row { margin-bottom: 14px; }
label { display: block; font-weight: 850; margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="url"], input[type="datetime-local"], input[type="search"], select, textarea {
    width: 100%; border: 1px solid var(--line); border-radius: 14px; min-height: 46px; padding: 10px 12px; font: inherit; background: #fff;
}
textarea { min-height: 180px; resize: vertical; }
textarea.large { min-height: 420px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.help { color: var(--muted); font-size: 13px; }
.alert { padding: 12px 14px; border-radius: 14px; margin-bottom: 16px; border: 1px solid transparent; }
.alert.success { background: #dcfce7; color: #14532d; border-color: #bbf7d0; }
.alert.error { background: #fee2e2; color: #7f1d1d; border-color: #fecaca; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { width: min(420px, 100%); background: #fff; padding: 28px; border-radius: 24px; border: 1px solid var(--line); box-shadow: var(--shadow); }

@supports not selector(:has(*)) {
    .mini-product-list a { grid-template-columns: 1fr; }
}

@media (max-width: 1080px) {
    .blog-layout, .article-layout { grid-template-columns: 1fr; }
    .blog-sidebar, .article-sidebar { position: static; }
    .toc-card { display: none; }
    .toc-mobile { display: block; }
    .blog-card-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .home-hero-grid, .blog-hero-grid, .grid, .form-grid, .product-detail-grid, .featured-post-card { grid-template-columns: 1fr; }
    .home-hero, .blog-hero { padding: 56px 0 38px; }
    .main-nav { order: 3; width: 100%; justify-content: center; }
    .nav { flex-wrap: wrap; padding: 12px 0; }
    .nav-cta { display: none; }
    .hero-visual { min-height: 420px; }
    .blog-search { border-radius: 22px; flex-direction: column; }
    .blog-search button { width: 100%; }
    .featured-image-link img, .featured-image-link .image-placeholder { min-height: 280px; }
    .article-cta-box { display: block; }
    .article-cta-box .button { margin-top: 18px; }
    .footer-grid { display: grid; }
    .admin-body { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; height: auto; flex-direction: row; overflow-x: auto; }
    .admin-main { padding: 18px; }
}

@media (max-width: 620px) {
    .container { width: min(100% - 24px, 1200px); }
    .home-hero h1, .blog-hero h1, .article-hero h1 { letter-spacing: -2px; }
    .hero-stats, .feature-grid, .mock-grid { grid-template-columns: 1fr; }
    .mock-grid { position: relative; left: auto; right: auto; bottom: auto; padding: 22px; margin-top: 150px; }
    .press-mock { left: 22px; right: 22px; }
    .hero-visual { min-height: auto; }
    .card-body, .sidebar-card, .content-card { padding: 18px; }
    .premium-content { padding: 22px; border-radius: 26px; }
}

/* Landing ERSublimados v2 */
.landing-hero {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 78px);
    display: flex;
    align-items: center;
    padding: 76px 0 64px;
    color: #fff;
    background:
        radial-gradient(circle at 12% 18%, rgba(6,182,212,.28), transparent 28rem),
        radial-gradient(circle at 84% 16%, rgba(217,70,239,.28), transparent 30rem),
        linear-gradient(135deg, #07111f 0%, #0d1830 46%, #131022 100%);
}
.landing-ambient {
    position: absolute;
    inset: 0;
    opacity: .42;
    background-image:
        linear-gradient(rgba(255,255,255,.075) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.075) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 88%);
    pointer-events: none;
}
.landing-hero:after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -210px;
    width: 760px;
    height: 380px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6,182,212,.2), transparent 68%);
    filter: blur(10px);
}
.landing-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(380px, .78fr);
    gap: 58px;
    align-items: center;
}
.landing-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #8be9ff;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .16em;
}
.landing-kicker:before {
    content: "";
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: conic-gradient(from 90deg, var(--cyan), var(--blue), var(--violet), var(--magenta), var(--amber), var(--cyan));
    box-shadow: 0 0 0 6px rgba(139,233,255,.09);
}
.landing-hero h1 {
    margin: 16px 0 22px;
    max-width: 820px;
    color: #fff;
    font-size: clamp(46px, 7.4vw, 92px);
    line-height: .91;
    letter-spacing: -4.2px;
}
.landing-lead {
    max-width: 690px;
    margin: 0 0 30px;
    color: rgba(255,255,255,.74);
    font-size: clamp(18px, 2.1vw, 22px);
    line-height: 1.62;
}
.landing-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.landing-actions.compact { margin-top: 26px; }
.landing-primary {
    background: linear-gradient(135deg, #06b6d4, #2563eb 48%, #7c3aed);
    box-shadow: 0 18px 45px rgba(37,99,235,.31);
}
.landing-secondary {
    background: rgba(255,255,255,.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: none;
    backdrop-filter: blur(14px);
}
.landing-catalog-preview .landing-secondary,
.landing-blog-preview .landing-secondary,
.final-cta-card .landing-secondary {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
}
.landing-trust-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 760px;
    margin-top: 34px;
}
.landing-trust-row div {
    min-height: 104px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,.13);
    background: rgba(255,255,255,.065);
    backdrop-filter: blur(18px);
}
.landing-trust-row strong {
    display: block;
    color: #fff;
    font-size: 20px;
    line-height: 1.05;
    letter-spacing: -.5px;
}
.landing-trust-row span {
    display: block;
    margin-top: 8px;
    color: rgba(255,255,255,.62);
    font-weight: 750;
    font-size: 13px;
    line-height: 1.35;
}
.landing-showcase {
    position: relative;
    min-height: 560px;
    border-radius: 42px;
    border: 1px solid rgba(255,255,255,.13);
    overflow: hidden;
    background:
        linear-gradient(140deg, rgba(255,255,255,.14), rgba(255,255,255,.035)),
        radial-gradient(circle at 68% 24%, rgba(245,158,11,.26), transparent 13rem),
        radial-gradient(circle at 28% 66%, rgba(6,182,212,.18), transparent 14rem);
    box-shadow: 0 36px 110px rgba(0,0,0,.35);
}
.landing-showcase:before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    right: -96px;
    top: -105px;
    border-radius: 50%;
    background: conic-gradient(from 220deg, var(--cyan), var(--blue), var(--violet), var(--magenta), var(--amber), var(--cyan));
    opacity: .82;
}
.showcase-card {
    position: absolute;
    z-index: 2;
    border-radius: 28px;
    padding: 22px;
    background: rgba(255,255,255,.94);
    color: var(--ink);
    box-shadow: 0 24px 70px rgba(0,0,0,.24);
    border: 1px solid rgba(255,255,255,.55);
}
.showcase-main {
    left: 32px;
    right: 32px;
    top: 34px;
}
.showcase-card span {
    color: var(--blue);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .12em;
}
.showcase-card strong {
    display: block;
    margin-top: 6px;
    color: var(--ink);
    font-size: 26px;
    line-height: 1.05;
    letter-spacing: -.9px;
}
.showcase-card p {
    margin: 8px 0 0;
    color: var(--muted);
    font-weight: 700;
    line-height: 1.45;
}
.showcase-card.small {
    width: 220px;
    padding: 18px;
}
.showcase-card.small.top { right: 26px; top: 230px; }
.showcase-card.small.bottom { left: 26px; bottom: 62px; }
.showcase-card.small strong { font-size: 20px; }
.showcase-product {
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 54%;
    width: 250px;
    height: 260px;
    transform: translate(-50%, -50%) rotate(-4deg);
}
.cup-mock:before {
    content: "";
    position: absolute;
    left: 35px;
    top: 10px;
    width: 158px;
    height: 222px;
    border-radius: 26px 26px 42px 42px;
    background:
        linear-gradient(90deg, rgba(255,255,255,.95), rgba(245,248,255,.94)),
        #fff;
    box-shadow: inset -22px 0 34px rgba(15,23,42,.08), 0 30px 60px rgba(0,0,0,.28);
}
.cup-mock:after {
    content: "";
    position: absolute;
    right: 10px;
    top: 78px;
    width: 78px;
    height: 86px;
    border: 18px solid rgba(255,255,255,.94);
    border-left: 0;
    border-radius: 0 55px 55px 0;
    filter: drop-shadow(0 18px 22px rgba(0,0,0,.18));
}
.cup-mock span {
    position: absolute;
    left: 67px;
    top: 84px;
    z-index: 3;
    width: 98px;
    height: 82px;
    border-radius: 22px;
    background: conic-gradient(from 200deg, var(--cyan), var(--blue), var(--violet), var(--magenta), var(--amber), var(--cyan));
    box-shadow: inset 0 0 0 9px rgba(255,255,255,.24);
}
.showcase-ribbon {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 24px;
    z-index: 3;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(7,17,31,.58);
    border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.8);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .14em;
    text-transform: uppercase;
    backdrop-filter: blur(16px);
}
.landing-proof {
    margin-top: -34px;
    position: relative;
    z-index: 3;
}
.proof-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.proof-item {
    padding: 24px;
    border-radius: 28px;
    border: 1px solid rgba(220,229,242,.9);
    background: rgba(255,255,255,.92);
    box-shadow: var(--shadow-soft);
}
.proof-item span {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: #eef6ff;
    color: var(--blue);
    font-weight: 950;
}
.proof-item strong {
    display: block;
    margin-top: 14px;
    color: var(--ink);
    font-size: 20px;
    letter-spacing: -.4px;
}
.proof-item p {
    margin: 7px 0 0;
    color: var(--muted);
    line-height: 1.5;
}
.landing-section {
    padding: 86px 0;
}
.landing-section-head {
    max-width: 720px;
}
.landing-section-head.centered {
    max-width: 840px;
    margin: 0 auto 34px;
    text-align: center;
}
.landing-section-head.narrow { max-width: 760px; }
.landing-section-head.split {
    max-width: none;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 28px;
}
.landing-section-head h2,
.final-cta-card h2 {
    margin: 10px 0 14px;
    color: var(--ink);
    font-size: clamp(34px, 5vw, 62px);
    line-height: .96;
    letter-spacing: -2.4px;
}
.landing-section-head p,
.final-cta-card p {
    color: var(--muted);
    font-size: 18px;
    margin: 0;
    line-height: 1.65;
}
.solution-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.solution-card {
    min-height: 310px;
    padding: 30px;
    border-radius: 32px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    transition: transform .18s ease, box-shadow .18s ease;
}
.solution-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.solution-icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    color: #fff;
    font-weight: 950;
    letter-spacing: -.8px;
    margin-bottom: 28px;
}
.gradient-one { background: linear-gradient(135deg, var(--cyan), var(--blue)); }
.gradient-two { background: linear-gradient(135deg, var(--violet), var(--magenta)); }
.gradient-three { background: linear-gradient(135deg, var(--amber), var(--orange)); }
.solution-card h3 {
    color: var(--ink);
    font-size: 26px;
    line-height: 1.05;
    letter-spacing: -1px;
    margin: 0 0 12px;
}
.solution-card p {
    color: var(--muted);
    margin: 0;
}
.landing-catalog-preview {
    background:
        radial-gradient(circle at 12% 0%, rgba(6,182,212,.09), transparent 22rem),
        linear-gradient(180deg, rgba(255,255,255,.48), rgba(255,255,255,.78));
    border-top: 1px solid rgba(220,229,242,.8);
    border-bottom: 1px solid rgba(220,229,242,.8);
}
.landing-two-col {
    display: grid;
    grid-template-columns: minmax(0, .78fr) minmax(420px, 1fr);
    gap: 48px;
    align-items: center;
}
.landing-product-list {
    display: grid;
    gap: 14px;
}
.landing-product-row {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    min-height: 110px;
    padding: 16px;
    border-radius: 28px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow-soft);
    transition: transform .18s ease, box-shadow .18s ease;
}
.landing-product-row:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.landing-product-row img,
.product-row-placeholder {
    width: 82px;
    height: 82px;
    border-radius: 24px;
    object-fit: cover;
    background: conic-gradient(from 200deg, var(--cyan), var(--blue), var(--violet), var(--magenta), var(--amber), var(--cyan));
}
.product-row-placeholder {
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 950;
    box-shadow: inset 0 0 0 8px rgba(255,255,255,.22);
}
.landing-product-row strong {
    display: block;
    color: var(--ink);
    font-size: 19px;
    line-height: 1.12;
}
.landing-product-row small {
    display: block;
    color: var(--muted);
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.4;
}
.landing-product-row b {
    color: var(--blue);
    white-space: nowrap;
}
.process-section {
    background: #07111f;
    color: #fff;
}
.process-section .landing-section-head h2 { color: #fff; }
.process-section .landing-kicker { color: #8be9ff; }
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.process-grid article {
    padding: 26px;
    border-radius: 30px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
}
.process-grid span {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #07111f;
    background: linear-gradient(135deg, #8be9ff, #fff);
    font-weight: 950;
}
.process-grid h3 {
    color: #fff;
    font-size: 22px;
    line-height: 1.05;
    margin: 24px 0 10px;
    letter-spacing: -.7px;
}
.process-grid p {
    color: rgba(255,255,255,.66);
    margin: 0;
    line-height: 1.55;
}
.landing-blog-preview {
    background:
        radial-gradient(circle at 88% 14%, rgba(124,58,237,.09), transparent 24rem),
        var(--bg);
}
.landing-blog-grid .blog-card {
    min-height: 100%;
}
.landing-topic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.landing-topic-grid article {
    padding: 28px;
    border-radius: 30px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}
.landing-topic-grid span {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eaf4ff;
    color: var(--blue);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .1em;
}
.landing-topic-grid h3 {
    color: var(--ink);
    font-size: 24px;
    line-height: 1.06;
    margin: 18px 0 10px;
    letter-spacing: -.8px;
}
.landing-topic-grid p {
    color: var(--muted);
    margin: 0;
}
.landing-final-cta {
    padding: 22px 0 90px;
}
.final-cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 44px;
    border-radius: 38px;
    color: #fff;
    background:
        radial-gradient(circle at 12% 20%, rgba(6,182,212,.26), transparent 24rem),
        radial-gradient(circle at 84% 10%, rgba(217,70,239,.22), transparent 26rem),
        linear-gradient(135deg, #07111f, #101a2d 55%, #17112a);
    box-shadow: 0 32px 90px rgba(7,17,31,.26);
    overflow: hidden;
    position: relative;
}
.final-cta-card:after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -120px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: conic-gradient(var(--cyan), var(--blue), var(--violet), var(--magenta), var(--amber), var(--cyan));
    opacity: .55;
}
.final-cta-card > * { position: relative; z-index: 1; }
.final-cta-card h2 { color: #fff; }
.final-cta-card p { color: rgba(255,255,255,.7); max-width: 650px; }
.final-cta-card .landing-kicker { color: #8be9ff; }

@media (max-width: 980px) {
    .landing-hero { min-height: auto; padding: 56px 0; }
    .landing-hero-grid,
    .landing-two-col {
        grid-template-columns: 1fr;
    }
    .landing-showcase { min-height: 500px; }
    .proof-grid,
    .solution-grid,
    .process-grid,
    .landing-topic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .landing-section-head.split,
    .final-cta-card {
        display: block;
    }
    .landing-section-head.split .button,
    .final-cta-card .landing-actions { margin-top: 22px; }
}

@media (max-width: 700px) {
    .landing-hero h1 {
        font-size: clamp(42px, 13vw, 58px);
        letter-spacing: -2.6px;
    }
    .landing-lead { font-size: 17px; }
    .landing-trust-row,
    .proof-grid,
    .solution-grid,
    .process-grid,
    .landing-topic-grid {
        grid-template-columns: 1fr;
    }
    .landing-showcase {
        min-height: 440px;
        border-radius: 30px;
    }
    .showcase-card.small { width: 190px; }
    .showcase-card.small.top { right: 14px; top: 220px; }
    .showcase-card.small.bottom { left: 14px; bottom: 58px; }
    .showcase-product { transform: translate(-50%, -46%) scale(.82) rotate(-4deg); }
    .showcase-ribbon { font-size: 10px; left: 14px; right: 14px; }
    .landing-section { padding: 62px 0; }
    .landing-section-head h2,
    .final-cta-card h2 {
        font-size: clamp(32px, 10vw, 44px);
        letter-spacing: -1.7px;
    }
    .landing-product-row {
        grid-template-columns: 64px 1fr;
    }
    .landing-product-row b { grid-column: 2; }
    .landing-product-row img,
    .product-row-placeholder {
        width: 64px;
        height: 64px;
        border-radius: 20px;
    }
    .final-cta-card { padding: 30px; border-radius: 30px; }
}

@media (max-width: 560px) {
    .main-nav { display: none; }
    .nav-cta { display: inline-flex; }
    .brand { font-size: 18px; }
    .brand-mark { width: 38px; height: 38px; }
}

/* ERSublimados - landing orientada a compra */
.buy-hero {
    position: relative;
    overflow: hidden;
    padding: 92px 0 58px;
    color: #fff;
    background:
        radial-gradient(circle at 9% 10%, rgba(6,182,212,.38), transparent 28rem),
        radial-gradient(circle at 88% 4%, rgba(217,70,239,.30), transparent 30rem),
        radial-gradient(circle at 64% 88%, rgba(245,158,11,.18), transparent 23rem),
        linear-gradient(135deg, #050b16 0%, #0b1628 48%, #111827 100%);
}
.buy-hero-bg {
    position: absolute;
    inset: 0;
    opacity: .24;
    background-image:
        linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(180deg, #000, transparent 80%);
}
.buy-hero:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 96px;
    background: linear-gradient(180deg, transparent, var(--bg));
}
.buy-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .72fr);
    gap: 54px;
    align-items: center;
}
.buy-kicker,
.buy-section-title span,
.buy-final-card span,
.buy-value-card.main span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #76e7ff;
    font-size: 12px;
    line-height: 1;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 950;
}
.buy-kicker:before,
.buy-section-title span:before,
.buy-final-card span:before,
.buy-value-card.main span:before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: conic-gradient(var(--cyan), var(--blue), var(--violet), var(--magenta), var(--amber), var(--cyan));
    box-shadow: 0 0 0 6px rgba(6,182,212,.14);
}
.buy-hero h1 {
    max-width: 840px;
    margin: 18px 0 20px;
    font-size: clamp(42px, 6.5vw, 78px);
    line-height: .93;
    letter-spacing: -3.4px;
}
.buy-hero-copy p {
    max-width: 720px;
    color: rgba(255,255,255,.76);
    font-size: 19px;
    margin: 0 0 28px;
}
.buy-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.button.buy-primary,
.button.buy-whatsapp,
.button.buy-secondary {
    min-height: 52px;
    padding: 0 24px;
}
.button.buy-primary {
    background: linear-gradient(135deg, #06b6d4, #2563eb 46%, #7c3aed);
    box-shadow: 0 20px 44px rgba(37,99,235,.30);
}
.button.buy-whatsapp {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 18px 38px rgba(16,185,129,.26);
}
.button.buy-secondary {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: 0 14px 30px rgba(7,17,31,.07);
}
.buy-trust {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 28px;
}
.buy-trust span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 13px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    color: rgba(255,255,255,.82);
    font-size: 13px;
    font-weight: 850;
    backdrop-filter: blur(12px);
}
.buy-trust span:before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(16,185,129,.16);
}
.buy-hero-panel {
    border-radius: 34px;
    padding: 18px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 34px 90px rgba(0,0,0,.34);
    backdrop-filter: blur(18px);
}
.buy-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
    color: rgba(255,255,255,.68);
    font-size: 13px;
    font-weight: 850;
}
.buy-panel-head strong {
    color: #fff;
    font-size: 14px;
}
.buy-featured-product {
    display: grid;
    grid-template-columns: 146px 1fr;
    gap: 18px;
    padding: 18px;
    border-radius: 28px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 28px 70px rgba(0,0,0,.25);
}
.buy-featured-image {
    min-height: 170px;
    border-radius: 24px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 22% 14%, rgba(6,182,212,.20), transparent 40%),
        radial-gradient(circle at 88% 76%, rgba(217,70,239,.18), transparent 42%),
        linear-gradient(135deg, #f8fbff, #eef4ff);
    border: 1px solid #e6eef8;
}
.buy-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.buy-featured-image span,
.buy-product-image span {
    width: 84px;
    height: 84px;
    border-radius: 28px;
    display: grid;
    place-items: center;
    background: conic-gradient(from 210deg, var(--cyan), var(--blue), var(--violet), var(--magenta), var(--amber), var(--cyan));
    color: #fff;
    font-weight: 950;
    font-size: 26px;
    letter-spacing: -1.4px;
    box-shadow: 0 18px 40px rgba(37,99,235,.22);
}
.buy-featured-product small,
.buy-product-body small {
    color: var(--blue);
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .12em;
}
.buy-featured-product h2 {
    margin: 8px 0 8px;
    font-size: 25px;
    line-height: 1.05;
    letter-spacing: -1px;
}
.buy-featured-product p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}
.buy-featured-product b {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--ink);
    background: #fef3c7;
    border: 1px solid #fde68a;
    font-size: 14px;
}
.buy-mini-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 12px;
}
.buy-mini-list div {
    padding: 13px;
    border-radius: 20px;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.13);
}
.buy-mini-list span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    color: var(--blue);
    font-size: 12px;
    font-weight: 950;
    margin-bottom: 8px;
}
.buy-mini-list p {
    margin: 0;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 900;
    color: rgba(255,255,255,.82);
}
.buy-category-band,
.buy-products-section,
.buy-services-section,
.buy-value-section,
.buy-steps-section,
.buy-blog-strip,
.buy-final-cta {
    padding: 72px 0;
}
.buy-category-band { padding-top: 56px; }
.buy-section-title {
    margin-bottom: 28px;
}
.buy-section-title span { color: var(--blue); }
.buy-section-title h2 {
    margin: 10px 0 0;
    max-width: 780px;
    color: var(--ink);
    font-size: clamp(31px, 4vw, 50px);
    line-height: 1;
    letter-spacing: -2px;
}
.buy-section-title p {
    max-width: 650px;
    color: var(--muted);
    font-size: 17px;
    margin: 14px 0 0;
}
.buy-section-title.split {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 28px;
}
.buy-section-title.centered {
    text-align: center;
}
.buy-section-title.centered h2,
.buy-section-title.centered p {
    margin-left: auto;
    margin-right: auto;
}
.buy-section-title.compact h2 {
    font-size: clamp(26px, 3vw, 38px);
}
.buy-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.buy-category-card {
    min-height: 120px;
    padding: 22px;
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,255,255,.72)),
        radial-gradient(circle at 85% 12%, rgba(6,182,212,.18), transparent 38%);
    border: 1px solid rgba(220,229,242,.92);
    box-shadow: 0 18px 42px rgba(7,17,31,.06);
    position: relative;
    overflow: hidden;
}
.buy-category-card:after {
    content: "";
    position: absolute;
    right: -24px;
    bottom: -24px;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: conic-gradient(var(--cyan), var(--blue), var(--violet), var(--magenta), var(--amber), var(--cyan));
    opacity: .16;
}
.buy-category-card strong {
    display: block;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.1;
    letter-spacing: -.5px;
    margin-bottom: 10px;
}
.buy-category-card small {
    color: var(--muted);
    font-weight: 850;
}

.buy-services-section {
    background:
        radial-gradient(circle at 8% 12%, rgba(6,182,212,.12), transparent 26rem),
        radial-gradient(circle at 86% 64%, rgba(217,70,239,.10), transparent 24rem),
        linear-gradient(180deg, #ffffff 0%, #f4f8fe 100%);
}
.buy-service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.buy-service-card {
    min-height: 250px;
    padding: 28px;
    border-radius: 32px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(255,255,255,.96), rgba(255,255,255,.78)),
        radial-gradient(circle at 88% 16%, rgba(37,99,235,.16), transparent 34%);
    border: 1px solid rgba(220,229,242,.95);
    box-shadow: 0 20px 55px rgba(7,17,31,.07);
}
.buy-service-card:before {
    content: "";
    position: absolute;
    right: -42px;
    bottom: -42px;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background: conic-gradient(from 210deg, var(--cyan), var(--blue), var(--violet), var(--magenta), var(--amber), var(--cyan));
    opacity: .13;
}
.buy-service-card:after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255,255,255,.24), transparent 45%);
}
.buy-service-card em {
    position: relative;
    z-index: 1;
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: #07111f;
    color: #fff;
    font-style: normal;
    font-weight: 950;
    font-size: 13px;
    box-shadow: 0 16px 34px rgba(7,17,31,.18);
}
.buy-service-card h3 {
    position: relative;
    z-index: 1;
    margin: 24px 0 10px;
    color: var(--ink);
    font-size: 27px;
    line-height: 1.02;
    letter-spacing: -1.2px;
}
.buy-service-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--muted);
    line-height: 1.58;
}
.buy-service-card.service-1 em { background: linear-gradient(135deg, #06b6d4, #2563eb); }
.buy-service-card.service-2 em { background: linear-gradient(135deg, #7c3aed, #d946ef); }
.buy-service-card.service-3 em { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.buy-service-card.service-4 em { background: linear-gradient(135deg, #10b981, #06b6d4); }
.buy-service-card.service-5 em { background: linear-gradient(135deg, #111827, #7c3aed); }
.buy-service-card.service-6 em { background: linear-gradient(135deg, #2563eb, #10b981); }

.buy-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.buy-product-card {
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(220,229,242,.95);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(7,17,31,.07);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.buy-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 70px rgba(7,17,31,.12);
    border-color: rgba(37,99,235,.26);
}
.buy-product-image {
    height: 230px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 18%, rgba(6,182,212,.18), transparent 38%),
        radial-gradient(circle at 86% 80%, rgba(217,70,239,.16), transparent 38%),
        linear-gradient(135deg, #ffffff, #eef5ff);
}
.buy-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.buy-product-body {
    padding: 22px;
}
.buy-product-body h3 {
    margin: 8px 0 10px;
    font-size: 23px;
    line-height: 1.08;
    letter-spacing: -.9px;
}
.buy-product-body p {
    margin: 0;
    color: var(--muted);
    min-height: 52px;
}
.buy-product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}
.buy-product-bottom strong {
    color: var(--ink);
    font-size: 18px;
    letter-spacing: -.4px;
}
.buy-product-bottom a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 13px;
    font-weight: 950;
}
.buy-value-section {
    background:
        radial-gradient(circle at 12% 18%, rgba(6,182,212,.16), transparent 24rem),
        radial-gradient(circle at 86% 64%, rgba(124,58,237,.12), transparent 24rem),
        #eef4fb;
}
.buy-value-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr;
    gap: 18px;
}
.buy-value-card {
    min-height: 210px;
    padding: 26px;
    border-radius: 30px;
    background: #fff;
    border: 1px solid rgba(220,229,242,.95);
    box-shadow: 0 18px 45px rgba(7,17,31,.06);
}
.buy-value-card.main {
    grid-row: span 2;
    color: #fff;
    background:
        radial-gradient(circle at 16% 10%, rgba(6,182,212,.32), transparent 18rem),
        radial-gradient(circle at 90% 88%, rgba(217,70,239,.26), transparent 18rem),
        linear-gradient(135deg, #07111f, #111827);
}
.buy-value-card.main span { color: #76e7ff; }
.buy-value-card h2 {
    margin: 12px 0;
    font-size: clamp(31px, 4vw, 48px);
    line-height: 1;
    letter-spacing: -2px;
}
.buy-value-card.main p {
    color: rgba(255,255,255,.72);
    font-size: 17px;
    margin: 0 0 24px;
}
.buy-value-card strong {
    display: block;
    color: var(--ink);
    font-size: 24px;
    line-height: 1.05;
    letter-spacing: -1px;
    margin-bottom: 12px;
}
.buy-value-card p {
    color: var(--muted);
    margin: 0;
}
.buy-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.buy-steps-grid article {
    padding: 24px;
    border-radius: 28px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 16px 36px rgba(7,17,31,.06);
}
.buy-steps-grid span {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--violet));
    font-weight: 950;
    margin-bottom: 18px;
}
.buy-steps-grid h3 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 21px;
    letter-spacing: -.6px;
}
.buy-steps-grid p {
    margin: 0;
    color: var(--muted);
}
.buy-blog-strip {
    background: rgba(255,255,255,.55);
}
.buy-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.buy-topic-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.buy-topic-row article {
    padding: 24px;
    border-radius: 28px;
    background: #fff;
    border: 1px solid var(--line);
}
.buy-topic-row strong {
    display: block;
    color: var(--ink);
    font-size: 21px;
    letter-spacing: -.6px;
    margin-bottom: 8px;
}
.buy-topic-row p {
    margin: 0;
    color: var(--muted);
}
.buy-final-cta {
    padding-top: 28px;
}
.buy-final-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    color: #fff;
    padding: 34px;
    border-radius: 34px;
    background:
        radial-gradient(circle at 12% 10%, rgba(6,182,212,.30), transparent 20rem),
        radial-gradient(circle at 92% 80%, rgba(245,158,11,.22), transparent 20rem),
        linear-gradient(135deg, #07111f, #111827);
    box-shadow: 0 30px 80px rgba(7,17,31,.18);
}
.buy-final-card h2 {
    margin: 10px 0 8px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1;
    letter-spacing: -2px;
}
.buy-final-card p {
    margin: 0;
    max-width: 680px;
    color: rgba(255,255,255,.72);
}
.buy-final-card .buy-secondary {
    border-color: rgba(255,255,255,.18);
}

@media (max-width: 980px) {
    .buy-hero-grid,
    .buy-value-grid {
        grid-template-columns: 1fr;
    }
    .buy-category-grid,
    .buy-service-grid,
    .buy-product-grid,
    .buy-steps-grid,
    .buy-blog-grid,
    .buy-topic-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .buy-section-title.split,
    .buy-final-card {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 680px) {
    .buy-hero { padding: 58px 0 42px; }
    .buy-hero h1 { letter-spacing: -2px; }
    .buy-hero-copy p { font-size: 17px; }
    .buy-featured-product {
        grid-template-columns: 1fr;
    }
    .buy-featured-image { min-height: 210px; }
    .buy-mini-list,
    .buy-category-grid,
    .buy-service-grid,
    .buy-service-grid,
    .buy-product-grid,
    .buy-steps-grid,
    .buy-blog-grid,
    .buy-topic-row {
        grid-template-columns: 1fr;
    }
    .buy-section-title h2,
    .buy-value-card h2,
    .buy-final-card h2 {
        letter-spacing: -1.4px;
    }
    .buy-final-card { padding: 24px; }
    .button.buy-primary,
    .button.buy-whatsapp,
    .button.buy-secondary {
        width: 100%;
    }
}

/* Admin settings panel */
.admin-kicker {
    display: inline-flex;
    color: var(--blue);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 8px;
}
.admin-dashboard-hero,
.settings-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 28px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 8% 10%, rgba(6,182,212,.12), transparent 18rem),
        radial-gradient(circle at 94% 24%, rgba(124,58,237,.10), transparent 18rem),
        #fff;
}
.admin-dashboard-hero h2,
.settings-hero h2 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.02;
    letter-spacing: -1.4px;
}
.admin-dashboard-hero p,
.settings-hero p {
    color: var(--muted);
    margin: 0;
    max-width: 720px;
}
.admin-stat-grid { margin-bottom: 18px; }
.admin-stat-card span {
    color: var(--muted);
    font-weight: 950;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.admin-stat-card h2 {
    margin: 6px 0;
    color: var(--ink);
    font-size: 44px;
    line-height: 1;
}
.admin-stat-card p { margin: 0; color: var(--muted); }
.admin-config-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
    gap: 18px;
}
.admin-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.admin-action-grid a {
    display: block;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #f8fbff;
}
.admin-action-grid a:hover { border-color: rgba(37,99,235,.32); background: #eef6ff; }
.admin-action-grid strong { display: block; color: var(--ink); margin-bottom: 5px; }
.admin-action-grid span { color: var(--muted); font-size: 14px; }
.health-list { display: grid; gap: 12px; }
.health-list div {
    display: grid;
    grid-template-columns: 14px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.health-list div:last-child { border-bottom: 0; }
.health-list em { color: var(--muted); font-style: normal; font-size: 13px; }
.health-dot { width: 10px; height: 10px; border-radius: 999px; background: #f59e0b; box-shadow: 0 0 0 4px rgba(245,158,11,.14); }
.health-dot.ok { background: #10b981; box-shadow: 0 0 0 4px rgba(16,185,129,.14); }
.health-dot.warn { background: #f59e0b; }
.settings-preview-card {
    width: min(330px, 100%);
    padding: 22px;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(135deg, #07111f, #111827);
    box-shadow: 0 18px 50px rgba(7,17,31,.18);
}
.settings-preview-card span { color: #8be9ff; font-weight: 950; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.settings-preview-card strong { display: block; font-size: 26px; margin: 8px 0; }
.settings-preview-card p { color: rgba(255,255,255,.72); margin-bottom: 16px; }
.settings-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}
.settings-index {
    position: sticky;
    top: 22px;
    display: grid;
    gap: 8px;
}
.settings-index strong { color: var(--ink); margin-bottom: 4px; }
.settings-index a {
    padding: 10px 12px;
    border-radius: 14px;
    color: var(--muted);
    font-weight: 850;
}
.settings-index a:hover { background: #eef6ff; color: var(--blue); }
.settings-section {
    padding: 26px;
    border-radius: 28px;
}
.settings-section-head {
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--line);
}
.settings-section-head h2 {
    margin: 0 0 6px;
    color: var(--ink);
    font-size: 28px;
    letter-spacing: -.8px;
}
.settings-section-head p { margin: 0; color: var(--muted); }
.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.setting-field-textarea,
.setting-field-checkbox { grid-column: 1 / -1; }
.setting-field small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 6px;
}
.setting-field-color input[type="color"] {
    width: 100%;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 4px;
    background: #fff;
}
.switch-row {
    display: inline-flex;
    width: auto;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f8fbff;
    cursor: pointer;
}
.switch-row input { width: 18px; height: 18px; }
.settings-savebar {
    position: sticky;
    bottom: 16px;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 16px 18px;
    border: 1px solid rgba(220,229,242,.95);
    border-radius: 22px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 50px rgba(7,17,31,.12);
}
.settings-savebar strong { display: block; color: var(--ink); }
.settings-savebar span { display: block; color: var(--muted); font-size: 13px; }

@media (max-width: 1020px) {
    .admin-dashboard-hero,
    .settings-hero,
    .settings-savebar { flex-direction: column; align-items: flex-start; }
    .admin-config-grid,
    .settings-layout { grid-template-columns: 1fr; }
    .settings-index { position: static; }
}

@media (max-width: 720px) {
    .admin-action-grid,
    .settings-grid { grid-template-columns: 1fr; }
    .settings-section { padding: 18px; }
    .settings-savebar button { width: 100%; }
}

.contact-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}
.contact-detail-grid div {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #f8fbff;
}
.contact-detail-grid strong { display: block; color: var(--ink); margin-bottom: 4px; }
.contact-detail-grid span,
.contact-detail-grid a { color: var(--muted); font-weight: 800; }
.contact-detail-grid a:hover { color: var(--blue); }
@media (max-width: 720px) { .contact-detail-grid { grid-template-columns: 1fr; } }

/* Admin dashboard professional controls */
.admin-dashboard-hero-pro {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,251,255,.94)),
        radial-gradient(circle at 12% 12%, rgba(6,182,212,.16), transparent 21rem),
        radial-gradient(circle at 92% 18%, rgba(124,58,237,.14), transparent 22rem);
}
.admin-dashboard-hero-pro:before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(90deg, rgba(37,99,235,.055) 1px, transparent 1px),
        linear-gradient(0deg, rgba(37,99,235,.055) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(90deg, rgba(0,0,0,.8), transparent 75%);
}
.admin-dashboard-hero-pro > * { position: relative; z-index: 1; }
.admin-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.admin-live-preview {
    width: min(360px, 100%);
    padding: 18px;
    border: 1px solid rgba(220,229,242,.92);
    border-radius: 26px;
    background: rgba(255,255,255,.82);
    box-shadow: 0 20px 60px rgba(15,23,42,.12);
}
.admin-live-preview > span {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(37,99,235,.1);
    color: var(--blue);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.admin-live-preview-image {
    display: grid;
    place-items: center;
    height: 176px;
    margin: 14px 0;
    border-radius: 22px;
    overflow: hidden;
    background:
        radial-gradient(circle at 25% 20%, rgba(6,182,212,.22), transparent 11rem),
        linear-gradient(135deg, #eef6ff, #f8fbff);
}
.admin-live-preview-image img { width: 100%; height: 100%; object-fit: cover; }
.admin-live-preview-image b {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--violet));
    font-size: 28px;
    letter-spacing: -.05em;
}
.admin-live-preview strong { display: block; color: var(--ink); font-size: 22px; line-height: 1.1; }
.admin-live-preview small { display: block; color: var(--muted); margin: 8px 0 12px; font-weight: 750; }
.admin-live-preview a { color: var(--blue); font-weight: 950; }
.admin-stat-grid-pro { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.admin-dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(310px, .65fr);
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}
.admin-dashboard-layout.lower { grid-template-columns: minmax(0, 1.1fr) minmax(300px, .55fr); }
.admin-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}
.admin-panel-head.compact { margin-bottom: 12px; }
.admin-panel-head h2 {
    margin: 0 0 6px;
    color: var(--ink);
    font-size: 28px;
    letter-spacing: -.8px;
    line-height: 1.08;
}
.admin-panel-head p { margin: 0; color: var(--muted); max-width: 760px; }
.admin-home-control { padding: 26px; border-radius: 28px; }
.admin-featured-form .form-row small,
.admin-featured-form small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 6px;
}
.admin-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 16px;
    margin-top: 8px;
    border-top: 1px solid var(--line);
}
.admin-readiness-panel { position: sticky; top: 18px; }
.readiness-list { display: grid; gap: 10px; margin-bottom: 16px; }
.readiness-item {
    display: grid;
    grid-template-columns: 14px 1fr;
    gap: 10px;
    align-items: center;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #f8fbff;
}
.readiness-item > span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245,158,11,.14);
}
.readiness-item.ok > span { background: #10b981; box-shadow: 0 0 0 4px rgba(16,185,129,.14); }
.readiness-item strong { display: block; color: var(--ink); font-size: 14px; }
.readiness-item small { color: var(--muted); font-size: 12px; }
.button.full { width: 100%; text-align: center; justify-content: center; }
.admin-product-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.admin-product-mini {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #f8fbff;
}
.admin-product-mini-img {
    display: grid;
    place-items: center;
    height: 96px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, #e0f2fe, #f5f3ff);
}
.admin-product-mini-img img { width: 100%; height: 100%; object-fit: cover; }
.admin-product-mini-img span {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #fff;
    color: var(--blue);
    font-weight: 950;
}
.admin-product-mini small,
.admin-product-mini em {
    display: block;
    color: var(--muted);
    font-style: normal;
    font-size: 12px;
    font-weight: 850;
}
.admin-product-mini strong {
    display: block;
    color: var(--ink);
    margin: 4px 0;
    line-height: 1.15;
}
.admin-mini-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.admin-mini-actions a,
.admin-mini-actions button {
    appearance: none;
    border: 0;
    padding: 7px 10px;
    border-radius: 999px;
    background: #fff;
    color: var(--blue);
    font-weight: 950;
    font-size: 12px;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(37,99,235,.18);
}
.admin-action-grid.single { grid-template-columns: 1fr; }
.admin-empty-state {
    grid-column: 1 / -1;
    padding: 24px;
    border: 1px dashed rgba(37,99,235,.28);
    border-radius: 22px;
    background: #f8fbff;
}
.admin-empty-state strong { display: block; color: var(--ink); font-size: 18px; }
.admin-empty-state p { color: var(--muted); }
.admin-blog-overview { margin-bottom: 18px; }
.admin-compact-table { display: grid; gap: 10px; }
.admin-compact-table > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}
.admin-compact-table > div:last-child { border-bottom: 0; }
.admin-compact-table strong { color: var(--ink); }
.admin-compact-table span { color: var(--muted); font-size: 13px; }
.admin-compact-table a { color: var(--blue); font-weight: 950; }

@media (max-width: 1180px) {
    .admin-stat-grid-pro { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-dashboard-layout,
    .admin-dashboard-layout.lower { grid-template-columns: 1fr; }
    .admin-readiness-panel { position: static; }
}
@media (max-width: 760px) {
    .admin-stat-grid-pro,
    .admin-product-strip { grid-template-columns: 1fr; }
    .admin-panel-head,
    .admin-form-footer { flex-direction: column; align-items: flex-start; }
    .admin-compact-table > div { grid-template-columns: 1fr; }
    .admin-product-mini { grid-template-columns: 82px 1fr; }
    .admin-product-mini-img { height: 82px; }
}

/* Admin menu profesional ERSublimados */
.admin-body-pro {
    display: grid;
    grid-template-columns: 304px minmax(0, 1fr);
    min-height: 100vh;
    background:
        radial-gradient(circle at 92% 8%, rgba(37,99,235,.08), transparent 28rem),
        radial-gradient(circle at 78% 92%, rgba(124,58,237,.07), transparent 26rem),
        #f5f7fb;
}
.admin-sidebar-pro {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 16px;
    overflow: hidden;
    color: #e5e7eb;
    background:
        radial-gradient(circle at 24% 6%, rgba(14,165,233,.18), transparent 20rem),
        radial-gradient(circle at 84% 94%, rgba(124,58,237,.18), transparent 20rem),
        linear-gradient(180deg, #08111f 0%, #101827 48%, #070b13 100%);
    border-right: 1px solid rgba(255,255,255,.08);
}
.admin-sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 18px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.24) transparent;
}
.admin-sidebar-inner::-webkit-scrollbar { width: 6px; }
.admin-sidebar-inner::-webkit-scrollbar-thumb { background: rgba(255,255,255,.22); border-radius: 999px; }
.admin-brand-pro {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 12px;
    align-items: center;
    padding: 14px;
    border-radius: 24px;
    color: #fff !important;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.admin-brand-pro:hover {
    background: rgba(255,255,255,.09);
}
.admin-brand-pro span {
    grid-row: 1 / span 2;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--violet));
    font-size: 18px;
    font-weight: 950;
    letter-spacing: -.04em;
    box-shadow: 0 14px 34px rgba(37,99,235,.30);
}
.admin-brand-pro strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 18px;
    line-height: 1.05;
    letter-spacing: -.4px;
}
.admin-brand-pro small {
    color: rgba(226,232,240,.72);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.admin-menu-pro {
    display: grid;
    gap: 18px;
}
.admin-menu-section {
    display: grid;
    gap: 7px;
}
.admin-menu-title {
    padding: 0 10px 4px;
    color: rgba(226,232,240,.48);
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .14em;
}
.admin-menu-item {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    min-height: 58px;
    padding: 9px 10px;
    border-radius: 18px;
    color: rgba(241,245,249,.82) !important;
    border: 1px solid transparent;
    transition: background .18s ease, border-color .18s ease, transform .18s ease, color .18s ease;
}
.admin-menu-item:hover {
    color: #fff !important;
    background: rgba(255,255,255,.075) !important;
    border-color: rgba(255,255,255,.08);
    transform: translateX(2px);
}
.admin-menu-item.active {
    color: #fff !important;
    background:
        linear-gradient(135deg, rgba(37,99,235,.30), rgba(124,58,237,.24)),
        rgba(255,255,255,.08) !important;
    border-color: rgba(125,211,252,.28);
    box-shadow: 0 14px 40px rgba(2,6,23,.22), inset 0 1px 0 rgba(255,255,255,.12);
}
.admin-menu-item.active:before {
    content: "";
    position: absolute;
    left: -16px;
    top: 14px;
    bottom: 14px;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #22d3ee, #7c3aed);
    box-shadow: 0 0 22px rgba(34,211,238,.42);
}
.admin-menu-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 15px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.08);
}
.admin-menu-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    opacity: .92;
}
.admin-menu-item.active .admin-menu-icon {
    background: rgba(255,255,255,.16);
    color: #bff2ff;
}
.admin-menu-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}
.admin-menu-copy strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: inherit;
    font-size: 14px;
    font-weight: 950;
    letter-spacing: -.1px;
}
.admin-menu-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(226,232,240,.56);
    font-size: 11px;
    font-weight: 750;
}
.admin-menu-item em {
    min-width: 26px;
    height: 26px;
    display: inline-grid;
    place-items: center;
    padding: 0 8px;
    border-radius: 999px;
    color: #cffafe;
    background: rgba(14,165,233,.16);
    border: 1px solid rgba(125,211,252,.20);
    font-style: normal;
    font-size: 11px;
    font-weight: 950;
}
.admin-sidebar-bottom {
    display: grid;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.08);
}
.admin-user-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 11px;
    border-radius: 18px;
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.08);
}
.admin-user-card > span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(135deg, rgba(14,165,233,.90), rgba(124,58,237,.90));
    font-size: 16px;
    font-weight: 950;
}
.admin-user-card strong {
    display: block;
    color: #fff;
    font-size: 13px;
    line-height: 1.2;
}
.admin-user-card small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(226,232,240,.56);
    font-size: 11px;
    font-weight: 750;
}
.admin-logout-pro {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 17px;
    color: rgba(254,226,226,.92) !important;
    border: 1px solid rgba(248,113,113,.10);
}
.admin-logout-pro:hover {
    color: #fff !important;
    background: rgba(239,68,68,.12) !important;
    border-color: rgba(248,113,113,.18);
}
.admin-main-pro {
    min-width: 0;
    padding: 30px;
}
.admin-topbar-pro {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: -30px -30px 24px;
    padding: 22px 30px;
    background: rgba(245,247,251,.86);
    border-bottom: 1px solid rgba(220,229,242,.80);
    backdrop-filter: blur(16px);
}
.admin-topbar-pro h1 {
    margin: 3px 0 0;
    color: var(--ink);
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1;
    letter-spacing: -1.3px;
}
.admin-topbar-kicker {
    color: var(--blue);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .12em;
}
.admin-topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}
.admin-topbar-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 15px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: 13px;
    font-weight: 950;
    box-shadow: 0 10px 24px rgba(7,17,31,.05);
}
.admin-topbar-actions a:hover {
    border-color: rgba(37,99,235,.25);
    color: var(--blue);
}
.admin-topbar-actions .admin-topbar-primary {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--blue), var(--violet));
    box-shadow: 0 16px 34px rgba(37,99,235,.22);
}
.admin-topbar-actions .admin-topbar-primary:hover {
    color: #fff;
    filter: brightness(1.03);
}

@media (max-width: 1080px) {
    .admin-body-pro {
        grid-template-columns: 1fr;
    }
    .admin-sidebar-pro {
        position: sticky;
        z-index: 40;
        top: 0;
        height: auto;
        padding: 12px;
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }
    .admin-sidebar-inner {
        display: grid;
        grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
        align-items: center;
        gap: 12px;
        height: auto;
        overflow: visible;
        padding-right: 0;
    }
    .admin-menu-pro {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 2px;
    }
    .admin-menu-section {
        display: flex;
        gap: 8px;
        min-width: max-content;
    }
    .admin-menu-title,
    .admin-menu-copy small,
    .admin-sidebar-bottom,
    .admin-menu-item.active:before {
        display: none;
    }
    .admin-menu-item {
        grid-template-columns: 34px auto auto;
        min-height: 48px;
        padding: 7px 10px;
        border-radius: 16px;
    }
    .admin-menu-icon {
        width: 34px;
        height: 34px;
        border-radius: 13px;
    }
    .admin-menu-copy strong {
        max-width: 120px;
        font-size: 13px;
    }
    .admin-main-pro {
        padding: 22px;
    }
    .admin-topbar-pro {
        margin: -22px -22px 20px;
        padding: 18px 22px;
    }
}

@media (max-width: 760px) {
    .admin-sidebar-inner {
        grid-template-columns: 1fr;
    }
    .admin-brand-pro {
        grid-template-columns: 44px minmax(0, 1fr);
        padding: 10px;
        border-radius: 20px;
    }
    .admin-brand-pro span {
        width: 44px;
        height: 44px;
        border-radius: 16px;
    }
    .admin-topbar-pro {
        position: static;
        flex-direction: column;
        align-items: flex-start;
    }
    .admin-topbar-actions {
        width: 100%;
        justify-content: flex-start;
    }
    .admin-topbar-actions a {
        flex: 1 1 auto;
    }
}

/* ERSublimados - menú público profesional + logo configurable */
.public-site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(220,229,242,.92);
    backdrop-filter: blur(18px);
    box-shadow: 0 14px 36px rgba(7,17,31,.06);
}
.public-topbar {
    background: linear-gradient(135deg, #07111f, #101a2d);
    color: rgba(255,255,255,.78);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .02em;
}
.public-topbar-inner {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.public-topbar-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}
.public-topbar a { color: #fff; }
.public-topbar a:hover { color: #8be9ff; }
.public-nav-pro {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}
.public-brand {
    min-width: 220px;
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: var(--ink);
}
.public-brand:hover { color: var(--ink); }
.public-brand-logo-mark,
.admin-brand-logo-mark {
    width: 48px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 17px;
    color: #fff;
    font-size: 15px;
    font-weight: 950;
    letter-spacing: -.8px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.22), transparent),
        conic-gradient(from 210deg, var(--cyan), var(--blue), var(--violet), var(--magenta), var(--amber), var(--cyan));
    box-shadow: 0 14px 34px rgba(37, 99, 235, .24);
}
.public-logo-image {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 52px;
    min-height: 52px;
    padding: 4px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(220,229,242,.95);
    box-shadow: 0 12px 26px rgba(7,17,31,.08);
}
.public-brand-logo-img {
    display: block;
    max-width: 172px;
    max-height: 54px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.public-brand-copy {
    display: grid;
    gap: 0;
    line-height: 1.1;
}
.public-brand-copy strong {
    color: var(--ink);
    font-size: 20px;
    font-weight: 950;
    letter-spacing: -.6px;
}
.public-brand-copy small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.public-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    font-weight: 900;
    color: #526173;
}
.public-menu > a,
.public-dropdown > a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    border-radius: 999px;
    transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}
.public-menu > a:hover,
.public-dropdown:hover > a,
.public-menu > a.active {
    color: var(--blue);
    background: #eef6ff;
    box-shadow: inset 0 0 0 1px rgba(37,99,235,.08);
}
.public-menu-cta {
    margin-left: 8px;
    color: #fff !important;
    background: linear-gradient(135deg, var(--blue), var(--violet)) !important;
    box-shadow: 0 14px 30px rgba(37,99,235,.24) !important;
}
.public-menu-cta:hover { filter: brightness(1.04); transform: translateY(-1px); }
.public-dropdown {
    position: relative;
    display: inline-flex;
}
.public-dropdown > a:after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    opacity: .72;
}
.public-dropdown-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    min-width: 310px;
    padding: 12px;
    border-radius: 24px;
    border: 1px solid rgba(220,229,242,.94);
    background: rgba(255,255,255,.98);
    box-shadow: 0 24px 70px rgba(7,17,31,.14);
    transform: translateX(-50%) translateY(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.public-dropdown:hover .public-dropdown-panel,
.public-dropdown:focus-within .public-dropdown-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.public-dropdown-panel:before {
    content: "";
    position: absolute;
    left: 50%;
    top: -8px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-left: 1px solid rgba(220,229,242,.94);
    border-top: 1px solid rgba(220,229,242,.94);
    transform: translateX(-50%) rotate(45deg);
}
.public-dropdown-panel a {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    color: var(--ink);
    font-size: 14px;
    line-height: 1.2;
}
.public-dropdown-panel a:hover { background: #f1f7ff; color: var(--blue); }
.public-dropdown-panel span {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--violet));
    font-size: 12px;
    font-weight: 950;
}
.public-menu-toggle { display: none; }
.public-menu-button {
    width: 48px;
    height: 48px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 10px 22px rgba(7,17,31,.06);
    cursor: pointer;
}
.public-menu-button span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--ink);
}
.public-footer-brand .public-logo-image {
    min-width: 44px;
    min-height: 44px;
    box-shadow: none;
}
.public-footer-brand .public-brand-logo-img {
    max-height: 42px;
    max-width: 150px;
}
.admin-brand-logo-img {
    max-width: 100%;
    max-height: 52px;
    object-fit: contain;
}
.admin-brand-pro .public-logo-image {
    width: 54px;
    height: 54px;
    min-width: 54px;
    min-height: 54px;
    padding: 4px;
    margin-bottom: 10px;
    border-radius: 18px;
}
.admin-brand-pro .admin-brand-logo-mark {
    width: 54px;
    height: 54px;
    margin-bottom: 10px;
    border-radius: 18px;
}
.logo-upload-box {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #f8fbff;
}
.logo-upload-preview {
    min-height: 110px;
    display: grid;
    place-items: center;
    padding: 14px;
    border-radius: 16px;
    background: #fff;
    border: 1px dashed #cbd5e1;
}
.logo-upload-preview img {
    max-width: 160px;
    max-height: 86px;
    object-fit: contain;
}
.logo-upload-preview span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}
.logo-upload-actions {
    display: grid;
    gap: 12px;
}
.logo-upload-actions input[type="file"] {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px;
    background: #fff;
}
.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 850;
}

@media (max-width: 1080px) {
    .public-brand { min-width: auto; }
    .public-brand-copy small { display: none; }
    .public-menu { gap: 2px; }
    .public-menu > a,
    .public-dropdown > a { padding: 0 10px; }
}

@media (max-width: 860px) {
    .public-topbar { display: none; }
    .public-nav-pro {
        min-height: 74px;
        flex-wrap: wrap;
        padding: 10px 0;
    }
    .public-brand-logo-img { max-width: 142px; max-height: 48px; }
    .public-brand-copy strong { font-size: 18px; }
    .public-menu-button { display: inline-flex; }
    .public-menu {
        order: 5;
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 24px;
        background: #fff;
        box-shadow: var(--shadow-soft);
    }
    .public-menu-toggle:checked ~ .public-menu { display: flex; }
    .public-menu > a,
    .public-dropdown > a,
    .public-menu-cta {
        min-height: 48px;
        justify-content: space-between;
        margin-left: 0;
        padding: 0 16px;
        border-radius: 16px;
    }
    .public-dropdown { display: grid; }
    .public-dropdown-panel {
        position: static;
        min-width: 0;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        box-shadow: none;
        border-radius: 18px;
        margin-top: 8px;
        background: #f8fbff;
    }
    .public-dropdown-panel:before { display: none; }
}

@media (max-width: 560px) {
    .public-brand-copy { display: none; }
    .public-brand-logo-mark { width: 44px; height: 44px; }
    .public-logo-image { min-width: 48px; min-height: 48px; }
    .public-brand-logo-img { max-width: 138px; }
    .logo-upload-box { grid-template-columns: 1fr; }
}
.settings-logo-preview {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
}
.settings-logo-preview .public-brand-logo-img {
    max-width: 150px;
    max-height: 48px;
}

/* === Editor enriquecido, galerías y usuarios admin === */
.panel-heading-split {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.panel-heading-split h2 {
    margin: 4px 0 6px;
}

.editor-page-panel {
    overflow: visible;
}

.rich-editor {
    border: 1px solid #dbe3ef;
    border-radius: 18px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .06);
}

.rich-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    background: linear-gradient(180deg, #f8fafc, #eef4ff);
    border-bottom: 1px solid #dbe3ef;
}

.rich-toolbar button {
    width: auto;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid #d6deeb;
    background: #ffffff;
    color: #182235;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: none;
}

.rich-toolbar button:hover {
    border-color: var(--blue, #0ea5e9);
    color: var(--blue, #0ea5e9);
}

.rich-editor-area {
    min-height: 360px;
    padding: 22px;
    outline: none;
    color: #182235;
    font-size: 16px;
    line-height: 1.75;
}

.rich-editor-area:focus {
    box-shadow: inset 0 0 0 2px rgba(14, 165, 233, .18);
}

.rich-editor-area h1,
.rich-editor-area h2,
.rich-editor-area h3 {
    margin: 20px 0 10px;
    line-height: 1.18;
    color: #0f172a;
}

.rich-editor-area h1 { font-size: 32px; }
.rich-editor-area h2 { font-size: 26px; }
.rich-editor-area h3 { font-size: 21px; }
.rich-editor-area p { margin: 0 0 14px; }
.rich-editor-area ul,
.rich-editor-area ol { padding-left: 24px; margin: 0 0 16px; }
.rich-editor-area blockquote {
    margin: 18px 0;
    padding: 16px 18px;
    border-left: 4px solid var(--blue, #0ea5e9);
    background: #f1f7ff;
    border-radius: 14px;
}

.rich-source {
    display: none;
}

.nested-panel {
    background: #f8fafc;
    border: 1px solid #e5edf7;
    margin: 22px 0;
    box-shadow: none;
}

.gallery-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.gallery-admin-item {
    background: #ffffff;
    border: 1px solid #e5edf7;
    border-radius: 18px;
    padding: 12px;
    display: grid;
    gap: 9px;
}

.gallery-admin-item img {
    width: 100%;
    height: 145px;
    object-fit: cover;
    border-radius: 14px;
    background: #eef2f7;
}

.gallery-admin-item label {
    font-size: 12px;
    font-weight: 800;
    color: #475569;
}

.gallery-admin-item input[type="text"],
.gallery-admin-item input[type="number"] {
    padding: 10px 11px;
    min-height: 38px;
}

.danger-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #fff1f2;
    color: #be123c !important;
}

.checkbox-actions,
.form-submit-row {
    flex-wrap: wrap;
    gap: 14px;
}

.toggle-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-weight: 800;
}

.media-carousel {
    width: 100%;
}

.media-carousel-main {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(135deg, #eef7ff, #fff7ed);
}

.media-carousel-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity .22s ease, transform .22s ease;
}

.media-carousel-slide.active {
    opacity: 1;
    transform: scale(1);
}

.media-carousel-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.media-carousel-thumb {
    padding: 0;
    border: 2px solid transparent;
    border-radius: 14px;
    background: #ffffff;
    overflow: hidden;
    height: 72px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
}

.media-carousel-thumb.active {
    border-color: var(--blue, #0ea5e9);
}

.media-carousel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-featured-carousel {
    margin-bottom: 26px;
}

.article-featured-carousel .media-carousel-main {
    aspect-ratio: 16 / 9;
    border-radius: 28px;
}

.article-featured-carousel .media-carousel-thumbs {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
}

@media (max-width: 760px) {
    .panel-heading-split {
        flex-direction: column;
    }

    .rich-toolbar {
        gap: 6px;
    }

    .rich-toolbar button {
        font-size: 12px;
        padding: 7px 9px;
    }

    .rich-editor-area {
        min-height: 280px;
        padding: 16px;
    }

    .media-carousel-main,
    .article-featured-carousel .media-carousel-main {
        aspect-ratio: 4 / 3;
    }
}

/* Admin: precio monetario y SKU automático */
.money-input-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border, #d7dee8);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.money-input-wrap span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 12px 14px;
    color: #475569;
    font-weight: 800;
    background: #f1f5f9;
    border-right: 1px solid var(--border, #d7dee8);
}

.money-input-wrap input {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    flex: 1;
    min-width: 0;
}

.sku-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef6ff;
    color: #0f4c81;
    border: 1px solid #cfe7ff;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .05em;
}

/* === Corrección visual admin: formularios de productos y blog === */
.admin-main-pro {
    width: 100%;
    overflow-x: hidden;
}

.admin-main-pro > .editor-page-panel {
    max-width: 1180px;
    margin: 0 auto 28px;
}

.editor-page-panel {
    padding: 0;
    border-radius: 30px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(220,229,242,.95);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .08);
}

.editor-page-panel .panel-heading-split {
    margin: 0;
    padding: 28px 30px;
    background:
        radial-gradient(circle at 96% 0%, rgba(37,99,235,.12), transparent 24rem),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border-bottom: 1px solid #e6eef8;
}

.editor-page-panel .panel-heading-split h2 {
    margin: 6px 0 8px;
    color: #07111f;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1;
    letter-spacing: -1.4px;
}

.editor-page-panel .panel-heading-split .help {
    margin: 0;
    max-width: 760px;
    font-size: 15px;
}

.editor-page-panel > form {
    display: grid;
    gap: 22px;
    padding: 30px;
}

.editor-page-panel .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin: 0;
}

.editor-page-panel .form-row {
    margin: 0;
}

.editor-page-panel label {
    margin-bottom: 8px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 950;
    letter-spacing: -.1px;
}

.editor-page-panel input[type="text"],
.editor-page-panel input[type="email"],
.editor-page-panel input[type="password"],
.editor-page-panel input[type="number"],
.editor-page-panel input[type="url"],
.editor-page-panel input[type="datetime-local"],
.editor-page-panel input[type="search"],
.editor-page-panel select,
.editor-page-panel textarea {
    min-height: 54px;
    border-radius: 17px;
    border: 1px solid #d7e2f0;
    background: #fbfdff;
    padding: 13px 15px;
    color: #0f172a;
    font-size: 15px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.editor-page-panel textarea {
    min-height: 128px;
}

.editor-page-panel input:focus,
.editor-page-panel select:focus,
.editor-page-panel textarea:focus {
    outline: none;
    border-color: rgba(37,99,235,.55);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37,99,235,.10);
}

.editor-page-panel input[readonly] {
    color: #475569;
    background: #f1f5f9;
    border-style: dashed;
    font-weight: 850;
    box-shadow: none;
}

.editor-page-panel input[type="file"] {
    width: 100%;
    min-height: 54px;
    padding: 12px;
    border: 1px dashed #b7c7dc;
    border-radius: 17px;
    background: linear-gradient(180deg, #fbfdff, #f5f8fc);
    color: #475569;
    font: inherit;
    cursor: pointer;
}

.editor-page-panel input[type="file"]::file-selector-button {
    margin-right: 12px;
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
    background: #0f172a;
    color: #fff;
    font-weight: 950;
    cursor: pointer;
}

.editor-page-panel .help {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}

.editor-page-panel .money-input-wrap {
    min-height: 54px;
    border-radius: 17px;
    border: 1px solid #d7e2f0;
    background: #fbfdff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.editor-page-panel .money-input-wrap:focus-within {
    border-color: rgba(37,99,235,.55);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37,99,235,.10);
}

.editor-page-panel .money-input-wrap span {
    min-height: 54px;
    color: #0f172a;
    background: #eef4ff;
    border-right: 1px solid #d7e2f0;
    font-size: 16px;
}

.editor-page-panel .money-input-wrap input {
    min-height: 52px;
    background: transparent !important;
}

.editor-page-panel .rich-editor {
    border-radius: 22px;
    border: 1px solid #d7e2f0;
    box-shadow: 0 18px 48px rgba(15,23,42,.06);
}

.editor-page-panel .rich-toolbar {
    padding: 14px;
    background:
        linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
}

.editor-page-panel .rich-toolbar button {
    min-height: 38px;
    border-radius: 12px;
    border: 1px solid #d6e1ef;
    background: #fff;
    color: #1e293b;
    box-shadow: 0 6px 14px rgba(15,23,42,.04);
}

.editor-page-panel .rich-editor-area {
    min-height: 340px;
    background: #fff;
}

.editor-page-panel .nested-panel {
    margin: 0;
    padding: 24px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0%, rgba(14,165,233,.08), transparent 20rem),
        #f8fafc;
    border: 1px solid #e2ebf6;
}

.editor-page-panel .nested-panel h3 {
    margin: 0 0 6px;
    color: #0f172a;
    font-size: 22px;
    letter-spacing: -.5px;
}

.editor-page-panel .gallery-admin-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.editor-page-panel .gallery-admin-item {
    border-radius: 20px;
    border: 1px solid #dfe8f5;
    box-shadow: 0 12px 30px rgba(15,23,42,.05);
}

.editor-page-panel .checkbox-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 22px;
    background: #f8fafc;
    border: 1px solid #e2ebf6;
}

.editor-page-panel .checkbox-actions label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding: 10px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e2ebf6;
    color: #334155;
    font-size: 13px;
}

.editor-page-panel .checkbox-actions input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--blue);
}

.editor-page-panel .form-submit-row {
    position: sticky;
    bottom: 0;
    z-index: 5;
    margin: 0 -30px -30px;
    padding: 18px 30px;
    background: rgba(255,255,255,.92);
    border-top: 1px solid #e6eef8;
    backdrop-filter: blur(14px);
}

.editor-page-panel .form-submit-row .button,
.editor-page-panel .form-submit-row button {
    min-height: 48px;
}

@media (max-width: 1080px) {
    .admin-main-pro > .editor-page-panel {
        max-width: none;
    }
}

@media (max-width: 760px) {
    .editor-page-panel .panel-heading-split,
    .editor-page-panel > form {
        padding: 22px;
    }

    .editor-page-panel .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .editor-page-panel .checkbox-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .editor-page-panel .checkbox-actions label {
        width: 100%;
    }

    .editor-page-panel .form-submit-row {
        position: static;
        margin: 0 -22px -22px;
        padding: 16px 22px;
    }
}


/* Ajuste visual: evita CTA redundante en formularios de creación/edición */
.admin-editor-mode .admin-topbar-pro {
    margin-bottom: 0;
}

.admin-editor-mode .admin-topbar-actions .admin-topbar-primary {
    display: none;
}

.admin-editor-mode .admin-main-pro > .editor-page-panel {
    margin-top: 0;
}

@media (max-width: 760px) {
    .admin-editor-mode .admin-topbar-pro {
        padding-bottom: 18px;
    }
}


/* === Fix visual: oculta la cabecera global en formularios de edición/creación === */
.admin-editor-mode .admin-topbar-pro {
    display: none !important;
}

.admin-editor-mode .admin-main-pro {
    padding-top: 24px;
}

.admin-editor-mode .admin-main-pro > .editor-page-panel {
    margin-top: 0 !important;
}

@media (max-width: 760px) {
    .admin-editor-mode .admin-main-pro {
        padding-top: 16px;
    }
}


/* === Fix global: cabecera admin compacta, sin acciones superpuestas === */
.admin-main-pro {
    padding: 24px 28px 32px !important;
}

.admin-topbar-pro.admin-topbar-compact {
    position: relative !important;
    top: auto !important;
    z-index: 1 !important;
    display: block !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.admin-topbar-pro.admin-topbar-compact h1 {
    margin: 2px 0 0 !important;
    font-size: clamp(28px, 2.3vw, 36px) !important;
    line-height: 1.05 !important;
    letter-spacing: -.9px !important;
}

.admin-topbar-pro.admin-topbar-compact .admin-topbar-kicker {
    display: inline-flex !important;
    margin-bottom: 2px !important;
    color: var(--blue) !important;
    font-size: 11px !important;
    font-weight: 950 !important;
    text-transform: uppercase !important;
    letter-spacing: .12em !important;
}

.admin-topbar-pro.admin-topbar-compact .admin-topbar-actions {
    display: none !important;
}

.admin-body-pro .panel,
.admin-body-pro .admin-dashboard-hero {
    scroll-margin-top: 24px;
}

.admin-body-pro .actions[style*="margin-bottom"] {
    margin-bottom: 18px !important;
}

@media (max-width: 1080px) {
    .admin-main-pro {
        padding: 18px !important;
    }

    .admin-topbar-pro.admin-topbar-compact {
        margin-bottom: 14px !important;
    }
}

@media (max-width: 760px) {
    .admin-topbar-pro.admin-topbar-compact h1 {
        font-size: 28px !important;
    }
}

/* Clientes, registro y ERP */
.account-page {
    padding: 72px 0;
    background: radial-gradient(circle at 15% 10%, rgba(37, 99, 235, .10), transparent 28%), linear-gradient(135deg, #f8fbff, #eef4ff);
    min-height: 72vh;
}
.account-shell {
    display: grid;
    gap: 28px;
    align-items: start;
}
.account-shell.two-cols {
    grid-template-columns: minmax(0, .9fr) minmax(420px, 1fr);
}
.account-copy {
    padding: 34px 12px;
}
.account-copy h1,
.account-copy h2 {
    font-size: clamp(34px, 4vw, 58px);
    line-height: .98;
    letter-spacing: -0.04em;
    margin: 14px 0 18px;
    color: #0f172a;
}
.account-copy p {
    font-size: 18px;
    line-height: 1.65;
    color: #64748b;
    max-width: 680px;
}
.account-benefits {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 24px 0 0;
    list-style: none;
}
.account-benefits li {
    padding: 14px 16px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 18px;
    background: rgba(255,255,255,.7);
    color: #0f172a;
    font-weight: 800;
}
.account-card {
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 28px;
    padding: 30px;
    box-shadow: 0 26px 80px rgba(15, 23, 42, .10);
}
.account-card h1,
.account-card h2 {
    margin: 0 0 8px;
    color: #0f172a;
    letter-spacing: -.03em;
}
.account-form {
    display: grid;
    gap: 16px;
}
.full-width {
    width: 100%;
    justify-content: center;
}
.social-login-stack {
    display: grid;
    gap: 10px;
    margin: 18px 0;
}
.social-button {
    width: 100%;
    justify-content: center;
    border-radius: 16px;
}
.account-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin: 20px 0;
}
.account-divider:before,
.account-divider:after {
    content: "";
    height: 1px;
    background: #dbe5f5;
    flex: 1;
}
.account-switch {
    margin: 18px 0 0;
    text-align: center;
    color: #64748b;
}
.account-switch a {
    color: #2563eb;
    font-weight: 900;
}
.customer-dashboard-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}
.customer-dashboard-head h1 {
    font-size: clamp(34px, 4vw, 52px);
    margin: 8px 0;
    color: #0f172a;
    letter-spacing: -.04em;
}
.customer-dashboard-head p {
    color: #64748b;
    font-size: 17px;
}
.customer-grid {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}
.customer-profile-card p {
    color: #475569;
    line-height: 1.5;
}
.empty-state-soft {
    text-align: center;
    padding: 44px 22px;
    border: 1px dashed #bfd0ea;
    border-radius: 22px;
    background: #f8fbff;
}
.empty-state-soft h3 {
    margin-top: 0;
    color: #0f172a;
}
.public-orders-table td,
.public-orders-table th {
    font-size: 14px;
}
.admin-filter-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
}
.admin-filter-bar input,
.admin-filter-bar select {
    max-width: 420px;
}
.admin-list-actions {
    margin-bottom: 16px;
}
.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.settings-card {
    border: 1px solid #dbe5f5;
    border-radius: 24px;
    padding: 24px;
    background: linear-gradient(180deg, #fff, #f8fbff);
}
.settings-card h3 {
    margin: 0 0 16px;
    color: #0f172a;
    letter-spacing: -.02em;
}
.security-list {
    margin: 0;
    padding-left: 18px;
    color: #475569;
    line-height: 1.8;
}
.security-list code,
.settings-card code {
    background: #eef4ff;
    color: #1d4ed8;
    padding: 2px 6px;
    border-radius: 8px;
}
.order-items-block {
    margin: 22px 0;
    padding: 22px;
    border: 1px solid #dbe5f5;
    border-radius: 24px;
    background: #f8fbff;
}
.order-items-table {
    display: grid;
    gap: 14px;
}
.order-item-row {
    display: grid;
    grid-template-columns: 1.2fr 1.4fr .55fr .75fr auto;
    gap: 10px;
    align-items: start;
    padding: 14px;
    background: #fff;
    border: 1px solid #dbe5f5;
    border-radius: 20px;
}
.order-item-row textarea {
    grid-column: 2 / 5;
    min-height: 52px;
}
.order-item-row .remove-order-row {
    grid-column: 5;
    grid-row: 1 / 3;
    align-self: center;
}
.badge.archived {
    background: #fee2e2;
    color: #991b1b;
}
.badge.scheduled {
    background: #dbeafe;
    color: #1d4ed8;
}
@media (max-width: 980px) {
    .account-shell.two-cols,
    .customer-grid,
    .settings-grid {
        grid-template-columns: 1fr;
    }
    .customer-dashboard-head {
        flex-direction: column;
    }
    .order-item-row {
        grid-template-columns: 1fr;
    }
    .order-item-row textarea,
    .order-item-row .remove-order-row {
        grid-column: auto;
        grid-row: auto;
    }
}


/* === ERP: pedidos confirmados, remitos internos y PDF === */
.inline-form { display: inline-flex; align-items: center; margin: 0; }
.order-row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.order-editor-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; align-items: center; }
.button.confirm, button.confirm { background: linear-gradient(135deg, #0f766e, #22c55e); color: #fff; }
.order-remito-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 18px 28px;
    background: linear-gradient(135deg, rgba(14,165,233,.08), rgba(124,58,237,.08));
    border-bottom: 1px solid var(--line);
}
.order-remito-summary > div {
    border: 1px solid rgba(148,163,184,.28);
    border-radius: 18px;
    background: rgba(255,255,255,.78);
    padding: 14px 16px;
}
.order-remito-summary strong { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .09em; margin-bottom: 4px; }
.order-remito-summary span { color: var(--ink); font-weight: 900; }
.remito-view-panel code { display: inline-block; padding: 3px 7px; border-radius: 9px; background: #f1f5f9; color: #334155; }
.remito-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 24px 28px 0;
}
.remito-preview-card {
    background: linear-gradient(180deg, #fff, #f8fbff);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 18px 48px rgba(15,23,42,.06);
}
.remito-preview-card h3 { margin: 0 0 12px; font-size: 18px; }
.remito-preview-card p { margin: 7px 0; color: var(--muted); }
.remito-preview-card p strong { color: var(--ink); }
.remito-items-wrap { padding: 24px 28px 0; }
.remito-regenerate-form { padding: 22px 28px 28px; }
@media (max-width: 900px) {
    .order-remito-summary,
    .remito-preview-grid { grid-template-columns: 1fr; }
    .order-editor-actions { justify-content: flex-start; }
}

/* Registro visible en el menú público */
.public-topbar .topbar-register {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.public-register-link {
    color: #fff !important;
    background: linear-gradient(135deg, #16a34a, #0ea5e9) !important;
    box-shadow: 0 14px 30px rgba(14,165,233,.22) !important;
}
.public-register-link:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
}
.public-login-link {
    color: #0f172a !important;
    background: #fff !important;
    box-shadow: inset 0 0 0 1px rgba(203, 213, 225, .95) !important;
}
.public-login-link:hover {
    color: var(--blue) !important;
    background: #eef6ff !important;
}
@media (max-width: 860px) {
    .public-register-link,
    .public-login-link {
        justify-content: space-between;
        margin-left: 0;
        min-height: 48px;
        padding: 0 16px;
        border-radius: 16px;
    }
}
.buy-account {
    color: #0f172a !important;
    background: #fff !important;
    border: 1px solid rgba(203,213,225,.95) !important;
    box-shadow: 0 16px 34px rgba(15,23,42,.08) !important;
}
.buy-account:hover {
    color: var(--blue) !important;
    transform: translateY(-1px);
}

/* Fix menú público - versión profesional compacta */
.public-site-header {
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid rgba(226,232,240,.92);
    box-shadow: 0 16px 44px rgba(15,23,42,.07);
}
.public-topbar {
    background: #07111f;
    font-size: 12px;
    letter-spacing: .01em;
}
.public-topbar-inner {
    min-height: 28px;
}
.public-topbar-inner > span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.public-topbar-links {
    gap: 14px;
    white-space: nowrap;
}
.public-nav-pro {
    min-height: 78px;
    gap: 24px;
}
.public-brand {
    min-width: 270px;
    gap: 14px;
}
.public-logo-image {
    min-width: 54px;
    min-height: 54px;
    border-radius: 18px;
    box-shadow: 0 12px 24px rgba(15,23,42,.10);
}
.public-brand-logo-img {
    max-width: 72px;
    max-height: 52px;
}
.public-brand-copy strong {
    font-size: 20px;
    letter-spacing: -.55px;
}
.public-brand-copy small {
    max-width: 185px;
    line-height: 1.05;
    color: #64748b;
}
.public-menu {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    min-width: 0;
}
.public-nav-links {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px;
    border: 1px solid rgba(226,232,240,.95);
    border-radius: 999px;
    background: rgba(248,250,252,.86);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.public-nav-links > a,
.public-nav-links .public-dropdown > a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    border-radius: 999px;
    color: #475569;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.public-nav-links > a:hover,
.public-nav-links .public-dropdown:hover > a,
.public-nav-links > a.active {
    color: #1d4ed8;
    background: #fff;
    box-shadow: 0 8px 22px rgba(37,99,235,.10), inset 0 0 0 1px rgba(37,99,235,.10);
}
.public-dropdown {
    align-items: center;
}
.public-dropdown-panel {
    top: calc(100% + 16px);
    min-width: 340px;
    border-radius: 22px;
}
.public-nav-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}
.public-account-menu {
    position: relative;
    display: inline-flex;
}
.public-account-trigger,
.public-account-trigger:visited {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 0 16px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(203,213,225,.95) !important;
    background: #fff !important;
    color: #0f172a !important;
    box-shadow: 0 10px 24px rgba(15,23,42,.06) !important;
    font-size: 14px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    cursor: pointer;
    font-family: inherit;
}
.public-account-trigger:after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    opacity: .65;
}
.public-account-menu:hover .public-account-trigger,
.public-account-menu:focus-within .public-account-trigger {
    color: #1d4ed8 !important;
    border-color: rgba(37,99,235,.25) !important;
}
.public-account-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 190px;
    padding: 8px;
    border: 1px solid rgba(226,232,240,.95);
    border-radius: 18px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 24px 70px rgba(15,23,42,.16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.public-account-menu:hover .public-account-panel,
.public-account-menu:focus-within .public-account-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}
.public-account-panel a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 12px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
}
.public-account-panel a:hover {
    background: #eef6ff;
    color: #1d4ed8;
}
.public-menu-cta {
    min-height: 44px !important;
    margin-left: 0 !important;
    padding: 0 18px !important;
    border-radius: 999px !important;
    font-size: 14px !important;
    font-weight: 950 !important;
    white-space: nowrap;
    box-shadow: 0 14px 30px rgba(37,99,235,.24) !important;
}
.public-register-link,
.public-login-link {
    background: transparent !important;
    box-shadow: none !important;
}

@media (max-width: 1180px) {
    .public-brand { min-width: 230px; }
    .public-brand-copy small { display: none; }
    .public-nav-links > a,
    .public-nav-links .public-dropdown > a { padding: 0 11px; }
    .public-menu { gap: 12px; }
}

@media (max-width: 980px) {
    .public-topbar { display: none; }
    .public-nav-pro {
        min-height: 74px;
        flex-wrap: wrap;
        padding: 10px 0;
    }
    .public-brand { min-width: auto; }
    .public-brand-logo-img { max-width: 64px; max-height: 48px; }
    .public-menu-button { display: inline-flex; }
    .public-menu {
        order: 5;
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px;
        border: 1px solid rgba(226,232,240,.95);
        border-radius: 24px;
        background: #fff;
        box-shadow: 0 22px 60px rgba(15,23,42,.12);
    }
    .public-menu-toggle:checked ~ .public-menu { display: flex; }
    .public-nav-links {
        width: 100%;
        display: grid;
        gap: 6px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }
    .public-nav-links > a,
    .public-nav-links .public-dropdown > a {
        min-height: 48px;
        justify-content: space-between;
        padding: 0 16px;
        border-radius: 16px;
        background: #f8fafc;
    }
    .public-dropdown { display: grid; }
    .public-dropdown-panel {
        position: static;
        min-width: 0;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        box-shadow: none;
        border-radius: 18px;
        margin-top: 8px;
        background: #f8fbff;
    }
    .public-dropdown-panel:before { display: none; }
    .public-nav-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .public-account-menu { display: grid; min-width: 0; }
    .public-account-trigger,
    .public-menu-cta { width: 100%; }
    .public-account-panel {
        position: static;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        margin-top: 8px;
        box-shadow: none;
        background: #f8fafc;
    }
}

@media (max-width: 560px) {
    .public-brand-copy strong { font-size: 18px; }
    .public-nav-actions { grid-template-columns: 1fr; }
}

/* Menú público v3 — rediseño profesional moderno */

/* ── Variables de navbar ── */
:root {
    --nav-height: 72px;
    --nav-bg: rgba(8, 10, 18, 0.96);
    --nav-border: rgba(255, 255, 255, 0.07);
    --nav-shadow: 0 4px 40px rgba(0, 0, 0, 0.45);
    --nav-link-color: rgba(200, 210, 230, 0.82);
    --nav-link-hover: #ffffff;
    --nav-link-active-bg: rgba(255, 255, 255, 0.09);
    --nav-accent: var(--blue, #2563eb);
    --topbar-bg: #05080f;
    --topbar-text: rgba(160, 175, 200, 0.75);
}

.public-site-header-v3 {
    position: sticky;
    top: 0;
    z-index: 70;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--nav-border);
    box-shadow: var(--nav-shadow);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
}

/* ── Topbar superior ── */
.public-topbar-v3 {
    background: var(--topbar-bg);
    color: var(--topbar-text);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.public-topbar-v3-inner {
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.public-topbar-v3-inner > span,
.public-topbar-v3-links {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.public-topbar-v3-inner > span {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(120, 140, 180, 0.55);
}
.public-topbar-v3-links {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    flex: 0 1 auto;
}
.public-topbar-v3 a {
    color: rgba(160, 180, 210, 0.70);
    text-decoration: none;
    transition: color .15s ease;
}
.public-topbar-v3 a:hover {
    color: rgba(255,255,255,0.90);
}

/* ── Barra nav principal ── */
.public-nav-shell-v3 {
    background: transparent;
}
.public-nav-v3 {
    position: relative;
    min-height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* ── Marca / Logotipo ── */
.public-brand-v3 {
    min-width: 220px;
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: #fff;
    text-decoration: none;
    transition: opacity .18s ease;
}
.public-brand-v3:hover {
    opacity: 0.88;
    color: #fff;
}
.public-brand-v3 .public-logo-image,
.public-brand-v3 .public-brand-logo-mark {
    flex: 0 0 auto;
}
.public-brand-v3 .public-logo-image {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.10);
    transition: background .18s ease, border-color .18s ease;
}
.public-brand-v3:hover .public-logo-image {
    background: rgba(255,255,255,0.13);
    border-color: rgba(255,255,255,0.18);
}
.public-brand-v3 .public-brand-logo-img {
    width: auto;
    max-width: 38px;
    max-height: 38px;
    object-fit: contain;
}
.public-brand-v3 .public-brand-logo-mark {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--nav-accent, #2563eb), var(--violet, #7c3aed));
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.03em;
    box-shadow: 0 4px 18px rgba(37,99,235,0.40);
}
.public-brand-v3-copy {
    display: grid;
    gap: 1px;
    min-width: 0;
}
.public-brand-v3-copy strong {
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}
.public-brand-v3-copy small {
    color: rgba(160, 180, 210, 0.55);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.10em;
    line-height: 1;
    text-transform: uppercase;
}

/* ── Links de navegación ── */
.public-menu-v3 {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
}
.public-menu-v3 a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 8px;
    color: var(--nav-link-color);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    transition: color .15s ease, background .15s ease;
}
.public-menu-v3 a:hover {
    color: var(--nav-link-hover);
    background: var(--nav-link-active-bg);
}
.public-menu-v3 a.active {
    color: #ffffff;
    background: rgba(255,255,255,0.10);
    font-weight: 700;
}

/* ── Separador ── */
.public-menu-v3-separator {
    width: 1px;
    height: 22px;
    margin: 0 8px;
    background: rgba(255,255,255,0.10);
    flex-shrink: 0;
}

/* ── Botón Ingresar ── */
.public-menu-v3-light {
    color: rgba(200,215,235,0.85) !important;
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    box-shadow: none !important;
    border-radius: 8px !important;
}
.public-menu-v3-light:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.10) !important;
    border-color: rgba(255,255,255,0.20) !important;
}

/* ── Botón Mi cuenta ── */
.public-menu-v3-account {
    color: #5eead4 !important;
    background: rgba(20, 184, 166, 0.10) !important;
    border: 1px solid rgba(20,184,166,0.22) !important;
    box-shadow: none !important;
    border-radius: 8px !important;
}
.public-menu-v3-account:hover {
    background: rgba(20,184,166,0.16) !important;
    border-color: rgba(20,184,166,0.35) !important;
}

/* ── Botón CTA (WhatsApp / Catálogo) ── */
.public-menu-v3-cta {
    margin-left: 6px;
    color: #fff !important;
    background: linear-gradient(135deg, var(--nav-accent, #2563eb) 0%, var(--violet, #7c3aed) 100%) !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    letter-spacing: 0.01em !important;
    box-shadow: 0 0 0 1px rgba(37,99,235,0.50), 0 4px 20px rgba(37,99,235,0.35) !important;
    transition: filter .15s ease, transform .15s ease, box-shadow .15s ease !important;
}
.public-menu-v3-cta:hover {
    color: #fff !important;
    filter: brightness(1.08) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 0 0 1px rgba(37,99,235,0.60), 0 8px 28px rgba(37,99,235,0.45) !important;
}

/* ── Botón hamburguesa (mobile) ── */
.public-menu-button-v3 {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 9px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.06);
    color: rgba(200,215,235,0.90);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    user-select: none;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.public-menu-button-v3:hover {
    background: rgba(255,255,255,0.10);
    border-color: rgba(255,255,255,0.22);
    color: #fff;
}
.public-menu-button-v3-icon {
    width: 18px;
    display: grid;
    gap: 4px;
}
.public-menu-button-v3-icon i {
    display: block;
    height: 1.5px;
    border-radius: 999px;
    background: currentColor;
    transition: transform .22s ease, opacity .22s ease, width .22s ease;
}

/* ── Checkbox toggle (accesibilidad) ── */
.public-menu-toggle {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
.public-menu-toggle:checked + .public-menu-button-v3 {
    color: #fff;
    background: rgba(37,99,235,0.18);
    border-color: rgba(37,99,235,0.40);
}

/* ── Breakpoint 1180px ── */
@media (max-width: 1180px) {
    .public-nav-v3 { gap: 12px; }
    .public-brand-v3 { min-width: 190px; }
    .public-brand-v3-copy small { display: none; }
    .public-menu-v3 a { padding: 0 11px; font-size: 13px; }
}

/* ── Breakpoint 980px: menú colapsable ── */
@media (max-width: 980px) {
    .public-topbar-v3 { display: none; }
    .public-nav-v3 {
        min-height: 64px;
        padding-top: 8px;
        padding-bottom: 8px;
    }
    .public-brand-v3 { min-width: 0; }
    .public-brand-v3 .public-logo-image {
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }
    .public-brand-v3 .public-brand-logo-img {
        max-width: 36px;
        max-height: 36px;
    }
    .public-brand-v3 .public-brand-logo-mark {
        width: 42px;
        height: 42px;
        border-radius: 10px;
        font-size: 16px;
    }
    .public-brand-v3-copy strong { font-size: 17px; }
    .public-menu-button-v3 { display: inline-flex; }
    .public-menu-v3 {
        position: absolute;
        top: calc(100% + 10px);
        left: 12px;
        right: 12px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 10px;
        border-radius: 16px;
        border: 1px solid rgba(255,255,255,0.10);
        background: rgba(14, 18, 32, 0.97);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        box-shadow: 0 24px 64px rgba(0,0,0,0.60), inset 0 1px 0 rgba(255,255,255,0.08);
        max-height: calc(100vh - 88px);
        overflow: auto;
    }
    .public-menu-toggle:checked ~ .public-menu-v3 {
        display: flex;
    }
    .public-menu-v3 a {
        min-height: 48px;
        justify-content: flex-start;
        padding: 0 16px;
        border-radius: 10px;
        background: rgba(255,255,255,0.04);
        color: rgba(200,215,235,0.85);
        border: 1px solid rgba(255,255,255,0.06);
        font-size: 14.5px;
        font-weight: 600;
    }
    .public-menu-v3 a:hover,
    .public-menu-v3 a.active {
        background: rgba(255,255,255,0.09);
        color: #fff;
        border-color: rgba(255,255,255,0.12);
    }
    .public-menu-v3-separator {
        width: 100%;
        height: 1px;
        margin: 6px 0;
        background: rgba(255,255,255,0.07);
    }
    .public-menu-v3-light {
        border-color: rgba(255,255,255,0.10) !important;
    }
    .public-menu-v3-cta {
        min-height: 52px !important;
        margin-left: 0 !important;
        justify-content: center !important;
        font-size: 15px !important;
        border-radius: 12px !important;
        letter-spacing: 0.02em !important;
    }
}

/* ── Breakpoint 560px ── */
@media (max-width: 560px) {
    .public-nav-v3 {
        min-height: 60px;
    }
    .public-brand-v3 {
        gap: 10px;
        max-width: calc(100% - 100px);
    }
    .public-brand-v3 .public-logo-image {
        width: 38px;
        height: 38px;
        border-radius: 9px;
    }
    .public-brand-v3 .public-brand-logo-img {
        max-width: 32px;
        max-height: 32px;
    }
    .public-brand-v3 .public-brand-logo-mark {
        width: 38px;
        height: 38px;
        border-radius: 9px;
        font-size: 15px;
    }
    .public-brand-v3-copy strong {
        font-size: 16px;
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .public-menu-button-v3-text { display: none; }
    .public-menu-button-v3 {
        min-width: 44px;
        padding: 0 12px;
    }
    .public-menu-v3 {
        left: 8px;
        right: 8px;
        border-radius: 14px;
    }
}

/* === Autenticación unificada por rol === */
.auth-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 18%, rgba(14, 165, 233, .18), transparent 30%),
        radial-gradient(circle at 82% 20%, rgba(124, 58, 237, .18), transparent 32%),
        linear-gradient(135deg, #eef6ff, #f8fbff 46%, #f4f1ff);
    display: grid;
    place-items: center;
    padding: 28px;
}
.auth-shell {
    width: min(1120px, 100%);
}
.auth-shell-single {
    width: min(540px, 100%);
}
.auth-card-focus,
.auth-card {
    position: relative;
    overflow: hidden;
}
.auth-card-focus:before,
.auth-card:before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--cyan, #06b6d4), var(--blue, #2563eb), var(--violet, #7c3aed));
}
.auth-card-focus {
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 32px;
    padding: 34px;
    box-shadow: 0 28px 90px rgba(15, 23, 42, .16);
}
.auth-brand-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}
.auth-brand-row strong {
    display: block;
    color: #0f172a;
    font-size: 18px;
    font-weight: 950;
}
.auth-brand-row span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eef4ff;
    color: #2563eb;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .12em;
}
.auth-card-focus h1,
.auth-card h1,
.auth-card h2 {
    margin: 14px 0 10px;
    color: #0f172a;
    letter-spacing: -.04em;
}
.auth-card-focus h1 {
    font-size: clamp(34px, 4vw, 48px);
    line-height: .98;
}
.auth-lead {
    color: #64748b;
    line-height: 1.65;
    margin: 0 0 22px;
}
.auth-form .form-row input {
    height: 54px;
}
.auth-form .button.full-width,
.auth-card-focus .button.full-width {
    min-height: 54px;
    font-size: 16px;
}
.auth-help-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
}
.auth-help-grid a {
    color: #2563eb;
    font-weight: 900;
    text-decoration: none;
}
.auth-public-page {
    padding-top: 54px;
}
.auth-two-cols {
    align-items: center;
}
.auth-copy-panel {
    padding: 34px;
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(15,23,42,.92), rgba(30,41,59,.84)),
        radial-gradient(circle at 15% 15%, rgba(14,165,233,.3), transparent 35%);
    color: #fff;
    box-shadow: 0 30px 90px rgba(15, 23, 42, .18);
}
.auth-copy-panel h1,
.auth-copy-panel h2,
.auth-copy-panel p {
    color: #fff;
}
.auth-copy-panel p {
    opacity: .82;
}
.auth-copy-panel .account-benefits li {
    background: rgba(255,255,255,.08);
    color: #fff;
    border-color: rgba(255,255,255,.16);
}
.auth-copy-panel .buy-kicker {
    color: #67e8f9;
}
.auth-card .social-button {
    min-height: 50px;
}
.auth-card .form-grid {
    gap: 14px;
}
.auth-card small {
    color: #64748b;
    font-weight: 700;
}
@media (max-width: 980px) {
    .auth-copy-panel {
        padding: 26px;
    }
    .account-shell.reverse-mobile.auth-two-cols .account-card {
        order: -1;
    }
}
@media (max-width: 640px) {
    .auth-page {
        padding: 16px;
        align-items: start;
    }
    .auth-card-focus,
    .account-card.auth-card {
        border-radius: 24px;
        padding: 24px;
    }
    .auth-help-grid {
        display: grid;
        justify-content: stretch;
    }
    .auth-public-page {
        padding: 28px 0;
    }
    .auth-copy-panel {
        border-radius: 24px;
        padding: 22px;
    }
}


/* Auth limpio y sincronizado con OAuth habilitado */
.auth-clean-page {
    padding: 52px 0 70px;
    background:
        radial-gradient(circle at 12% 8%, rgba(14, 165, 233, .12), transparent 32%),
        radial-gradient(circle at 88% 0%, rgba(124, 58, 237, .12), transparent 30%),
        linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
}
.auth-single-shell {
    max-width: 760px;
    margin: 0 auto;
    display: block;
}
.auth-card-wide {
    position: relative;
    overflow: hidden;
    padding: 34px;
    border-radius: 28px;
}
.auth-card-wide:before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, #06b6d4, #2563eb, #7c3aed);
}
.auth-card-head {
    margin-bottom: 22px;
}
.auth-card-head h1 {
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.05;
    margin: 10px 0 8px;
}
.auth-card-head .help {
    max-width: 620px;
    font-size: 15px;
    line-height: 1.65;
}
.social-login-stack-clean {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 12px 0 22px;
}
.social-login-stack-clean .social-button {
    min-height: 52px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #dbe5f5;
    color: #0f172a;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}
.social-login-stack-clean .social-button:hover {
    transform: translateY(-1px);
    border-color: #bfdbfe;
    box-shadow: 0 16px 36px rgba(15, 23, 42, .10);
}
.auth-login-card {
    max-width: 620px;
    margin: 0 auto;
}
.auth-public-page .account-divider {
    margin: 18px 0 22px;
}
.auth-public-page .account-form {
    gap: 15px;
}
.auth-public-page .toggle-line {
    align-items: flex-start;
}
@media (max-width: 760px) {
    .auth-clean-page {
        padding: 24px 0 42px;
    }
    .auth-single-shell {
        max-width: none;
    }
    .auth-card-wide {
        padding: 24px;
        border-radius: 24px;
    }
    .social-login-stack-clean {
        grid-template-columns: 1fr;
    }
}

/* === FIX MOBILE HORIZONTAL SCROLL v2 ===
   Evita que la landing y el menú público generen scroll lateral en celulares. */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    position: relative;
}

img,
video,
iframe,
svg,
table,
pre {
    max-width: 100%;
}

.container,
.public-site-header-v3,
.public-nav-shell-v3,
.public-nav-v3,
.public-menu-v3,
.buy-hero,
.buy-hero-grid,
.buy-hero-copy,
.buy-hero-panel,
.buy-featured-product,
.buy-featured-product > *,
.buy-category-card,
.buy-service-card,
.buy-product-card,
.buy-value-card,
.buy-final-card {
    min-width: 0;
}

.buy-hero h1,
.buy-hero p,
.buy-kicker,
.buy-trust span,
.buy-featured-product h2,
.buy-featured-product p,
.buy-section-title h2,
.buy-section-title p,
.buy-service-card h3,
.buy-service-card p,
.buy-product-body h3,
.buy-product-body p,
.buy-final-card h2,
.buy-final-card p {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

@media (max-width: 980px) {
    .public-nav-v3 {
        width: 100%;
        max-width: 100%;
    }

    .public-menu-v3 {
        left: 0;
        right: 0;
        width: auto;
        max-width: 100%;
        overflow-x: hidden;
    }

    .public-menu-v3 a {
        max-width: 100%;
        white-space: normal;
    }

    .buy-hero {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .buy-hero-grid {
        width: 100%;
        max-width: 100%;
        gap: 30px;
    }

    .buy-hero-panel {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 680px) {
    .container {
        width: min(100% - 24px, 1200px);
        max-width: calc(100% - 24px);
    }

    .public-nav-v3 {
        gap: 10px;
    }

    .public-brand-v3 {
        max-width: calc(100% - 58px);
    }

    .public-brand-v3-copy {
        min-width: 0;
    }

    .public-brand-v3-copy strong,
    .public-brand-v3-copy small {
        max-width: 168px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .public-menu-button-v3 {
        flex: 0 0 auto;
    }

    .public-menu-v3 {
        left: 0;
        right: 0;
        border-radius: 16px;
    }

    .buy-hero {
        padding: 46px 0 34px;
    }

    .buy-hero h1 {
        max-width: 100%;
        font-size: clamp(31px, 10.8vw, 43px);
        line-height: 1.02;
        letter-spacing: -1.35px;
        hyphens: auto;
    }

    .buy-hero-copy p {
        max-width: 100%;
        font-size: 16px;
        line-height: 1.58;
    }

    .buy-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
        gap: 10px;
    }

    .buy-actions .button,
    .button.buy-primary,
    .button.buy-whatsapp,
    .button.buy-secondary,
    .button.buy-account {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding-left: 14px;
        padding-right: 14px;
        white-space: normal;
        text-align: center;
        line-height: 1.2;
    }

    .buy-trust {
        width: 100%;
        gap: 8px;
    }

    .buy-trust span {
        max-width: 100%;
        white-space: normal;
    }

    .buy-hero-panel {
        padding: 14px;
        border-radius: 24px;
        box-shadow: 0 20px 52px rgba(0,0,0,.28);
    }

    .buy-panel-head {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 6px 12px;
    }

    .buy-featured-product {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 14px;
        border-radius: 22px;
    }

    .buy-featured-image {
        min-height: 180px;
        border-radius: 18px;
    }

    .buy-mini-list {
        grid-template-columns: 1fr;
    }

    .buy-category-band,
    .buy-products-section,
    .buy-services-section,
    .buy-value-section,
    .buy-steps-section,
    .buy-blog-strip,
    .buy-final-cta {
        padding-left: 0;
        padding-right: 0;
        overflow-x: hidden;
    }
}

@media (max-width: 380px) {
    .container {
        width: min(100% - 20px, 1200px);
        max-width: calc(100% - 20px);
    }

    .buy-hero h1 {
        font-size: clamp(29px, 10.5vw, 38px);
        letter-spacing: -1px;
    }

    .public-brand-v3-copy strong {
        max-width: 132px;
    }
}

/* ERSublimados · slider de emprendimientos */
.hero-business-slider {
    width: min(100%, 680px);
    margin-top: 30px;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.085);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 18px 52px rgba(0,0,0,.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
    min-width: 0;
}
.hero-business-slider-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}
.hero-business-slider-head span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #dffbff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.hero-business-slider-head span::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22d3ee, #7c3aed);
    box-shadow: 0 0 0 5px rgba(34, 211, 238, .12);
    flex: 0 0 auto;
}
.hero-business-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.hero-business-track {
    display: flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    min-width: 100%;
    animation: erBusinessMarquee 26s linear infinite;
    will-change: transform;
}
.hero-business-slider:hover .hero-business-track {
    animation-play-state: paused;
}
.hero-business-logo {
    width: 126px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 18px;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(255,255,255,.76);
    box-shadow: 0 10px 28px rgba(0,0,0,.16);
    flex: 0 0 auto;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.hero-business-logo:hover {
    transform: translateY(-2px);
    background: #fff;
    box-shadow: 0 14px 34px rgba(0,0,0,.22);
}
.hero-business-logo img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
@keyframes erBusinessMarquee {
    from { transform: translate3d(0,0,0); }
    to { transform: translate3d(-50%,0,0); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-business-track { animation: none; flex-wrap: wrap; width: 100%; }
    .hero-business-marquee { mask-image: none; -webkit-mask-image: none; }
}
.business-admin-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.business-admin-logo,
.business-logo-preview-admin {
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 10px 28px rgba(15,23,42,.08);
}
.business-admin-logo {
    width: 76px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    padding: 8px;
    flex: 0 0 auto;
}
.business-admin-logo img,
.business-logo-preview-admin img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.business-logo-preview-admin {
    width: 180px;
    min-height: 92px;
    margin-top: 12px;
    padding: 12px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    gap: 8px;
}
.business-logo-preview-admin span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}
@media (max-width: 680px) {
    .hero-business-slider {
        width: 100%;
        padding: 12px;
        border-radius: 20px;
        margin-top: 24px;
    }
    .hero-business-slider-head span {
        font-size: 11px;
        letter-spacing: .10em;
    }
    .hero-business-logo {
        width: 112px;
        height: 52px;
        border-radius: 15px;
        padding: 9px 12px;
    }
    .hero-business-track {
        gap: 10px;
        animation-duration: 22s;
    }
}


/* Artículos ERP vinculados a productos */
.inline-alert {
    margin: 12px 0;
}
.inline-alert a {
    font-weight: 800;
    color: var(--blue);
}
.compact-heading {
    align-items: center;
    gap: 16px;
}
.product-articles-panel {
    background: linear-gradient(135deg, rgba(37,99,235,.05), rgba(124,58,237,.05));
    border: 1px solid rgba(37,99,235,.16);
}
.article-link-list {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}
.article-link-item {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(260px, .85fr);
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid #d9e5f4;
    border-radius: 18px;
    background: rgba(255,255,255,.88);
}
.article-link-check {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 0;
    cursor: pointer;
}
.article-link-check input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
}
.article-link-check strong {
    display: block;
    color: #0f172a;
}
.article-link-check small {
    display: block;
    color: #64748b;
    font-size: 12px;
    margin-top: 3px;
}
.article-link-fields {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 10px;
}
.article-link-fields input {
    min-height: 42px;
}
.compact-table th,
.compact-table td {
    padding-top: 12px;
    padding-bottom: 12px;
}
.alert.warning {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412;
}
.alert.warning a {
    color: #7c2d12;
    font-weight: 800;
    text-decoration: underline;
}

@media (max-width: 760px) {
    .article-link-item {
        grid-template-columns: 1fr;
    }
    .article-link-fields {
        grid-template-columns: 1fr;
    }
}

/* SKU unificado */
.sku-info-box .readonly-info,
.readonly-info {
    display: block;
    width: 100%;
    border: 1px dashed #b9cae6;
    border-radius: 16px;
    background: #f7fbff;
    padding: 14px 16px;
    color: #263a57;
    font-weight: 700;
    line-height: 1.45;
}
.sku-pill.empty,
.sku-pill:empty {
    opacity: .65;
}

/* Producto: selección única de artículo desde título */
.article-autocomplete-field {
    position: relative;
    z-index: 20;
}
.article-autocomplete-results {
    position: absolute;
    left: 0;
    right: 0;
    top: 78px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, .45);
    border-radius: 20px;
    box-shadow: 0 26px 70px rgba(15, 23, 42, .18);
    padding: 8px;
    max-height: 360px;
    overflow: auto;
    z-index: 60;
}
.article-autocomplete-option {
    width: 100%;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 14px;
    border-radius: 16px;
    text-align: left;
    cursor: pointer;
    color: #0f172a;
}
.article-autocomplete-option:hover,
.article-autocomplete-option:focus {
    background: linear-gradient(135deg, rgba(37, 99, 235, .10), rgba(124, 58, 237, .10));
    outline: none;
}
.article-autocomplete-option strong {
    display: block;
    font-size: 14px;
    line-height: 1.2;
}
.article-autocomplete-option small {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    margin-top: 4px;
}
.article-autocomplete-option em {
    font-style: normal;
    font-weight: 950;
    color: #2563eb;
    white-space: nowrap;
    font-size: 13px;
}
.article-autocomplete-empty {
    padding: 14px;
    color: #64748b;
    font-weight: 850;
}
.selected-article-card {
    margin-top: 12px;
    border: 1px solid rgba(37, 99, 235, .22);
    background: linear-gradient(135deg, rgba(37, 99, 235, .08), rgba(14, 165, 233, .08));
    border-radius: 18px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.selected-article-card.is-empty {
    background: #f8fafc;
    border-style: dashed;
    border-color: rgba(148, 163, 184, .55);
}
.selected-article-label {
    display: block;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 11px;
    font-weight: 950;
    margin-bottom: 4px;
}
.selected-article-card strong {
    display: block;
    color: #0f172a;
    font-size: 15px;
}
.selected-article-card small {
    display: block;
    color: #64748b;
    font-weight: 850;
    margin-top: 4px;
}
.small-button {
    padding: 9px 13px !important;
    min-height: auto !important;
    white-space: nowrap;
}
.product-article-quick-panel {
    background: #ffffff;
}
.article-selection-help {
    border: 1px solid rgba(148, 163, 184, .28);
    background: #f8fafc;
    color: #475569;
    border-radius: 18px;
    padding: 14px 16px;
    font-weight: 800;
}
@media (max-width: 760px) {
    .article-autocomplete-results {
        position: static;
        margin-top: 8px;
        max-height: 280px;
    }
    .selected-article-card {
        align-items: flex-start;
        flex-direction: column;
    }
    .selected-article-card .button {
        width: 100%;
    }
}

/* SEO profesional: contenido local, búsquedas objetivo y FAQ */
.seo-local-section,
.seo-faq-section {
    background: #f8fafc;
    padding: clamp(56px, 7vw, 96px) 0;
}

.seo-local-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
    gap: 24px;
    align-items: stretch;
}

.seo-local-copy,
.seo-keywords-card,
.seo-faq-item {
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .08);
}

.seo-local-copy {
    padding: clamp(28px, 4vw, 44px);
}

.seo-local-copy h2 {
    max-width: 880px;
    margin: 10px 0 14px;
    font-size: clamp(30px, 4vw, 52px);
    line-height: .98;
    letter-spacing: -.045em;
}

.seo-local-copy p {
    max-width: 900px;
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.75;
}

.seo-area-list {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid rgba(148, 163, 184, .25);
}

.seo-area-list strong,
.seo-keywords-card strong {
    display: block;
    margin-bottom: 14px;
    color: #0f172a;
}

.seo-area-list div,
.seo-keyword-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.seo-area-list span,
.seo-keyword-cloud a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, .18);
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 800;
    font-size: .88rem;
    text-decoration: none;
}

.seo-keywords-card {
    padding: clamp(24px, 3vw, 34px);
}

.seo-keyword-cloud a:hover {
    background: #dbeafe;
    transform: translateY(-1px);
}

.seo-faq-section {
    padding-top: 0;
}

.seo-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.seo-faq-item {
    padding: 0;
    overflow: hidden;
}

.seo-faq-item summary {
    cursor: pointer;
    padding: 20px 22px;
    font-weight: 900;
    color: #0f172a;
    list-style: none;
}

.seo-faq-item summary::-webkit-details-marker {
    display: none;
}

.seo-faq-item summary::after {
    content: '+';
    float: right;
    color: var(--blue, #2563eb);
    font-weight: 900;
}

.seo-faq-item[open] summary::after {
    content: '–';
}

.seo-faq-item p {
    margin: 0;
    padding: 0 22px 22px;
    color: #475569;
    line-height: 1.65;
}

@media (max-width: 820px) {
    .seo-local-grid,
    .seo-faq-grid {
        grid-template-columns: 1fr;
    }

    .seo-local-section,
    .seo-faq-section {
        padding: 42px 0;
    }
}

/* === Admin: migraciones sin phpMyAdmin === */
.migrations-page-card {
    margin: 0 auto;
    max-width: 1180px;
}
.admin-help-box {
    margin: 18px 0;
    padding: 16px 18px;
    border: 1px solid rgba(245, 158, 11, .28);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(245, 158, 11, .10), rgba(255, 255, 255, .92));
    color: #334155;
}
.admin-help-box strong {
    display: block;
    margin-bottom: 5px;
    color: #92400e;
}
.admin-help-box p {
    margin: 0;
    line-height: 1.6;
}
.migrations-table-wrap {
    overflow-x: auto;
    border-radius: 22px;
    border: 1px solid var(--line, #dbe5f5);
    background: #fff;
}
.migrations-table {
    min-width: 920px;
    margin: 0;
    border: 0;
    box-shadow: none;
}
.migrations-table td,
.migrations-table th {
    vertical-align: middle;
}
.migrations-table small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    line-height: 1.4;
}
.migrations-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.input-mini {
    width: 145px;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #d8e3f3;
    border-radius: 12px;
    background: #f8fbff;
    font-size: 13px;
}
.btn.danger,
.button.danger,
button.danger {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
}
.btn.ghost,
.button.ghost,
button.ghost {
    background: #fff;
    color: #334155;
    border: 1px solid #d8e3f3;
}
.status.status-danger {
    background: #fee2e2;
    color: #991b1b;
}
.status.status-warning {
    background: #fef3c7;
    color: #92400e;
}
.status.status-draft {
    background: #eef2ff;
    color: #3730a3;
}
@media (max-width: 760px) {
    .migrations-page-card .section-heading {
        flex-direction: column;
        align-items: flex-start;
    }
    .migrations-page-card .section-heading form {
        width: 100%;
    }
    .migrations-page-card .section-heading button {
        width: 100%;
    }
}

/* IA editorial profesional */
.ai-admin-hero {
    display: grid;
    grid-template-columns: 1fr minmax(240px, 320px);
    gap: 24px;
    align-items: center;
    background:
        radial-gradient(circle at 20% 0%, rgba(6,182,212,.14), transparent 34%),
        radial-gradient(circle at 90% 10%, rgba(124,58,237,.14), transparent 36%),
        #fff;
}
.ai-admin-hero h2 { max-width: 900px; margin-bottom: 10px; }
.ai-admin-hero p { max-width: 920px; color: #64748b; font-size: 1rem; line-height: 1.7; }
.ai-status-card {
    border: 1px solid #dbeafe;
    border-radius: 24px;
    padding: 18px;
    background: linear-gradient(135deg, #f8fbff, #eef6ff);
    box-shadow: 0 16px 40px rgba(15,23,42,.08);
}
.ai-status-card span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.status-ok { background: #dcfce7; color: #166534; }
.status-warn { background: #fef3c7; color: #92400e; }
.ai-cron-box {
    margin-top: 18px;
    padding: 14px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    display: grid;
    gap: 8px;
}
.ai-cron-box code {
    white-space: normal;
    word-break: break-all;
    font-size: .8rem;
    color: #334155;
}
.form-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.settings-checks {
    display: grid;
    gap: 10px;
    margin: 16px 0;
}
.ai-quality-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}
.ai-quality-grid > div {
    border: 1px solid #dbeafe;
    background: #f8fbff;
    border-radius: 18px;
    padding: 14px;
}
.ai-quality-grid span {
    display: block;
    color: #64748b;
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 6px;
}
.ai-quality-grid strong { font-size: 1.2rem; color: #0f172a; }
.ai-featured-preview {
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid #dbeafe;
    margin: 18px 0;
    background: #f8fafc;
}
.ai-featured-preview img {
    width: 100%;
    max-height: 420px;
    display: block;
    object-fit: cover;
}
.ai-meta-box {
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #f8fafc;
    padding: 16px;
    display: grid;
    gap: 6px;
}
.video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 22px;
    background: #0f172a;
    box-shadow: 0 18px 40px rgba(15,23,42,.12);
    margin: 18px 0 26px;
}
.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
@media (max-width: 900px) {
    .ai-admin-hero,
    .admin-grid-2,
    .form-grid-4,
    .ai-quality-grid { grid-template-columns: 1fr; }
}

/* Gemini diagnostics */
.ai-diagnostics-panel {
    border: 1px solid rgba(59, 130, 246, .18);
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}
.diagnostic-output {
    white-space: pre-wrap;
    word-break: break-word;
    overflow-x: auto;
    padding: 16px;
    border-radius: 16px;
    background: #0f172a;
    color: #dbeafe;
    line-height: 1.55;
    font-size: 13px;
}

/* Visor IA como artículo real */
.ai-preview-commandbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 22px;
    padding: 18px 20px;
    border: 1px solid rgba(219, 234, 254, .95);
    border-radius: 26px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 18px 45px rgba(15,23,42,.08);
}
.ai-preview-commandbar h1 {
    margin: 4px 0 4px;
    font-size: clamp(24px, 3.4vw, 42px);
    line-height: 1.05;
    letter-spacing: -1.1px;
    color: #0f172a;
}
.ai-preview-commandbar p { margin: 0; color: #64748b; }
.ai-preview-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}
.ai-preview-actions form { margin: 0; }
.ai-preview-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
}
.ai-live-article {
    display: grid;
    gap: 22px;
}
.ai-live-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(26px, 5vw, 58px);
    border-radius: 34px;
    border: 1px solid rgba(219, 234, 254, .95);
    background:
        radial-gradient(circle at 18% 8%, rgba(14,165,233,.18), transparent 30%),
        radial-gradient(circle at 82% 0%, rgba(124,58,237,.16), transparent 34%),
        linear-gradient(135deg, #ffffff, #f8fbff 58%, #f4f7ff);
    box-shadow: 0 22px 60px rgba(15,23,42,.08);
}
.ai-live-hero h1 {
    max-width: 980px;
    margin: 12px 0 14px;
    font-size: clamp(34px, 6vw, 72px);
    line-height: .98;
    letter-spacing: -2.2px;
    color: #0f172a;
}
.ai-preview-breadcrumb {
    margin-bottom: 14px;
}
.ai-featured-article-image {
    overflow: hidden;
    border-radius: 34px;
    border: 1px solid rgba(219, 234, 254, .95);
    box-shadow: 0 20px 55px rgba(15,23,42,.10);
    background: #f8fafc;
}
.ai-featured-article-image img {
    display: block;
    width: 100%;
    max-height: 540px;
    object-fit: cover;
}
.ai-summary-box,
.ai-toc-inline,
.ai-live-content {
    box-shadow: 0 18px 45px rgba(15,23,42,.07);
}
.ai-preview-sidebar {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 16px;
}
.ai-score-card .status-ok,
.ai-score-card .status-warn {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.ai-score-number {
    margin: 12px 0 6px;
    font-size: 54px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: -2px;
    color: #0f172a;
}
.ai-preview-stats dl {
    margin: 0;
    display: grid;
    gap: 10px;
}
.ai-preview-stats dl > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}
.ai-preview-stats dl > div:last-child { border-bottom: 0; }
.ai-preview-stats dt {
    color: #64748b;
    font-weight: 800;
}
.ai-preview-stats dd {
    margin: 0;
    color: #0f172a;
    font-weight: 950;
}
.ai-seo-card p,
.ai-notes-card p {
    color: #475569;
    line-height: 1.55;
    word-break: break-word;
}
.ai-video-mini {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}
.ai-video-mini .video-embed {
    margin: 0;
    border-radius: 16px;
}
.ai-video-mini strong {
    font-size: .88rem;
    line-height: 1.3;
    color: #0f172a;
}
.article-video-section {
    margin: 44px 0 32px;
    padding: clamp(20px, 4vw, 34px);
    border: 1px solid #dbeafe;
    border-radius: 28px;
    background: linear-gradient(135deg, #f8fbff, #eef6ff);
}
.article-video-section h2 {
    margin-top: 0 !important;
}
.article-video-list {
    display: grid;
    gap: 22px;
    margin-top: 18px;
}
.article-video-item {
    padding: 14px;
    border: 1px solid #dbeafe;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15,23,42,.08);
}
.article-video-item p:last-child {
    margin-bottom: 0;
}
.article-video-item .video-embed {
    margin: 0 0 12px;
}
@media (max-width: 1100px) {
    .ai-preview-layout { grid-template-columns: 1fr; }
    .ai-preview-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .ai-preview-commandbar { flex-direction: column; }
    .ai-preview-actions { width: 100%; justify-content: stretch; }
    .ai-preview-actions a,
    .ai-preview-actions form,
    .ai-preview-actions button { width: 100%; }
    .ai-preview-sidebar { grid-template-columns: 1fr; }
    .ai-live-hero { border-radius: 26px; padding: 24px; }
    .ai-live-hero h1 { font-size: clamp(32px, 11vw, 48px); }
}

/* SEO + imágenes responsive de artículos */
img {
    max-width: 100%;
}
.blog-card-image,
.featured-image-link,
.article-featured-carousel .media-carousel-main,
.ai-featured-article-image,
.ai-featured-article-image .media-carousel-main {
    background: linear-gradient(135deg, #f8fbff, #eef6ff);
}
.blog-card-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}
.post-img {
    display: block;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    background: linear-gradient(135deg, #f8fbff, #eef6ff);
}
.featured-image-link {
    display: block;
    background: linear-gradient(135deg, #f8fbff, #eef6ff);
}
.featured-image-link img {
    width: 100%;
    object-fit: contain;
    object-position: center center;
    background: linear-gradient(135deg, #f8fbff, #eef6ff);
}
.article-featured-carousel .media-carousel-main {
    aspect-ratio: 16 / 9 !important;
}
.article-featured-carousel .media-carousel-slide,
.ai-featured-article-image img {
    object-fit: contain;
    object-position: center center;
    background: linear-gradient(135deg, #f8fbff, #eef6ff);
}
.article-content img,
.premium-content img,
.ai-live-content img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 22px auto;
    border-radius: 22px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, .10);
}
.article-content table,
.premium-content table,
.ai-live-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.article-content iframe,
.premium-content iframe,
.ai-live-content iframe {
    max-width: 100%;
}

@media (max-width: 760px) {
    .article-hero {
        padding: 42px 0 30px;
    }
    .article-hero h1 {
        font-size: clamp(32px, 11vw, 48px);
        line-height: 1;
        letter-spacing: -1.4px;
    }
    .article-excerpt {
        font-size: 17px;
        line-height: 1.45;
    }
    .premium-content {
        padding: 22px;
        border-radius: 24px;
        font-size: 16px;
        overflow: hidden;
    }
    .article-content h2 {
        font-size: clamp(26px, 8vw, 34px);
        letter-spacing: -.7px;
    }
    .article-content h3 {
        font-size: 22px;
    }
    .article-featured-carousel {
        margin-left: 0;
        margin-right: 0;
    }
    .article-featured-carousel .media-carousel-main {
        aspect-ratio: 16 / 9 !important;
        border-radius: 20px;
    }
    .article-featured-carousel .media-carousel-slide {
        object-fit: contain !important;
    }
    .media-carousel-thumbs {
        grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
        gap: 8px;
    }
    .media-carousel-thumb {
        height: 58px;
        border-radius: 12px;
    }
    .blog-card-image,
    .post-img {
        aspect-ratio: 16 / 10;
    }
    .featured-image-link img,
    .featured-image-link .image-placeholder {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }
    .article-video-section {
        border-radius: 22px;
        padding: 18px;
    }
    .video-embed {
        border-radius: 18px;
        margin: 16px 0 22px;
    }
}


/* FIX dashboard estable + favicon configurable - ERSublimados */
@media (min-width: 1081px) {
    .admin-body-pro {
        grid-template-columns: 304px minmax(0, 1fr);
        min-height: 100vh;
        overflow-x: hidden;
    }

    .admin-sidebar-pro {
        position: sticky;
        top: 0;
        height: 100vh;
        overflow: hidden;
    }

    .admin-sidebar-inner {
        height: 100%;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        padding-bottom: 14px;
        scrollbar-width: thin;
        scrollbar-color: rgba(255,255,255,.24) transparent;
    }

    .admin-sidebar-inner::-webkit-scrollbar { width: 6px; }
    .admin-sidebar-inner::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,.22);
        border-radius: 999px;
    }

    .admin-main-pro {
        min-width: 0;
        display: block;
        visibility: visible;
    }
}

@media (max-width: 1080px) {
    .admin-sidebar-pro {
        position: sticky;
        top: 0;
        height: auto;
        overflow: visible;
    }

    .admin-sidebar-inner {
        overflow: visible;
    }
}

.favicon-upload-box {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(135deg, #fff, #f8fbff);
}

.favicon-upload-preview {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: #f1f5f9;
    border: 1px dashed #bfd0e7;
    overflow: hidden;
}

.favicon-upload-preview img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.favicon-upload-preview span {
    color: #64748b;
    font-size: 14px;
    font-weight: 950;
}

@media (max-width: 640px) {
    .favicon-upload-box {
        grid-template-columns: 1fr;
    }
}

/* Estadísticas internas */
.admin-analytics-overview {
    margin: 28px 0;
    overflow: hidden;
}

.analytics-kpi-grid {
    margin-top: 18px;
}

.analytics-kpi h2 {
    letter-spacing: -0.04em;
}

.dashboard-analytics-split {
    display: grid;
    grid-template-columns: 1.35fr .75fr;
    gap: 18px;
    margin-top: 18px;
}

.analytics-mini-table,
.analytics-panel {
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,251,255,.96));
    border: 1px solid rgba(148, 163, 184, .25);
    border-radius: 24px;
    padding: 20px;
}

.analytics-mini-table > strong {
    display: block;
    color: #0f172a;
    font-size: 15px;
    margin-bottom: 12px;
}

.analytics-list {
    display: grid;
    gap: 10px;
}

.analytics-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(148, 163, 184, .22);
    color: #334155;
}

.analytics-list-row:last-child {
    border-bottom: 0;
}

.analytics-list-row strong,
.analytics-list-row span {
    min-width: 0;
}

.analytics-list-row small {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.analytics-list-row b,
.analytics-list-row > span:last-child {
    flex: 0 0 auto;
    min-width: 38px;
    text-align: right;
    font-weight: 900;
    color: #0f172a;
}

.analytics-page-card {
    overflow: visible;
}

.analytics-heading {
    align-items: center;
}

.analytics-filter-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.analytics-dashboard-grid {
    display: grid;
    grid-template-columns: 1.4fr .75fr .75fr;
    gap: 18px;
    margin-top: 20px;
}

.analytics-dashboard-grid-tables {
    grid-template-columns: 1.35fr .85fr;
}

.analytics-panel-wide {
    grid-column: span 1;
}

.analytics-bars {
    height: 260px;
    display: flex;
    align-items: end;
    gap: 8px;
    padding: 18px 2px 4px;
    overflow-x: auto;
}

.analytics-bar-item {
    min-width: 38px;
    flex: 1 0 38px;
    height: 100%;
    display: grid;
    grid-template-rows: auto 1fr auto;
    align-items: end;
    text-align: center;
    gap: 7px;
}

.analytics-bar-value {
    font-size: 11px;
    font-weight: 800;
    color: #475569;
}

.analytics-bar {
    width: 100%;
    min-height: 8px;
    border-radius: 999px 999px 8px 8px;
    background: linear-gradient(180deg, #2563eb, #7c3aed);
    box-shadow: 0 10px 25px rgba(37, 99, 235, .18);
}

.analytics-bar-item small {
    font-size: 11px;
    color: #64748b;
    white-space: nowrap;
}

.analytics-table td,
.analytics-table th {
    vertical-align: middle;
}

.muted {
    color: #64748b;
}

@media (max-width: 1100px) {
    .dashboard-analytics-split,
    .analytics-dashboard-grid,
    .analytics-dashboard-grid-tables {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .analytics-heading {
        align-items: stretch;
    }

    .analytics-filter-actions {
        width: 100%;
    }

    .analytics-filter-actions .btn {
        flex: 1 1 auto;
        text-align: center;
    }

    .analytics-mini-table,
    .analytics-panel {
        border-radius: 18px;
        padding: 16px;
    }

    .analytics-bars {
        height: 220px;
    }
}

/* SEO local Entre Ríos / Santa Fe */
.local-seo-hero {
    padding: clamp(3rem, 6vw, 5.5rem) 0;
    background:
        radial-gradient(circle at 12% 10%, rgba(37, 99, 235, .14), transparent 36%),
        radial-gradient(circle at 88% 18%, rgba(124, 58, 237, .12), transparent 32%),
        linear-gradient(135deg, #f8fafc 0%, #eef6ff 100%);
    border-bottom: 1px solid rgba(148, 163, 184, .18);
}
.local-seo-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, .65fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}
.local-seo-hero h1 {
    margin: .45rem 0 1rem;
    font-size: clamp(2.15rem, 5.5vw, 4.6rem);
    line-height: .98;
    letter-spacing: -.055em;
    color: #0f172a;
    max-width: 980px;
}
.local-seo-hero p {
    color: #475569;
    font-size: clamp(1rem, 2vw, 1.18rem);
    line-height: 1.75;
    max-width: 820px;
}
.local-seo-hero-panel,
.local-copy-card,
.local-side-card,
.local-province-card {
    border: 1px solid rgba(148, 163, 184, .24);
    background: rgba(255,255,255,.9);
    box-shadow: 0 24px 60px rgba(15, 23, 42, .08);
    border-radius: 28px;
}
.local-seo-hero-panel {
    padding: 1.4rem;
}
.local-seo-hero-panel strong {
    display: block;
    color: #0f172a;
    font-size: 1.1rem;
    margin-bottom: .45rem;
}
.local-seo-hero-panel ul {
    margin: 1rem 0 0;
    padding-left: 1.1rem;
    color: #475569;
}
.local-seo-section {
    padding: clamp(3rem, 6vw, 5.5rem) 0;
    background: #fff;
}
.local-seo-section.alt,
.local-seo-home-section {
    background: #f8fafc;
    padding: clamp(2.8rem, 6vw, 5rem) 0;
}
.local-seo-grid,
.local-seo-home-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.local-seo-card a,
.local-seo-home-grid a {
    display: flex;
    flex-direction: column;
    min-height: 210px;
    height: 100%;
    padding: 1.35rem;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, .22);
    box-shadow: 0 16px 40px rgba(15, 23, 42, .055);
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.local-seo-home-grid a {
    min-height: 160px;
}
.local-seo-card a:hover,
.local-seo-home-grid a:hover {
    transform: translateY(-3px);
    border-color: rgba(37, 99, 235, .32);
    box-shadow: 0 24px 60px rgba(37, 99, 235, .13);
}
.local-seo-card span {
    align-self: flex-start;
    padding: .35rem .7rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, .08);
    color: #1d4ed8;
    font-size: .78rem;
    font-weight: 800;
    margin-bottom: 1rem;
}
.local-seo-card h3,
.local-seo-home-grid strong {
    color: #0f172a;
    margin: 0 0 .75rem;
    font-size: 1.15rem;
    line-height: 1.25;
}
.local-seo-card p,
.local-seo-home-grid small {
    color: #64748b;
    line-height: 1.55;
    flex: 1;
}
.local-seo-card strong {
    color: #2563eb;
    margin-top: 1rem;
}
.locality-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1.35rem;
}
.locality-cloud a,
.locality-cloud span,
.seo-keyword-cloud.compact span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .68rem .9rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, .25);
    color: #0f172a;
    text-decoration: none;
    font-weight: 750;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .045);
}
.locality-cloud a:hover {
    border-color: rgba(37, 99, 235, .35);
    color: #1d4ed8;
}
.locality-cloud small {
    color: #64748b;
    font-weight: 700;
}
.locality-cloud.mini a {
    padding: .55rem .7rem;
    font-size: .88rem;
}
.local-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .55fr);
    gap: 1.25rem;
}
.local-copy-card,
.local-side-card {
    padding: clamp(1.2rem, 3vw, 2rem);
}
.local-copy-card h2,
.local-copy-card h3,
.local-side-card h3 {
    color: #0f172a;
}
.local-copy-card p,
.local-copy-card li,
.local-side-card p {
    color: #475569;
    line-height: 1.7;
}
.local-copy-card a {
    color: #1d4ed8;
    font-weight: 800;
}
.local-province-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}
.local-province-card {
    padding: clamp(1.2rem, 3vw, 1.8rem);
}
.local-province-card h2 {
    margin: 0 0 .4rem;
    color: #0f172a;
}
.local-province-card p {
    color: #64748b;
    margin-bottom: 1rem;
}
.locality-list-columns {
    columns: 2 220px;
    column-gap: 1rem;
}
.locality-list-columns a {
    display: block;
    break-inside: avoid;
    color: #334155;
    text-decoration: none;
    padding: .28rem 0;
    font-weight: 650;
}
.locality-list-columns a:hover {
    color: #2563eb;
}
.local-admin-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.local-admin-columns h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.local-admin-list {
    max-height: 560px;
    overflow: auto;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 18px;
    background: #fff;
}
.local-admin-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .65rem;
    align-items: center;
    padding: .65rem .8rem;
    border-bottom: 1px solid rgba(148, 163, 184, .14);
}
.local-admin-row a {
    color: #0f172a;
    text-decoration: none;
    font-weight: 700;
}
.mini-toggle {
    border: 0;
    border-radius: 999px;
    padding: .38rem .65rem;
    background: #e2e8f0;
    color: #475569;
    font-weight: 900;
    cursor: pointer;
}
.mini-toggle.on {
    background: #dcfce7;
    color: #166534;
}
.quick-actions.vertical {
    display: flex;
    flex-direction: column;
    gap: .7rem;
}

@media (max-width: 900px) {
    .local-seo-hero-grid,
    .local-content-grid,
    .local-province-grid,
    .local-admin-columns {
        grid-template-columns: 1fr;
    }
    .local-seo-grid,
    .local-seo-home-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 620px) {
    .local-seo-grid,
    .local-seo-home-grid {
        grid-template-columns: 1fr;
    }
    .local-seo-card a,
    .local-seo-home-grid a {
        min-height: auto;
    }
    .local-seo-hero h1 {
        font-size: clamp(2rem, 11vw, 3rem);
    }
    .locality-list-columns {
        columns: 1;
    }
}

/* ERP compras/proveedores */
.erp-summary-grid {
    margin-bottom: 18px;
}

.erp-purchase-editor .nested-panel {
    margin-top: 22px;
}

.erp-items-panel .admin-panel-head {
    align-items: flex-start;
    gap: 16px;
}

.erp-purchase-items {
    display: grid;
    gap: 14px;
}

.erp-purchase-item-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.35fr) minmax(220px, 1.25fr) minmax(90px, .55fr) minmax(100px, .55fr) minmax(120px, .65fr) minmax(120px, .65fr) minmax(160px, .9fr) minmax(110px, .55fr);
    gap: 12px;
    align-items: end;
    padding: 14px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
}

.erp-purchase-item-row .form-row {
    margin: 0;
}

.erp-purchase-item-row .compact-row input,
.erp-purchase-item-row .compact-row select {
    min-width: 0;
}

.erp-line-total {
    display: grid;
    gap: 6px;
    align-content: end;
}

.erp-line-total small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.erp-line-total strong {
    display: block;
    font-size: 14px;
    color: var(--dark);
    white-space: nowrap;
}

.erp-purchase-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin: 18px 0;
}

.erp-purchase-summary span {
    display: grid;
    gap: 3px;
    min-width: 145px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #f8fafc;
    color: var(--muted);
    font-size: 12px;
}

.erp-purchase-summary strong {
    color: var(--dark);
    font-size: 16px;
}

.admin-compact-table.compact-only div {
    grid-template-columns: 1fr auto;
}

@media (max-width: 1280px) {
    .erp-purchase-item-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .erp-purchase-item-row {
        grid-template-columns: 1fr;
        padding: 12px;
        border-radius: 16px;
    }

    .erp-purchase-summary {
        justify-content: stretch;
    }

    .erp-purchase-summary span {
        width: 100%;
    }
}
