@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&display=swap");

:root {
    --purple: #6d49eb;
    --purple-deep: #4a30c6;
    --blue: #477cf5;
    --pale: #eeeaff;
    --ink: #070817;
    --white: #ffffff;
    --panel-line: rgba(123, 99, 255, 0.28);
}

* {
    box-sizing: border-box;
}

html {
    font-family: "Quicksand", sans-serif;
    background-color: #0a0322;
    scrollbar-width: thin;
    scrollbar-color: #6d49eb #ebe9fe;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #ebe9fe;
}

::-webkit-scrollbar-thumb {
    border: 2px solid #ebe9fe;
    border-radius: 100px;
    background: linear-gradient(180deg, #7a5af8 0%, #4a1fb8 100%);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #694bdc 0%, #3b258f 100%);
}

body {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    margin: 0;
    overflow-x: clip;
    background: transparent;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 100vh;
    height: 100svh;
    z-index: -1;
    background-color: #0a0322;
    background-image: linear-gradient(rgba(10, 3, 34, 0.6), rgba(10, 3, 34, 0.6)), url("assets/fondo.png");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    pointer-events: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.site-header {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.header-bar {
    position: relative;
    overflow: hidden;
    width: min(1460px, 100%);
    height: 64px;
    min-height: 64px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 0;
    border-radius: 100px;
    background: #ebe9fe;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.header-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        #c6bffe 10%,
        rgba(198, 191, 254, 0) 70%
    );
    pointer-events: none;
}

.header-bar > * {
    position: relative;
    z-index: 1;
}

.brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    flex: 0 0 auto;
    border-radius: 12px;
    padding-left: 4px;
}

.brand-logo {
    display: block;
    width: 235px;
    height: auto;
}

.header-bar .brand-logo {
    transform: translateY(0.5px);
}

.brand:focus-visible,
.desktop-menu a:focus-visible,
.desktop-cta:focus-visible,
.menu-toggle:focus-visible,
.menu-close:focus-visible,
.mobile-links a:focus-visible,
.mobile-cta:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
}

.brand-crop {
    position: relative;
    display: block;
    width: 150px;
    height: 44px;
    overflow: hidden;
    border-radius: 0;
    background: transparent;
}

.brand-crop img {
    position: absolute;
    top: -18px;
    left: -31px;
    width: 435px;
    height: 89px;
    max-width: none;
    mix-blend-mode: darken;
}

.desktop-menu {
    position: absolute;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-left: 0;
    text-align: center;
    transform: translateX(-50%);
}

.desktop-menu a {
    position: relative;
    padding: 12px 0;
    color: #050723;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    transition: color 180ms ease;
}

.desktop-menu a::after {
    content: none;
}

.desktop-menu a:hover,
.desktop-menu a:active,
.desktop-menu a.is-active,
.mobile-links a:active,
.mobile-links a.is-active {
    color: #6c4de7;
    transform: none;
}

.desktop-menu a:hover::after {
    transform: none;
}

