/* =========================================================
   VANTA COMPANY
   GLOBAL STYLES
========================================================= */


/* =========================================================
   1. VARIABLES
========================================================= */

:root {
    --bg: #070708;
    --bg-soft: #0d0d0f;
    --surface: #111113;
    --surface-light: #18181b;

    --text: #f5f5f5;
    --text-soft: #a3a3a8;
    --text-muted: #727278;

    --border: rgba(255, 255, 255, 0.10);
    --border-strong: rgba(255, 255, 255, 0.18);

    --accent: #e42a3a;
    --accent-light: #ff5262;

    --white: #ffffff;
    --black: #000000;

    --container: 1240px;

    --radius-small: 14px;
    --radius-medium: 24px;
    --radius-large: 34px;

    --header-height: 82px;

    --transition-fast: 180ms ease;
    --transition: 320ms cubic-bezier(0.22, 1, 0.36, 1);
    --transition-slow: 700ms cubic-bezier(0.22, 1, 0.36, 1);
}


/* =========================================================
   2. RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
    background: var(--bg);
}


body {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 50% -20%,
            rgba(228, 42, 58, 0.09),
            transparent 35%
        ),
        var(--bg);

    color: var(--text);

    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.5;

    overflow-x: hidden;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}


body.menu-open {
    overflow: hidden;
}


img {
    display: block;
    max-width: 100%;
}


button,
input,
textarea,
select {
    font: inherit;
}


button {
    border: 0;
}


a {
    color: inherit;
    text-decoration: none;
}


ul,
ol {
    list-style: none;
}


/* =========================================================
   3. GLOBAL CONTAINER
========================================================= */

.section-container,
.header-container,
.footer-container {
    width: min(
        calc(100% - 48px),
        var(--container)
    );

    margin-inline: auto;
}


/* =========================================================
   4. HEADER
========================================================= */

.site-header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    height: var(--header-height);

    z-index: 1000;

    background:
        rgba(7, 7, 8, 0.72);

    border-bottom:
        1px solid transparent;

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    transition:
        background var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}


.site-header.scrolled {
    background:
        rgba(7, 7, 8, 0.88);

    border-bottom-color:
        var(--border);

    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.18);
}


.header-container {
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* =========================================================
   5. BRAND
========================================================= */

.brand {
    display: inline-flex;

    align-items: center;
    gap: 12px;

    font-size: 21px;
    font-weight: 700;

    letter-spacing: -0.04em;

    transition:
        opacity var(--transition-fast),
        transform var(--transition-fast);
}


.brand:hover {
    opacity: 0.78;
}


.brand-mark {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    position: relative;

    font-size: 0;

    overflow: hidden;
}


.brand-mark::before,
.brand-mark::after {
    content: "";

    position: absolute;

    width: 23px;
    height: 11px;

    background: var(--white);

    transform: skewX(-28deg);
}


.brand-mark::before {
    top: 7px;
    left: 7px;
}


.brand-mark::after {
    bottom: 7px;
    right: 5px;

    width: 17px;
}


.brand-name {
    color: var(--white);
}


/* =========================================================
   6. DESKTOP NAVIGATION
========================================================= */

.desktop-nav {
    display: flex;

    align-items: center;

    gap: 34px;
}


.desktop-nav a {
    position: relative;

    color: var(--text-soft);

    font-size: 14px;
    font-weight: 500;

    transition:
        color var(--transition-fast);
}


.desktop-nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -7px;

    width: 100%;
    height: 1px;

    background: var(--white);

    transform:
        scaleX(0);

    transform-origin: right;

    transition:
        transform var(--transition);
}


.desktop-nav a:hover {
    color: var(--white);
}


.desktop-nav a:hover::after {
    transform:
        scaleX(1);

    transform-origin: left;
}


/* =========================================================
   7. MOBILE MENU BUTTON
========================================================= */

.menu-button {
    width: 44px;
    height: 44px;

    display: none;

    flex-direction: column;
    align-items: flex-end;
    justify-content: center;

    gap: 5px;

    background: transparent;

    cursor: pointer;
}


.menu-button span {
    display: block;

    width: 25px;
    height: 2px;

    background: var(--white);

    transition:
        transform var(--transition),
        opacity var(--transition),
        width var(--transition);
}


.menu-button span:nth-child(2) {
    width: 18px;
}


.menu-button.active span:nth-child(1) {
    transform:
        translateY(7px)
        rotate(45deg);
}


.menu-button.active span:nth-child(2) {
    opacity: 0;
}


.menu-button.active span:nth-child(3) {
    width: 25px;

    transform:
        translateY(-7px)
        rotate(-45deg);
}


/* =========================================================
   8. MOBILE NAV
========================================================= */

.mobile-nav {
    position: fixed;

    top: var(--header-height);
    left: 0;

    width: 100%;

    padding: 24px;

    display: flex;
    flex-direction: column;

    background:
        rgba(7, 7, 8, 0.96);

    border-bottom:
        1px solid var(--border);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    transform:
        translateY(-120%);

    opacity: 0;

    pointer-events: none;

    transition:
        transform var(--transition),
        opacity var(--transition);
}


.mobile-nav.open {
    transform:
        translateY(0);

    opacity: 1;

    pointer-events: auto;
}


.mobile-nav a {
    padding: 17px 0;

    border-bottom:
        1px solid var(--border);

    color: var(--text);

    font-size: 20px;
    font-weight: 500;
}


