:root {
    --ink: #16181d;
    --muted: #5c6570;
    --line: rgba(22, 24, 29, 0.1);
    --paper: #f4f6f8;
    --white: #fff;
    --blue: #001f6e;
    --deep: #001448;
    --teal: #00c9c0;
    --font: "Space Grotesk", sans-serif;
    --nav-h: 84px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

@media (min-width: 992px) {
    html {
        scrollbar-width: none;
    }

    html::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }
}

.home-body {
    margin: 0;
    --bs-primary: #001f6e;
    --bs-primary-rgb: 0, 31, 110;
    --bs-link-color: #001f6e;
    --bs-link-hover-color: #001448;
    --bs-body-color: #16181d;
    --bs-secondary-color: #5c6570;
    --bs-light-rgb: 244, 246, 248;
    --bs-body-font-family: var(--font);
    color: var(--ink);
    background: var(--white);
    font-family: var(--font);
    overflow-x: clip;
}

.home-body,
.home-body * {
    cursor: default;
}

html.has-home-cursor .home-body,
html.has-home-cursor .home-body * {
    cursor: none;
}

.home-body .btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #001f6e;
    --bs-btn-border-color: #001f6e;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #001448;
    --bs-btn-hover-border-color: #001448;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #000e38;
    --bs-btn-active-border-color: #000e38;
    --bs-btn-focus-shadow-rgb: 0, 31, 110;
}

.home-body .btn-outline-primary {
    --bs-btn-color: #001f6e;
    --bs-btn-border-color: #001f6e;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #001f6e;
    --bs-btn-hover-border-color: #001f6e;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #001448;
    --bs-btn-active-border-color: #001448;
    --bs-btn-focus-shadow-rgb: 0, 31, 110;
}

.home-skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 80;
    background: var(--white);
    padding: 0.5rem 0.8rem;
}

.home-skip:focus {
    top: 1rem;
}

.home-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    height: var(--nav-h);
    display: flex;
    align-items: center;
}

.is-scrolled .home-nav {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--line);
}

.home-nav__bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.home-nav__brand,
.home-nav__actions {
    position: relative;
    z-index: 42;
}

.home-nav__brand {
    display: block;
    flex: 0 0 auto;
    min-width: 0;
    min-height: 0;
    width: 186px;
    height: 28px;
    overflow: hidden;
}

.home-nav__brand img {
    width: 225px;
    height: 84px;
    max-width: none;
    margin: -28px 0 0 -20px;
    display: block;
}

.home-footer img {
    height: 32px;
    width: auto;
    display: block;
}

.home-nav__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.home-nav__links {
    display: none;
}

.home-burger {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
}

.home-burger__lines {
    width: 18px;
    height: 12px;
    position: relative;
    display: block;
}

.home-burger__lines i {
    position: absolute;
    left: 0;
    right: 0;
    height: 1.5px;
    background: currentColor;
    transition: transform 0.25s ease, top 0.25s ease, opacity 0.25s ease;
}

.home-burger__lines i:nth-child(1) { top: 0; }
.home-burger__lines i:nth-child(2) { top: 5px; }
.home-burger__lines i:nth-child(3) { top: 10px; }

.nav-open .home-burger__lines i:nth-child(1) {
    top: 5px;
    transform: rotate(45deg);
}

.nav-open .home-burger__lines i:nth-child(2) { opacity: 0; }

.nav-open .home-burger__lines i:nth-child(3) {
    top: 5px;
    transform: rotate(-45deg);
}

.home-panel {
    display: none;
    position: fixed;
    inset: var(--nav-h) 0 0;
    z-index: 39;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1.5rem;
    background: var(--white);
}

.nav-open .home-panel { display: flex; }

.home-panel a {
    padding: 0.85rem 0.2rem;
    color: var(--ink);
    font-size: 1.15rem;
    text-decoration: none;
}

.home-hero {
    position: relative;
    padding: calc(var(--nav-h) + 4.5rem) 0 5.5rem;
}

.home-hero__copy {
    position: relative;
    z-index: 2;
}

.home-hero h1 {
    margin: 0;
    font-size: clamp(2.1rem, 6vw, 4.4rem);
    font-weight: 500;
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.home-type__caret {
    display: inline-block;
    width: 2px;
    height: 0.85em;
    margin-left: 2px;
    background: currentColor;
    vertical-align: -0.08em;
    animation: home-caret 1s steps(1) infinite;
}

@keyframes home-caret {
    50% { opacity: 0; }
}

.stat-value {
    margin-bottom: 0.35rem;
    color: var(--blue);
    font-size: clamp(2.6rem, 5vw, 3.6rem);
    font-weight: 500;
    letter-spacing: -0.045em;
    line-height: 1;
}

.home-band {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    min-height: 320px;
    padding: 4.5rem 1.5rem;
    text-align: center;
    color: #fff;
    background: #001f6e url('../images/landing/backgrounds/bg-soluciones.png') center / cover no-repeat;
}

.home main > .bg-light::before {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 201, 192, 0.75), rgba(0, 31, 110, 0.35), transparent);
    pointer-events: none;
}

