:root {
    --abs-primary: var(--abstracto-primary, #ef2b2d);
    --abs-dark: var(--abstracto-dark, #08090c);
    --abs-text: var(--abstracto-text, #18191f);
    --abs-muted: var(--abstracto-muted, #666b76);
    --abs-border: rgba(16, 24, 40, .10);
    --abs-card: rgba(255, 255, 255, .92);
    --abs-soft: #f6f7fb;
    --abs-radius-xl: 34px;
    --abs-radius-lg: 24px;
    --abs-shadow-sm: 0 12px 35px rgba(16, 24, 40, .08);
    --abs-shadow-md: 0 26px 70px rgba(16, 24, 40, .14);
    --abs-shadow-lg: 0 40px 110px rgba(16, 24, 40, .20);
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at top left, rgba(239, 43, 45, .08), transparent 32rem),
        radial-gradient(circle at top right, rgba(20, 35, 65, .10), transparent 34rem),
        #ffffff;
}

/* NAV */
.public-nav {
    position: sticky;
    top: 0;
    z-index: 60;
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, .82) !important;
    border-bottom: 1px solid rgba(16, 24, 40, .08);
}

.nav-inner {
    min-height: 78px;
}

.nav-brand strong {
    letter-spacing: 2.5px;
}

.nav-brand span {
    opacity: .72;
}

.nav-links a {
    position: relative;
    font-weight: 700;
    color: rgba(24, 25, 31, .78);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -8px;
    height: 2px;
    background: var(--abs-primary);
    transition: right .28s ease;
}

.nav-links a:hover::after {
    right: 0;
}

/* HERO */
.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(76px, 9vw, 132px) 0 clamp(64px, 8vw, 112px);
    background:
        linear-gradient(135deg, rgba(8, 9, 12, .98), rgba(18, 24, 38, .94)),
        radial-gradient(circle at 20% 10%, rgba(239, 43, 45, .22), transparent 30rem);
    color: #fff;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 82%);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -180px;
    top: 40px;
    background: radial-gradient(circle, rgba(239,43,45,.30), transparent 68%);
    filter: blur(10px);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
    gap: clamp(34px, 6vw, 76px);
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .86) !important;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .4px;
}

.eyebrow span {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    box-shadow: 0 0 0 6px rgba(239,43,45,.15);
}

.hero h1 {
    max-width: 880px;
    margin: 24px 0 22px;
    font-size: clamp(44px, 6.4vw, 82px);
    line-height: .96;
    letter-spacing: -3.2px;
    color: #fff;
}

.hero p {
    max-width: 720px;
    font-size: clamp(17px, 1.5vw, 21px);
    line-height: 1.74;
    color: rgba(255, 255, 255, .76);
}

.hero-actions {
    margin-top: 34px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    min-height: 46px;
    align-items: center;
    justify-content: center;
    font-weight: 850;
    letter-spacing: -.2px;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    box-shadow: 0 16px 34px rgba(239,43,45,.26);
}

.btn-light {
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(255,255,255,.18);
}

/* Reemplaza el look IA del card principal por una consola/dashboard ejecutivo */
.arch-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--abs-radius-xl) !important;
    background:
        linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,.055)) !important;
    border: 1px solid rgba(255,255,255,.18) !important;
    box-shadow: var(--abs-shadow-lg) !important;
    backdrop-filter: blur(24px);
    padding: 0 !important;
}

.arch-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(239,43,45,.16), transparent 30%),
        linear-gradient(135deg, rgba(255,255,255,.08), transparent 45%);
    pointer-events: none;
}

.arch-header {
    position: relative;
    z-index: 1;
    padding: 20px 22px;
    border-bottom: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.20);
}

.arch-title {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 24px 26px 8px;
    color: #fff;
    font-size: 24px;
    letter-spacing: -.8px;
}

.node-grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    padding: 18px 22px 24px;
}

.node {
    background: rgba(255, 255, 255, .075) !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    border-radius: 20px !important;
    padding: 16px !important;
    transition: transform .25s ease, background .25s ease, border-color .25s ease;
}

.node:hover {
    transform: translateX(5px);
    background: rgba(255,255,255,.11) !important;
    border-color: rgba(239,43,45,.32) !important;
}

.node b {
    color: #fff;
    font-size: 15px;
}

.node span {
    color: rgba(255,255,255,.68);
}