.mobile-nav a:last-child {
    border-bottom: 0;
}


/* =========================================================
   9. GENERAL SECTION
========================================================= */

.section {
    position: relative;

    padding-top: 150px;
    padding-bottom: 150px;
}


.section-heading {
    max-width: 850px;

    margin-bottom: 90px;
}


.eyebrow {
    display: inline-block;

    margin-bottom: 22px;

    color: var(--accent);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.18em;
    text-transform: uppercase;
}


.section-heading h2 {
    max-width: 900px;

    font-size: clamp(
        42px,
        6vw,
        78px
    );

    line-height: 0.98;

    letter-spacing: -0.055em;

    font-weight: 700;
}


.section-heading p {
    max-width: 720px;

    margin-top: 30px;

    color: var(--text-soft);

    font-size: clamp(
        18px,
        2vw,
        25px
    );

    line-height: 1.55;
}


/* =========================================================
   10. HERO
========================================================= */

.hero {
    min-height: 100svh;

    position: relative;

    display: flex;
    align-items: center;

    padding:
        calc(var(--header-height) + 70px)
        24px
        90px;

    overflow: hidden;
}


.hero-background {
    position: absolute;

    inset: 0;

    pointer-events: none;
}


.hero-grid {
    position: absolute;

    inset: -10%;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px
        );

    background-size:
        90px 90px;

    mask-image:
        radial-gradient(
            ellipse at center,
            black 0%,
            transparent 72%
        );

    opacity: 0.5;

    transform:
        perspective(900px)
        rotateX(58deg)
        scale(1.4);

    transform-origin: center bottom;
}


.hero-glow {
    position: absolute;

    border-radius: 50%;

    filter: blur(90px);

    opacity: 0.45;

    animation:
        glowFloat 8s ease-in-out infinite alternate;
}


.hero-glow-one {
    width: 420px;
    height: 420px;

    top: 8%;
    left: 10%;

    background:
        rgba(228, 42, 58, 0.22);
}


.hero-glow-two {
    width: 350px;
    height: 350px;

    right: 5%;
    bottom: 8%;

    background:
        rgba(112, 34, 55, 0.22);

    animation-delay:
        -3s;
}


@keyframes glowFloat {

    from {
        transform:
            translate3d(
                0,
                0,
                0
            )
            scale(1);
    }

    to {
        transform:
            translate3d(
                20px,
                -25px,
                0
            )
            scale(1.08);
    }
}


.hero-content {
    position: relative;

    z-index: 2;

    width: min(
        100%,
        1050px
    );

    margin-inline: auto;

    text-align: center;
}


.hero-content .eyebrow {
    margin-bottom: 28px;
}


.hero h1 {
    max-width: 1000px;

    margin-inline: auto;

    font-size: clamp(
        48px,
        8vw,
        104px
    );

    line-height: 0.94;

    letter-spacing: -0.065em;

    font-weight: 700;
}


.hero-content > p {
    max-width: 700px;

    margin:
        32px auto 0;

    color: var(--text-soft);

    font-size: clamp(
        18px,
        2.2vw,
        24px
    );

    line-height: 1.5;
}


.hero-actions {
    display: flex;

    justify-content: center;
    align-items: center;

    flex-wrap: wrap;

    gap: 14px;

    margin-top: 42px;
}


/* =========================================================
   11. BUTTONS
========================================================= */

.button {
    min-height: 58px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding:
        0 30px;

    border-radius: 999px;

    font-size: 16px;
    font-weight: 600;

    cursor: pointer;

    transition:
        transform var(--transition),
        background var(--transition),
        color var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}


.button:hover {
    transform:
        translateY(-3px);
}


.button:active {
    transform:
        translateY(-1px)
        scale(0.98);
}


.button-primary {
    color: var(--black);

    background: var(--white);

    box-shadow:
        0 12px 40px
        rgba(255, 255, 255, 0.08);
}


.button-primary:hover {
    box-shadow:
        0 18px 50px
        rgba(255, 255, 255, 0.15);
}


.button-secondary {
    color: var(--white);

    background:
        rgba(255, 255, 255, 0.045);

    border:
        1px solid
        rgba(255, 255, 255, 0.22);

    backdrop-filter:
        blur(10px);

    -webkit-backdrop-filter:
        blur(10px);
}


.button-secondary:hover {
    background:
        rgba(255, 255, 255, 0.09);

    border-color:
        rgba(255, 255, 255, 0.38);
}


.hero-services {
    display: flex;

    justify-content: center;
    align-items: center;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 58px;
}


.hero-services span {
    padding:
        10px 17px;

    border:
        1px solid
        var(--border);

    border-radius: 999px;

    color: var(--text-muted);

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 0.12em;
}


/* =========================================================
   12. PROJECTS
========================================================= */

.projects-section {
    background:
        linear-gradient(
            180deg,
            transparent,
            rgba(255, 255, 255, 0.012)
        );
}


.projects-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 70px;
}


.project-card {
    min-width: 0;
}


.device-frame {
    position: relative;

    width: 100%;

    padding: 8px;

    border:
        1px solid
        rgba(255, 255, 255, 0.18);

    border-radius:
        18px;

    background:
        linear-gradient(
            145deg,
            #242428,
            #09090a
        );

    box-shadow:
        0 40px 80px
        rgba(0, 0, 0, 0.45);
}