.home main > .bg-light {
    position: relative;
    background-image: linear-gradient(180deg, rgba(0, 31, 110, 0.06), transparent 96px);
}

.home main > .bg-light::before {
    top: 0;
}

.home-band h2 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.12;
}

.home-band .home-type {
    margin: 0;
    min-height: 1.6em;
    font-size: clamp(1.2rem, 2.4vw, 1.7rem);
}

.home-hero__row {
    position: relative;
}

.home-hero__row > [class*="col-"] {
    position: relative;
    z-index: 1;
}

.hero-mark {
    width: min(100%, 500px);
    margin-inline: auto;
    perspective: 700px;
}

.hero-mark__plane {
    transform-style: preserve-3d;
    transition: transform 0.55s ease;
    will-change: transform;
}

.hero-mark.is-tilting .hero-mark__plane {
    transition: none;
}

.hero-mark__plane img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-wash {
    position: absolute;
    inset: -12% 0;
    z-index: 0;
    pointer-events: none;
    filter: blur(28px);
    background:
        radial-gradient(ellipse 42% 70% at 78% 50%, rgba(0, 31, 110, 0.28), transparent 72%),
        radial-gradient(ellipse 46% 75% at 62% 48%, rgba(0, 201, 192, 0.28), transparent 70%),
        radial-gradient(ellipse 40% 60% at 18% 55%, rgba(0, 31, 110, 0.08), transparent 70%);
}

.sol-list {
    border-top: 1px solid var(--line);
}

.sol-acc {
    border-bottom: 1px solid var(--line);
}

.sol-acc h3 {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
}

.sol-acc button {
    display: block;
    width: 100%;
    padding: 1.15rem 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    text-align: left;
}

.sol-acc.is-on button {
    color: var(--blue);
}

.sol-acc__body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}

.sol-acc.is-on .sol-acc__body {
    grid-template-rows: 1fr;
}

.sol-acc__body > div {
    overflow: hidden;
}

.sol-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.sol-tabs button {
    padding: 0.55rem 0.95rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--ink);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sol-tabs button.is-on {
    border-color: var(--blue);
    background: var(--blue);
    color: #fff;
}

.sol-amp {
    font-family: system-ui, -apple-system, sans-serif;
    font-weight: inherit;
    letter-spacing: 0;
}

.sol-panel {
    display: none;
}

.sol-panel.is-on {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(220px, 0.85fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: center;
}

.sol-panel.is-on .sol-copy {
    animation: sol-rise 0.45s ease;
}

.sol-panel.is-on .sol-points li {
    animation: sol-rise 0.5s ease both;
}

.sol-panel.is-on .sol-points li:nth-child(2) { animation-delay: 0.06s; }
.sol-panel.is-on .sol-points li:nth-child(3) { animation-delay: 0.12s; }

.sol-panel__title {
    color: var(--blue);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 500;
    letter-spacing: -0.03em;
}

.sol-mark {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.sol-mark svg {
    width: min(100%, 340px);
    height: auto;
}

.sol-draw {
    fill: none;
    stroke: var(--blue);
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}

.sol-draw--teal {
    stroke: #00c9c0;
}

.sol-pop {
    fill: #00c9c0;
    transform-box: fill-box;
    transform-origin: center;
    opacity: 0;
}

.sol-panel.is-on .sol-draw {
    animation: sol-form 0.85s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.sol-panel.is-on .sol-draw--2 { animation-delay: 0.28s; }
.sol-panel.is-on .sol-draw--3 { animation-delay: 0.5s; }
.sol-panel.is-on .sol-draw--4 { animation-delay: 0.72s; }
.sol-panel.is-on .sol-draw--5 { animation-delay: 0.94s; }

.sol-panel.is-on .sol-pop {
    animation: sol-pop 0.45s ease 1.15s forwards;
}

@keyframes sol-form {
    to { stroke-dashoffset: 0; }
}

@keyframes sol-pop {
    0% { opacity: 0; transform: scale(0.3); }
    70% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes sol-rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 991.98px) {
    .sol-panel.is-on {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sol-draw {
        stroke-dashoffset: 0;
        animation: none;
    }

    .sol-pop {
        opacity: 1;
        animation: none;
    }

    .sol-panel.is-on .sol-copy,
    .sol-panel.is-on .sol-points li {
        animation: none;
    }
}

.sol-points {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sol-points li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
    font-weight: 600;
}

.sol-points svg {
    width: 22px;
    height: 22px;
    flex: none;
    color: var(--blue);
}

.sol-stage {
    perspective: 900px;
}

.sol-stage__plane {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.55s ease;
    will-change: transform;
}

.sol-stage.is-tilting .sol-stage__plane,
.sol-stage.is-tilting .sol-stage__float {
    transition: none;
}

.sol-stage__base,
.sol-stage__float {
    width: 100%;
    height: auto;
    display: block;
}

.sol-stage__float {
    position: absolute;
    inset: 0;
    pointer-events: none;
    transition: transform 0.55s ease;
}

.connect,
.value {
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--white);
}

.connect {
    position: relative;
    border-color: transparent;
}

.connect::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1.5px;
    border-radius: inherit;
    background: conic-gradient(from var(--product-angle), #001f6e, #00c9c0, #001f6e 45%, #5b7cff, #001f6e);
    animation: product-border 7s linear infinite;
    pointer-events: none;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
}

#conexiones .col-lg-4:nth-child(2) .connect::before {
    animation-delay: -2.4s;
}

#conexiones .col-lg-4:nth-child(3) .connect::before {
    animation-delay: -4.8s;
}

.connect__chain {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0;
}

.connect__chain span {
    font-weight: 500;
}

.connect__chain span:not(:last-child)::after {
    content: "";
    display: inline-block;
    width: 1.4rem;
    height: 2px;
    margin: 0 0.45rem 0.2rem;
    vertical-align: middle;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--blue), var(--teal));
}