/* SECTIONS */
.section {
    position: relative;
    padding: clamp(74px, 8vw, 118px) 0;
}

.section-soft {
    background:
        linear-gradient(180deg, #f7f8fb, #fff);
}

.section-head {
    max-width: 840px;
    margin-bottom: 38px;
}

.section-head .kicker,
.kicker {
    color: var(--abs-primary) !important;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 12px;
}

.section-head h2 {
    margin: 12px 0 14px;
    font-size: clamp(34px, 4.2vw, 58px);
    line-height: 1.02;
    letter-spacing: -2.2px;
    color: var(--abs-text);
}

.section-head p {
    color: var(--abs-muted);
    font-size: 18px;
    line-height: 1.72;
}

/* CARDS */
.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.card {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    border-radius: var(--abs-radius-lg) !important;
    background:
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.90)) !important;
    border: 1px solid var(--abs-border) !important;
    box-shadow: var(--abs-shadow-sm) !important;
    padding: 28px !important;
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--abs-primary), rgba(239,43,45,.18));
    transform: scaleX(.22);
    transform-origin: left;
    transition: transform .28s ease;
}

.card:hover {
    transform: translateY(-7px);
    box-shadow: var(--abs-shadow-md) !important;
    border-color: rgba(239,43,45,.22) !important;
}

.card:hover::before {
    transform: scaleX(1);
}

.card h3 {
    font-size: 22px;
    line-height: 1.18;
    letter-spacing: -.7px;
    margin-top: 8px;
    margin-bottom: 12px;
}

.card p {
    color: var(--abs-muted);
    line-height: 1.72;
}

.tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 10px;
    background: rgba(239,43,45,.075);
    color: #8f1117;
    font-size: 12px;
    font-weight: 800;
}

/* Nueva sección visual */
.enterprise-showcase {
    margin-top: -48px;
    position: relative;
    z-index: 4;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 22px;
    align-items: stretch;
}

.showcase-panel {
    border-radius: 34px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(16,24,40,.10);
    box-shadow: var(--abs-shadow-lg);
}

.showcase-panel img {
    display: block;
    width: 100%;
    height: auto;
}

.showcase-copy {
    border-radius: 34px;
    background:
        radial-gradient(circle at 90% 10%, rgba(239,43,45,.12), transparent 34%),
        #ffffff;
    border: 1px solid rgba(16,24,40,.10);
    box-shadow: var(--abs-shadow-sm);
    padding: 34px;
}

.showcase-copy h2 {
    margin: 10px 0 14px;
    font-size: clamp(28px, 3.2vw, 44px);
    line-height: 1.03;
    letter-spacing: -1.5px;
}

.showcase-list {
    display: grid;
    gap: 13px;
    margin-top: 22px;
}

.showcase-list div {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border-radius: 18px;
    background: #f7f8fb;
    border: 1px solid rgba(16,24,40,.08);
}

.showcase-list b {
    display: block;
    margin-bottom: 3px;
}

.showcase-list span {
    color: var(--abs-muted);
    font-size: 14px;
    line-height: 1.55;
}

.check-dot {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border-radius: 999px;
    background: var(--abs-primary);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 900;
}

/* Animaciones profesionales por scroll */
[data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition:
        opacity .72s cubic-bezier(.2,.8,.2,1),
        transform .72s cubic-bezier(.2,.8,.2,1);
    transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal="left"] {
    transform: translateX(-34px);
}

[data-reveal="right"] {
    transform: translateX(34px);
}

[data-reveal="zoom"] {
    transform: scale(.96);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translate(0,0) scale(1);
}

.card[data-reveal]:nth-child(2),
.node[data-reveal]:nth-child(2) {
    --reveal-delay: 90ms;
}

.card[data-reveal]:nth-child(3),
.node[data-reveal]:nth-child(3) {
    --reveal-delay: 180ms;
}

.card[data-reveal]:nth-child(4),
.node[data-reveal]:nth-child(4) {
    --reveal-delay: 270ms;
}

/* Mockup visual */
.browser-mockup {
    border-radius: 34px;
    background: #111827;
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: var(--abs-shadow-lg);
    overflow: hidden;
}

.browser-topbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 18px;
    background: #0b1020;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.browser-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(255,255,255,.25);
}

.browser-address {
    margin-left: 10px;
    flex: 1;
    height: 28px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
}