.device-frame::after {
    content: "";

    position: absolute;

    left: 18%;

    right: 18%;

    bottom: -18px;

    height: 18px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.13),
            transparent
        );

    filter: blur(8px);
}


.device-topbar {
    height: 24px;

    display: flex;

    align-items: center;

    gap: 5px;

    padding-left: 8px;
}


.device-topbar span {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.22);
}


.screen {
    position: relative;

    height: 420px;

    overflow: hidden;

    border-radius:
        10px;

    background: #111;
}


.mockup-scroll {
    position: absolute;

    inset: 0;

    overflow: hidden;
}


.mockup-content {
    min-height: 100%;

    background:
        linear-gradient(
            145deg,
            #0e3040,
            #006e83 38%,
            #1c9aaf 70%,
            #0a222c
        );

    color: white;

    animation:
        mockupScroll 12s
        cubic-bezier(0.4, 0, 0.6, 1)
        infinite alternate;
}

/* =========================================================
   VANTA — MOCKUP PREMIUM POLISH
   ========================================================= */

.mockup {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.10);

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.35),
        0 8px 25px rgba(0, 0, 0, 0.20);

    background: #08090b;

    transition:
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.5s ease;
}

/* Reflejo superior muy sutil */

.mockup::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;

    background:
        linear-gradient(
            115deg,
            rgba(255, 255, 255, 0.08),
            transparent 28%,
            transparent 72%,
            rgba(255, 255, 255, 0.025)
        );

    opacity: 0.45;
}

/* Efecto premium al pasar el mouse */

.mockup:hover {
    transform: translateY(-8px);

    border-color: rgba(255, 255, 255, 0.18);

    box-shadow:
        0 35px 90px rgba(0, 0, 0, 0.45),
        0 12px 35px rgba(0, 0, 0, 0.25);
}

/* La pantalla mantiene su contenido por debajo del reflejo */

.mockup-screen {
    position: relative;
    z-index: 1;
}

/* En móvil evitamos un hover exagerado */

@media (max-width: 768px) {

    .mockup {
        border-radius: 14px;

        box-shadow:
            0 18px 45px rgba(0, 0, 0, 0.30);
    }

    .mockup:hover {
        transform: none;
    }

}


.mockup-two .mockup-content {
    background:
        linear-gradient(
            145deg,
            #e6e0d2,
            #c6b79f 35%,
            #725f4e 75%,
            #29241f
        );

    color: #181614;

    animation:
        mockupScroll 14s
        cubic-bezier(0.4, 0, 0.6, 1)
        infinite alternate-reverse;
}


@keyframes mockupScroll {

    0% {
        transform:
            translateY(0);
    }

    45% {
        transform:
            translateY(0);
    }

    100% {
        transform:
            translateY(
                -44%
            );
    }
}


.mockup-nav {
    height: 60px;

    display: flex;

    align-items: center;

    padding:
        0 30px;

    background:
        rgba(0, 0, 0, 0.18);

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 0.04em;
}


.mockup-hero {
    min-height: 390px;

    padding:
        70px 40px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: flex-start;
}


.mockup-hero small {
    margin-bottom: 12px;

    font-size: 10px;

    letter-spacing: 0.15em;

    opacity: 0.7;
}


.mockup-hero h3 {
    max-width: 500px;

    font-size:
        clamp(30px, 4vw, 56px);

    line-height: 0.96;

    letter-spacing: -0.055em;
}


.mockup-hero p {
    margin-top: 18px;

    font-size: 15px;

    opacity: 0.75;
}


.mockup-button {
    margin-top: 28px;

    padding:
        12px 20px;

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.9);

    color: #111;

    font-size: 12px;
    font-weight: 700;
}


.mockup-block {
    height: 300px;

    margin:
        20px 30px;

    border-radius:
        18px;

    background:
        rgba(255, 255, 255, 0.14);

    border:
        1px solid
        rgba(255, 255, 255, 0.16);
}


.mockup-block.small {
    height: 180px;

    margin-bottom:
        80px;
}


.project-info {
    display: flex;

    align-items: baseline;
    justify-content: space-between;

    gap: 20px;

    padding:
        28px 4px 0;
}


.project-info h3 {
    font-size: 24px;

    letter-spacing: -0.04em;
}


.project-info span {
    color: var(--text-muted);

    font-size: 14px;
}


/* =========================================================
   13. SERVICES
========================================================= */

.services-layout {
    display: grid;

    grid-template-columns:
        0.65fr 1.35fr;

    gap: 80px;

    align-items: start;
}


.service-selector {
    position: sticky;

    top:
        calc(
            var(--header-height) + 40px
        );
}


.service-item {
    width: 100%;

    display: grid;

    grid-template-columns: 45px 1fr;

    gap: 18px;

    align-items: center;

    padding:
        25px 0;

    background: transparent;

    color: var(--text-muted);

    border-bottom:
        1px solid
        var(--border);

    text-align: left;

    cursor: pointer;

    transition:
        color var(--transition),
        padding var(--transition);
}


.service-item span {
    font-size: 12px;

    letter-spacing: 0.1em;
}


.service-item strong {
    font-size:
        clamp(20px, 2.5vw, 31px);

    font-weight: 500;

    letter-spacing: -0.04em;
}


.service-item:hover,
.service-item.active {
    color: var(--white);

    padding-left: 10px;
}


.service-item.active strong {
    font-weight: 650;
}


