:root {
    --bg-overlay: rgba(6, 17, 31, 0.08);
    --text: #ffffff;
    --accent-left: #a63cff;
    --accent-right: #ffd447;
    --button-fill: rgba(49, 68, 92, 0.95);
    --button-fill-hover: rgba(63, 84, 111, 0.98);
}

@font-face {
    font-family: "Open Sauce";
    src: url("fonts/OpenSauceSansVF.woff2") format("woff2-variations");
    font-weight: 300 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Open Sauce";
    src: url("fonts/OpenSauceSansVF-Italic.woff2") format("woff2-variations");
    font-weight: 300 800;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "CMU Serif";
    src: url("fonts/CMUSerif-Roman.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "CMU Serif";
    src: url("fonts/CMUSerif-Italic.otf") format("opentype");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "CMU Serif";
    src: url("fonts/CMUSerif-Bold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "CMU Serif";
    src: url("fonts/CMUSerif-BoldItalic.otf") format("opentype");
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    height: 100%;
}

body {
    font-family: "Open Sauce", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: #07111d;
    color: var(--text);
    overflow-x: hidden;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

p {
    font-family: "CMU Serif", "Computer Modern Serif", "Times New Roman", serif;
}

.hero {
    position: relative;
    min-height: 100vh;
    height: 100svh;
    overflow: hidden;
    display: grid;
    place-items: center;
    isolation: isolate;
}

.hero video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -3;
    background: #07111d;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(42, 153, 255, 0.18), transparent 32%),
        linear-gradient(to bottom, rgba(5, 12, 23, 0.08), rgba(5, 12, 23, 0.22)),
        var(--bg-overlay);
    z-index: -2;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 24%);
    z-index: -1;
    pointer-events: none;
}

.content {
    width: min(92vw, 920px);
    padding: 1rem 2rem 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transform: translateY(2vh);
}

.brand {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    flex: 0 0 auto;
    line-height: 0;
}

.brand-logo {
    display: block;
    height: auto;
    max-width: 100%;
    filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.18));
}

.brand-logo-horizontal {
    width: min(80vw, 610px);
}

.brand-logo-vertical {
    display: none;
    width: min(76vw, 290px);
}

.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    min-width: min(72vw, 285px);
    border-radius: 999px;
    text-decoration: none;
    background: linear-gradient(90deg, var(--accent-left), var(--accent-right));
    box-shadow: 0 16px 36px rgba(8, 16, 29, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta span {
    width: 100%;
    border-radius: 999px;
    background: var(--button-fill);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.6rem;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-align: center;
    text-transform: uppercase;
}

.demo-section {
    background: #33465c;
    padding: clamp(3.5rem, 7vw, 5.5rem) clamp(1.25rem, 4vw, 3.5rem);
}

.demo-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: clamp(1.5rem, 3vw, 4rem);
    align-items: center;
}

.demo-left {
    display: grid;
    gap: 2rem;
    justify-items: start;
}

.demo-title {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 500;
    line-height: 0.96;
    letter-spacing: -0.03em;
}

.demo-title span {
    display: block;
}

.demo-title strong {
    background: linear-gradient(90deg, #c12ea7 0%, #ff7b1f 45%, #ffc229 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.demo-media {
    width: 100%;
    max-width: 580px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
}

.demo-media img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 16 / 10;
}

.demo-right {
    display: grid;
    gap: 2rem;
    align-content: center;
}

.demo-heading {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.8rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.demo-copy {
    margin: 0;
    max-width: 24ch;
    font-size: clamp(0.98rem, 1.45vw, 1.28rem);
    line-height: 1.45;
}

.cta-demo {
    min-width: min(100%, 290px);
}

.solutions-section {
    background: #f5f5f3;
    padding: clamp(4rem, 7vw, 6rem) clamp(1.25rem, 4vw, 3.5rem) clamp(4.5rem, 8vw, 6.5rem);
    color: #34465a;
}

.solutions-shell {
    max-width: 1180px;
    margin: 0 auto;
}

.solutions-title {
    margin: 0 0 clamp(2.5rem, 4vw, 3.5rem);
    text-align: center;
    font-size: clamp(2.5rem, 5vw, 4.4rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 1.8vw, 1.4rem);
}

.solution-card {
    position: relative;
    overflow: hidden;
    min-height: clamp(320px, 38vw, 440px);
    background: #d8dde3;
}

.solution-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.solution-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 28, 40, 0.04) 0%, rgba(17, 28, 40, 0.18) 100%);
}

.solution-card h3 {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    margin: 0;
    width: calc(100% - 2rem);
    transform: translate(-50%, -50%);
    color: #ffffff;
    text-align: center;
    font-size: clamp(1.8rem, 2.8vw, 2.3rem);
    font-weight: 400;
    line-height: 1.05;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}