.dashboard-mock {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 420px;
    background: #f8fafc;
}

.mock-sidebar {
    background: #111827;
    padding: 22px;
    display: grid;
    align-content: start;
    gap: 12px;
}

.mock-line {
    height: 11px;
    border-radius: 99px;
    background: rgba(255,255,255,.16);
}

.mock-line.active {
    background: var(--abs-primary);
}

.mock-content {
    padding: 24px;
}

.mock-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.mock-kpi {
    min-height: 92px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(16,24,40,.08);
    box-shadow: 0 10px 25px rgba(16,24,40,.06);
    padding: 16px;
}

.mock-kpi strong {
    display: block;
    font-size: 28px;
    color: #111827;
}

.mock-kpi span {
    color: #667085;
    font-size: 12px;
}

.mock-chart {
    height: 190px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(239,43,45,.10), transparent),
        #fff;
    border: 1px solid rgba(16,24,40,.08);
    position: relative;
    overflow: hidden;
}

.mock-chart::before {
    content: "";
    position: absolute;
    left: 34px;
    right: 34px;
    bottom: 44px;
    height: 78px;
    border-radius: 999px 999px 0 0;
    border: 4px solid var(--abs-primary);
    border-bottom: 0;
    opacity: .72;
}

.mock-table {
    margin-top: 18px;
    display: grid;
    gap: 10px;
}

.mock-row {
    height: 42px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(16,24,40,.07);
}

/* Responsive */
@media (max-width: 1080px) {
    .hero-grid,
    .showcase-grid {
        grid-template-columns: 1fr;
    }

    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-mock {
        grid-template-columns: 160px 1fr;
    }
}

@media (max-width: 720px) {
    .cards,
    .mock-kpis {
        grid-template-columns: 1fr;
    }

    .dashboard-mock {
        grid-template-columns: 1fr;
    }

    .mock-sidebar {
        display: none;
    }

    .hero h1 {
        letter-spacing: -2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal],
    .card,
    .node,
    .btn {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* HERO ENTERPRISE SAFE */
.hero-enterprise {
    min-height: calc(100vh - 78px);
    display: flex;
    align-items: center;
}

.hero-enterprise-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, .94fr);
    gap: clamp(42px, 6vw, 88px);
    align-items: center;
}

.hero-enterprise-copy h1 {
    max-width: 900px;
    margin: 24px 0 24px;
    font-size: clamp(46px, 6.6vw, 86px);
    line-height: .94;
    letter-spacing: -3.6px;
}

.hero-enterprise-copy p {
    max-width: 760px;
}

.hero-enterprise-actions {
    margin-top: 36px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-proof {
    margin-top: 34px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 760px;
}

.hero-proof div {
    padding: 16px;
    border-radius: 20px;
    background: rgba(255,255,255,.075);
    border: 1px solid rgba(255,255,255,.12);
}

.hero-proof strong {
    display: block;
    color: #fff;
    font-size: 15px;
    margin-bottom: 5px;
}

.hero-proof span {
    display: block;
    color: rgba(255,255,255,.62);
    font-size: 13px;
    line-height: 1.45;
}

.enterprise-console {
    position: relative;
}

.enterprise-console::before {
    content: "";
    position: absolute;
    inset: 28px -18px -18px 34px;
    border-radius: 40px;
    background: rgba(239,43,45,.28);
    filter: blur(42px);
    opacity: .72;
}

.console-window {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    background: linear-gradient(180deg, rgba(17,24,39,.96), rgba(8,9,12,.96));
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 46px 130px rgba(0,0,0,.45);
}

.console-top {
    height: 58px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 20px;
    background: rgba(255,255,255,.045);
    border-bottom: 1px solid rgba(255,255,255,.09);
}

.console-dots {
    display: flex;
    gap: 8px;
}

.console-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.28);
}

.console-dots span:first-child {
    background: var(--abs-primary);
}

.console-path {
    flex: 1;
    height: 28px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.07);
    color: rgba(255,255,255,.58);
    font-size: 12px;
    font-weight: 700;
}

.console-body {
    display: grid;
    grid-template-columns: 78px 1fr;
    min-height: 560px;
}

.console-sidebar {
    padding: 20px 16px;
    display: grid;
    align-content: start;
    gap: 16px;
    background: rgba(0,0,0,.22);
    border-right: 1px solid rgba(255,255,255,.08);
}