.desktop-cta,
.mobile-cta {
    color: #EFEEFD;
    font-weight: 600;
    text-decoration: none;
    background: linear-gradient(180deg, #7a5af8 0%, #4a1fb8 100%);
    box-shadow: none;
    text-align: center;
    transition: box-shadow 220ms ease-out;
}

.desktop-cta {
    flex: 0 0 auto;
    width: 150px;
    height: 46px;
    margin: 9px;
    padding: 5px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    font-size: 16px;
    white-space: nowrap;
}

.desktop-cta:hover,
.desktop-cta:active,
.mobile-cta:hover,
.mobile-cta:active {
    transform: none;
    box-shadow: inset 0 0 0 100px rgba(0, 0, 0, 0.22);
    color: #EFEEFD;
    background: linear-gradient(180deg, #7a5af8 0%, #4a1fb8 100%);
}

.menu-toggle {
    position: relative;
    display: none;
    width: 58px;
    height: 58px;
    padding: 0;
    flex: 0 0 58px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(180deg, #7a5af8 0%, #4a1fb8 100%);
    box-shadow: none;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.menu-toggle:hover {
    transform: none;
    box-shadow: none;
}

.menu-toggle span {
    position: absolute;
    left: 50%;
    width: 25px;
    height: 3px;
    border-radius: 3px;
    background: #efeeff;
    transform: translateX(-50%);
}

.menu-toggle span:nth-child(1) {
    top: 12px;
}

.menu-toggle span:nth-child(2) {
    top: 18px;
}

.menu-toggle span:nth-child(3) {
    top: 24px;
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: start center;
    padding: 10px;
    overflow-y: auto;
    background: rgba(13, 8, 35, 0.72);
    backdrop-filter: blur(9px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 220ms ease, visibility 220ms ease;
}

.mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-panel {
    width: 100%;
    margin-top: 0;
    overflow: hidden;
    border: 1px solid var(--panel-line);
    border-radius: 42px;
    background: #080918;
    box-shadow: 0 28px 70px rgba(6, 3, 24, 0.55), 0 0 35px rgba(105, 73, 235, 0.15);
    transform: translateY(-18px) scale(0.98);
    transition: transform 220ms ease;
}

.mobile-menu.is-open .mobile-panel {
    transform: translateY(0) scale(1);
}

.mobile-panel-header {
    position: relative;
    min-height: 92px;
    padding: 14px 16px 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--pale);
    border-bottom: 1px solid var(--panel-line);
    border-radius: 42px 42px 0 0;
}

.mobile-panel-header .brand {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(50% - 4px);
    padding-left: 0;
    transform: translateX(-50%);
}

.mobile-panel-header .brand-logo {
    width: 200px;
}

.menu-close {
    position: relative;
    margin-left: auto;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border: 0;
    border-radius: 22px;
    background: linear-gradient(180deg, #7a5af8 0%, #4a1fb8 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -6px 12px rgba(31, 10, 105, 0.16);
    cursor: pointer;
    transition: background 180ms ease;
}

.menu-close:hover {
    transform: none;
    background: linear-gradient(180deg, #6548d5 0%, #39248d 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 -6px 12px rgba(31, 10, 105, 0.18);
}

.menu-close span {
    position: absolute;
    top: 27px;
    left: 16px;
    width: 26px;
    height: 3px;
    border-radius: 3px;
    background: var(--white);
}

.menu-close span:first-child {
    transform: rotate(45deg);
}

.menu-close span:last-child {
    transform: rotate(-45deg);
}

.mobile-links {
    padding: 24px 18px 12px;
    display: grid;
    gap: 5px;
}

.mobile-links a {
    display: block;
    padding: 13px 16px;
    border: 1px solid transparent;
    border-radius: 14px;
    color: #f7f5ff;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.mobile-links a:hover {
    transform: translateX(3px);
    border-color: rgba(119, 83, 246, 0.45);
    background: linear-gradient(90deg, rgba(122, 53, 247, 0.17), rgba(71, 124, 245, 0.15));
    box-shadow: inset 0 0 18px rgba(95, 70, 244, 0.08);
}

.mobile-cta {
    display: block;
    margin: 4px 18px 18px;
    padding: 18px 24px;
    border-radius: 100px;
    font-size: 19px;
    text-align: center;
}

body.menu-open {
    overflow: hidden;
}

.hero {
    position: relative;
    width: min(1460px, calc(100% - 40px));
    min-height: calc(100vh - 104px);
    margin: 0 auto;
    padding: 105px 45px 50px;
    display: block;
    overflow: visible;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(900px, 68%);
    transform: translate(15px, -10px);
}

.hero h1 {
    max-width: 850px;
    margin: 0;
    color: #EFEEFD;
    font-size: clamp(56px, 5vw, 84px);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -0.035em;
    animation: hero-title-reveal 2000ms ease 0ms both;
}

.hero h1 span {
    display: block;
    white-space: nowrap;
}

.hero-details {
    margin-top: 68px;
    display: grid;
    grid-template-columns: 280px minmax(280px, 540px);
    align-items: center;
    gap: 42px;
    transform: none;
}

.hero-details p {
    margin: 0;
    color: #EFEEFD;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.48;
    animation: hero-reference-rise 1250ms ease 0ms both;
}

.hero-details p span {
    display: block;
    white-space: nowrap;
}

.hero-cta {
    min-height: 66px;
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    color: #EFEEFD;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    background: linear-gradient(180deg, #7a5af8 0%, #4a1fb8 100%);
    transition: box-shadow 220ms ease-out;
    animation: hero-reference-rise 1250ms ease 0ms both;
}

.hero-cta:hover,
.hero-cta:active {
    color: #EFEEFD;
    box-shadow: inset 0 0 0 100px rgba(0, 0, 0, 0.22);
}

.hero-image {
    position: absolute;
    right: 65px;
    bottom: 190px;
    z-index: 1;
    width: min(100%, 400px);
    height: auto;
    object-fit: contain;
    object-position: right bottom;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
    animation: hero-image-enter 2000ms cubic-bezier(0.22, 1, 0.36, 1) 100ms both;
}

.services-showcase {
    width: min(1460px, calc(100% - 40px));
    margin: -250px auto 70px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid rgba(122, 90, 248, 0.28);
    border-radius: 24px;
    background: linear-gradient(180deg, #c6bffe 0%, #ebe9fe 58%, #f2f0ff 100%);
    box-shadow: 0 18px 55px rgba(3, 1, 18, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.75);
    animation: hero-details-rise 900ms ease-out 450ms both;
}

.service-card {
    min-width: 0;
    padding: 14px 14px 16px;
    text-align: center;
}

.service-card + .service-card {
    border-left: 1px solid rgba(74, 48, 198, 0.16);
}

.service-icon {
    width: 46px;
    height: 46px;
    margin: 0 auto 8px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(122, 90, 248, 0.5);
    border-radius: 14px;
    color: #EFEEFD;
    background: linear-gradient(180deg, #7a5af8 0%, #4a1fb8 100%);
    box-shadow: inset 0 1px 0 rgba(239, 238, 253, 0.24), 0 9px 24px rgba(74, 31, 184, 0.28);
}

.service-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-card h2 {
    margin: 0 0 8px;
    color: #070817;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.08;
}

.service-card p {
    margin: 0;
    color: rgba(7, 8, 23, 0.72);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
}

@keyframes hero-image-enter {
    from {
        opacity: 0;
        transform: translateX(calc(100% + 65px));
    }

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

@keyframes hero-title-reveal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes hero-reference-rise {
    from {
        opacity: 0;
        transform: translate3d(0, 100%, 0);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes hero-details-rise {
    from {
        opacity: 0;
        transform: translateY(45px);
    }

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

@media (max-width: 1180px) {
    .hero {
        padding-right: 30px;
        padding-left: 30px;
    }

    .hero-content {
        width: 68%;
    }

    .hero-image {
        right: 30px;
        width: min(42%, 500px);
    }

    .hero h1 {
        font-size: clamp(54px, 5.5vw, 72px);
    }

    .hero-details {
        grid-template-columns: 220px minmax(260px, 1fr);
        gap: 28px;
    }

    .hero-details p {
        font-size: 18px;
    }

    .desktop-menu {
        gap: 14px;
    }

    .desktop-menu a {
        font-size: 14px;
    }

    .desktop-cta {
        padding-inline: 18px;
    }

    .services-showcase {
        margin: 40px auto 60px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-card + .service-card {
        border-left: 0;
    }

    .service-card:nth-child(even) {
        border-left: 1px solid rgba(74, 48, 198, 0.16);
    }

    .service-card:nth-child(n + 3) {
        border-top: 1px solid rgba(74, 48, 198, 0.16);
    }
}

@media (max-width: 1024px) {
    .site-header {
        padding: 10px;
    }

    .header-bar {
        height: 54px;
        min-height: 54px;
        padding: 0 5px 0 0;
        gap: 0;
    }

    .brand-logo {
        width: 190px;
    }

    .header-bar .brand {
        position: absolute;
        left: 50%;
        padding-left: 0;
        transform: translateX(-50%);
    }

    .desktop-menu,
    .desktop-cta {
        display: none;
    }

    .menu-toggle {
        display: flex;
        margin-left: auto;
        margin-right: 3px;
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .menu-toggle span {
        width: 15px;
        height: 2px;
    }

    .hero {
        min-height: auto;
        padding-top: 76px;
        grid-template-columns: 1fr;
    }

    .hero-content {
        width: 100%;
        max-width: 760px;
        transform: none;
    }

    .hero-image {
        position: relative;
        right: auto;
        bottom: auto;
        width: min(72vw, 540px);
        margin-top: 36px;
        justify-self: center;
    }
}

@media (max-width: 700px) {
    .hero {
        width: calc(100% - 20px);
        padding: 62px 10px 36px;
    }

    .hero h1 {
        font-size: clamp(38px, 11vw, 52px);
        line-height: 1.08;
    }

    .hero-details {
        margin-top: 42px;
        grid-template-columns: 1fr;
        gap: 24px;
        transform: none;
    }

    .hero-cta {
        width: 100%;
    }

    .hero-details p {
        font-size: 18px;
    }

    .hero-details p span {
        display: inline;
        white-space: normal;
    }

    .hero-image {
        width: min(94vw, 450px);
    }

    .services-showcase {
        width: calc(100% - 20px);
        grid-template-columns: 1fr;
        border-radius: 20px;
    }

    .service-card {
        padding: 22px 20px 24px;
    }

    .service-card:nth-child(even) {
        border-left: 0;
    }

    .service-card:nth-child(n + 2) {
        border-top: 1px solid rgba(74, 48, 198, 0.16);
    }
}

@media (max-width: 420px) {
    .brand-logo {
        width: 190px;
    }

    .brand-crop {
        width: 135px;
    }

    .brand {
        padding-left: 4px;
    }

    .menu-toggle {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .mobile-panel-header {
        padding-left: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-delay: 0ms !important;
    }
}