.process-section {
    background: #404f6b;
    padding: clamp(4rem, 7vw, 6rem) clamp(1.25rem, 4vw, 3.5rem) clamp(4.5rem, 8vw, 6.5rem);
}

.process-shell {
    max-width: 1380px;
    margin: 0 auto;
}

.process-title {
    margin: 0 0 clamp(2.8rem, 5vw, 4.5rem);
    text-align: center;
    font-size: clamp(2.9rem, 6vw, 5rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.04em;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1.6rem, 2.4vw, 3.2rem);
}

.process-card {
    text-align: center;
    display: grid;
    justify-items: center;
    align-content: start;
    padding-inline: 0.4rem;
    grid-template-rows: minmax(96px, auto) 148px auto;
}

.process-step {
    margin: 0 0 1.35rem;
    font-size: clamp(1.2rem, 2.1vw, 2rem);
    font-weight: 700;
    line-height: 1.02;
    text-transform: uppercase;
    background: linear-gradient(90deg, #c12ea7 0%, #ff7b1f 48%, #ffc229 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
}

.process-icon {
    width: clamp(108px, 12vw, 138px);
    height: clamp(108px, 12vw, 138px);
    color: rgba(255, 255, 255, 0.96);
    margin-bottom: 2rem;
    display: grid;
    place-items: center;
    align-self: start;
}

.process-icon svg,
.process-icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.process-copy {
    margin: 0.35rem 0 0;
    max-width: 22ch;
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(1rem, 1.05vw, 1.12rem);
    line-height: 1.5;
    text-wrap: balance;
}

.why-section {
    background: #f6f5f2;
    padding: clamp(4rem, 7vw, 6rem) clamp(1.25rem, 4vw, 3.5rem);
    color: #45597a;
}

.why-grid {
    max-width: 1220px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 1fr);
    gap: clamp(2rem, 4vw, 4.75rem);
    align-items: center;
}

.why-copy-wrap {
    max-width: 470px;
}

.why-title {
    margin: 0;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 600;
    line-height: 0.9;
    letter-spacing: -0.05em;
}

.why-title span {
    display: block;
}

.why-kicker {
    margin: 1.25rem 0 2rem;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 700;
    line-height: 1.05;
    background: linear-gradient(90deg, #c12ea7 0%, #ff7b1f 45%, #ffc229 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.why-copy {
    margin: 0;
    max-width: 31ch;
    color: #556987;
    font-size: clamp(1.05rem, 1.45vw, 1.35rem);
    line-height: 1.52;
}

.why-media {
    width: 100%;
    justify-self: end;
    overflow: hidden;
    max-width: 600px;
    background: #e8edf2;
}

.why-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1.08 / 1;
    object-position: 54% center;
}

.mobile-section {
    background: #4a5b7a;
    padding: clamp(4rem, 7vw, 6rem) clamp(1.25rem, 4vw, 3.5rem);
    overflow: hidden;
}

.mobile-grid {
    max-width: 1220px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(260px, 0.78fr);
    gap: clamp(1.5rem, 3vw, 3.5rem);
    align-items: end;
}

.mobile-copy-wrap {
    max-width: 660px;
}

.mobile-title {
    margin: 0 0 1.75rem;
    font-size: clamp(2.5rem, 4.8vw, 3.9rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
}

.mobile-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: mobile-step;
    display: grid;
    gap: 1.2rem;
}

.mobile-step {
    counter-increment: mobile-step;
}

.mobile-step h3 {
    margin: 0 0 0.2rem;
    font-size: clamp(0.98rem, 1.25vw, 1.14rem);
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
}

.mobile-step h3::before {
    content: counter(mobile-step) ".";
    margin-right: 0.45rem;
    color: #ff9e2a;
}

.mobile-step p {
    margin: 0;
    max-width: 46ch;
    color: rgba(255, 255, 255, 0.96);
    font-size: clamp(0.92rem, 1.02vw, 1rem);
    line-height: 1.38;
}

.mobile-visual {
    min-height: 100%;
    display: grid;
    align-items: end;
    justify-items: end;
    align-self: end;
}

.mobile-device-image {
    width: min(100%, 320px);
    height: auto;
    display: block;
    object-fit: contain;
    transform: translate(12px, 97px);
    transform-origin: bottom right;
}

.clients-section {
    background: #ffffff;
    padding: clamp(3.5rem, 7vw, 5.5rem) clamp(1.25rem, 4vw, 3.5rem) clamp(4rem, 8vw, 6rem);
    color: #45597a;
}

.clients-shell {
    max-width: 1220px;
    margin: 0 auto;
}