.console-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--abs-primary);
    font-weight: 950;
    box-shadow: 0 16px 34px rgba(239,43,45,.32);
}

.console-nav {
    width: 42px;
    height: 11px;
    border-radius: 999px;
    background: rgba(255,255,255,.13);
}

.console-nav.active {
    background: rgba(255,255,255,.65);
}

.console-main {
    padding: 24px;
}

.console-heading {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.console-heading span {
    display: block;
    color: rgba(255,255,255,.48);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 900;
    margin-bottom: 7px;
}

.console-heading strong {
    display: block;
    color: #fff;
    font-size: 25px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.console-heading em {
    font-style: normal;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(34,197,94,.13);
    color: #86efac;
    border: 1px solid rgba(34,197,94,.24);
    font-size: 12px;
    font-weight: 900;
}

.console-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.console-kpis div {
    padding: 15px;
    border-radius: 20px;
    background: rgba(255,255,255,.075);
    border: 1px solid rgba(255,255,255,.10);
}

.console-kpis b {
    display: block;
    color: #fff;
    font-size: 20px;
    letter-spacing: -.5px;
}

.console-kpis span {
    color: rgba(255,255,255,.54);
    font-size: 12px;
}

.architecture-map {
    position: relative;
    height: 290px;
    border-radius: 28px;
    background:
        radial-gradient(circle at center, rgba(239,43,45,.13), transparent 38%),
        rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.10);
    overflow: hidden;
}

.map-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.map-lines path {
    fill: none;
    stroke: rgba(239,43,45,.55);
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke-dasharray: 8 9;
    animation: architectureFlow 14s linear infinite;
}

.map-node {
    position: absolute;
    z-index: 2;
    width: 132px;
    min-height: 70px;
    padding: 13px;
    border-radius: 20px;
    background: rgba(8,9,12,.78);
    border: 1px solid rgba(255,255,255,.13);
    box-shadow: 0 18px 44px rgba(0,0,0,.22);
}

.map-node strong {
    display: block;
    color: #fff;
    font-size: 13px;
    margin-bottom: 4px;
}

.map-node span {
    display: block;
    color: rgba(255,255,255,.55);
    font-size: 11px;
}

.map-core {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: var(--abs-primary);
}

.map-core span {
    color: rgba(255,255,255,.8);
}

.map-a {
    left: 24px;
    top: 28px;
}

.map-b {
    right: 24px;
    top: 28px;
}

.map-c {
    left: 24px;
    bottom: 28px;
}

.map-d {
    right: 24px;
    bottom: 28px;
}

.console-status {
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255,255,255,.075);
    border: 1px solid rgba(255,255,255,.10);
}

.console-status div {
    color: rgba(255,255,255,.68);
    font-size: 13px;
    font-weight: 700;
}

.console-status div span {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 6px rgba(34,197,94,.13);
}

.console-status strong {
    color: #fff;
    font-size: 24px;
}

@keyframes architectureFlow {
    from {
        stroke-dashoffset: 0;
    }
    to {
        stroke-dashoffset: -180;
    }
}

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

    .enterprise-console {
        max-width: 720px;
    }
}

@media (max-width: 720px) {
    .hero-enterprise {
        min-height: auto;
    }

    .hero-proof,
    .console-kpis {
        grid-template-columns: 1fr;
    }

    .console-body {
        grid-template-columns: 1fr;
    }

    .console-sidebar {
        display: none;
    }

    .architecture-map {
        height: 420px;
    }

    .map-core {
        left: 50%;
        top: 50%;
    }

    .map-a,
    .map-b,
    .map-c,
    .map-d {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .map-a { top: 22px; }
    .map-b { top: 122px; }
    .map-c { bottom: 122px; }
    .map-d { bottom: 22px; }

    .map-lines {
        display: none;
    }
}

/* ENTERPRISE CARDS UPGRADE SAFE */
.public-nav.is-scrolled {
    box-shadow: 0 18px 50px rgba(16,24,40,.08);
}

.section {
    isolation: isolate;
}

.section::before {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(16,24,40,.08), transparent);
    pointer-events: none;
}

#soluciones .cards,
#casos-exito .cards,
#blog .cards,
#visuales .cards {
    align-items: stretch;
}

#soluciones .cards {
    counter-reset: solutionCards;
}

