:root {
    --bg1: #fbfdff;
    --bg2: #f6f9fd;
    --bg3: #f4f7fc;
    --panel: #ffffff;
    --muted: #5b647a;
    --text: #0e1320;
    --border: #e8ecf5;
    --primary: #133A82;
    --primary-2: #12b48a;
    --ring: rgba(33, 82, 255, .25);
    --shadow: 0 6px 22px rgba(18, 26, 60, .08);
    --radius: 14px;
    --code: #0f172a;
    --code-bg: #0f172a0d;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: #f9f9f9;
}

.bg-halo {
    position: fixed;
    inset: -20vmax;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(70vmax 40vmax at 90% -10%, rgba(33, 82, 255, .055), transparent 60%),
        radial-gradient(65vmax 38vmax at -10% 110%, rgba(18, 180, 138, .05), transparent 60%);
    background-repeat: no-repeat;
}

a {
    color: #133A82;
    text-decoration: none
}

.container {
    max-width: 1160px;
    margin-inline: auto;
    padding: 0 22px
}

.container-admin {
    max-width: 1600px;
    margin-inline: auto;
    padding: 0 60px
}

.admin-body {
    background-color: #ffffff !important;
}

.admin-body header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}



@media (max-width: 1200px) {
    .container-admin {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .container-admin {
        padding: 0 20px;
    }
}

header.main-site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: saturate(140%) blur(8px);
    border-bottom: none;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: .1px
}

.logo {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: conic-gradient(from 200deg, #2152ff, #12b48a, #2152ff);
    box-shadow: 0 0 0 2px #ffffff, 0 6px 16px rgba(33, 82, 255, .25)
}

.nav a.minor {
    color: #fff
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 700;
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 18px rgba(33, 82, 255, .25);
    border: 1px solid rgba(255, 255, 255, .9);
    transition: all .25s ease
}

/* Button loading state */
.btn-loading {
    pointer-events: none !important;
    opacity: 0.8 !important;
    cursor: default !important;
}

.btn-spinner {
    display: inline-block;
    width: 1.1em;
    height: 1.1em;
    vertical-align: middle;
    margin-right: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: btn-spin 0.6s linear infinite;
}

@keyframes btn-spin {
    to {
        transform: rotate(360deg);
    }
}

.btn.secondary {
    background: linear-gradient(90deg, #2152ff, #12b48a);
    color: #fff !important;
    border: none;
    box-shadow: 0 6px 18px rgba(33, 82, 255, .25)
}

.btn.ghost {
    background: transparent;
    color: #14204a;
    border: 1px solid var(--border)
}

.btn:hover {
    box-shadow: 0 12px 26px rgba(33, 82, 255, .28)
}

.btn.secondary:hover {
    box-shadow: 0 12px 26px rgba(18, 180, 138, .28)
}

.grid {
    display: grid;
    gap: 28px
}

/* HERO */
.hero {
    padding: 64px 0 40px
}

.hero .grid {
    grid-template-columns: 1.1fr .9fr
}

.title {
    font-size: clamp(22px, 4vw, 36px);
    line-height: 1.3;
    margin: 2px 0 12px;
    font-weight: 900;
    letter-spacing: -.02em
}

.subtitle {
    color: #49506a;
    font-size: clamp(16px, 2.4vw, 18px)
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px
}

/* code card */
.code-card {
    background: linear-gradient(180deg, #ffffff, #fafcff);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden
}

.code-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    color: #5f6b88
}

pre {
    margin: 0;
    padding: 16px;
    background: var(--code-bg);
    color: #0f172a;
    overflow: auto;
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 14px;
    border-radius: 10px
}

code .key {
    color: #2152ff
}

code .str {
    color: #0ea47a
}

code .num {
    color: #b45309
}

/* SEARCH */
.search-section {
    padding: 10px 0 12px
}

.search-card {
    display: grid;
    gap: 16px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow)
}

.search-row {
    display: flex;
    gap: 10px
}

.input {
    flex: 1;
    background: #ffffff;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 12px;
    padding: 12px 14px;
    outline: none
}

.input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--ring)
}

.result {
    display: grid;
    gap: 14px
}

/* CARDS de resultado */
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 6px 22px rgba(18, 26, 60, .06)
}

.card-head {
    display: flex;
    align-items: center;
    gap: 10px
}

.pill {
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700
}

.estado--activa {
    background: #e9fcf6;
    color: #0d7c64;
    border: 1px solid #bdf3e6
}

.estado--inactiva {
    background: #fff4f4;
    color: #8a2a2a;
    border: 1px solid #ffd7d7
}

dl {
    margin: 8px 0
}

dt {
    color: #5b647a;
    font-size: 12px
}

dd {
    margin: 0;
    font-weight: 600
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px
}

.meta {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #5b647a;
    font-size: 13px;
    margin-top: 8px
}

.badge-demo {
    background: #fff3c4;
    border: 1px solid #ffe08a;
    color: #7b5d00;
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 11px
}

.json {
    background: #f6f8ff;
    border: 1px solid #dfe6ff;
    border-radius: 10px;
    padding: 12px;
    margin-top: 12px
}

.is-hidden {
    display: none
}

.actions {
    display: flex;
    gap: 10px;
    margin-top: 10px
}

/* LISTADO */
.listado {
    display: grid;
    gap: 12px
}

.item {
    display: grid;
    grid-template-columns: 1.6fr .8fr .6fr .6fr auto;
    gap: 10px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px
}

.item strong {
    font-weight: 700
}

.item .mini-pill {
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 999px;
    background: #eef2ff;
    border: 1px solid #dfe6ff;
    color: #1e2a55
}

.item a.btn {
    padding: 8px 12px;
    border-radius: 10px
}

/* PRICING / FEATURES etc (reusadas) */
.features {
    padding: 36px 0
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px
}

.audiences {
    padding: 28px 0
}

.aud-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px
}

.how {
    padding: 28px 0
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px
}

.pricing {
    padding: 34px 0
}

.tiers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px
}

.tier {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    position: relative;
    box-shadow: var(--shadow)
}

.price {
    font-size: 32px;
    font-weight: 900
}

.badge {
    position: absolute;
    top: 14px;
    right: 105px;
    background: #e9fcf6;
    color: #0d7c64;
    border: 1px solid #bdf3e6;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px
}

.list {
    margin: 12px 0 0;
    padding: 0;
    list-style: none
}

.list li {
    margin: 8px 0;
    display: flex;
    gap: 10px;
    align-items: center
}

.ok {
    display: inline-flex;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    background: #0ea47a1a;
    border: 1px solid #7bd9c1
}

.tier .btn.secondary {
    background: linear-gradient(90deg, #2152ff, #12b48a);
    color: #fff !important;
    border: none;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(33, 82, 255, .25)
}

.tier .btn.secondary:hover {
    box-shadow: 0 10px 25px rgba(33, 82, 255, .35);
}

.dev {
    padding: 30px 0
}

.cta-final {
    padding: 40px 0 70px
}

.cta-box {
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow)
}

footer_old {
    padding: 26px 0 50px;
    color: #6b7280
}

.foot-grid {
    display: grid;
    gap: 32px;
    grid-template-columns: 1.5fr repeat(4, 1fr);
}

@media (max-width: 980px) {
    .hero .grid {
        grid-template-columns: 1fr
    }

    .cards,
    .aud-cards,
    .steps,
    .tiers,
    .foot-grid {
        display: grid;
        gap: 32px;
        grid-template-columns: 1.5fr repeat(4, 1fr);
    }

    .nav .desktop-only {
        display: none
    }

    .item {
        grid-template-columns: 1.4fr .8fr .6fr .6fr auto
    }

    .grid-2 {
        grid-template-columns: 1fr
    }
}

.title .grad {
    background: linear-gradient(90deg, #0f172a, #2152ff, #12b48a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.pill.top {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef2ff;
    border: 1px solid #dfe6ff;
    color: #1e2a55;
    font-weight: 700;
    font-size: 12px
}




.pill {
    padding: .25rem .5rem;
    border-radius: 999px;
    font-size: .8rem;
    display: inline-block
}


/* FAQ Section Responsive Fixes */
.faq-grid-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
    margin-top: 32px;
}

@media (max-width: 980px) {
    .faq-grid-container {
        grid-template-columns: 1fr !important;
    }

    .faq-grid-container aside {
        position: static !important;
        width: 100%;
        margin-top: 32px;
    }
}

.faq-item {
    background: rgba(255, 255, 255, .6);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    padding: 16px 20px;
    transition: all 0.2s ease;
}

.faq-item[open] {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border-color: #cbd5e1;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    font-weight: 700;
    color: #1e293b;
    position: relative;
    padding-right: 24px;
}

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

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    font-weight: 400;
    color: #64748b;
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.pill.estado--activa {
    background: #e6ffed;
    border: 1px solid #b7ebc6
}

.pill.estado--inactiva {
    background: #fff2f0;
    border: 1px solid #ffccc7
}

.mini-pill {
    padding: .2rem .4rem;
    border-radius: 999px;
    border: 1px solid #ddd;
    font-size: .75rem
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem 1rem
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem 1rem
}

.listado .item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: .5rem;
    align-items: center;
    padding: .6rem;
    border-bottom: 1px solid #eee
}

.card.empresa {
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 1rem;
    background: #fff
}

.card .section {
    margin-top: 1rem
}

.section h4 {
    margin: .2rem 0 .6rem 0;
    font-size: 1rem
}

.timeline {
    border-left: 2px solid #eee;
    padding-left: .8rem
}

.timeline .row {
    margin: .45rem 0
}

.kv {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: .4rem .8rem
}

.kv div {
    display: contents
}

.kv dt {
    color: #666
}

.actions {
    display: flex;
    gap: .5rem;
    margin-top: .8rem
}

.json.is-hidden {
    display: none
}

.badge-demo {
    background: #faf5ff;
    border: 1px solid #e9d8fd;
    border-radius: 6px;
    padding: .15rem .4rem;
    font-size: .75rem
}

.muted {
    color: #333
}

.btn {
    padding: .5rem .8rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    cursor: pointer
}

.btn.ghost {
    background: transparent
}

.btn.primary {
    background: #2152ff;
    color: #fff;
    border-color: #2152ff;
    box-shadow: 0 8px 20px rgba(33, 82, 255, 0.2);
    transition: all 0.3s ease;
}

.btn.primary:hover {
    background: #1a44e6;
    border-color: #1a44e6;
    box-shadow: 0 12px 28px rgba(33, 82, 255, 0.3);
    transform: translateY(-2px);
}


/* ===== FICHA DE EMPRESA · POLISH VISUAL (sin cambiar JS) ===== */
.card.empresa {
    border: 1px solid #e5e7eb !important;
    border-radius: 16px !important;
    padding: 22px !important;
    background: #fff !important;
    box-shadow: 0 8px 24px rgba(17, 24, 39, .06) !important;
}

.card.empresa .card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    border-bottom: 1px dashed #eef2f7;
    padding-bottom: 12px;
    margin-bottom: 14px;
}

.card.empresa .card-head h3 {
    margin: 0 0 2px;
    font-size: 1.1rem;
    line-height: 1.2
}

.card.empresa .card-head .muted {
    color: #6b7280
}

.card.empresa .pill {
    padding: .35rem .6rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700
}

.card.empresa .estado--activa {
    background: #e7fff1;
    border: 1px solid #b9f5cf;
    color: #066e2c
}

.card.empresa .estado--inactiva {
    background: #fff1f0;
    border: 1px solid #ffd0cc;
    color: #9a1a0f
}

.card.empresa .section {
    margin-top: 16px
}

.card.empresa .section h4 {
    position: relative;
    margin: .2rem 0 .7rem;
    font-size: .95rem;
    font-weight: 600;
    color: #0f172a;
    padding-left: 14px;
}

.card.empresa .section h4::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55rem;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
}

.card.empresa .kv {
    grid-template-columns: 220px 1fr !important;
    gap: 8px 16px
}

.card.empresa .kv dt {
    color: #6b7280;
    font-weight: 500
}

.card.empresa .kv dd {
    margin: 0;
    color: #111827
}

.card.empresa .timeline {
    padding-left: 10px;
    position: relative
}

.card.empresa .timeline .row {
    position: relative;
    padding: 6px 0 6px 12px;
    border-left: 2px solid #eef2f7;
}

.card.empresa .timeline .row::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 12px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
}