.service-display {
    position: relative;

    min-height: 480px;
}


.service-panel {
    display: none;

    padding:
        60px;

    min-height: 480px;

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius-large);

    background:
        radial-gradient(
            circle at 90% 0%,
            rgba(228, 42, 58, 0.12),
            transparent 35%
        ),
        var(--surface);

    animation:
        panelIn 500ms
        cubic-bezier(0.22, 1, 0.36, 1);
}


.service-panel.active {
    display: block;
}


@keyframes panelIn {

    from {
        opacity: 0;

        transform:
            translateY(15px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}


.service-number {
    color: var(--accent);

    font-size: 12px;

    letter-spacing: 0.15em;
}


.service-panel h3 {
    margin-top: 28px;

    font-size:
        clamp(42px, 6vw, 76px);

    line-height: 0.95;

    letter-spacing: -0.06em;
}


.service-panel p {
    max-width: 620px;

    margin-top: 28px;

    color: var(--text-soft);

    font-size:
        clamp(18px, 2vw, 24px);

    line-height: 1.55;
}


.service-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 9px;

    margin-top: 45px;
}


.service-tags span {
    padding:
        10px 14px;

    border:
        1px solid
        var(--border);

    border-radius: 999px;

    color: var(--text-soft);

    font-size: 12px;
}


/* =========================================================
   14. CONFIGURATOR
========================================================= */

.configurator {
    display: grid;

    grid-template-columns:
        0.7fr 1.3fr;

    gap: 30px;

    padding: 10px;
}


.config-controls {
    padding: 42px;

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius-large);

    background:
        var(--surface);
}


.control-group {
    margin-bottom: 34px;
}


.control-group:last-child {
    margin-bottom: 0;
}


.control-group label {
    display: block;

    margin-bottom: 13px;

    color: var(--text-soft);

    font-size: 14px;
    font-weight: 500;
}


.control-group input[type="text"] {
    width: 100%;

    height: 58px;

    padding:
        0 18px;

    border:
        1px solid
        var(--border);

    border-radius:
        14px;

    outline: none;

    background:
        #0b0b0d;

    color:
        var(--white);

    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}


.control-group input[type="text"]:focus {
    border-color:
        rgba(255, 255, 255, 0.35);

    box-shadow:
        0 0 0 4px
        rgba(255, 255, 255, 0.04);
}


.control-group input::placeholder {
    color:
        var(--text-muted);
}


.option-group {
    display: flex;

    flex-wrap: wrap;

    gap: 9px;
}


.option-button {
    min-height: 44px;

    padding:
        0 17px;

    border:
        1px solid
        var(--border);

    border-radius: 999px;

    background:
        transparent;

    color:
        var(--text-soft);

    cursor: pointer;

    transition:
        color var(--transition-fast),
        background var(--transition-fast),
        border-color var(--transition-fast),
        transform var(--transition-fast);
}


.option-button:hover {
    border-color:
        var(--border-strong);

    color:
        var(--white);
}


.option-button.active {
    background:
        rgba(255, 255, 255, 0.09);

    border-color:
        rgba(255, 255, 255, 0.55);

    color:
        var(--white);
}


.option-button:active {
    transform:
        scale(0.96);
}


.color-control {
    display: flex;

    align-items: center;

    gap: 16px;
}


.color-control input[type="color"] {
    width: 58px;
    height: 58px;

    padding: 0;

    border: 0;

    border-radius: 15px;

    background: transparent;

    overflow: hidden;

    cursor: pointer;
}


.color-control input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}


.color-control input[type="color"]::-webkit-color-swatch {
    border: 0;

    border-radius: 15px;
}


#accentValue {
    color:
        var(--text-soft);

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        monospace;

    font-size: 14px;
}


/* =========================================================
   15. WEBSITE PREVIEW
========================================================= */

.preview-wrapper {
    min-width: 0;
}


.preview-browser {
    overflow: hidden;

    border:
        1px solid
        var(--border-strong);

    border-radius:
        var(--radius-large);

    background:
        #101012;

    box-shadow:
        0 35px 80px
        rgba(0, 0, 0, 0.4);
}


.browser-top {
    height: 44px;

    display: flex;

    align-items: center;

    gap: 7px;

    padding:
        0 18px;

    border-bottom:
        1px solid
        var(--border);
}


.browser-top span {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.18);
}


.website-preview {
    --preview-accent: #e42a3a;

    min-height: 570px;

    padding:
        32px;

    background:
        #080809;

    color:
        #f5f5f5;

    transition:
        background var(--transition),
        color var(--transition);
}


.preview-nav {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;
}


.preview-nav strong {
    font-size: 18px;

    letter-spacing: -0.04em;
}


.preview-links {
    display: flex;

    gap: 22px;

    color:
        rgba(255, 255, 255, 0.55);

    font-size: 11px;
}


.preview-content {
    max-width: 650px;

    padding:
        80px 0 45px;
}


.preview-content > span {
    color:
        var(--preview-accent);

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 0.15em;
}


.preview-content h3 {
    margin-top: 15px;

    font-size:
        clamp(36px, 5vw, 65px);

    line-height: 0.96;

    letter-spacing: -0.06em;
}


.preview-content p {
    max-width: 500px;

    margin-top: 20px;

    color:
        rgba(255, 255, 255, 0.55);

    font-size: 15px;
}