#soluciones .card {
    counter-increment: solutionCards;
    min-height: 310px;
    padding-top: 34px !important;
    background:
        radial-gradient(circle at var(--mouse-x, 85%) var(--mouse-y, 12%), rgba(239,43,45,.10), transparent 28%),
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,251,253,.94)) !important;
}

#soluciones .card::after {
    content: "0" counter(solutionCards);
    position: absolute;
    right: 22px;
    top: 20px;
    font-size: 44px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: -2px;
    color: rgba(17,24,39,.06);
    pointer-events: none;
}

#soluciones .card h3 {
    max-width: 82%;
    font-size: 25px;
}

#soluciones .card p {
    font-size: 15.5px;
}

#soluciones .card .tags,
#visuales .card .tags {
    margin-top: 18px;
}

/* Visual solution cards */
#visuales .card {
    padding: 20px !important;
}

#visuales .card img {
    display: block;
    background: #f8fafc;
    box-shadow: inset 0 0 0 1px rgba(16,24,40,.05);
    transition: transform .35s ease, box-shadow .35s ease;
}

#visuales .card:hover img {
    transform: translateY(-4px) scale(1.015);
    box-shadow: 0 24px 70px rgba(16,24,40,.12);
}

#visuales .card h3 {
    font-size: 24px;
}

/* Case studies */
#casos-exito .cards {
    counter-reset: caseCards;
}

#casos-exito .card {
    counter-increment: caseCards;
    min-height: 360px;
    background:
        linear-gradient(135deg, rgba(17,24,39,.985), rgba(8,9,12,.96)) !important;
    color: #fff;
    border-color: rgba(255,255,255,.10) !important;
    box-shadow: 0 30px 85px rgba(8,9,12,.22) !important;
}

#casos-exito .card::before {
    height: 1px;
    background: linear-gradient(90deg, var(--abs-primary), rgba(255,255,255,.18));
    transform: scaleX(1);
}

#casos-exito .card::after {
    content: "CASE 0" counter(caseCards);
    position: absolute;
    right: 20px;
    top: 20px;
    color: rgba(255,255,255,.16);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .14em;
}

#casos-exito .card h3 {
    color: #fff;
    max-width: 88%;
}

#casos-exito .card p {
    color: rgba(255,255,255,.68);
}

#casos-exito .card strong {
    color: rgba(255,255,255,.92);
}

#casos-exito .tags span {
    background: rgba(239,43,45,.18);
    color: #fff;
    border: 1px solid rgba(239,43,45,.28);
}

/* Blog cards */
#blog .card {
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

#blog .card h3 {
    font-size: 24px;
}

#blog .card p {
    flex: 1;
}

#blog .card .btn {
    margin-top: auto;
}

/* FAQ / general improvement */
#faqs .card,
#preguntas .card {
    min-height: auto;
    padding: 24px !important;
}

#faqs .card h3,
#preguntas .card h3 {
    font-size: 19px;
}

/* Premium glow controlled */
.card::after,
.node::after,
.kpi-card::after {
    pointer-events: none;
}

.card:hover {
    background:
        radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 0%), rgba(239,43,45,.09), transparent 32%),
        linear-gradient(180deg, rgba(255,255,255,.99), rgba(255,255,255,.92)) !important;
}

/* Section head enterprise rule */
.section-head {
    position: relative;
}

.section-head::after {
    content: "";
    display: block;
    width: 86px;
    height: 4px;
    margin-top: 22px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--abs-primary), rgba(239,43,45,.12));
}

/* Better split rhythm */
.split {
    gap: 24px;
}

.kpi-card {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at var(--mouse-x, 80%) var(--mouse-y, 0%), rgba(239,43,45,.10), transparent 34%),
        #fff !important;
    border: 1px solid rgba(16,24,40,.09) !important;
    box-shadow: 0 14px 40px rgba(16,24,40,.07) !important;
}

.kpi-card strong {
    letter-spacing: -1.2px;
}

/* Form section more premium */
#contacto .admin-card,
#diagnostico .admin-card,
.contact-card {
    border-radius: 32px !important;
    box-shadow: 0 24px 80px rgba(16,24,40,.12) !important;
}

/* Mobile adjustments */
@media (max-width: 1080px) {
    #soluciones .card h3,
    #casos-exito .card h3 {
        max-width: 100%;
    }

    #soluciones .card::after {
        font-size: 34px;
    }
}