/* ADMIN UTILITIES (Refactor) */
.page-padding {
    padding: 40px 0;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.flex-gap-10 {
    display: flex;
    gap: 10px;
}

.admin-filter-form {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 1rem;
    align-items: end;
}

.input-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.w-full {
    width: 100%;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #fecaca;
}

.admin-table-wrapper {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.admin-table th {
    padding: 12px;
    color: #64748b;
    font-size: 0.85rem;
    border-bottom: 2px solid #f1f5f9;
    text-align: left;
}

.admin-table td {
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.font-bold {
    font-weight: 600;
}

.font-bold-700 {
    font-weight: 700;
}

.text-sm {
    font-size: 0.85rem;
}

.text-xs {
    font-size: 0.75rem;
}

.text-slate {
    color: #64748b;
}

.text-slate-darker {
    color: #475569;
}

.text-primary {
    color: #2152ff;
}

.bulk-actions {
    grid-column: 1 / -1;
    margin-top: 10px;
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
    margin-bottom: 10px;
}

.bulk-floating-bar {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: none;
    align-items: center;
    gap: 15px;
    z-index: 100;
    border: 1px solid #e2e8f0;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 0.75rem;
}

.pill-admin {
    background: #eef2ff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
    font-size: 0.7rem;
}

.pill-api-ok {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    font-size: 0.7rem;
    cursor: pointer;
}

.pill-api-off {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
    font-size: 0.7rem;
    cursor: pointer;
}

.pill-sm {
    font-size: 0.7rem;
}

.btn-impersonate-style {
    padding: 4px 8px;
    font-size: 0.75rem;
    background: #e0f2fe;
    color: #0284c7;
    border: 1px solid #bae6fd;
}

.btn-danger-ghost {
    padding: 4px 8px;
    font-size: 0.75rem;
    color: #ef4444;
    border-color: #fee2e2;
}

.text-primary-bold {
    font-weight: 700;
    color: #2152ff;
}

.text-slate-light {
    font-size: 0.75rem;
    color: #64748b;
}

.text-slate-lighter {
    font-size: 0.75rem;
    color: #94a3b8;
}

.no-underline {
    text-decoration: none;
}


.flex-gap-5 {
    display: flex;
    gap: 5px;
}

.mt-8 {
    margin-top: 2rem;
}

.ml-2 {
    margin-left: 10px;
}


.mb-8 {
    margin-bottom: 2rem;
}

.p-5 {
    padding: 20px;
}

.flex-center {
    align-items: center;
}

.flex-1 {
    flex: 1;
}

.cursor-pointer {
    cursor: pointer;
}

.select-none {
    user-select: none;
}

.text-09 {
    font-size: 0.9rem;
}

.text-slate-500 {
    color: #64748b;
}

.pill-green {
    background: #dcfce7;
    color: #166534;
}

.pill-slate {
    background: #f1f5f9;
    color: #64748b;
}

.font-normal {
    font-weight: normal;
}

.text-center {
    text-align: center;
}

.p-10 {
    padding: 40px;
}

.card.empresa .timeline .mini-pill {
    border-color: #e5e7eb;
    background: #f8fafc;
    color: #1f2937
}

.card.empresa .actions {
    gap: 10px;
    margin-top: 6px
}

.card.empresa .btn {
    padding: .5rem .85rem;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff
}

.card.empresa .btn:hover {
    background: #f8fafc
}

.card.empresa .btn.primary {
    background: #111827;
    border-color: #111827;
    color: #fff
}

.card.empresa .meta {
    border-top: 1px dashed #eef2f7;
    padding-top: 10px;
    margin-top: 6px;
    color: #6b7280;
    font-size: .9rem
}

.card.empresa .badge-demo {
    background: #f5f3ff;
    border: 1px solid #e9e5ff;
    color: #4f46e5
}

.card.empresa .json {
    background: #0f172a0d;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px;
    margin-top: 12px;
    overflow: auto;
}


/* ===== LAYOUT 2 COLUMNAS (aprovecha el espacio derecho) ===== */
.card.empresa {
    display: grid !important;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
    gap: 18px 24px;
    align-items: start;
}

/* El header ocupa todo el ancho */
.card.empresa .card-head {
    grid-column: 1 / -1;
}

/* Orden actual de tus secciones: 1 Registro, 2 Gobierno, 3 Actos, 4 VIES, 5 Meta/acciones, luego <pre> */
.card.empresa .section:nth-of-type(1) {
    grid-column: 1;
}

/* Ficha registral */
.card.empresa .section:nth-of-type(2) {
    grid-column: 1;
}

/* Gobierno corporativo */
.card.empresa .section:nth-of-type(3) {
    grid-column: 1;
}

/* Últimos actos */

/* Sidebar derecha */
.card.empresa .section:nth-of-type(4) {
    grid-column: 2;
    position: sticky;
    top: 88px;
}

.card.empresa .section:last-of-type {
    grid-column: 2;
}

/* Meta + botones */
.card.empresa pre.json {
    grid-column: 2;
    max-height: 380px;
}

/* Botón VIES a ancho completo en la sidebar */
.card.empresa .section:nth-of-type(4) .btn.primary {
    width: 100%;
}

/* Responsivo: 1 columna en <=980px */
@media (max-width: 980px) {
    .card.empresa {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .card.empresa .card-head,
    .card.empresa .section,
    .card.empresa pre.json {
        grid-column: 1 / -1;
    }

    .card.empresa .section:nth-of-type(4) {
        position: static;
    }
}


/* --- FICHA: franja inferior (meta + acciones) --- */
.card.empresa .section:last-of-type {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 16px !important;
}

/* Botonera: a la derecha y sin “glow” */
.card.empresa .actions {
    display: flex !important;
    gap: 10px !important;
    justify-content: flex-end !important;
}

/* Botones dentro de la ficha: fondo blanco, texto oscuro, sin sombra */
.card.empresa .actions .btn {
    background: #fff !important;
    color: #0f172a !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: none !important;
    padding: .55rem .9rem !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
}

/* Hover sutil */
.card.empresa .actions .btn:hover {
    background: #f8fafc !important;
}

/* “Ghost” dentro de la ficha ≈ igual (sin primario ni gradientes) */
.card.empresa .actions .btn.ghost {
    background: #fff !important;
    color: #0f172a !important;
}

/* Si por algún motivo se renderiza un botón vacío, escóndelo */
.card.empresa .actions .btn:empty {
    display: none !important;
}


/* --- Mover la franja inferior al ancho completo y alinearla a la izquierda --- */
.card.empresa .section:last-of-type {
    grid-column: 1 / -1 !important;
    /* ocupa ambas columnas */
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    /* izquierda */
    gap: 16px !important;
    flex-wrap: wrap !important;
    /* si no cabe, salta de línea */
    border-top: 1px dashed #eef2f7;
    /* por si se perdió con otros overrides */
    padding-top: 12px;
    margin-top: 8px;
}

/* Botonera junto al texto, sin empujar a la derecha */
.card.empresa .actions {
    display: flex !important;
    gap: 10px !important;
    margin-left: 0 !important;
    justify-content: flex-start !important;
}

/* (Opcional) que el visor JSON también salga a todo el ancho bajo la franja */
.card.empresa pre.json {
    grid-column: 1 / -1 !important;
    max-height: 420px;
}


/* ===== Pasos (Regístrate / Conecta / Automatiza) ===== */
.steps .card {
    position: relative;
    padding-top: 44px;
    /* espacio para la insignia */
    border-radius: 16px;
}

.steps .card>.pill {
    position: absolute;
    top: 14px;
    left: 14px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    /* círculo */
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .2px;
    background: #fff;
    /* fondo blanco */
    color: #111827;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 18px rgba(17, 24, 39, .08);
}

/* por si .mini-pill global mete estilos, los neutralizamos aquí */
.steps .card>.pill.mini-pill {
    padding: 0;
    background: #fff;
    border-color: #e5e7eb;
    color: #111827;
}

/* accesibilidad: ligera reacción al foco/hover */
.steps .card:hover>.pill {
    box-shadow: 0 10px 22px rgba(17, 24, 39, .12);
}

/* responsive: mantiene proporciones */
@media (max-width: 980px) {
    .steps .card {
        padding-top: 46px;
    }

    .steps .card>.pill {
        width: 30px;
        height: 30px;
    }
}


/* === Pasos (1 · 2 · 3) con degradado de marca === */
.steps .card {
    position: relative;
    padding-top: 46px;
    /* espacio para la insignia */
    border-radius: 16px;
}

.steps .card>.pill {
    position: absolute;
    top: 14px;
    left: 14px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    font: 700 12px/1 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    letter-spacing: .2px;
    color: #fff;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .25);

    /* Degradado brand */
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
    border: none;

    /* Glow suave */
    box-shadow:
        0 8px 22px rgba(33, 82, 255, .18),
        0 2px 6px rgba(0, 0, 0, .06);
}

/* Neutraliza estilos globales de mini-pill dentro de .steps */
.steps .card>.pill.mini-pill {
    padding: 0;
    border: 0;
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
    color: #fff;
}

/* Hover/focus accesible */
.steps .card:hover>.pill,
.steps .card>.pill:focus-visible {
    box-shadow:
        0 10px 26px rgba(33, 82, 255, .24),
        0 3px 8px rgba(0, 0, 0, .08);
    outline: none;
}

/* Responsivo */
@media (max-width: 980px) {
    .steps .card {
        padding-top: 50px;
    }

    .steps .card>.pill {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }
}


footer_old {
    padding: 40px !important;
    background-color: #f9f9f9;
}


/* === MODAL BASE === */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 30, 0.55);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Caja principal */
.modal {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
    max-width: 480px;
    width: 90%;
    padding: 32px 28px;
    position: relative;
    animation: fadeUp .35s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === MOBILE OVERFLOW FIXES === */
@media (max-width: 768px) {

    /* Reduce SEO block padding on mobile */
    .company-seo-block {
        padding: 16px;
    }

    .company-share-row {
        gap: 8px;
    }

    .share-buttons {
        margin-left: 0;
        /* Stack or just flow naturally */
        width: 100%;
        margin-top: 8px;
    }

    /* Force Containers to fit viewport */
    .search-card,
    .container.search-section,
    .company-card,
    .result {
        width: 100% !important;
        max-width: 100% !important;
        /* using 100% instead of 100vw to avoid scrollbar */
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        overflow-x: hidden !important;
    }

    /* Ensure no fixed widths on children */
    .company-footer__row,
    .company-code-card {
        min-width: 0 !important;
        /* Override the 280/300px min-width if it causes overflow */
        width: 100% !important;
    }

    /* Ensure Body doesn't scroll horizontally */
    body,
    html {
        overflow-x: hidden;
    }

    /* Fix potential padding issues in main */
    main {
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow-x: hidden;
    }
}

/* === HOME BLOG REDESIGN === */
.home-blog__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.home-blog__card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.home-blog__card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.home-blog__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px;
    text-decoration: none;
    color: inherit;
}

/* Decorative top bar to simulate "post" feel */
.home-blog__card::before {
    content: "";
    display: block;
    height: 6px;
    background: linear-gradient(90deg, #2152ff, #12b48a);
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.home-blog__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 10px 0 12px;
    /* Top margin for bar space if needed, but flex handles it */
    line-height: 1.4;
}

.home-blog__excerpt {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 16px;
    flex-grow: 1;
    /* Pushes meta down */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-blog__meta {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 0;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

/* Responsive Grid */
@media (max-width: 1024px) {
    .home-blog__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .home-blog__grid {
        grid-template-columns: 1fr;
    }
}

/* Company Card Footer & Code Block */
/* Company Card Footer & Code Block */
/* Company Card Footer & Code Block */
/* Company Card Footer & Code Block */
.company-card__footer_old {
    display: flex;
    /* Flexbox for side-by-side */
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px dashed #eef2f7;
    flex-wrap: wrap;
    /* Safety for intermediate sizes */
}

/* Left side (Text + Button) */
.company-footer__row {
    flex: 1;
    /* Take up available space */
    min-width: 280px;
    /* Prevent crushing */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0;
    /* No bottom margin needed in side-by-side */
}

/* Right side (Code Block) */
.company-code-card {
    flex: 1;
    /* Take up available space */
    min-width: 300px;
    margin-top: 0 !important;
    /* Override any previous top margin */
}

/* === Company Card Layout & Responsive === */

/* Main Card Container */
.company-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: visible;
    /* Allow status/timeline overflow if needed */
}

/* Header Section */
.company-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 1.5rem;
}

.company-card__eyebrow {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.company-card__name {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin: 0 0 0.5rem 0;
}

.company-card__meta {
    font-size: 0.95rem;
    color: #64748b;
}

/* Status Badge */
.company-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.company-status--active {
    background: #dcfce7;
    color: #166534;
}

.company-status--inactive {
    background: #f1f5f9;
    color: #64748b;
}

.company-status__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
}

/* Data Grid (Info Section) */
.company-card__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 Columns on Desktop */
    gap: 1.5rem 2rem;
}

.company-card__grid dt {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.company-card__grid dd {
    font-size: 1rem;
    color: #1e293b;
    font-weight: 500;
    margin: 0;
}

.company-card__purpose {
    grid-column: 1 / -1;
    /* Full width for purpose */
}

/* === Responsive Breakpoints === */

@media (max-width: 900px) {

    /* Stack Footer Elements */
    .company-card__footer_old {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }

    .company-footer__row {
        margin-bottom: 0;
    }

    .company-code-card {
        margin-top: 0;
    }

    .company-footer__row .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* Mobile Layout adjustments */

    /* Reduce Card Padding */
    .company-card {
        padding: 1.5rem;
        border-radius: 12px;
    }

    /* Stack Header */
    .company-card__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .company-card__name {
        font-size: 1.5rem;
    }

    /* Stack Grid to 1 Column */
    .company-card__grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    /* Adjust Timeline for small screens */
    .borme-timeline {
        padding-left: 20px;
        /* Reduced padding */
    }

    .borme-icon {
        width: 28px;
        height: 28px;
        left: -34px;
        /* Adjust for smaller icon */
    }

    .borme-icon svg {
        width: 14px;
        height: 14px;
    }

    .borme-date {
        font-size: 0.7rem;
    }

    /* Adjust Main Container for Mobile */
    .search-section .container,
    .search-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.company-cta-title {
    font-size: 1rem;
    margin: 0 0 0.25rem;
    color: #1e293b;
}

.company-cta-desc {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
}

/* Specific button style to match original inline styles */
.company-cta-btn {
    font-size: 0.9rem !important;
    padding: 0.6rem 1.2rem !important;
}

/* === Company SEO & Share Block === */
.company-seo-block {
    margin-top: 2rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.company-seo-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.seo-text {
    color: #475569;
    line-height: 1.7;
    font-size: 0.95rem;
}

.company-share-row {
    margin-top: 1.5rem;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    /* allow wrapping on small screens */
}

.badge-demo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 6px;
    /* consistent radius */
}

.badge-official {
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #e0f2fe;
    /* explicit border since it was inline */
}

.share-buttons {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

.share-btn {
    padding: 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    background: #f1f5f9;
    color: #334155;
    /* default fallback */
}

.share-linkedin {
    color: #0a66c2;
}

.share-whatsapp {
    color: #25D366;
}

@media (max-width: 768px) {

    /* Reduce SEO block padding on mobile */
    .company-seo-block {
        padding: 16px;
    }

    .company-share-row {
        gap: 8px;
    }

    .share-buttons {
        margin-left: 0;
        /* Stack or just flow naturally */
        width: 100%;
        margin-top: 8px;
    }
}

.company-code-card {
    margin-top: 1.25rem;
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 8px;
    /* Assuming global radius, hardcoding for safety */
    overflow: hidden;
}

.company-code-header {
    border-bottom: 1px solid #1e293b;
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.company-code-lang {
    font-size: 0.75rem;
    color: #94a3b8;
    font-family: monospace;
}

.company-code-toggle {
    background: none;
    border: none;
    color: #38bdf8;
    font-size: 0.75rem;
    cursor: pointer;
    text-decoration: underline;
}

.company-code-content {
    background: transparent;
    color: #e2e8f0;
    padding: 12px 16px;
    margin: 0;
    font-size: 0.8rem;
    overflow-x: auto;
}

@keyframes fadeUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* === LEAD GEN FORM (Inside Search Result) === */
.lead-form-container {
    margin-top: 2rem;
    padding: 30px;
    background: #f8faff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    overflow: hidden;
}


.lead-form-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.02em;
}

.lead-form-subtitle {
    font-size: 1rem;
    color: #475569;
    line-height: 1.5;
    margin: 0 0 4px;
}

.lead-form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.lead-form .input {
    flex: 1;
    min-width: 200px;
}

.lead-form .btn {
    white-space: nowrap;
    justify-content: center;
}

.secondary-radar-link {
    display: inline-block;
    text-align: center;
    margin-top: 1.5rem;
    color: #64748b;
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    opacity: 0.7;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid transparent;
}

.secondary-radar-link:hover {
    color: var(--primary);
    opacity: 1;
    background: #fff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .lead-form {
        flex-direction: column;
        align-items: stretch;
    }

    .lead-form .input {
        width: 100%;
    }
}

/* Cierre */
.modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    transition: color .2s;
}

.modal-close:hover {
    color: #0f172a;
}

/* Contenido */
.modal-content h2 {
    margin-top: 0;
    font-size: 1.1rem;
    line-height: 1.2;
}

.modal-content p {
    margin-bottom: 1rem;
}

/* Formulario */
.modal-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.modal-form input[type="email"] {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid #dbe3f1;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
}

.modal-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--ring);
}

.modal-form button {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 480px) {
    .modal {
        padding: 26px 20px;
    }

    .modal-content h2 {
        font-size: 1.3rem;
    }
}


.modal {
    outline: none;
}

.modal-close {
    cursor: pointer;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ve-logo {
    /* 10-11-2026: sin marco blanco ni sombra; el icono nuevo ya trae su forma */
    box-shadow: none;
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
    margin-top: 1px;
}

.brand-name {
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: .1px;
    color: #0f172a;
}

.brand-tag {
    margin-top: 3px;
    font-size: 0.83rem;
    font-weight: 500;
    color: #6b7280;
    background: none;
    border: none;
    padding: 0;
}

@media (max-width:980px) {
    .brand-tag {
        display: none;
    }
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ve-logo {
    display: block;
    width: 32px;
    height: 32px;
    box-shadow: none;
}

/* 10-11-2026: en la cabecera, del alto del nombre + lema */
.brand .ve-logo {
    width: 40px;
    height: 40px;
    border-radius: 9px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-weight: 800;
    font-size: 1.05rem;
    color: #fff;
}

.brand-tag {
    margin-top: 3px;
    font-size: .83rem;
    font-weight: 500;
    color: #ddd;
}

@media (max-width:980px) {
    .brand-tag {
        display: none;
    }
}


/* ============= WOW PACK · identidad + micro-interacciones ============= */
:root {
    --brand-grad: linear-gradient(90deg, #2152ff, #12b48a);
    --brand-grad-soft: linear-gradient(120deg, #2152ff22, #12b48a22);
    --ring-strong: rgba(33, 82, 255, .35);
}

/* Fondo con textura sutil (sin imágenes) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(80vmax 50vmax at 10% -10%, #2152ff10 0%, transparent 55%),
        radial-gradient(70vmax 40vmax at 115% 110%, #12b48a10 0%, transparent 60%);
}

body::after {
    /* “ruido” geométrico suave */
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    background-image:
        linear-gradient(0deg, transparent 24%, #00000003 25%, #00000003 26%, transparent 27%, transparent 74%, #00000003 75%, #00000003 76%, transparent 77%),
        linear-gradient(90deg, transparent 24%, #00000003 25%, #00000003 26%, transparent 27%, transparent 74%, #00000003 75%, #00000003 76%, transparent 77%);
    background-size: 22px 22px;
}

/* Header: Glassmorphism oscuro elegante */
header.main-site-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    background-color: rgba(11, 28, 64, 0.85);
    position: relative;
    z-index: 100;
}

/* Héroe: subrayado animado en el texto con gradiente */
.title .grad {
    position: relative;
    white-space: nowrap;
}

.title .grad::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 8px;
    background: var(--brand-grad);
    filter: blur(6px);
    opacity: .28;
    border-radius: 12px;
    transform-origin: left center;
    transform: scaleX(.65);
    transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .3s ease;
}

.hero:hover .title .grad::after {
    transform: scaleX(1);
    opacity: .34
}

/* Botones: “shine” + presión */
.btn {
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.btn:hover::after {
    transform: skewX(-20deg) translateX(160%);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(33, 82, 255, .22)
}

/* Tarjetas: borde conic + hover lift */
.card {
    position: relative;
    border-radius: 16px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    border: 1px solid #e9eef8;

}

.card:hover {
    box-shadow: 0 16px 34px rgba(15, 23, 42, .08);
    border-color: #dfe6f6;
}

/* Code card tipo terminal */
.code-card .code-top {
    gap: 10px;
}

.code-card .code-top::before {
    content: "";
    flex: 0 0 auto;
    width: 42px;
    height: 10px;
    border-radius: 20px;
    background:
        radial-gradient(circle at 6px 50%, #ff5f56 5px, transparent 6px),
        radial-gradient(circle at 21px 50%, #ffbd2e 5px, transparent 6px),
        radial-gradient(circle at 36px 50%, #27c93f 5px, transparent 6px);
    opacity: .9;
}

/* Buscador: glassmorphism ligero */
.search-card {
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(6px) saturate(1.1);
    border: 1px solid #eaf0fb;
}

.search-row .input {
    background: #ffffffcc;
}

.search-row .input:focus {
    box-shadow: 0 0 0 4px var(--ring-strong)
}

/* Features / audiencias: icon bubble */
.cards .card h3::before,
.aud-cards .card h3::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 15px;
    border-radius: 50%;
    background: var(--brand-grad);
    box-shadow: 0 0 0 6px #2152ff12;
    vertical-align: middle;
}

/* Pasos: conectores entre tarjetas */
.steps {
    position: relative
}

.steps .card {
    background: #fff;
}

.steps .card::after {
    content: "";
    position: absolute;
    top: 28px;
    right: -14px;
    width: 28px;
    height: 2px;
    background: var(--brand-grad);
    opacity: .35;
}

.steps .card:last-child::after {
    display: none
}

/* Pricing: resalta el plan “best” (añade class="tier best" a ese div) */
.tier.best {
    border-color: transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        var(--brand-grad) border-box;
    box-shadow: 0 22px 44px rgba(33, 82, 255, .12);
    transform: translateY(-2px);
}

.tier.best .price {
    background: var(--brand-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.tier.best .badge {
    background: #fff;
    color: #0d7c64;
    border: 1px solid #bdf3e6;
}

.tier.best .btn {
    box-shadow: 0 10px 24px rgba(33, 82, 255, .28)
}

/* CTA final: borde de marca y fondo suave */
.cta-box {
    background:
        linear-gradient(180deg, #ffffff, #f8fbff);
    border: 1px solid #e6edfb;
    position: relative;
}

.cta-box::after {
    content: "";
    position: absolute;
    inset: auto 14px -1px 14px;
    height: 3px;
    background: var(--brand-grad);
    opacity: .35;
    border-radius: 99px;
}

/* Footer: borde superior con degradado y menos gris */
footer_old {
    border-top: 1px solid #e6ecf8;
    background: #133A82;
}

/* Accesibilidad focus visible */
a:focus-visible,
.btn:focus-visible,
.input:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px var(--ring-strong) !important;
    border-color: transparent !important;
}

/* Pequeñas mejoras responsive */
@media (max-width: 980px) {
    .title .grad::after {
        bottom: -3px;
        height: 6px;
        filter: blur(5px)
    }

    .steps .card::after {
        display: none
    }
}


/* ===================== SPACING / BREATHING ROOM PACK ===================== */
:root {
    /* Escala de espacios y medidas del contenedor */
    --space-1: 8px;
    --space-2: 12px;
    --space-3: 16px;
    --space-4: 24px;
    --space-5: 32px;
    --space-6: 48px;
    --space-7: 64px;
    --space-8: 88px;

    --container-max: 1240px;
    /* antes 1160px */
    --container-gutter: 32px;
    /* antes 22px */
}

/* Contenedor más ancho y con más gutter lateral */
.container {
    max-width: var(--container-max) !important;
    padding-inline: var(--container-gutter) !important;
}

/* Separación vertical entre secciones principales */
section.container {
    padding-block: var(--space-5) !important;
    /* 48px arriba/abajo */
}


/* Más espacio entre bloques internos tipo grid */
.grid {
    gap: var(--space-5) !important;
}

/* 32px */
.cards,
.aud-cards,
.steps,
.tiers {
    gap: var(--space-5) !important;
}

/* Tarjetas y bloques con más padding interno */
.card,
.code-card,
.search-card,
.tier,
.cta-box {
    padding: 24px !important;
    /* + aire por dentro */
    border-radius: 16px !important;
}

/* Items del listado y filas: más cómodos */
.item {
    padding: 14px 16px !important;
    gap: var(--space-3) !important;
}

/* Inputs y barra de búsqueda más amplios */
.input {
    padding: 14px 16px !important;
}

.search-row {
    gap: var(--space-3) !important;
}

/* Encabezados con margen inferior consistente */
h1.title {
    margin: 4px 0 var(--space-3) !important;
}

section h2 {
    margin: 0 0 var(--space-4) !important;
}

.card h3 {
    margin: 0 0 var(--space-2) !important;
}

/* Más separación entre el héroe y la code-card */
.hero .grid {
    grid-template-columns: 1.05fr .95fr;
    gap: var(--space-5) !important;
}

/* Pricing: separa tarjetas del resto */

.tiers .tier {
    min-height: 100%;
}

/* Footer también respira mejor */
footer.container {
    padding-block: var(--space-6) !important;
}

/* Header: un poco más de altura y respiro lateral para los CTAs */
.nav {
    padding: 16px 0 !important;
}

/* ------------------ Responsive tuning ------------------ */
@media (max-width: 1180px) {
    :root {
        --container-gutter: 28px;
    }
}

@media (max-width: 980px) {
    :root {
        --container-gutter: 22px;
    }

    section.container {
        padding-block: var(--space-5) !important;
    }

    .hero {
        padding: var(--space-7) 0 var(--space-5) !important;
    }

    .grid,
    .cards,
    .aud-cards,
    .steps,
    .tiers {
        gap: var(--space-4) !important;
    }

    .card,
    .code-card,
    .search-card,
    .tier,
    .cta-box {
        padding: 20px !important;
    }
}

@media (max-width: 640px) {
    :root {
        --container-gutter: 18px;
    }

    section.container {
        padding-block: var(--space-4) !important;
    }

    .card,
    .code-card,
    .search-card,
    .tier,
    .cta-box {
        padding: 18px !important;
    }

    .input {
        padding: 12px 14px !important;
    }
}

/* ===== 1) Títulos de sección con personalidad (wow sutil) ===== */
section.container h2 {
    font-weight: 800;
    letter-spacing: -.015em;
    font-size: clamp(20px, 2.2vw, 26px);
    line-height: 1.15;
    margin: 0 0 18px !important;
    position: relative;
    color: #0f172a;
}

/* Subrayado de marca, corto y elegante */
section.container h2::after {
    content: "";
    display: block;
    width: 72px;
    /* largo del subrayado */
    height: 4px;
    margin: 14px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
    box-shadow: 0 6px 16px rgba(33, 82, 255, .20);
}

/* (Opcional) “kicker”/etiqueta encima del h2 si añades data-eyebrow en el H2 */
section.container h2[data-eyebrow] {
    padding-top: 18px;
}

section.container h2[data-eyebrow]::before {
    content: attr(data-eyebrow);
    position: absolute;
    top: 0;
    left: 0;
    font: 700 11px/1 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #1e2a55;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef2ff;
    border: 1px solid #dfe6ff;
}

/* ===== 2) Pasos 1·2·3: alinear número y título (sin cambiar HTML) ===== */
/* Convertimos la card en una grid de 2 columnas:
   [pill] [título] en la fila 1, el párrafo ocupa toda la fila 2 */
.steps .card {
    position: relative;
    /* conservamos sombras, etc. */
    padding-top: 18px !important;
    /* ya no necesitamos gran offset para la pill */
    display: grid !important;
    grid-template-columns: auto 1fr;
    grid-auto-rows: min-content;
    column-gap: 12px;
}

/* La pastilla deja de ser absoluta y se alinea con el H3 */
.steps .card>.pill {
    position: static !important;
    grid-column: 1;
    grid-row: 1;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    margin: 0;
}

/* Título alineado verticalmente con la pill */
.steps .card h3 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    line-height: 1.2;
    display: flex;
    align-items: center;
}

/* El párrafo debajo ocupando todo el ancho */
.steps .card p {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 8px;
}

/* Mantén el degradado bonito de las pills que ya tenías */
.steps .card>.pill {
    color: #fff;
    background: linear-gradient(90deg, var(--primary), var(--primary-2)) !important;
    border: none !important;
    box-shadow: 0 8px 22px rgba(33, 82, 255, .18), 0 2px 6px rgba(0, 0, 0, .06);
}

.search-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 60%, #f7fbff 100%);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.btn_header {
    background-color: #fff;
    color: #133A82;
}

.btn {
    border: none;
}

section {
    background-color: #fff;
}

/* === SEARCH CARD · fondo sutil que resalta, sin líneas ni ruido === */
:root {
    --primary: #2152ff;
    /* azul marca */
    --brand-2: #12b48a;
    /* verde marca */
    --panel: #ffffff;
}

/* Limpia cualquier pseudo anterior que dibuje barras/líneas */
.search-section .search-card::before,
.search-section .search-card::after {
    content: none !important;
}

/* Panel con tinte suave + luz diagonal (resalta sin “gritar”) */
.search-section .search-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(33, 82, 255, .12);
    background:
        /* foco frío superior-izq (muy leve) */
        radial-gradient(800px 400px at -10% -20%, rgba(33, 82, 255, .045), transparent 60%),
        /* foco cálido inferior-der (muy leve) */
        radial-gradient(700px 420px at 110% 120%, rgba(18, 180, 138, .05), transparent 62%),
        /* gradiente base limpio */
        linear-gradient(135deg, #ffffff 0%, #f7fbff 55%, #eef6ff 100%);
    box-shadow:
        0 10px 26px rgba(15, 23, 42, .10),
        0 1px 0 rgba(255, 255, 255, .8) inset;
    /* highlight interior suave */
}

/* Inputs y botón “integrados” visualmente con el panel */
.search-section .search-row {
    gap: 12px;
    margin-top: 10px;
}

.search-section .search-row .input {
    background: var(--panel);
    border: 1px solid #dbe3f5;
    border-radius: 12px;
    padding: 14px 16px;
    color: #0f172a;
    box-shadow: 0 1px 0 #ffffff inset;
}

.search-section .search-row .input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(33, 82, 255, .20);
}

/* Botón con gradiente de marca y sombra corta (no exagerada) */
.search-section .search-row .btn {
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    background: linear-gradient(90deg, var(--primary), var(--brand-2));
    color: #fff;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(33, 82, 255, .22);
    transition: transform .2s ease, box-shadow .2s ease;
}

.search-section .search-row .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(33, 82, 255, .28);
}

/* Texto secundario ligeramente más contrastado (mejor legibilidad) */
.search-section .search-card .muted {
    color: #5f6b88;
}

/* Responsive fino */
@media (max-width:640px) {
    .search-section .search-card {
        padding: 20px
    }

    .search-section .search-row {
        gap: 10px
    }
}


.card-head {
    background-color: #fff;
    padding: 15px;
}

/* =========================
   PRICING — BLOQUES DE COLOR
   ========================= */

/* Fondo de la sección: discreto, no blanco puro */
.pricing.container {
    background: linear-gradient(180deg, #f8fbff 0%, #f2f6ff 100%);
    /*border: 1px solid #e6ecf8;
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(15,23,42,.08);*/
    padding: 56px var(--container-gutter);
}

/* Grid responsivo */
.pricing .tiers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

@media (max-width: 980px) {
    .pricing .tiers {
        grid-template-columns: 1fr;
    }
}

/* Tarjeta BASE: sin blanco, sin bordes visibles; todo color */
.pricing .tier {
    position: relative;
    border-radius: 18px;
    padding: 26px;
    color: #fff;
    border: 1px solid transparent;
    box-shadow:
        0 18px 40px rgba(15, 23, 42, .18),
        inset 0 1px 0 rgba(255, 255, 255, .12);
    transition: transform .2s ease, box-shadow .25s ease, filter .2s ease;
    overflow: hidden;
}

/* Micro brillo diagonal “wow” */
.pricing .tier::after {
    content: "";
    position: absolute;
    inset: -40% -10% auto -10%;
    height: 60%;
    background: linear-gradient(135deg, rgba(255, 255, 255, .20), rgba(255, 255, 255, 0));
    transform: rotate(3deg);
    pointer-events: none;
}

/* Tipografía dentro del bloque de color */
.pricing .tier h3 {
    margin: 0 0 6px;
    font-weight: 800;
    letter-spacing: -.01em;
    color: #fff
}

.pricing .tier .muted {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, .82)
}

.pricing .tier .price {
    font-size: 34px;
    font-weight: 900;
    margin: 6px 0 14px;
    color: #fff
}

/* Lista y checks en blanco translúcido */
.pricing .list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0
}

.pricing .list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    color: rgba(255, 255, 255, .96);
}

.pricing .ok {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .28);
    position: relative;
}

.pricing .ok::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 2px;
    width: 8px;
    height: 12px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    opacity: .9;
    transform: rotate(45deg);
}

/* CTA en píldora blanca para contraste */
.pricing .tier .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #ffffff;
    color: #0f172a;
    border: none;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .18);
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.pricing .tier .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(0, 0, 0, .22);
}