.clients-title {
    margin: 0 0 clamp(2rem, 4vw, 3rem);
    text-align: center;
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.clients-logos {
    display: block;
    width: min(100%, 1120px);
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

.site-footer {
    background: #ffffff;
    color: #45597a;
    border-top: 1px solid rgba(69, 89, 122, 0.1);
}

.footer-hero {
    height: clamp(220px, 32vw, 320px);
    background: url("PROYECTOS/media/assets/18.jpg") center center / cover no-repeat;
}

.footer-shell {
    max-width: 1220px;
    margin: 0 auto;
    padding: clamp(2.4rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3.5rem) 1.5rem;
    display: grid;
    grid-template-columns: minmax(260px, 1.2fr) minmax(220px, 0.7fr) minmax(240px, 0.8fr);
    gap: 2rem;
    align-items: start;
}

.footer-title {
    margin: 0 0 1.2rem;
    font-size: clamp(2.6rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.05em;
    background: linear-gradient(90deg, #a52c98 0%, #ff7b1f 45%, #ffc229 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-socials {
    display: flex;
    gap: 1.1rem;
}

.footer-socials a {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #45597a;
    text-decoration: none;
}

.footer-socials svg {
    width: 100%;
    height: 100%;
    display: block;
}

.footer-contact p {
    margin: 0;
    color: #45597a;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.35;
}

.footer-bottom {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 1.25rem 2rem;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: #cfd4e0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.cta:hover,
.cta:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 24px 50px rgba(8, 16, 29, 0.36);
    outline: none;
}

.cta:hover span,
.cta:focus-visible span {
    background: var(--button-fill-hover);
}

.note {
    margin-top: 1rem;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.78);
}

code {
    padding: 0.15rem 0.4rem;
    border-radius: 0.35rem;
    background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 700px) {
    .content {
        width: min(92vw, 420px);
        padding: 1rem;
        gap: 0.85rem;
        transform: translateY(0);
    }

    .brand {
        margin-inline: auto;
        width: fit-content;
    }

    .brand-logo-horizontal {
        display: none;
    }

    .brand-logo-vertical {
        display: block;
    }

    .cta {
        min-width: 100%;
    }

    .cta span {
        padding: 0.9rem 1.3rem;
        font-size: 0.86rem;
    }

    .demo-section {
        padding: 3rem 1rem;
    }

    .demo-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .demo-left,
    .demo-right {
        gap: 1.4rem;
    }

    .demo-title {
        font-size: clamp(2.2rem, 10vw, 3.4rem);
    }

    .demo-heading,
    .demo-copy {
        max-width: none;
    }

    .cta-demo {
        min-width: 100%;
    }

    .solutions-section {
        padding: 3rem 1rem 3.5rem;
    }

    .solutions-title {
        margin-bottom: 2rem;
        font-size: clamp(2.1rem, 10vw, 3rem);
    }

    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .solution-card {
        min-height: 280px;
    }

    .process-section {
        padding: 3rem 1rem 3.5rem;
    }

    .process-title {
        margin-bottom: 2.2rem;
        font-size: clamp(2.2rem, 10vw, 3.4rem);
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: 2.2rem;
    }

    .process-step {
        margin-bottom: 1rem;
    }

    .process-icon {
        margin-bottom: 1rem;
    }

    .process-copy {
        max-width: 24ch;
    }

    .process-card {
        grid-template-rows: auto 120px auto;
    }

    .why-section {
        padding: 3rem 1rem 3.5rem;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .why-copy-wrap {
        max-width: none;
    }

    .why-title {
        font-size: clamp(2.5rem, 10vw, 3.8rem);
    }

    .why-kicker {
        margin: 1rem 0 1.5rem;
        font-size: clamp(1.25rem, 6vw, 1.7rem);
    }

    .why-copy {
        max-width: none;
    }

    .why-media {
        justify-self: stretch;
    }

    .mobile-section {
        padding: 3rem 1rem 3.5rem;
    }

    .mobile-grid {
        grid-template-columns: 1fr;
        gap: 2.2rem;
    }

    .mobile-title {
        margin-bottom: 1.5rem;
        font-size: clamp(2.3rem, 10vw, 3.4rem);
    }

    .mobile-step p {
        max-width: none;
    }

    .mobile-visual {
        min-height: 420px;
    }

    .clients-section {
        padding: 3rem 1rem 3.5rem;
    }

    .clients-title {
        margin-bottom: 1.5rem;
        font-size: clamp(2.2rem, 10vw, 3.2rem);
    }

    .footer-shell {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2.2rem 1rem 1.2rem;
    }

    .footer-hero {
        height: 180px;
    }

    .footer-bottom {
        padding: 0 1rem 2rem;
        text-align: left;
    }
}