.case-tag {
    padding: 0.2rem 0.55rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.8rem;
}

.case-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.case-filters button {
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    font-weight: 500;
}

.case-filters button.is-on {
    border-color: var(--blue);
    color: var(--blue);
}

.case {
    display: block;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--white);
    color: inherit;
    text-decoration: none;
}

.case {
    padding: 0;
    overflow: hidden;
}

.case img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.quote {
    margin: 0;
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--white);
}

.case:hover {
    border-color: rgba(0, 31, 110, 0.45);
}

.steps li {
    text-align: center;
    font-weight: 500;
}

.step-num {
    display: block;
    width: fit-content;
    position: relative;
    margin: 0 auto 0.85rem;
    padding-bottom: 0.45rem;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1;
}

.step-text {
    display: block;
    font-weight: 400;
    color: var(--muted);
}

.step-num::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--blue), var(--teal));
}

@property --product-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-height: 100%;
    padding: 1.5rem;
    border-radius: 1.25rem;
    background:
        radial-gradient(ellipse 90% 70% at 100% 0%, rgba(0, 201, 192, 0.2), transparent 58%),
        radial-gradient(ellipse 80% 70% at 0% 100%, rgba(0, 31, 110, 0.08), transparent 60%),
        #f6f8fb;
}

.product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1.5px;
    border-radius: inherit;
    background: conic-gradient(from var(--product-angle), #001f6e, #00c9c0, #001f6e 40%, #5b7cff, #001f6e);
    animation: product-border 8s linear infinite;
    pointer-events: none;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
}

.product-card h3 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 500;
    letter-spacing: -0.03em;
}

.product-card p {
    margin: 0;
    color: var(--muted);
}

.product-card__logo {
    width: 148px;
    height: auto;
}

@keyframes product-border {
    to { --product-angle: 360deg; }
}

@media (prefers-reduced-motion: reduce) {
    .product-card::before,
    .connect::before {
        animation: none;
    }
}

.atlas-panel {
    background:
        radial-gradient(ellipse 50% 80% at 90% 20%, rgba(86, 213, 116, 0.35), transparent 60%),
        #001f6e;
    color: #fff;
}

.atlas-panel__lead {
    max-width: 36rem;
    color: rgba(255, 255, 255, 0.74);
}

.home-close {
    background: #12151c;
    color: #fff;
}

.home-close__lead {
    color: rgba(255, 255, 255, 0.72);
}

.home-footer {
    padding: 1.2rem 0 1.5rem;
    background: #0c0e12;
    color: rgba(255, 255, 255, 0.7);
}

.home-footer a {
    color: #fff;
    text-decoration: none;
}

.home-cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(circle at 35% 35%, var(--teal), var(--blue));
    box-shadow: 0 0 0 2px var(--white);
}

.home-cursor.is-on { opacity: 0.9; }

.route-follow { display: none; }

@media (min-width: 992px) {
    .home-nav__links {
        display: flex;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        align-items: center;
        gap: 0.15rem;
        padding: 0.28rem;
        border: 1px solid var(--line);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.86);
    }

    .home-nav__links a {
        padding: 0.42rem 0.85rem;
        border-radius: 999px;
        color: var(--ink);
        font-size: 0.78rem;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        text-decoration: none;
    }

    .home-nav__links a:hover { background: var(--paper); }

    .home-burger,
    .home-panel,
    .nav-open .home-panel { display: none; }

    .route-follow {
        display: block;
        position: fixed;
        top: 18vh;
        bottom: 12vh;
        right: 18px;
        z-index: 4;
        width: 2px;
        pointer-events: none;
        border-radius: 999px;
        background: linear-gradient(180deg, transparent, var(--blue), var(--teal), transparent);
    }

    .route-follow__head {
        position: absolute;
        left: 50%;
        width: 11px;
        height: 11px;
        border-radius: 50%;
        transform: translate(-50%, -50%);
        background: var(--white);
        box-shadow: 0 0 0 5px rgba(0, 31, 110, 0.25);
    }
}


@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .home-type__caret { animation: none; }
    .home-cursor { display: none; }
}