/* Hover general del bloque */
.pricing .tier:hover {
    transform: translateY(-3px);
    filter: saturate(1.05);
    box-shadow: 0 22px 46px rgba(15, 23, 42, .24);
}

/* Insignia “Beta” en verde suave */
.pricing .badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

/* ===== Paletas por tarjeta (sin tocar HTML) ===== */
/* Free = Slate/Indigo suave */
.pricing .tier:nth-child(1) {
    background:
        radial-gradient(120% 120% at -10% -10%, #7c87a73a 0%, transparent 60%),
        linear-gradient(180deg, #334155 0%, #1f2a44 100%);
    border-color: rgba(148, 163, 184, .35);
}

/* Pro (destacada) = Azul Pro intenso */
.pricing .tier:nth-child(2) {
    background:
        radial-gradient(120% 120% at 110% -10%, #60a5fa40 0%, transparent 55%),
        linear-gradient(180deg, #1e3a8a 0%, #2563eb 100%);
    border-color: rgba(59, 130, 246, .45);
    transform: translateY(-4px);
    box-shadow:
        0 28px 64px rgba(37, 99, 235, .32),
        inset 0 1px 0 rgba(255, 255, 255, .16);
}

.pricing .tier:nth-child(2) .btn {
    color: #0b2254;
}

/* Business = Teal/Emerald moderno */
.pricing .tier:nth-child(3) {
    background:
        radial-gradient(120% 120% at -5% 105%, #34d39940 0%, transparent 55%),
        linear-gradient(180deg, #0f766e 0%, #059669 100%);
    border-color: rgba(16, 185, 129, .45);
}

/* Móvil: sombras más suaves para no “manchar” */
@media (max-width:640px) {
    .pricing .tier {
        box-shadow: 0 16px 34px rgba(15, 23, 42, .20)
    }
}

/* ===== PRICING · Checks premium (redondos, con luz y acorde a cada plan) ===== */

/* Espaciado y alineado */
.pricing .list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0
}

.pricing .list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
    line-height: 1.45;
    color: rgba(255, 255, 255, .96);
}

/* Base del check: circular, con luz interior y borde sutil */
.pricing .ok {
    position: relative;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .28);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .25),
        0 2px 6px rgba(0, 0, 0, .25);
}

/* brillo suave */
.pricing .ok::before {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .12) 45%, transparent 70%);
    opacity: .9;
}