.preview-content button {
    margin-top: 28px;

    min-height: 48px;

    padding:
        0 22px;

    border-radius: 999px;

    background:
        var(--preview-accent);

    color: white;

    font-size: 12px;
    font-weight: 700;

    cursor: default;

    box-shadow:
        0 12px 35px
        color-mix(
            in srgb,
            var(--preview-accent) 30%,
            transparent
        );
}


.preview-cards {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 12px;
}


.preview-cards div {
    height: 110px;

    border-radius:
        14px;

    border:
        1px solid
        rgba(255, 255, 255, 0.10);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.08),
            rgba(255, 255, 255, 0.02)
        );
}


/* =========================================================
   CONFIGURATOR THEMES
========================================================= */

.website-preview.light {
    background:
        #f4eeee;

    color:
        #101010;
}


.website-preview.light .preview-links {
    color:
        rgba(0, 0, 0, 0.5);
}


.website-preview.light .preview-content p {
    color:
        rgba(0, 0, 0, 0.55);
}


.website-preview.light .preview-cards div {
    border-color:
        rgba(0, 0, 0, 0.08);

    background:
        rgba(255, 255, 255, 0.75);
}


.website-preview.glass {
    background:
        linear-gradient(
            135deg,
            #15161b,
            #27232b
        );
}


.website-preview.glass .preview-cards div {
    backdrop-filter:
        blur(15px);

    -webkit-backdrop-filter:
        blur(15px);

    background:
        rgba(255, 255, 255, 0.08);

    border-color:
        rgba(255, 255, 255, 0.18);
}


.website-preview.premium {
    background:
        radial-gradient(
            circle at 80% 15%,
            color-mix(
                in srgb,
                var(--preview-accent) 20%,
                transparent
            ),
            transparent 35%
        ),
        #11100f;
}


.website-preview.tech {
    background:
        linear-gradient(
            135deg,
            #070b10,
            #0b151d
        );

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px
        );

    background-size:
        30px 30px;
}


/* =========================================================
   16. PROCESS
========================================================= */

.process-list {
    border-top:
        1px solid
        var(--border);
}


.process-item {
    display: grid;

    grid-template-columns:
        90px 1fr;

    gap: 45px;

    padding:
        45px 0;

    border-bottom:
        1px solid
        var(--border);

    transition:
        padding var(--transition),
        background var(--transition);
}


.process-item:hover {
    padding-left:
        15px;

    padding-right:
        15px;

    background:
        rgba(255, 255, 255, 0.015);
}


.process-number {
    width: 62px;
    height: 62px;

    display: grid;

    place-items: center;

    border:
        1px solid
        rgba(255, 255, 255, 0.45);

    border-radius: 50%;

    font-size: 13px;
    font-weight: 600;
}


.process-item h3 {
    font-size:
        clamp(26px, 3vw, 40px);

    line-height: 1;

    letter-spacing: -0.045em;
}


.process-item p {
    margin-top: 12px;

    color:
        var(--text-soft);

    font-size:
        clamp(16px, 2vw, 21px);
}


/* =========================================================
   17. BENEFITS
========================================================= */

.benefits-list {
    border-top:
        1px solid
        var(--border);
}


.benefit-item {
    min-height: 125px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding:
        25px 10px 25px 0;

    border-bottom:
        1px solid
        var(--border);

    transition:
        padding var(--transition),
        background var(--transition);
}


.benefit-item:hover {
    padding-left:
        18px;

    padding-right:
        18px;

    background:
        rgba(255, 255, 255, 0.025);
}


.benefit-item h3 {
    font-size:
        clamp(20px, 2.4vw, 29px);

    letter-spacing: -0.035em;
}


.benefit-item p {
    margin-top: 7px;

    color:
        var(--text-soft);

    font-size:
        16px;
}


.benefit-item > span {
    flex: 0 0 auto;

    width: 48px;
    height: 48px;

    display: grid;

    place-items: center;

    border:
        1px solid
        rgba(255, 255, 255, 0.35);

    border-radius: 50%;

    font-size: 20px;
}


/* =========================================================
   18. TESTIMONIALS
========================================================= */

.testimonial-empty {
    min-height: 300px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px dashed
        var(--border);

    border-radius:
        var(--radius-large);

    color:
        var(--text-muted);

    text-align: center;
}


.testimonial-empty p {
    max-width: 500px;

    font-size: 18px;
}


/* =========================================================
   19. FAQ
========================================================= */

.faq-list {
    border-top:
        1px solid
        var(--border);
}


.faq-item {
    border-bottom:
        1px solid
        var(--border);
}


.faq-question {
    width: 100%;

    min-height: 110px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;

    background: transparent;

    color:
        var(--white);

    text-align: left;

    cursor: pointer;
}


.faq-question > span:first-child {
    font-size:
        clamp(19px, 2.5vw, 28px);

    letter-spacing: -0.035em;
}


.faq-icon {
    flex: 0 0 auto;

    color:
        var(--accent);

    font-size: 30px;
    font-weight: 300;

    transition:
        transform var(--transition);
}


.faq-item.open .faq-icon {
    transform:
        rotate(45deg);
}


.faq-answer {
    display: grid;

    grid-template-rows: 0fr;

    transition:
        grid-template-rows var(--transition);
}


.faq-answer p {
    overflow: hidden;

    color:
        var(--text-soft);

    font-size: 17px;

    line-height: 1.7;

    max-width: 760px;

    opacity: 0;

    transition:
        opacity var(--transition);
}