@media (max-width: 720px) {
    #soluciones .card,
    #casos-exito .card,
    #blog .card {
        min-height: auto;
    }

    .section-head::after {
        width: 64px;
    }
}

/* ENTERPRISE AUTHORITY STRIP */
.enterprise-authority {
    position: relative;
    z-index: 5;
    margin-top: -28px;
    margin-bottom: 24px;
}

.authority-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.authority-item {
    position: relative;
    overflow: hidden;
    min-height: 132px;
    border-radius: 26px;
    padding: 22px;
    background:
        radial-gradient(circle at 80% 0%, rgba(239,43,45,.12), transparent 34%),
        #fff;
    border: 1px solid rgba(16,24,40,.10);
    box-shadow: 0 18px 55px rgba(16,24,40,.10);
}

.authority-item::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 22px;
    width: 34px;
    height: 4px;
    border-radius: 999px;
    background: var(--abs-primary);
}

.authority-item strong {
    display: block;
    margin-top: 22px;
    margin-bottom: 8px;
    font-size: 20px;
    letter-spacing: -.7px;
    color: var(--abs-text);
}

.authority-item span {
    display: block;
    color: var(--abs-muted);
    font-size: 14px;
    line-height: 1.55;
}

@media (max-width: 1080px) {
    .authority-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

/* VISUAL PORTFOLIO */
.visual-portfolio-section {
    background:
        radial-gradient(circle at 15% 10%, rgba(239,43,45,.06), transparent 34rem),
        #fff;
}

.visual-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.portfolio-card {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #fff;
    border: 1px solid rgba(16,24,40,.10);
    box-shadow: 0 18px 55px rgba(16,24,40,.10);
    transition: transform .32s ease, box-shadow .32s ease, border-color .32s ease;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: rgba(239,43,45,.24);
    box-shadow: 0 34px 90px rgba(16,24,40,.16);
}

.portfolio-image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #f8fafc;
}

.portfolio-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .55s ease;
}

.portfolio-card:hover .portfolio-image-wrap img {
    transform: scale(1.045);
}

.portfolio-badge {
    position: absolute;
    left: 18px;
    top: 18px;
    z-index: 2;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(8,9,12,.82);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(14px);
}

.portfolio-body {
    padding: 24px;
}

.portfolio-body h3 {
    margin: 8px 0 12px;
    font-size: 23px;
    line-height: 1.15;
    letter-spacing: -.7px;
}

.portfolio-body p {
    color: var(--abs-muted);
    line-height: 1.68;
    font-size: 15px;
}

@media (max-width: 1080px) {
    .visual-portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .visual-portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* PORTFOLIO MODAL VIEWER */
.portfolio-open {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.portfolio-zoom-label {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 3;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    color: #111827;
    font-size: 12px;
    font-weight: 950;
    box-shadow: 0 18px 38px rgba(0,0,0,.18);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .26s ease, transform .26s ease;
}

.portfolio-card:hover .portfolio-zoom-label {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.portfolio-modal.is-open {
    display: flex;
}

.portfolio-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 9, 12, .78);
    backdrop-filter: blur(14px);
}

.portfolio-modal-dialog {
    position: relative;
    z-index: 2;
    width: min(1180px, 100%);
    max-height: calc(100vh - 48px);
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr);
    overflow: hidden;
    border-radius: 34px;
    background: #fff;
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 44px 140px rgba(0,0,0,.42);
    animation: portfolioModalIn .24s ease both;
}

.portfolio-modal-close {
    position: absolute;
    right: 18px;
    top: 18px;
    z-index: 5;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(8,9,12,.72);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: transform .2s ease, background .2s ease;
}

.portfolio-modal-close:hover {
    transform: rotate(90deg);
    background: var(--abs-primary);
}

.portfolio-modal-image {
    background:
        linear-gradient(135deg, rgba(17,24,39,.96), rgba(8,9,12,.98));
    display: grid;
    place-items: center;
    min-height: 640px;
    padding: 28px;
}

.portfolio-modal-image img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 110px);
    object-fit: contain;
    border-radius: 22px;
    box-shadow: 0 26px 90px rgba(0,0,0,.36);
    background: #fff;
}

.portfolio-modal-content {
    padding: 42px 36px;
    overflow-y: auto;
}

.portfolio-modal-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.portfolio-modal-meta span {
    display: none;
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(239,43,45,.09);
    color: #8f1117;
    font-size: 12px;
    font-weight: 900;
}