/* ✓ nítido y centrado */
.pricing .ok::after {
    content: "";
    position: absolute;
    left: 7px;
    top: -4px;
    width: 7px;
    height: 14px;
    border-right: 3px solid #fff;
    border-bottom: 3px solid #fff;
    transform: rotate(45deg);
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, .15));
}

/* micro-interacción al pasar por la fila */
.pricing .list li:hover .ok {
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .3),
        0 4px 10px rgba(0, 0, 0, .28);
}

/* —— Acentos por plan (bordes/halo coherentes con el color del bloque) —— */
.pricing .tier:nth-child(1) .ok {
    /* Free: slate/indigo */
    border-color: rgba(148, 163, 184, .55);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .25),
        0 2px 6px rgba(30, 41, 59, .35);
}

.pricing .tier:nth-child(2) .ok {
    /* Pro: azul */
    border-color: rgba(59, 130, 246, .65);
    background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(37, 99, 235, .18));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .25),
        0 2px 8px rgba(37, 99, 235, .45);
}

.pricing .tier:nth-child(3) .ok {
    /* Business: teal/emerald */
    border-color: rgba(16, 185, 129, .6);
    background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(5, 150, 105, .18));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .25),
        0 2px 8px rgba(5, 150, 105, .45);
}

/* ===== Botones dentro de PRICING: píldora blanca legible ===== */
.pricing .tier .btn,
.pricing .tier .btn.secondary {
    background: #ffffff !important;
    /* quita el gradiente global */
    color: #0f172a !important;
    /* texto oscuro */
    border: 1px solid rgba(255, 255, 255, .35);
    /* borde sutil sobre el bloque de color */
    border-radius: 12px;
    font-weight: 800;
    text-shadow: none;
    /* por si viene de otro lado */
    box-shadow:
        0 8px 20px rgba(0, 0, 0, .18),
        inset 0 1px 0 rgba(255, 255, 255, .6);
}

/* Hover/active accesible */
.pricing .tier .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .22);
}

.pricing .tier .btn:active {
    transform: translateY(-1px);
}

/* Focus visible (teclado) */
.pricing .tier .btn:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, .7),
        0 0 0 6px rgba(33, 82, 255, .35);
}

/* Si prefieres que el botón de la tarjeta central tenga un borde “azul” */
.pricing .tier:nth-child(2) .btn {
    border-color: rgba(59, 130, 246, .55);
}