.faq-item.open .faq-answer {
    grid-template-rows: 1fr;

    padding-bottom: 30px;
}


.faq-item.open .faq-answer p {
    opacity: 1;
}


/* =========================================================
   20. CONTACT FORM
========================================================= */

.contact-form {
    max-width: 900px;

    padding:
        50px;

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius-large);

    background:
        var(--surface);
}


.form-field {
    margin-bottom: 28px;
}


.form-field label {
    display: block;

    margin-bottom: 10px;

    color:
        var(--text-soft);

    font-size: 14px;
}


.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;

    padding:
        16px 18px;

    border:
        1px solid
        var(--border);

    border-radius:
        14px;

    outline: none;

    background:
        #0a0a0c;

    color:
        var(--white);

    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}


.form-field input,
.form-field select {
    height: 58px;
}


.form-field textarea {
    resize: vertical;

    min-height: 150px;
}


.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color:
        rgba(255, 255, 255, 0.35);

    box-shadow:
        0 0 0 4px
        rgba(255, 255, 255, 0.035);
}


.form-field select {
    appearance: none;

    background-image:
        linear-gradient(
            45deg,
            transparent 50%,
            #777 50%
        ),
        linear-gradient(
            135deg,
            #777 50%,
            transparent 50%
        );

    background-position:
        calc(100% - 20px) 25px,
        calc(100% - 15px) 25px;

    background-size:
        5px 5px,
        5px 5px;

    background-repeat:
        no-repeat;
}


.form-field textarea::placeholder,
.form-field input::placeholder {
    color:
        var(--text-muted);
}


.form-submit {
    width: 100%;

    margin-top: 8px;
}


.direct-contact {
    max-width: 700px;

    margin:
        65px auto 0;

    text-align: center;
}


.direct-contact h3 {
    font-size:
        clamp(25px, 4vw, 38px);

    letter-spacing: -0.045em;
}


.direct-contact p {
    margin-top: 14px;

    color:
        var(--text-soft);

    font-size: 17px;
}


.direct-contact .button {
    margin-top: 25px;
}


/* =========================================================
   21. FINAL CTA
========================================================= */

.final-cta {
    padding:
        120px 24px 180px;
}


.final-cta-inner {
    width: min(
        100%,
        1100px
    );

    margin-inline: auto;

    padding:
        100px 50px;

    border:
        1px solid
        rgba(228, 42, 58, 0.14);

    border-radius:
        var(--radius-large);

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(228, 42, 58, 0.22),
            transparent 55%
        ),
        #12090b;

    text-align: center;
}


.final-cta-inner h2 {
    max-width: 900px;

    margin-inline: auto;

    font-size:
        clamp(42px, 7vw, 82px);

    line-height: 0.96;

    letter-spacing: -0.06em;
}


.final-cta-inner > p {
    margin-top: 22px;

    color:
        var(--text-soft);

    font-size:
        clamp(18px, 2.5vw, 25px);
}


/* =========================================================
   22. WHATSAPP FLOAT
========================================================= */

.whatsapp-float {
    position: fixed;

    right: 28px;
    bottom: 28px;

    z-index: 900;

    width: 64px;
    height: 64px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background:
        #25d366;

    color:
        white;

    box-shadow:
        0 0 0 8px
        rgba(37, 211, 102, 0.05),

        0 12px 35px
        rgba(37, 211, 102, 0.25);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}


.whatsapp-float:hover {
    transform:
        translateY(-5px)
        scale(1.04);

    box-shadow:
        0 0 0 12px
        rgba(37, 211, 102, 0.06),

        0 18px 45px
        rgba(37, 211, 102, 0.35);
}


.whatsapp-float span {
    font-size: 28px;
}


/* =========================================================
   23. FOOTER
========================================================= */

.site-footer {
    border-top:
        1px solid
        var(--border);

    padding:
        90px 0 35px;
}


.footer-container {
    display: grid;

    grid-template-columns:
        1.5fr
        repeat(3, 1fr);

    gap: 60px;
}


.footer-brand p {
    max-width: 300px;

    margin-top: 22px;

    color:
        var(--text-soft);

    font-size: 15px;

    line-height: 1.7;
}


.footer-column {
    display: flex;

    flex-direction: column;

    gap: 13px;
}


.footer-column h3 {
    margin-bottom: 10px;

    color:
        var(--white);

    font-size: 13px;

    font-weight: 600;
}


.footer-column a {
    width: fit-content;

    color:
        var(--text-muted);

    font-size: 14px;

    transition:
        color var(--transition-fast);
}


.footer-column a:hover {
    color:
        var(--white);
}


.footer-bottom {
    width: min(
        calc(100% - 48px),
        var(--container)
    );

    margin:
        75px auto 0;

    padding-top:
        25px;

    border-top:
        1px solid
        var(--border);
}


.footer-bottom p {
    color:
        var(--text-muted);

    font-size: 12px;
}


/* =========================================================
   24. TABLET
========================================================= */