.portfolio-modal-meta span:not(:empty) {
    display: inline-flex;
}

.portfolio-modal-content h2 {
    margin: 0 0 16px;
    font-size: clamp(30px, 3vw, 46px);
    line-height: 1.04;
    letter-spacing: -1.8px;
    color: var(--abs-text);
}

.portfolio-modal-content p {
    margin: 0;
    color: var(--abs-muted);
    font-size: 16px;
    line-height: 1.75;
}

.portfolio-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 24px;
}

.portfolio-modal-tags span {
    display: inline-flex;
    align-items: center;
    padding: 8px 11px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 12px;
    font-weight: 850;
}

body.portfolio-modal-lock {
    overflow: hidden;
}

@keyframes portfolioModalIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.985);
    }

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

@media (max-width: 960px) {
    .portfolio-modal-dialog {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }

    .portfolio-modal-image {
        min-height: auto;
        padding: 18px;
    }

    .portfolio-modal-image img {
        max-height: 58vh;
    }

    .portfolio-modal-content {
        padding: 28px;
    }
}

@media (max-width: 640px) {
    .portfolio-modal {
        padding: 12px;
    }

    .portfolio-modal-dialog {
        border-radius: 24px;
    }

    .portfolio-modal-close {
        right: 12px;
        top: 12px;
    }
}

/* PORTFOLIO FILTERS */
.portfolio-filter-panel {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 18px;
    align-items: end;
    margin: 0 0 28px;
    padding: 20px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 85% 0%, rgba(239,43,45,.08), transparent 34%),
        #ffffff;
    border: 1px solid rgba(16,24,40,.10);
    box-shadow: 0 16px 48px rgba(16,24,40,.08);
}

.portfolio-filter-group {
    display: grid;
    gap: 10px;
}

.portfolio-filter-group strong {
    font-size: 13px;
    color: var(--abs-text);
    letter-spacing: .04em;
    text-transform: uppercase;
}

.portfolio-filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.portfolio-filter-btn {
    border: 1px solid rgba(16,24,40,.10);
    background: #f8fafc;
    color: #374151;
    border-radius: 999px;
    padding: 9px 13px;
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.portfolio-filter-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(239,43,45,.30);
    color: var(--abs-primary);
}

.portfolio-filter-btn.is-active {
    background: var(--abs-primary);
    border-color: var(--abs-primary);
    color: #fff;
    box-shadow: 0 12px 26px rgba(239,43,45,.22);
}

.portfolio-filter-summary {
    min-width: 160px;
    padding: 12px 14px;
    border-radius: 18px;
    background: #111827;
    color: rgba(255,255,255,.76);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.portfolio-filter-summary span {
    color: #fff;
    font-size: 22px;
    font-weight: 950;
    margin-right: 3px;
}

.portfolio-card.is-hidden {
    display: none;
}

.portfolio-empty-state {
    margin-top: 24px;
    padding: 28px;
    border-radius: 26px;
    background: #f8fafc;
    border: 1px dashed rgba(16,24,40,.18);
    text-align: center;
}

.portfolio-empty-state strong {
    display: block;
    color: var(--abs-text);
    font-size: 18px;
    margin-bottom: 6px;
}

.portfolio-empty-state span {
    color: var(--abs-muted);
}

@media (max-width: 1080px) {
    .portfolio-filter-panel {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .portfolio-filter-summary {
        text-align: left;
    }
}

/* BRAND LOGO GLOBAL */
.brand-logo-wrap {
    display: inline-flex;
    align-items: center;
    max-width: 260px;
}

.brand-logo-img {
    display: block;
    max-height: 46px;
    width: auto;
    object-fit: contain;
}

.brand-logo-text {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    color: #111827;
}

.brand-logo-text strong {
    font-weight: 950;
    letter-spacing: .18em;
    font-size: 14px;
}

.brand-logo-text small {
    font-size: 12px;
    color: #555b66;
    letter-spacing: -.2px;
}

.admin-sidebar .brand-logo-img,
.admin-layout .brand-logo-img,
.admin-brand .brand-logo-img {
    max-height: 44px;
}

@media (max-width: 720px) {
    .brand-logo-img {
        max-height: 38px;
    }

    .brand-logo-wrap {
        max-width: 210px;
    }
}