.hero::before {
    content: "";
    position: absolute;
    inset: -120px;
    background: radial-gradient(circle at 60% 20%, #2152FF33, transparent 70%);
    filter: blur(80px);
    z-index: -1;
}

header {
    background: linear-gradient(180deg, #133A82 0%, #0B2254 100%) !important;
    color: #eaf1ff;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 12px 24px rgba(8, 26, 64, .25);
}

/*header .btn.btn_header{ background:#fff; color:#0B2254; border:1px solid rgba(255,255,255,.25) }*/
footer_old {
    background: linear-gradient(180deg, #0B2254 0%, #0A1E48 100%) !important;
    color: #dfe8ff !important;
    border-top: 1px solid rgba(255, 255, 255, .08) !important;
}

footer a.minor {
    color: #eaf1ffcc
}

footer a.minor:hover {
    color: #fff
}



/* ===========================
   BUSCADOR · caja pro + depth
   (aplica a tu HTML actual)
   =========================== */

/* Limpia cualquier pseudo previo */
.search-section .search-card::before,
.search-section .search-card::after {
    content: none !important;
}

/* Caja principal */
.search-section .search-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: 24px;
    border: 1px solid #dfe6f6;
    background:
        /* base fría (no blanco plano) */
        linear-gradient(180deg, #ffffff 0%, #f6faff 55%, #eef7ff 100%);
    /* profundidad agradable */
    box-shadow: 0 16px 36px rgba(15, 23, 42, .12);
}

/* Halos de marca muy sutiles (teal + azul) */
.search-section .search-card::before {
    content: "";
    position: absolute;
    inset: -18% -14% auto -14%;
    height: 58%;
    background:
        radial-gradient(50% 70% at 12% 28%, rgba(18, 180, 138, .12) 0%, transparent 60%),
        radial-gradient(60% 80% at 88% 26%, rgba(33, 82, 255, .12) 0%, transparent 65%);
    filter: blur(26px);
    pointer-events: none;
}

/* Tipografía interna */
.search-section .search-card h2 {
    margin: 0 0 6px !important;
    letter-spacing: -.01em;
    color: #0f172a;
}

.search-section .search-card .muted {
    color: #5f6b88
}

/* Fila input + botón */
.search-section .search-row {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

/* Input integrado con el panel */
.search-section .search-row .input {
    flex: 1;
    background: #ffffff;
    border: 1px solid #dbe3f5;
    border-radius: 12px;
    padding: 14px 16px;
    color: #0f172a;
    outline: none;
    box-shadow: 0 1px 0 #ffffff inset;
}

.search-section .search-row .input::placeholder {
    color: #98a6c2
}

.search-section .search-row .input:focus {
    border-color: var(--primary, #2152ff);
    box-shadow: 0 0 0 3px rgba(33, 82, 255, .22);
}

/* Botón con gradiente de marca (compacto y legible) */
.search-section .search-row .btn {
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    background: linear-gradient(90deg, var(--primary, #2152ff), var(--brand-2, #12b48a));
    color: #fff;
    font-weight: 800;
    box-shadow: 0 12px 26px rgba(33, 82, 255, .26);
    transition: transform .2s ease, box-shadow .2s ease;
}

.search-section .search-row .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(33, 82, 255, .32);
}

/* Resultado y texto inferior */
.search-section .result {
    display: grid;
    gap: 14px;
    margin-top: 12px
}

.search-section .search-card p.muted:last-child {
    margin-top: 8px
}

/* Responsive fino */
@media (max-width:640px) {
    .search-section .search-card {
        padding: 20px;
        border-radius: 18px
    }

    .search-section .search-row {
        gap: 10px
    }

    .search-section .search-row .btn {
        padding: 11px 14px
    }
}

/* =========================================
   FEATURES & AUDIENCES · cards con profundidad
   ========================================= */

/* Grid (por si quieres forzar consistencia) */
.features .cards,
.audiences .aud-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

/* ---------- 1) FEATURES (tinte índigo frío) ---------- */
.features .cards .card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    padding: 20px 22px;
    border: 1px solid #e3e9ff;
    background:
        radial-gradient(100% 120% at 110% -10%, #5b7dff22 0%, transparent 55%),
        linear-gradient(180deg, #ffffff 0%, #f6f8ff 100%);
    box-shadow: 0 10px 22px rgba(15, 23, 42, .10);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.features .cards .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, .14);
    border-color: #d7defa;
}

/* Punto de identidad (índigo) */
.features .cards .card h3 {
    margin: 0 0 8px;
    font-weight: 800;
    letter-spacing: -.01em;
}

.features .cards .card h3::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 10px;
    border-radius: 999px;
    vertical-align: middle;
    background: radial-gradient(circle at 35% 35%, #ffffffaa 0 35%, #5843ff 36% 100%);
    box-shadow: 0 0 0 6px #5b7dff22;
}

/* Texto */
.features .cards .card p {
    margin: 0;
    color: #3b4460
}

/* ---------- 2) AUDIENCES (tinte teal/verde) ---------- */
.audiences .aud-cards .card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    padding: 20px 22px;
    border: 1px solid #d7efe8;
    background:
        radial-gradient(110% 120% at -10% 120%, #12b48a22 0%, transparent 55%),
        linear-gradient(180deg, #ffffff 0%, #f3fbf8 100%);
    box-shadow: 0 10px 22px rgba(15, 23, 42, .10);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.audiences .aud-cards .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, .14);
    border-color: #ccebe2;
}

/* Punto de identidad (teal) */
.audiences .aud-cards .card h3 {
    margin: 0 0 8px;
    font-weight: 800;
    letter-spacing: -.01em;
}

.audiences .aud-cards .card h3::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 10px;
    border-radius: 999px;
    vertical-align: middle;
    background: radial-gradient(circle at 35% 35%, #ffffffaa 0 35%, #0ea47a 36% 100%);
    box-shadow: 0 0 0 6px #12b48a22;
}

/* ---------- responsive fino ---------- */
@media (max-width:980px) {

    .features .cards,
    .audiences .aud-cards {
        grid-template-columns: 1fr
    }
}

/* =======================================================
   1) CODE CARD · terminal limpio con profundidad sutil
   ======================================================= */
.code-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid #e6e9ff;
    background:
        radial-gradient(120% 140% at 110% -10%, #5b7dff20 0%, transparent 55%),
        linear-gradient(180deg, #ffffff 0%, #f6f8ff 100%);
    box-shadow: 0 14px 28px rgba(15, 23, 42, .12);
}

/* barra superior tipo “terminal” */
.code-card .code-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    color: #6a7394;
    font-weight: 600;
    position: relative;
}

.code-card .code-top::before {
    content: "";
    display: inline-block;
    width: 44px;
    height: 12px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 6px 50%, #ff5f56 6px, transparent 7px),
        radial-gradient(circle at 22px 50%, #ffbd2e 6px, transparent 7px),
        radial-gradient(circle at 38px 50%, #27c93f 6px, transparent 7px);
    opacity: .9;
}

/* bloque de código */
.code-card pre {
    margin: 0;
    padding: 16px;
    border-radius: 12px;
    background: #f2f4ff;
    border: 1px solid #e1e6ff;
    color: #0f172a;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: inset 0 1px 0 #ffffff;
}

/* =======================================================
   2) CTA FINAL (beta) · bloque con tinte + formulario integrado
   ======================================================= */
.cta-final .cta-box {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid #dfe6f6;
    background:
        radial-gradient(120% 140% at -10% 110%, #12b48a1f 0%, transparent 55%),
        radial-gradient(120% 140% at 110% -10%, #2152ff1f 0%, transparent 55%),
        linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
    box-shadow: 0 16px 36px rgba(15, 23, 42, .12);
}



/* texto secundario */
.cta-final .cta-box .muted {
    color: #5f6b88
}

/* formulario integrado */
.cta-final .search-row {
    gap: 12px;
    margin-top: 10px
}

.cta-final .search-row .input {
    background: #ffffff;
    border: 1px solid #dbe3f5;
    border-radius: 12px;
    padding: 14px 16px;
    color: #0f172a;
    box-shadow: 0 1px 0 #ffffff inset;
}

.cta-final .search-row .input:focus {
    border-color: var(--primary, #2152ff);
    box-shadow: 0 0 0 3px rgba(33, 82, 255, .22);
}

/* botón morado-azul “wow” para diferenciar del buscador */
.cta-final .search-row .btn {
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #473BFF, #2563eb 70%);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 14px 30px rgba(71, 59, 255, .35);
    transition: transform .2s ease, box-shadow .2s ease;
}

.cta-final .search-row .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(71, 59, 255, .42);
}

/* responsive fino */
@media (max-width:640px) {

    .code-card,
    .cta-final .cta-box {
        border-radius: 16px
    }

    .cta-final .search-row {
        gap: 10px
    }

    .cta-final .search-row .btn {
        padding: 11px 14px
    }
}

#beta {
    padding-bottom: 70px !important;
}

/* =========================================================
   MOBILE POLISH (≤ 640px) — arreglos de responsive reales
   Pega al final. No toca HTML.
   ========================================================= */
@media (max-width: 640px) {

    /* Contenedor y tipografía base */
    .container {
        padding-inline: 18px !important;
    }

    h1.title {
        font-size: clamp(22px, 6vw, 28px) !important;
        line-height: 1.18
    }

    section.container {
        padding-block: 26px !important;
    }

    /* Grids a 1 columna */
    .hero .grid,
    .features .cards,
    .audiences .aud-cards,
    .how .steps,
    .pricing .tiers {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* Sombras y bordes más suaves (para que no “manchen”) */
    .hero.container,
    .search-section.container,
    .features.container,
    .audiences.container,
    .how.container,
    .pricing.container {
        border-radius: 16px !important;
        box-shadow: 0 10px 22px rgba(15, 23, 42, .12) !important;
    }

    /* ——— HERO ——— */
    .hero.container {
        padding: 36px 18px 30px !important;
    }

    .hero.container::before {
        /* halo más pequeño para que no desborde */
        inset: -20% -20% auto -20%;
        height: 50%;
        filter: blur(18px);
        opacity: .9;
    }

    .cta-row {
        gap: 10px
    }

    .cta-row .btn {
        width: 100%;
        justify-content: center
    }

    /* ——— BUSCADOR ——— */
    .search-section .search-card {
        padding: 20px !important;
        border-radius: 16px !important;
    }

    .search-section .search-card::before {
        /* reduce halos; evita overflow */
        inset: auto -18% -35% -18%;
        height: 56%;
        filter: blur(18px);
    }

    .search-section .search-row {
        gap: 10px
    }

    .search-section .search-row .input {
        padding: 12px 14px;
        font-size: 16px;
    }

    /* 16px para evitar zoom iOS */
    .search-section .search-row .btn {
        padding: 12px 14px;
        width: 40%;
    }

    /* Si quieres botón al 100% debajo del input, descomenta:
       .search-section .search-row{ flex-direction:column }
       .search-section .search-row .btn{ width:100% }
    */

    /* ——— FEATURES / AUDIENCES CARDS ——— */
    .features .cards .card,
    .audiences .aud-cards .card,
    .steps .card {
        padding: 16px !important;
        border-radius: 14px !important;
        box-shadow: 0 8px 18px rgba(15, 23, 42, .10);
    }

    .features .cards .card h3::before,
    .audiences .aud-cards .card h3::before {
        margin-right: 8px
    }

    /* ——— CODE CARD ——— */
    .code-card {
        border-radius: 14px !important;
    }

    .code-card .code-top {
        padding: 10px 12px
    }

    .code-card pre {
        padding: 12px;
        font-size: 13px;
        overflow: auto
    }

    .code-card pre code {
        white-space: pre
    }

    /* scroll horizontal, no wrap feo */

    /* ——— CTA FINAL (beta) ——— */
    .cta-final .cta-box {
        border-radius: 16px !important;
        padding: 18px !important;
    }

    .cta-final .cta-box::after {
        left: 12px;
        right: 12px;
        bottom: 8px;
        height: 3px
    }

    .cta-final .search-row {
        flex-direction: column;
        gap: 10px;
    }

    .cta-final .search-row .input {
        padding: 12px 14px;
        font-size: 16px
    }

    .cta-final .search-row .btn {
        width: 100%;
        padding: 12px 14px
    }

    /* ——— PRICING ——— */
    .pricing .tier {
        padding: 20px !important;
        border-radius: 16px !important;
        box-shadow: 0 14px 30px rgba(15, 23, 42, .20);
        transform: none !important;
        /* evita lift excesivo en móvil */
    }

    .pricing .tier .price {
        font-size: 28px
    }

    .pricing .tier .btn {
        width: 100%;
        justify-content: center;
        min-width: 0
    }

    /* ——— Footer enlaces ——— */
    footer .foot-grid {
        display: grid;
        gap: 32px;
        grid-template-columns: 1.5fr repeat(4, 1fr);
    }
}

/* =========================================================
   TWEAKS TABLET (641–980px) — equilibra columnas y halos
   ========================================================= */
@media (min-width:641px) and (max-width:980px) {
    .container {
        padding-inline: 24px !important;
    }

    .hero.container {
        padding: 52px 24px 44px !important;
    }

    .search-section .search-card {
        padding: 22px
    }

    .features .cards,
    .audiences .aud-cards,
    .how .steps {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .pricing .tiers {
        grid-template-columns: repeat(2, 1fr) !important
    }

    .pricing .tier:nth-child(3) {
        grid-column: span 2
    }

    /* la tercera ocupa línea completa */
    /* halos algo más contenidos */
    .hero.container::before,
    .search-section .search-card::before {
        filter: blur(22px);
        opacity: .95
    }
}

/* ===== RIBBON / SLAB BASE ===== */
.slab {
    position: relative;
    border-radius: 18px;
    padding: clamp(18px, 3.5vw, 34px);
    overflow: hidden;
    border: 1px solid #e6ecf8;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
    background: linear-gradient(160deg, #fbfdff 0%, #f2f7ff 60%, #eef7ff 100%);
}

.slab::before {
    content: "";
    position: absolute;
    inset: -40% -20% auto -20%;
    height: 220px;
    background:
        radial-gradient(80% 120% at 10% 30%, rgba(33, 82, 255, .16), transparent 60%),
        radial-gradient(80% 120% at 90% 0%, rgba(18, 180, 138, .14), transparent 65%);
    filter: blur(22px);
}

.slab h2 {
    margin: 0 0 14px !important;
}

.slab .eyebrow {
    display: inline-block;
    font: 700 11px/1 Inter, system-ui, sans-serif;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #1e2a55;
    background: #eef2ff;
    border: 1px solid #dfe6ff;
    padding: 6px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}

/* ===== FEATURE RAIL (sustituye las 3 cards) ===== */
.feature-rail {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(18px, 3vw, 32px);
    align-items: start;
}

@media (max-width:980px) {
    .feature-rail {
        grid-template-columns: 1fr;
    }
}

.feature-hero {
    background: linear-gradient(135deg, #0f172a, #132346);
    color: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, .22);
    position: relative;
    overflow: hidden;
}

.feature-hero::after {
    content: "";
    position: absolute;
    inset: auto -20% -1px -20%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
    opacity: .6;
    border-radius: 999px;
}

.feature-list {
    display: grid;
    gap: 14px;
}

.feature-row .dot {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #2152ff, #6282ff 60%, #12b48a);
    box-shadow: 0 8px 18px rgba(33, 82, 255, .25);
}

.feature-row h3 {
    margin: 0 0 6px;
    font-weight: 800;
}

.feature-row p {
    margin: 0;
    color: #4b5563
}

/* ===== AUDIENCE SPOTLIGHT (sustituye 3 cards) ===== */
.spotlight {
    display: grid;
    gap: 18px;
}

.spot {
    position: relative;
    border-radius: 18px;
    padding: 22px 22px 22px 68px;
    color: #0f172a;
    border: 1px solid #e6ecf8;
    overflow: hidden;
    background: linear-gradient(160deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
    transition: transform .2s ease, box-shadow .2s ease;
}

.spot:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, .12);
}

.spot::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 22px;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: conic-gradient(from 180deg, #2152ff, #12b48a, #2152ff);
    box-shadow: 0 0 0 6px rgba(33, 82, 255, .10);
}

.spot h3 {
    margin: 0 0 6px;
    font-weight: 800
}

.spot p {
    margin: 0;
    color: #4b5563
}

/* variantes de color sutil para cada bloque */
.spot.dev {
    background: linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
}

.spot.gest {
    background: linear-gradient(180deg, #ffffff 0%, #eefcf7 100%);
}

.spot.fin {
    background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
}

/* detalle "connector" wow entre spots */
.spot+.spot {
    position: relative;
}

.spot+.spot::after {
    content: "";
    position: absolute;
    left: 35px;
    top: -12px;
    width: 2px;
    height: 12px;
    background: linear-gradient(180deg, var(--primary), var(--primary-2));
    opacity: .45;
}

/* ===== BANDAS / SECCIONES PLANAS ===== */
.band {
    position: relative;
    border-radius: 18px;
    padding: clamp(18px, 3vw, 64px);
    background:
        radial-gradient(80% 100% at 8% -10%, rgba(33, 82, 255, .08), transparent 55%),
        radial-gradient(80% 100% at 95% 110%, rgba(18, 180, 138, .08), transparent 60%),
        #ffffff;
}

/* Encabezado */
.band .eyebrow {
    display: inline-block;
    font: 700 11px/1 Inter, system-ui, sans-serif;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #1e2a55;
    background: #eef2ff;
    border: 1px solid #dfe6ff;
    padding: 6px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}

/* ===== FEATURE STRIPE (sin tarjetas) ===== */
.features-stripe {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: clamp(16px, 3vw, 28px);
    align-items: start;
}

@media (max-width:980px) {
    .features-stripe {
        grid-template-columns: 1fr;
    }
}

.feature-hero {
    border-radius: 16px;
    padding: 22px;
    color: #fff;
    background: linear-gradient(135deg, #0f172a, #162a52);
    position: relative;
    overflow: hidden;
}

.feature-hero::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: -1px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
    opacity: .6;
    border-radius: 99px;
}

/* lista plana con separadores; sin cajas */
.feature-row {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 12px;
    align-items: start;
    padding: 14px 0;
}

.feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #2152ff, #5f80ff 60%, #12b48a);
    color: #fff;
    font-weight: 800;
    font-size: 12px;
    box-shadow: 0 6px 16px rgba(33, 82, 255, .22);
}

.feature-row h3 {
    margin: 0 0 4px;
    font-weight: 800
}

.feature-row p {
    margin: 0;
    color: #4b5563
}

/* ===== AUDIENCE “LINES” (columnas con solo línea lateral) ===== */
.audience-lines {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(12px, 2.4vw, 20px);
}

@media (max-width:980px) {
    .audience-lines {
        grid-template-columns: 1fr;
    }
}

.aud-line {
    padding: 8px 0 8px 16px;
    border-left: 4px solid transparent;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border-radius: 12px;
}

.aud-line.dev {
    border-left-color: #2152ff;
}

.aud-line.gest {
    border-left-color: #12b48a;
}

.aud-line.fin {
    border-left-color: #5f80ff;
}

.aud-line h3 {
    margin: 0 0 6px;
    font-weight: 800
}

.aud-line p {
    margin: 0;
    color: #4b5563
}

/* Quita sombras en estas dos secciones si heredaban .card */
#caracteristicas .card,
.audiences .card {
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0;
}

/* ===== Meta bajo el panel oscuro (métricas + fuentes) ===== */
.feature-left {
    display: grid;
    gap: 14px;
}

.feature-meta {
    display: grid;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #e8eef8;
    background:
        radial-gradient(80% 120% at 0% 0%, rgba(33, 82, 255, .05), transparent 60%),
        radial-gradient(80% 120% at 100% 100%, rgba(18, 180, 138, .06), transparent 60%),
        #ffffff;
}

/* KPIs en pastillas ligeras */
.kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.kpi {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #e8eef8;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .04);
}

.kpi strong {
    font-weight: 800;
    font-size: 15px;
    color: #0f172a
}

.kpi span {
    color: #55607a;
    font-size: 13px
}

/* Tira de fuentes (logos tipográficos) */
.sources {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    border-top: 1px dashed #e8eef8;
    padding-top: 10px;
}

.src {
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .06em;
    color: #22324f;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef2ff;
    border: 1px solid #dfe6ff;
}

.src.alt {
    background: #e9fcf6;
    border-color: #bdf3e6;
    color: #0d7c64;
}

.src.gray {
    background: #f3f5f9;
    border-color: #e5e9f3;
    color: #475569;
}

@media (max-width:980px) {
    .kpis {
        grid-template-columns: 1fr;
    }
}

/* ---- Limpieza del bloque meta bajo el panel oscuro ---- */
.feature-left {
    display: grid;
    gap: 14px;
}

/* Contenedor: sin “doble card”, glass muy suave */
.feature-meta {
    display: grid;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #e9eef7;
    /* línea fina */
    background:
        linear-gradient(180deg, #ffffff 60%, #f7fbff 100%);
    /* plano sutil */
    box-shadow: 0 6px 20px rgba(15, 23, 42, .06);
    /* una sola sombra */
}

/* KPIs: 3 columnas iguales, misma altura y alineación baseline */
.kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.kpi {
    display: flex;
    align-items: center;
    gap: 12px;
    /* todo en una línea */
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e9eef7;
    /* sin doble sombra */
    box-shadow: none;
    min-height: 56px;
}

/* Columna del número */
.kpi .num {
    font-weight: 900;
    font-size: 18px;
    line-height: 1;
    color: #0f172a;
    letter-spacing: -.01em;
}

/* Columna del texto (dos líneas pequeñas) */
.kpi .txt {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
    line-height: 1.15;
    color: #55607a;
}

/* Caja “4 fuentes …” que estaba a la derecha: la convertimos a KPI normal */
.kpi.stack {
    align-items: flex-start;
}

.kpi.stack .num {
    margin-top: 1px;
}

.kpi.stack .txt {
    color: #334155;
}

/* Tira de fuentes: chips más compactos y una sola línea scrollable */
.sources {
    display: flex;
    gap: 8px;
    align-items: center;
    border-top: 1px dashed #e9eef7;
    padding-top: 10px;
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sources::-webkit-scrollbar {
    display: none;
}

.src {
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .06em;
    color: #22324f;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef2ff;
    border: 1px solid #dfe6ff;
    white-space: nowrap;
}

.src.alt {
    background: #e9fcf6;
    border-color: #bdf3e6;
    color: #0d7c64
}

.src.gray {
    background: #f3f5f9;
    border-color: #e5e9f3;
    color: #475569
}

/* Ajustes responsivos: pila vertical limpia */
@media (max-width:980px) {
    .kpis {
        grid-template-columns: 1fr;
    }

    .kpi {
        justify-content: flex-start;
    }
}

/* === Franja de métricas sin “card” === */
.ve-stat-strip {
    --bdr: 14px;
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 0;
    padding: 18px 22px;
    margin-top: 12px;

    /* Degradado sutil que conecta con tu azul/verde de marca */
    background:
        linear-gradient(180deg, #f7fbff 0%, #f3f9ff 35%, #eefaf6 100%);
    border-radius: var(--bdr);
    border: 1px solid rgba(33, 82, 255, .08);
    box-shadow:
        0 12px 28px rgba(15, 23, 42, .06),
        inset 0 1px 0 rgba(255, 255, 255, .6);
    backdrop-filter: blur(6px);
}

.ve-stat {
    min-width: 0;
    /* evita saltos de línea raros */
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ve-stat__label {
    font-size: 12px;
    line-height: 1.1;
    color: #5b6783;
    letter-spacing: .02em;
}

.ve-stat__value {
    font-size: 22px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -.01em;
    color: #0f172a;
    /* brillo sutil en números para dar profundidad sin “card” */
    text-shadow: 0 1px 0 rgba(255, 255, 255, .55);
}

.ve-stat__divider {
    width: 1px;
    height: 36px;
    align-self: center;
    background: linear-gradient(180deg, transparent, rgba(3, 7, 18, .12), transparent);
    border-radius: 1px;
}

/* Opcional: chips compactos de fuentes debajo (sin card) */
.ve-sources-inline {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 10px 0 0;
}

.ve-sources-inline>span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #22324f;
    border: 1px solid #dfe6ff;
}

/* Responsivo: pila vertical elegante */
@media (max-width: 980px) {
    .ve-stat-strip {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 16px 16px;
    }

    .ve-stat__divider {
        width: 100%;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(3, 7, 18, .10), transparent);
    }

    .ve-stat__value {
        font-size: 20px;
    }
}

/* Ayuda a frases largas (fuentes oficiales) a romper bien */
.ve-wrap {
    white-space: normal;
    word-break: keep-all;
}


/* ========= 1) BADGES CON GRADIENTE + GLOW ========= */
.feat-badge {
    --g1: #2152FF;
    --g2: #5C7CFF;
    --g3: #12B48A;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    background:
        radial-gradient(60% 60% at 30% 20%, rgba(255, 255, 255, .25) 0%, rgba(255, 255, 255, 0) 60%),
        linear-gradient(135deg, var(--g1), var(--g2) 60%, var(--g3));
    box-shadow:
        0 10px 24px rgba(33, 82, 255, .18),
        0 2px 8px rgba(18, 180, 138, .18),
        inset 0 1px 0 rgba(255, 255, 255, .35);
    border: 1px solid rgba(255, 255, 255, .28);
    transition: transform .18s ease, box-shadow .18s ease;
}

.feat-badge:hover {
    transform: translateY(-1px);
    box-shadow:
        0 14px 30px rgba(33, 82, 255, .20), 0 3px 10px rgba(18, 180, 138, .20),
        inset 0 1px 0 rgba(255, 255, 255, .4);
}

.feat-badge::after {
    /* halo exterior suave */
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 16px;
    background: radial-gradient(50% 50% at 50% 50%, rgba(92, 124, 255, .18), transparent 70%);
    filter: blur(8px);
    z-index: -1;
}

/* Variantes rápidas si quieres matizarlos */
.feat-badge--bolt {
    --g1: #5C7CFF;
    --g2: #5F6CFF;
    --g3: #12B48A;
}

.feat-badge--check {
    --g1: #3B82F6;
    --g2: #5C7CFF;
    --g3: #34D399;
}

.feat-badge--api {
    --g1: #3B82F6;
    --g2: #7C8CFF;
    --g3: #60A5FA;
}

/* ========= 2) FRANJA DE MÉTRICAS COMPACTA ========= */
.ve-stat-strip {
    --bdr: 14px;
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 0;
    padding: 16px 18px;
    margin-top: 12px;
    background: linear-gradient(180deg, #f6f9ff 0%, #f2f8ff 45%, #eefaf6 100%);
    border-radius: var(--bdr);
    border: 1px solid rgba(33, 82, 255, .08);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06), inset 0 1px 0 rgba(255, 255, 255, .55);
}

.ve-stat {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ve-stat__label {
    font-size: 12px;
    color: #5b6783;
    letter-spacing: .02em;
}

.ve-stat__value {
    font-weight: 800;
    font-size: 20px;
    line-height: 1;
    color: #0f172a;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .55);
}

.ve-stat__divider {
    width: 1px;
    height: 30px;
    background: linear-gradient(180deg, transparent, rgba(3, 7, 18, .12), transparent);
    border-radius: 1px;
}

/* La columna de “Fuentes oficiales” NO grita: tamaño menor y peso 600 */
.ve-stat--sources .ve-stat__value {
    font-size: 16px;
    font-weight: 600;
    white-space: normal;
    word-break: keep-all;
    color: #1b2742;
}

/* Chips opcionales debajo (queda sutil) */
.ve-sources-inline {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 10px 0 0;
}

.ve-sources-inline>span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #22324f;
    border: 1px solid #dfe6ff;
}

/* Responsive limpio */
@media (max-width:980px) {
    .ve-stat-strip {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 14px;
    }

    .ve-stat__divider {
        width: 100%;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(3, 7, 18, .12), transparent);
    }

    .ve-stat__value {
        font-size: 18px;
    }

    .ve-stat--sources .ve-stat__value {
        font-size: 15px;
    }
}

.ve-stat {
    padding: 10px;
}

.ve-stat__value .ve-wrap {
    font-size: 14px !important;
}

/* Contenedor de chips */
.ve-sources-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

/* Chip */
.ve-sources-inline .chip {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #22324f;
    border: 1px solid #dfe6ff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
    white-space: nowrap;
}

/* Versión compacta si quieres que ocupen aún menos */
.ve-sources-inline .chip.small {
    padding: 4px 8px;
    font-size: 10.5px;
    letter-spacing: .04em;
}

/* Por si venías de usar .ve-stat__value para fuentes: ocúltalo cuando existan chips */
.ve-stat--sources .ve-stat__value {
    display: none;
}

/* Responsive */
@media (max-width:980px) {
    .ve-sources-inline {
        gap: 6px;
    }
}

.feature-rows {
    padding-left: 40px;
}

/* Posición absoluta respecto a la sección */
.search-section {
    position: relative;
}

.hint-arrow-svg {
    position: absolute;
    /* Ajusta coordenadas hasta que apunte donde quieres */
    left: 336px;
    top: 108px;
    width: 220px;
    height: 110px;
    pointer-events: none;
    z-index: 5;
    filter: drop-shadow(0 6px 18px rgba(33, 82, 255, .25));
    transition: opacity .2s ease, transform .2s ease;
}

/* Animación de “trazo dibujado” */
.hint-arrow-svg .path {
    stroke-dasharray: 360;
    stroke-dashoffset: 360;
    animation: draw 1.1s ease-out forwards, breathe 5s ease-in-out infinite 1.2s;
}

.hint-arrow-svg .arrow {
    opacity: 0;
    animation: fadeIn .5s ease-out forwards 1s, breathe 5s ease-in-out infinite 1.2s;
}

/* Ocultar al interactuar */
.search-section:hover .hint-arrow-svg,
.search-section:focus-within .hint-arrow-svg {
    opacity: 0;
    transform: translateY(-4px);
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes breathe {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-2px);
    }
}

@media (prefers-reduced-motion: reduce) {

    .hint-arrow-svg .path,
    .hint-arrow-svg .arrow {
        animation: none;
    }
}

/* --- MOD: flecha a la derecha y apuntando a la izquierda --- */
.hint-arrow-svg--right {
    left: auto;
    /* anulamos left */
    right: 380px;
    /* colócala cerca del botón Buscar */
    top: -32px;
    /* ajusta fino según tu input */
    transform: scaleX(-1);
    /* flip horizontal => apunta a la izquierda */
    transform-origin: 50% 50%;
    rotate: -20deg;
}

/* Al interactuar: mantenemos el flip y añadimos el pequeño desplazamiento */
.search-section:hover .hint-arrow-svg--right,
.search-section:focus-within .hint-arrow-svg--right {
    opacity: 0;
    transform: scaleX(-1) translateY(-4px);
}



.company-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 20px 24px;
    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.12),
        0 0 0 1px rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.35);
    width: 100%;
    margin: 0 auto;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
}

.company-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 18px;
    padding: 15px;
    border-radius: 10px;
}

.company-card__eyebrow {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #f9f9f9;
    font-weight: 600;
    margin-bottom: 4px;
}

.company-card__name {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #fff;
}

.company-card__meta {
    font-size: 13px;
    color: #f9f9f9;
}

.company-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.company-status__dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.25);
    margin-right: 7px;
}

/* Estado ACTIVA (verde, muy destacado) */
.company-status--active {
    background: radial-gradient(circle at 0 0, #bbf7d0 0, #22c55e 35%, #15803d 100%);
    color: #f9fafb;
}

.company-status--active .company-status__dot {
    background: #bbf7d0;
}

/* Otros estados (ej. INACTIVA, EXTINTA) */
.company-status--inactive {
    background: linear-gradient(135deg, #e2e8f0, #cbd5f5);
    color: #111827;
}

.company-status--inactive .company-status__dot {
    background: #e5e7eb;
    box-shadow: 0 0 0 6px rgba(148, 163, 184, 0.35);
}

.company-card__body {
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    padding-top: 14px;
}

.company-card__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 24px;
}

.company-card__grid div {
    display: flex;
    flex-direction: column;
}

.company-card__grid dt {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #94a3b8;
    margin-bottom: 2px;
}

.company-card__grid dd {
    margin: 0;
    font-size: 14px;
    color: #0f172a;
    font-weight: 500;
}

.company-card__purpose {
    grid-column: 1 / -1;
}

.company-card__purpose dd {
    font-size: 13px;
    color: #475569;
    font-weight: 400;
}

/* Responsive */
@media (max-width: 640px) {
    .company-card {
        padding: 16px 14px;
    }

    .company-card__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .company-card__grid {
        grid-template-columns: 1fr;
    }
}

.btn-json-api {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.9);
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    background: #f8fafc;
    color: #0f172a;
    cursor: pointer;
}

.btn-json-api:hover {
    background: #e5edff;
    border-color: #4f46e5;
}

.company-card__footer_old {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed rgba(226, 232, 240, 0.9);
    display: flex;
    justify-content: flex-end;
}

.company-card__json {
    margin-top: 10px;
    background: #020617;
    color: #e5e7eb;
    border-radius: 12px;
    padding: 12px 14px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12px;
    max-height: 260px;
    overflow: auto;
}

.company-card__json code {
    white-space: pre;
}

.is-hidden {
    display: none;
}


:root {
    /* Colores base de la marca */
    --ve-navy: #050816;
    --ve-navy-soft: #0b1020;

    /* Amarillos brand */
    --ve-yellow: #facc15;
    --ve-yellow-strong: #eab308;
    --ve-yellow-soft: #fef3c7;
}

/* Estilo general de botones del header */
.nav .btn_header {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition:
        background 0.16s ease,
        color 0.16s ease,
        box-shadow 0.16s ease,
        transform 0.12s ease;
}

/* Primario: Crear cuenta gratis (amarillo sólido con degradado) */
.nav .btn_header--primary {
    background: linear-gradient(135deg, var(--ve-yellow) 0%, #f97316 100%);
    color: var(--ve-navy-soft);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.45);
}

.nav .btn_header--primary:hover {
    background: linear-gradient(135deg, var(--ve-yellow-strong) 0%, #ea580c 100%);
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.55);
}

.nav .btn_header--primary:active {
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.55);
}

/* Secundario: Iniciar sesión (outline amarillo) */
.nav .btn_header--ghost {
    background: transparent;
    color: var(--ve-yellow);
    border: 1px solid rgba(250, 204, 21, 0.75);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.7);
}

.nav .btn_header--ghost:hover {
    background: rgba(250, 204, 21, 0.10);
    transform: translateY(-1px);
}

.nav .btn_header--ghost:active {
    transform: translateY(0);
}

/* Iconos dentro de los botones */
.nav .btn_header .btn-header__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.nav .btn_header .btn-header__icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

:root {
    --ve-navy: #050816;
    --ve-navy-soft: #0b1020;

    /* amarillo y amigos */
    --ve-yellow: #facc15;
    --ve-yellow-soft: #fef3c7;
    --ve-yellow-strong: #eab308;

    /* azul de marca aproximado (para sombra) */
    --ve-blue: #2563eb;
}

/* Botones del header: base */
.nav .btn_header {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition:
        background 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.12s ease;
}

/* PRIMARIO: Crear cuenta gratis */
.nav .btn_header.btn_header--primary {
    background: radial-gradient(circle at 0% 0%, #fefce8 0, #facc15 35%, #f97316 100%);
    color: var(--ve-navy-soft);
    box-shadow:
        0 0 0 1px rgba(248, 250, 252, 0.18),
        0 12px 30px rgba(37, 99, 235, 0.55);
}

.nav .btn_header.btn_header--primary:hover {
    background: radial-gradient(circle at 0% 0%, #fef9c3 0, var(--ve-yellow-strong) 40%, #ea580c 100%);
    transform: translateY(-1px);
    box-shadow:
        0 0 0 1px rgba(248, 250, 252, 0.22),
        0 16px 40px rgba(37, 99, 235, 0.65);
}

.nav .btn_header.btn_header--primary:active {
    transform: translateY(0);
    box-shadow:
        0 0 0 1px rgba(248, 250, 252, 0.22),
        0 8px 20px rgba(15, 23, 42, 0.7);
}

/* SECUNDARIO: Iniciar sesión (glass + acento amarillo) */
.nav .btn_header.btn_header--ghost {
    color: #e5e7eb;
    border: 1px solid rgba(148, 163, 184, 0.7);
    backdrop-filter: blur(14px);
}

.nav .btn_header.btn_header--ghost:hover {
    border-color: rgba(250, 204, 21, 0.9);
    color: var(--ve-yellow-soft);
    transform: translateY(-1px);
}

.nav .btn_header.btn_header--ghost:active {
    transform: translateY(0);
}

/* Iconos */
.nav .btn_header .btn-header__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 0%, #ffffff 0, #bfdbfe 35%, #22c55e 100%);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.45);
}

.nav .btn_header.btn_header--ghost .btn-header__icon {
    background: radial-gradient(circle at 30% 0%, #1d2542 0, #111827 40%, #22c55e 100%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

.nav .btn_header .btn-header__icon svg {
    width: 12px;
    height: 12px;
    display: block;
}

/* PRO: Buscador PRO (gradient) */
.nav .btn_header.btn_header--pro {
    background: linear-gradient(90deg, #2152ff 0%, #12b48a 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(33, 82, 255, 0.3);
    border: none;
    margin-right: 14px;
    padding: 0.5rem 1.4rem;
    font-weight: 700;
}

.nav .btn_header.btn_header--pro:hover {
    background: linear-gradient(90deg, #2e5cff 0%, #1bc49a 100%);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(33, 82, 255, 0.45);
    color: #ffffff;
}

.nav .btn_header.btn_header--pro:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(33, 82, 255, 0.4);
}

@media (max-width: 1024px) {
    .nav .btn_header.btn_header--pro {
        display: none !important;
    }
}


.btn_start {
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    background: linear-gradient(90deg, var(--primary, #2152ff), var(--brand-2, #12b48a));
    color: #fff;
    font-weight: 800;
    box-shadow: 0 12px 26px rgba(33, 82, 255, .26);
    transition: transform .2s ease, box-shadow .2s ease;
}

.btn_start:hover {
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    background: linear-gradient(90deg, var(--primary, #2152ff), var(--brand-2, #12b48a));
    color: #fff;
    font-weight: 800;
    box-shadow: 0 12px 26px rgba(33, 82, 255, .26);
    transition: transform .2s ease, box-shadow .2s ease;
}

/* SweetAlert – estilo APIEmpresas */
.ve-swal {
    border-radius: 18px;
    padding: 24px 28px 22px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.32);
}

.ve-swal-title {
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
}

.ve-swal-text {
    font-size: 14px;
    color: #4b5563;
}

/* Botones usando tus estilos de .btn / .btn_header--ghost */
.ve-swal-confirm,
.ve-swal-cancel {
    min-width: 140px;
    font-size: 14px;
}

.swal2-actions {
    margin-top: 18px !important;
    gap: 10px !important;
}

/* Contenedor del popup */
.ve-swal {
    border-radius: 18px;
    padding: 24px 28px 22px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.32);
}

/* Título y texto */
.ve-swal-title {
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
}

.ve-swal-text {
    font-size: 14px;
    color: #4b5563;
}

/* Icono custom */
.ve-swal-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2152FF, #5C7CFF 65%, #12B48A);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.35);
}

.ve-swal-icon-inner {
    font-size: 22px;
    color: #ffffff;
    font-weight: 700;
    line-height: 1;
}

/* Botones */
.ve-swal-confirm,
.ve-swal-cancel {
    min-width: 140px;
    font-size: 14px;
}

.swal2-actions {
    margin-top: 18px !important;
    gap: 10px !important;
}

div:where(.swal2-icon) {
    border-color: #2e4385 !important;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* CTA final home */

.cta-final .cta-box {
    /* asumiendo que ya tienes algo parecido;
       si no, este bloque refuerza el estilo tipo card */
    border-radius: 24px;
    padding: 28px 30px;
    background: radial-gradient(130% 160% at 0% 0%, #eef2ff 0%, #f9fbff 45%, #ecfdf5 100%);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    border: 1px solid #dde5ff;
}

.cta-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cta-copy {
    flex: 1 1 320px;
}

.cta-copy h2 {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 800;
}

.cta-benefits {
    margin: 14px 0 0;
    padding-left: 1.2rem;
    font-size: 14px;
    color: #4b5563;
}

.cta-benefits li {
    margin-bottom: 4px;
}

/* Columna CTA derecha */

.cta-actions {
    flex: 0 0 270px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.cta-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    color: #1e3a8a;
}

.cta-main-btn {
    min-width: 220px;
    justify-content: center;
}

.cta-note {
    font-size: 13px;
    max-width: 260px;
}

.cta-login {
    font-size: 13px;
}

/* Responsive */

@media (max-width: 768px) {
    .cta-final .cta-box {
        padding: 22px 18px;
        border-radius: 20px;
    }

    .cta-layout {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-actions {
        align-items: flex-start;
        text-align: left;
    }

    .cta-main-btn {
        width: 100%;
    }
}


/* Cards del blog ya existentes... */
/* Skeleton loading state */
.home-blog__card--skeleton {
    pointer-events: none;
}

.skeleton-block {
    border-radius: 999px;
    background: linear-gradient(90deg, #e5e7eb 0%, #f3f4f6 40%, #e5e7eb 80%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

.home-blog__skeleton-eyebrow {
    width: 60%;
    height: 10px;
    margin-bottom: 10px;
}

.home-blog__skeleton-title {
    width: 90%;
    height: 16px;
    margin-bottom: 12px;
}

.home-blog__skeleton-line {
    width: 100%;
    height: 12px;
    margin-bottom: 8px;
}

.home-blog__skeleton-meta {
    width: 50%;
    height: 10px;
    margin-top: 6px;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ================================
   FIX: eliminar scroll horizontal
   ================================ */

/* 1) Airbag global (evita cualquier desborde lateral) */
html,
body {
    width: 100%;
    overflow-x: hidden;
    /* fallback */
}

/* Mejor que hidden en navegadores modernos (no crea scrollbars “fantasma”) */
@supports (overflow: clip) {

    html,
    body {
        overflow-x: clip;
    }
}

/* 2) Medios y elementos típicos que rompen el ancho */
img,
svg,
video,
canvas {
    max-width: 100%;
    height: auto;
}

/* 3) Code/pre: que no empujen el layout (que scrollee dentro, no la página) */
pre,
code {
    max-width: 100%;
}

pre {
    overflow-x: auto;
    /* scroll interno solo si hace falta */
}

/* 4) Tu flecha (muy probable culpable por rotate/scale/pos abs) */
.hint-arrow-svg {
    max-width: 220px;
    /* ya la tienes, esto refuerza */
    overflow: visible;
}

/* 5) Halos con inset enorme: no deben afectar el ancho del documento */
.bg-halo,
body::before,
body::after,
.hero::before {
    left: 0;
    right: 0;
    max-width: 100vw;
}

.tier__list {
    padding-left: 10px;
}

.pricing__hint {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: rgba(15, 23, 42, 0.75);
}

.faq-item {
    padding: 16px;
}

/* =========================================
   MODAL PRO PATCH v2 (ancho + header + footer fijo)
   PÉGALO AL FINAL DEL CSS
   ========================================= */

/* Overlay igual */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    padding: 22px;
    background: rgba(14, 19, 32, .58);
    backdrop-filter: blur(10px) saturate(1.1);
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* MODAL: más ancho y con layout que asegura footer visible */
.modal-overlay .modal {
    width: min(980px, calc(100vw - 44px));
    /* más ancho */
    max-width: 980px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 30px 90px rgba(10, 15, 30, .40);
    overflow: hidden;
    position: relative;

    /* clave: header / body / footer */
    display: grid;
    grid-template-rows: auto 1fr auto;
    max-height: min(82vh, 780px);
}

/* Halo interno */
.modal-overlay .modal::before {
    content: "";
    position: absolute;
    inset: -45% -25% auto -25%;
    height: 60%;
    background:
        radial-gradient(60% 80% at 18% 35%, rgba(19, 58, 130, .18) 0%, transparent 60%),
        radial-gradient(60% 80% at 84% 20%, rgba(18, 180, 138, .15) 0%, transparent 65%);
    filter: blur(18px);
    pointer-events: none;
}

/* HEADER: más bonito, más “wow” */
.modal-header {
    position: relative;
    padding: 20px 22px 16px;
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(19, 58, 130, .12), transparent 55%),
        radial-gradient(120% 120% at 100% 0%, rgba(18, 180, 138, .10), transparent 55%),
        linear-gradient(180deg, #ffffff 0%, var(--bg1) 100%);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.modal-header .modal-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(19, 58, 130, .08);
    border: 1px solid rgba(19, 58, 130, .16);
    color: #1d2a55;
    font-weight: 900;
    letter-spacing: .10em;
    text-transform: uppercase;
    font-size: 11px;
    margin-bottom: 10px;
}

.modal-header .modal-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.15;
    font-weight: 950;
    letter-spacing: -.02em;
    color: var(--text);
}

.modal-header .modal-sub {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
}

/* Close button más pro */
.modal-close {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .92);
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: var(--text);
    box-shadow: 0 12px 24px rgba(15, 23, 42, .10);
    transition: transform .15s ease, box-shadow .15s ease;
    flex: 0 0 auto;
}

.modal-close:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, .14);
}

/* BODY: solo aquí scroll (así el footer NO desaparece) */
.modal-body {
    position: relative;
    padding: 16px 22px 18px;
    overflow: auto;
    min-height: 0;
    /* clave para grid scroll correcto */
}

/* Línea sutil separadora interna (opcional) */
.modal-body::before {
    content: "";
    position: sticky;
    top: -16px;
    display: block;
    height: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

/* LEGAL typography */
.modal-legal h3 {
    margin: 16px 0 8px;
    font-size: 14px;
    font-weight: 950;
    color: var(--text);
}

.modal-legal p {
    margin: 0 0 12px;
    font-size: 13.7px;
    line-height: 1.75;
    color: #2a3346;
}

.modal-legal ul {
    margin: 8px 0 14px;
    padding-left: 18px;
    color: #2a3346;
    font-size: 13.7px;
    line-height: 1.75;
}

.modal-legal li {
    margin: 7px 0;
}

/* FOOTER: SIEMPRE visible */
.modal-footer {
    position: relative;
    padding: 14px 22px 18px;
    border-top: 1px solid var(--border);
    background: #fff;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

/* Si algo lo ocultaba, esto lo fuerza */
.modal-footer,
.modal-footer * {
    visibility: visible !important;
    opacity: 1 !important;
}

.modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 14px;
    border-radius: 12px;
    font-weight: 900;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    cursor: pointer;
    min-width: 110px;
}

.modal-btn.primary {
    border: none;
    color: #fff;
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
    box-shadow: 0 12px 26px rgba(19, 58, 130, .22);
}

/* Mobile */
@media (max-width: 640px) {
    .modal-overlay {
        padding: 14px;
    }

    .modal-overlay .modal {
        width: calc(100vw - 28px);
        border-radius: 18px;
        max-height: 86vh;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .modal-header .modal-title {
        font-size: 20px;
    }
}

.dir-section {
    padding: 30px;
}

/* BORME TIMELINE styles */
.borme-timeline {
    position: relative;
    padding-left: 30px;
}

.borme-timeline::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 10px;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
    border-radius: 2px;
}

.borme-item {
    position: relative;
    margin-bottom: 2.5rem;
    animation: fadeIn 0.5s ease-out;
}

.borme-icon {
    position: absolute;
    left: -44px;
    /* Adjust based on padding-left of container */
    top: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 0 0 4px #f1f5f9;
    background: #fff;
}

.borme-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    /* Subtle shadow */
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.borme-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    /* Lift effect */
    transform: translateY(-2px);
}

.borme-header {
    background: #f8fafc;
    /* Very light slate */
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
}

.borme-date {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
}

.borme-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #334155;
    margin: 0;
}

.borme-body {
    padding: 20px;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}

.borme-body strong {
    color: #0f172a;
    font-weight: 600;
    display: block;
    margin-top: 8px;
    margin-bottom: 4px;
}

.borme-pdf {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ef4444;
    background: #fff;
    border: 1px solid #fee2e2;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.borme-pdf:hover {
    background: #fef2f2;
    border-color: #fca5a5;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

/* === LEAD GEN FORM (Inside Search Result) === */
.lead-form-container {
    margin-top: 2rem;
    padding: 30px;
    background: #f8faff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    overflow: hidden;
}


.lead-form-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.02em;
}

.lead-form-subtitle {
    font-size: 1rem;
    color: #475569;
    line-height: 1.5;
    margin: 0 0 4px;
}

.lead-form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.lead-form .input {
    flex: 1;
    min-width: 200px;
}

.lead-form .btn {
    white-space: nowrap;
    justify-content: center;
}

.secondary-radar-link {
    display: inline-block;
    text-align: center;
    margin-top: 1.5rem;
    color: #64748b;
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    opacity: 0.7;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid transparent;
}

.secondary-radar-link {
    display: inline-block;
    text-align: center;
    margin-top: 1.5rem;
    color: #64748b;
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    opacity: 0.7;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid transparent;
}

.secondary-radar-link:hover {
    color: var(--primary);
    opacity: 1;
    background: #fff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* TWO-ROW SEO FOOTER */
footer {
    padding: 80px 0 60px !important;
    background-color: #0b1f56 !important;
    color: #ffffff !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer .container {
    max-width: 1200px;
}

/* Top Row: 4 Columns of Links */
.foot-top-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

@media (max-width: 1024px) {
    .foot-top-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 20px;
    }
}

@media (max-width: 640px) {
    .foot-top-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Links in 2 Columns as requested by user */
    .foot-links {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px 20px !important;
    }

    .foot-links li {
        margin-bottom: 0 !important;
    }
}

/* Bottom Row: Brand and Legal */
.foot-bottom-brand {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

@media (max-width: 980px) {
    .foot-bottom-brand {
        flex-direction: column;
        gap: 32px;
    }
}

.foot-brand-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
}

.foot-trust {
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-width: 320px;
}

.trust-item {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.trust-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.35);
}

/* STRIPE BADGE SPEKTAKULAR */
.stripe-badge-wrapper {
    position: relative;
    width: fit-content;
}

.stripe-badge {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 14px 28px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
    position: relative;
    overflow: hidden;
}

.stripe-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent,
            rgba(33, 82, 255, 0.1),
            transparent 30%);
    animation: rotate_border 4s linear infinite;
    pointer-events: none;
}

.stripe-badge:hover {
    transform: translateY(-5px) scale(1.02);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 40px rgba(33, 82, 255, 0.15);
}

.badge-sep {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
}

.stripe-badge img {
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.stripe-badge:hover img {
    transform: scale(1.1);
}

.badge-glow {
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle, rgba(33, 82, 255, 0.15) 0%, transparent 70%);
    z-index: 1;
    opacity: 0.6;
    animation: pulse_glow 3s ease-in-out infinite;
    pointer-events: none;
}

/* DATA BADGES */
.trust-badges {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.badge-item.premium {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

.badge-item.premium:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(18, 180, 138, 0.3);
    transform: scale(1.05);
}

.badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(18, 180, 138, 0.15);
    color: #12b48a;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ANIMATIONS */
@keyframes rotate_border {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse_glow {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

@keyframes float_badge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.foot-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 24px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    opacity: 0.9;
}

.foot-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.foot-links li {
    margin-bottom: 14px;
}

.foot-links a {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.foot-links a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.foot-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    margin: 0;
}

.brand-name {
    color: #ffffff !important;
}

.brand-name .grad {
    background: linear-gradient(90deg, #5C7CFF, #12B48A);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.foot-legal-row {
    display: flex;
    gap: 16px;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.foot-legal-row a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.2s;
}

.foot-legal-row a:hover {
    color: #ffffff;
}

/* DASHBOARD CTA CARD */
.dash-cta-card {
    background: linear-gradient(135deg, #133A82 0%, #0b1f56 100%);
    border-radius: 20px;
    padding: 24px;
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(19, 58, 130, 0.15);
}

.dash-cta-card::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(18, 180, 138, 0.2) 0%, transparent 70%);
}

.dash-cta-card h3 {
    margin: 0 0 10px;
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dash-cta-card p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    line-height: 1.5;
}

.dash-cta-card strong {
    color: #12b48a;
}

.dash-cta-card .btn {
    width: 100%;
    justify-content: center;
    background: linear-gradient(90deg, #2152ff, #12b48a);
    color: white !important;
    border: none !important;
    font-weight: 700;
    padding: 12px;
    border-radius: 12px;
    font-size: 0.95rem;
    box-shadow: 0 8px 20px rgba(33, 82, 255, 0.2);
    text-decoration: none;
    transition: all 0.3s ease;
}

.dash-cta-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(33, 82, 255, 0.3);
}

.dash-cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(18, 180, 138, 0.15);
    color: #12b48a;
    border-radius: 8px;
    flex-shrink: 0;
}

/* =========================================
   FOOTER RIGHT · versión más sobria
   ========================================= */

.foot-trust--minimal {
    min-width: 280px;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.foot-trust--minimal .trust-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.foot-trust--minimal .trust-label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: rgba(255, 255, 255, 0.38);
}

.trust-panel {
    width: fit-content;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.trust-panel__logos {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 12px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
}

.trust-panel__logos img {
    height: 24px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: none;
    opacity: 0.95;
}

.trust-panel__divider {
    width: 1px;
    height: 22px;
    background: rgba(255, 255, 255, 0.12);
}

.foot-trust--minimal .trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.foot-trust--minimal .badge-item.premium {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.78);
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.045);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.foot-trust--minimal .badge-item.premium:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(18, 180, 138, 0.22);
    transform: translateY(-1px);
}

.foot-trust--minimal .badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(18, 180, 138, 0.14);
    color: #12b48a;
    flex-shrink: 0;
}

@media (max-width: 980px) {
    .foot-trust--minimal {
        min-width: 100%;
        max-width: 100%;
    }
}

/* GLOBAL LAYOUT SYNC (PRODUCTION) */
:root {
    --container-max: 1240px;
    --container-gutter: 32px;
}

.container {
    max-width: var(--container-max) !important;
    padding-left: var(--container-gutter) !important;
    padding-right: var(--container-gutter) !important;
    margin-inline: auto;
}

/* --- Main Header Container --- */
.main-site-header {
    position: relative;
    z-index: 10001 !important;
    /* Higher than any secondary header or hero */
    background: var(--ae-primary, #133A82);
    overflow: visible !important;
    /* Vital for dropdowns */
}

/* Mobile Toggle Styling */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    z-index: 100;
}

.hamburger-box {
    width: 24px;
    height: 18px;
    display: inline-block;
    position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 22px;
    height: 2.5px;
    background-color: #ffffff !important;
    /* Force white for visibility on blue */
    position: absolute;
    transition: all 0.2s ease-in-out;
    border-radius: 4px;
}

.hamburger-inner {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-inner::before {
    content: "";
    top: -7px;
}

.hamburger-inner::after {
    content: "";
    top: 7px;
}

/* Brand Polish */
.brand-name {
    font-weight: 950 !important;
    letter-spacing: -0.02em !important;
    color: #ffffff !important;
    display: flex;
    align-items: center;
}

.brand-name .grad {
    background: none !important;
    background-color: transparent !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: initial !important;
    color: inherit !important;
    padding: 0 !important;
    margin: 0 !important;
}

.brand-tag {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Mobile Menu Overlay */
/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.95) !important;
    /* Increased opacity for better masking */
    z-index: 9999;
    /* Much higher z-index */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.mobile-menu-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
}

.mobile-menu-content {
    position: absolute;
    right: -320px;
    top: 0;
    bottom: 0;
    width: 300px;
    background-color: #ffffff !important;
    /* Force solid white */
    background: #ffffff !important;
    opacity: 1 !important;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 24px;
    z-index: 10000;
    /* Higher than overlay */
    visibility: visible !important;
    height: 100vh;
    /* Ensure full height */
    overflow-y: auto;
    /* Allow scrolling if needed */
}

.mobile-menu-overlay.active .mobile-menu-content {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff !important;
    position: relative;
    z-index: 2;
}

/* Override brand-name color for mobile menu header */
.mobile-menu-header .brand-name {
    color: #0f172a !important;
}

.mobile-menu-header .brand-name .grad {
    color: #0f172a !important;
}

.mobile-menu-close {
    background: #f1f5f9;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #475569;
    transition: all 0.2s;
}

.mobile-menu-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background-color: #ffffff;
    padding: 0;
}

.mobile-nav-link {
    padding: 14px 18px;
    border-radius: 14px;
    color: #334155;
    font-weight: 700;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid transparent;
}

.mobile-nav-link:hover {
    background: #f8fafc;
    color: var(--primary);
    border-color: #f1f5f9;
}

.mobile-nav-link.pro-link {
    background: #f0fdf4;
    /* Light green/blue tint */
    color: #166534;
    /* Darker green for contrast */
    border: 1px solid #bbf7d0;
    margin-bottom: 6px;
}

.mobile-nav-link .badge {
    background: #16a34a;
    color: white;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mobile-auth {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 16px !important;
    border-radius: 14px !important;
    font-weight: 900 !important;
}

/* Desktop Dropdown Styles */
.nav-dropdown {
    position: relative;
    padding: 8px 0;
}

.nav-dropdown-trigger {
    background: transparent;
    border: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 8px 4px;
    opacity: 0.9;
    transition: all 0.2s;
}

.nav-dropdown-trigger:hover {
    opacity: 1;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    width: 280px;
    padding: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s;
}

.nav-dropdown-menu a:hover {
    background: #f8fafc;
}

.nav-item-icon {
    width: 36px;
    height: 36px;
    background: #eff6ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.nav-dropdown-menu strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
    margin-bottom: 2px;
}

.nav-dropdown-menu span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
}

/* Mega Menu Modification (Compact & Clean) */
.nav-dropdown-mega {
    width: 700px !important;
    padding: 16px 18px !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px !important;
}

.nav-dropdown-mega a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid transparent;
}

.nav-dropdown-mega a:hover {
    border-color: #e2e8f0;
    background: #f8fafc;
}

.nav-dropdown-mega .nav-item-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
    border-radius: 8px;
    flex-shrink: 0;
    background: #f1f5f9;

    transition: all 0.2s;
}

.nav-dropdown-mega strong {
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 1px;
    line-height: 1.25;
}

.nav-dropdown-mega span {
    font-size: 11.5px;
    line-height: 1.35;
    color: #64748b;
    white-space: normal;
}

.nav-dropdown-mega a:hover .nav-item-icon {
    background: #eff6ff;
    border-color: #bfdbfe;
    transform: scale(1.05);
}

/* Mobile Adjustments */
.mobile-nav-group {
    padding: 8px 0;
}

.mobile-nav-label {
    padding: 0 18px 8px;
    font-size: 12px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Desktop Nav Link Polish */
.minor-nav-link {
    color: #ffffff !important;
    /* Force white for contrast */
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s;
    padding: 8px 4px;
    opacity: 0.9;
}

.minor-nav-link:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.nav-sep {
    margin: 0 10px;
    color: #ffffff;
    font-size: 10px;
    opacity: 0.4;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 14px;
}

.auth-buttons .btn {
    padding: 10px 20px !important;
    font-size: 14px !important;
    border-radius: 12px !important;
}

.auth-buttons .btn_header--ghost {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.auth-buttons .btn_header--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* User Dropdown Styles */
.user-dropdown-container {
    position: relative;
}

.user-avatar-trigger {
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    padding: 6px 16px;
    border-radius: 99px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    color: #ffffff;
}

.user-avatar-trigger:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.user-avatar-trigger img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.user-nav-name {
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 240px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 8px;
    display: none;
    flex-direction: column;
    z-index: 1000;
    transform-origin: top right;
    animation: dropdownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.user-dropdown-menu.active {
    display: flex;
}

.dropdown-header {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
}

.user-name-display {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    display: block;
}

.user-email-display {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

.dropdown-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 8px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 12px;
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: #f8fafc;
    color: #2152ff;
}

.logout-item {
    color: #ef4444;
}

.logout-item:hover {
    background: #fef2f2;
    color: #ef4444;
}

@media (max-width: 1024px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .brand-tag {
        display: none;
    }

    .brand-name {
        font-size: 1.15rem;
    }

    .nav {
        padding: 12px 16px;
    }
}