@media (max-width: 1000px) {

    .desktop-nav {
        display: none;
    }


    .menu-button {
        display: flex;
    }


    .projects-grid {
        gap: 35px;
    }


    .services-layout {
        grid-template-columns:
            1fr;

        gap: 35px;
    }


    .service-selector {
        position: static;

        display: grid;

        grid-template-columns:
            repeat(3, 1fr);

        gap: 8px;
    }


    .service-item {
        grid-template-columns:
            1fr;

        gap: 8px;

        padding:
            18px;

        border:
            1px solid
            var(--border);

        border-radius:
            16px;
    }


    .service-item:hover,
    .service-item.active {
        padding-left:
            18px;
    }


    .service-display {
        min-height: auto;
    }


    .service-panel {
        min-height: 420px;
    }


    .configurator {
        grid-template-columns:
            1fr;
    }


    .footer-container {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .footer-brand {
        grid-column:
            1 / -1;
    }

}


/* =========================================================
   25. MOBILE
========================================================= */

@media (max-width: 700px) {

    :root {
        --header-height: 70px;
    }


    .section-container,
    .header-container,
    .footer-container {
        width:
            min(
                calc(100% - 32px),
                var(--container)
            );
    }


    .section {
        padding-top:
            105px;

        padding-bottom:
            105px;
    }


    .section-heading {
        margin-bottom:
            55px;
    }


    .section-heading h2 {
        font-size:
            clamp(39px, 12vw, 60px);

        line-height:
            0.98;
    }


    .section-heading p {
        margin-top:
            22px;

        font-size:
            17px;
    }


    /* HERO */

    .hero {
        min-height:
            100svh;

        padding:
            calc(var(--header-height) + 45px)
            16px
            65px;
    }


    .hero h1 {
        font-size:
            clamp(45px, 13vw, 68px);
    }


    .hero-content > p {
        margin-top:
            24px;

        font-size:
            17px;
    }


    .hero-actions {
        flex-direction:
            column;

        width:
            100%;

        margin-top:
            32px;
    }


    .hero-actions .button {
        width:
            min(
                100%,
                320px
            );
    }


    .hero-services {
        margin-top:
            40px;
    }


    .hero-services span {
        font-size:
            9px;
    }


    /* PROJECTS */

    .projects-grid {
        grid-template-columns:
            1fr;

        gap:
            55px;
    }


    .screen {
        height:
            270px;
    }


    .mockup-hero {
        min-height:
            280px;

        padding:
            35px 25px;
    }


    .mockup-hero h3 {
        font-size:
            32px;
    }


    .mockup-nav {
        height:
            45px;

        padding:
            0 18px;
    }


    .project-info {
        padding-top:
            20px;
    }


    .project-info h3 {
        font-size:
            20px;
    }


    /* SERVICES */

    .service-selector {
        grid-template-columns:
            1fr;
    }


    .service-item {
        grid-template-columns:
            35px 1fr;

        align-items:
            center;

        padding:
            16px;
    }


    .service-item:hover,
    .service-item.active {
        padding-left:
            16px;
    }


    .service-panel {
        min-height:
            390px;

        padding:
            32px 26px;
    }


    .service-panel h3 {
        margin-top:
            20px;

        font-size:
            52px;
    }


    .service-panel p {
        margin-top:
            20px;

        font-size:
            17px;
    }


    /* CONFIGURATOR */

    .configurator {
        padding:
            0;
    }


    .config-controls {
        padding:
            28px 22px;
    }


    .website-preview {
        min-height:
            500px;

        padding:
            23px;
    }


    .preview-links {
        display:
            none;
    }


    .preview-content {
        padding-top:
            70px;
    }


    .preview-content h3 {
        font-size:
            42px;
    }


    .preview-cards {
        gap:
            7px;
    }


    .preview-cards div {
        height:
            80px;
    }


    /* PROCESS */

    .process-item {
        grid-template-columns:
            55px 1fr;

        gap:
            22px;

        padding:
            35px 0;
    }


    .process-number {
        width:
            48px;

        height:
            48px;
    }


    .process-item p {
        font-size:
            16px;
    }


    /* BENEFITS */

    .benefit-item {
        min-height:
            105px;
    }


    .benefit-item > span {
        width:
            42px;

        height:
            42px;
    }


    /* FAQ */

    .faq-question {
        min-height:
            90px;

        gap:
            15px;
    }


    .faq-question > span:first-child {
        font-size:
            18px;
    }


    .faq-icon {
        font-size:
            26px;
    }


    /* CONTACT */

    .contact-form {
        padding:
            28px 20px;
    }


    /* FINAL CTA */

    .final-cta {
        padding:
            80px 16px 110px;
    }


    .final-cta-inner {
        padding:
            70px 24px;

        border-radius:
            26px;
    }


    .final-cta-inner h2 {
        font-size:
            48px;
    }


    /* WHATSAPP */

    .whatsapp-float {
        right:
            18px;

        bottom:
            18px;

        width:
            58px;

        height:
            58px;
    }


    .whatsapp-float span {
        font-size:
            24px;
    }


    /* FOOTER */

    .site-footer {
        padding-top:
            70px;
    }


    .footer-container {
        grid-template-columns:
            1fr 1fr;

        gap:
            45px 30px;
    }


    .footer-brand {
        grid-column:
            1 / -1;
    }


    .footer-bottom {
        width:
            min(
                calc(100% - 32px),
                var(--container)
            );

        margin-top:
            55px;
    }

}


/* =========================================================
   26. VERY SMALL DEVICES
========================================================= */

@media (max-width: 400px) {

    .hero h1 {
        font-size:
            43px;
    }


    .section-heading h2 {
        font-size:
            39px;
    }


    .service-panel h3 {
        font-size:
            45px;
    }


    .final-cta-inner h2 {
        font-size:
            42px;
    }


    .website-preview {
        padding:
            18px;
    }


    .preview-content h3 {
        font-size:
            37px;
    }


    .footer-container {
        grid-template-columns:
            1fr;
    }

}


/* =========================================================
   27. REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior:
            auto;
    }


    *,
    *::before,
    *::after {
        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;
    }

}

/* =========================================================
   VANTA — SCROLL REVEAL ANIMATIONS
   ========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition:
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-35px);
    transition:
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(35px);
    transition:
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Entrada escalonada para grupos */

.reveal-delay-1 {
    transition-delay: 0.08s;
}

.reveal-delay-2 {
    transition-delay: 0.16s;
}

.reveal-delay-3 {
    transition-delay: 0.24s;
}

.reveal-delay-4 {
    transition-delay: 0.32s;
}

/* Respeta usuarios que prefieren menos movimiento */

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* =========================================================
   VANTA — TESTIMONIALS PREMIUM
   ========================================================= */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 55px;
}

.testimonial-card {
    position: relative;

    padding: 30px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.018)
        );

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 20px 55px rgba(0, 0, 0, 0.20);

    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.45s ease,
        box-shadow 0.45s ease;
}

.testimonial-card::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.25),
            transparent
        );

    opacity: 0.7;
}

.testimonial-card:hover {
    transform: translateY(-7px);

    border-color: rgba(255, 255, 255, 0.18);

    box-shadow:
        0 30px 75px rgba(0, 0, 0, 0.35);
}


/* AUTOR */

.testimonial-top {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 22px;
}

.testimonial-avatar {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.07);

    border: 1px solid rgba(255, 255, 255, 0.12);

    font-size: 19px;

    filter: grayscale(1);
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.testimonial-author strong {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.testimonial-author span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.48);
}


/* ESTRELLAS */

.testimonial-stars {
    margin-bottom: 17px;

    font-size: 12px;
    letter-spacing: 3px;

    color: rgba(255, 255, 255, 0.78);
}


/* RESEÑA */

.testimonial-text {
    margin: 0;

    color: rgba(255, 255, 255, 0.72);

    font-size: 15px;
    line-height: 1.75;

    font-weight: 400;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .testimonial-card {
        padding: 26px;
    }

}

@media (max-width: 600px) {

    .testimonials-grid {
        margin-top: 38px;
    }

    .testimonial-card {
        padding: 24px;
        border-radius: 16px;
    }

    .testimonial-text {
        font-size: 14px;
        line-height: 1.7;
    }

}

/* =========================================================
   VANTA — TESTIMONIALS INFINITE CAROUSEL
   ========================================================= */

.testimonials-section {
    overflow: hidden;
}

.testimonials-section .section-container {
    position: relative;
    overflow: hidden;
}


/* CONTENEDOR */

.testimonials-grid {
    display: flex;
    flex-wrap: nowrap;

    width: max-content;

    gap: 20px;

    margin-top: 55px;

    animation:
        testimonialsInfiniteScroll 34s linear infinite;

    will-change: transform;
}


/* TARJETAS */

.testimonial-card {
    flex: 0 0 370px;
    width: 370px;
}


/* ANIMACIÓN */

@keyframes testimonialsInfiniteScroll {

    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform:
            translate3d(
                calc(-1 * var(--testimonial-distance)),
                0,
                0
            );
    }

}


/* PAUSA AL INTERACTUAR */

.testimonials-grid:hover {
    animation-play-state: paused;
}


/* =========================================================
   DESVANECIDO LATERAL
   ========================================================= */

.testimonials-section .section-container::before {
    content: "";

    position: absolute;

    z-index: 5;

    top: 0;
    bottom: 0;

    left: 0;

    width: 90px;

    pointer-events: none;

    background:
        linear-gradient(
            to right,
            #070708 0%,
            rgba(7, 7, 8, 0.85) 25%,
            rgba(7, 7, 8, 0) 100%
        );
}


.testimonials-section .section-container::after {
    content: "";

    position: absolute;

    z-index: 5;

    top: 0;
    bottom: 0;

    right: 0;

    width: 90px;

    pointer-events: none;

    background:
        linear-gradient(
            to left,
            #070708 0%,
            rgba(7, 7, 8, 0.85) 25%,
            rgba(7, 7, 8, 0) 100%
        );
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .testimonials-grid {
        gap: 16px;

        animation-duration: 30s;
    }

    .testimonial-card {
        flex: 0 0 330px;
        width: 330px;
    }

    .testimonials-section .section-container::before,
    .testimonials-section .section-container::after {
        width: 55px;
    }

}


@media (max-width: 600px) {

    .testimonials-grid {
        gap: 14px;

        margin-top: 38px;

        animation-duration: 26s;
    }

    .testimonial-card {
        flex: 0 0 82vw;
        width: 82vw;
    }

    .testimonials-section .section-container::before,
    .testimonials-section .section-container::after {
        width: 35px;
    }

}

.whatsapp-icon {
    width: 34px;
    height: 34px;
    display: block;

    fill: #ffffff;

    filter:
        drop-shadow(0 0 3px rgba(255, 255, 255, 0.95))
        drop-shadow(0 0 7px rgba(255, 255, 255, 0.75))
        drop-shadow(0 0 14px rgba(255, 255, 255, 0.45));
}