/* =========================================================
   AVANTIANEXT
   Marketing digital orientado a resultados.
   ========================================================= */


/* =========================
   RESET
   ========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, Arial, Helvetica, sans-serif;
    background: #111318;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}


/* =========================
   VARIABLES
   ========================= */

:root {
    --black: #111318;
    --black-soft: #17191f;
    --black-light: #1d2027;

    --white: #ffffff;
    --grey: #a7abb5;
    --grey-light: #d7dae0;

    --blue: #2563eb;
    --blue-light: #3b82f6;

    --border: rgba(255, 255, 255, 0.10);

    --container: 1180px;
}


/* =========================
   GLOBAL
   ========================= */

.container {
    width: min(var(--container), calc(100% - 48px));
    margin: 0 auto;
}

.section {
    padding: 140px 0;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 22px;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;

    color: #6ea0ff;
}

h1,
h2,
h3,
h4 {
    line-height: 1.08;
    letter-spacing: -0.035em;
}

h2 {
    font-size: clamp(42px, 5vw, 72px);
    max-width: 760px;
}

p {
    color: var(--grey);
}


/* =========================
   HEADER
   ========================= */

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;

    z-index: 100;

    padding: 28px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.logo span {
    color: var(--blue-light);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav a {
    font-size: 14px;
    color: #d7dae0;

    transition:
        color 0.25s ease,
        opacity 0.25s ease;
}

.main-nav a:hover {
    color: #ffffff;
}

.main-nav .nav-cta {
    padding: 11px 18px;

    background: #ffffff;
    color: #111318;

    border-radius: 7px;

    font-weight: 700;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease,
        opacity 0.25s ease;
}

.main-nav .nav-cta:hover {
    background: #2563eb;
    color: #ffffff;
    transform: translateY(-2px);
    opacity: 1;
}


/* =========================
   HERO
   ========================= */

.hero {
    min-height: 850px;

    display: flex;
    align-items: center;

    position: relative;

    background:
        radial-gradient(
            circle at 75% 35%,
            rgba(37, 99, 235, 0.20),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #111318 0%,
            #13161c 55%,
            #111318 100%
        );
}

.hero::before {
    content: "";

    position: absolute;
    inset: 0;

    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: 80px 80px;

    mask-image: linear-gradient(
        to bottom,
        black,
        transparent 85%
    );

    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;

    padding-top: 80px;
}

.hero h1 {
    max-width: 1050px;

    font-size: clamp(
        64px,
        8vw,
        112px
    );

    font-weight: 800;

    letter-spacing: -0.065em;

    line-height: 0.94;
}

.hero h1 span {
    display: block;
    color: var(--blue-light);
}

.hero-text {
    max-width: 680px;

    margin-top: 34px;

    font-size: 19px;
    line-height: 1.7;

    color: #b5bac5;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-top: 42px;
}


/* =========================
   BUTTONS
   ========================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 52px;

    padding: 0 23px;

    border-radius: 7px;

    font-size: 14px;
    font-weight: 700;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--blue);
    color: #ffffff;
}

.button-primary:hover {
    background: var(--blue-light);
}

.button-secondary {
    border: 1px solid var(--border);
    color: #ffffff;
    background: rgba(255,255,255,0.025);
}

.button-secondary:hover {
    background: rgba(255,255,255,0.07);
}


/* =========================
   CAPABILITIES
   ========================= */

.capabilities {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);

    background: #15171c;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}

.capabilities-grid div {
    padding: 28px 12px;

    text-align: center;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: #8f95a1;

    border-right: 1px solid var(--border);

    transition:
        color 0.25s ease,
        background 0.25s ease;
}

.capabilities-grid div:first-child {
    border-left: 1px solid var(--border);
}

.capabilities-grid div:hover {
    color: #ffffff;
    background: rgba(37, 99, 235, 0.06);
}


/* =========================
   TWO COLUMN
   ========================= */

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;

    align-items: start;
}

.section-text {
    padding-top: 45px;
}

.section-text p {
    max-width: 550px;

    margin-bottom: 25px;

    font-size: 18px;
    line-height: 1.8;
}


/* =========================
   SERVICES
   ========================= */

.services-section {
    background: #f5f6f8;
    color: #111318;
}

.services-section p {
    color: #6f737c;
}

.section-heading {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;

    gap: 80px;

    align-items: end;

    margin-bottom: 70px;
}

.section-heading > p {
    font-size: 17px;
    line-height: 1.7;
}

.services-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    border-top: 1px solid #dfe1e6;
    border-left: 1px solid #dfe1e6;
}

.service-card {
    min-height: 340px;

    padding: 38px;

    border-right: 1px solid #dfe1e6;
    border-bottom: 1px solid #dfe1e6;

    background: #f5f6f8;

    transition:
        background 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.service-card:hover {
    background: #ffffff;

    transform: translateY(-4px);

    box-shadow: 0 18px 40px rgba(17, 19, 24, 0.08);
}

.service-card > span {
    display: block;

    margin-bottom: 65px;

    font-size: 12px;
    font-weight: 700;

    color: var(--blue);
}

.service-card h3 {
    margin-bottom: 16px;

    font-size: 28px;
}

.service-card p {
    margin-bottom: 28px;

    font-size: 15px;
    line-height: 1.65;
}

.service-card a {
    font-size: 13px;
    font-weight: 700;

    color: #111318;

    transition: color 0.25s ease;
}

.service-card a:hover {
    color: var(--blue);
}

/* =========================
   PROCESS
   ========================= */

.process-section {
    background: #111318;
}

.process-section > .container > h2 {
    max-width: 700px;
    margin-bottom: 75px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.process-item {
    min-height: 360px;
    padding: 38px;

    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

.process-item:hover {
    background: rgba(255, 255, 255, 0.035);
}

.process-item > span {
    display: block;

    margin-bottom: 120px;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;

    color: var(--blue-light);
}

.process-item h3 {
    margin-bottom: 16px;

    font-size: 26px;
    font-weight: 700;
}

.process-item p {
    max-width: 260px;

    font-size: 15px;
    line-height: 1.7;

    color: var(--grey);
}

/* =========================
   PROJECTS
   ========================= */

.projects-section {
    background: #f5f6f8;
    color: #111318;
}

.project-placeholder {
    min-height: 420px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;

    padding: 48px;

    position: relative;
    overflow: hidden;

    border: 1px solid #dfe1e6;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(37, 99, 235, 0.12),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #f5f6f8,
            #ffffff
        );
}

.project-placeholder::before {
    content: "";

    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(17, 19, 24, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(17, 19, 24, 0.035) 1px,
            transparent 1px
        );

    background-size: 55px 55px;

    pointer-events: none;
}

.project-placeholder p,
.project-placeholder h3 {
    position: relative;
    z-index: 2;
}

.project-placeholder p {
    margin-bottom: 15px;

    color: var(--blue);

    font-size: 12px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.project-placeholder h3 {
    max-width: 650px;

    font-size: 42px;
    line-height: 1.08;
}

/* =========================
   PROJECTS GRID
   ========================= */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.project-card {
    background: #ffffff;
    border: 1px solid #dfe1e6;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 20px 50px rgba(17, 19, 24, 0.10);
}

.project-visual {
    position: relative;

    min-height: 360px;

    display: flex;
    align-items: flex-end;

    padding: 32px;

    overflow: hidden;
}

.project-visual::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(17, 19, 24, 0.15),
            rgba(37, 99, 235, 0.20)
        );

    pointer-events: none;
}

.project-alma {
    background:
        linear-gradient(
            135deg,
            #d9c7ae,
            #8c9a9b 55%,
            #263744
        );
}

.project-nova {
    background:
        linear-gradient(
            135deg,
            #e8e9e7,
            #aebbc4 55%,
            #334554
        );
}

.project-atlas {
    background:
        linear-gradient(
            135deg,
            #c8c0b5,
            #6e747c 55%,
            #202936
        );
}

.project-origen {
    background:
        linear-gradient(
            135deg,
            #c9aa86,
            #765c48 55%,
            #201b19
        );
}

.project-overlay {
    position: relative;
    z-index: 2;

    color: #ffffff;
}

.project-overlay span {
    display: block;

    margin-bottom: 14px;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.14em;
    text-transform: uppercase;

    opacity: 0.75;
}

.project-overlay strong {
    display: block;

    font-size: 48px;
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.project-overlay small {
    display: block;

    margin-top: 8px;

    font-size: 14px;

    opacity: 0.8;
}

.project-info {
    display: flex;
    justify-content: space-between;
    gap: 30px;

    padding: 30px;
}

.project-number {
    display: block;

    margin-bottom: 12px;

    font-size: 11px;
    font-weight: 700;

    color: var(--blue);
}

.project-info h3 {
    margin-bottom: 10px;

    font-size: 27px;
}

.project-info p {
    max-width: 430px;

    font-size: 14px;
    line-height: 1.7;

    color: #6f737c;
}

.project-info a {
    flex-shrink: 0;

    align-self: flex-end;

    font-size: 13px;
    font-weight: 700;

    color: #111318;
}

/* =========================
   ABOUT
   ========================= */

.about-section {
    background: #17191f;
}


/* =========================
   FINAL CTA
   ========================= */

.final-cta {
    padding: 150px 0;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(37, 99, 235, 0.25),
            transparent 40%
        ),
        #111318;

    text-align: center;
}

.final-cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.final-cta h2 {
    max-width: 950px;
    margin-bottom: 42px;
}


/* =========================
   FOOTER
   ========================= */

/* =========================
   FOOTER
========================= */

.site-footer {
    padding-top: 85px;
    background: #0c0e12;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 80px;
    padding-bottom: 75px;
}

.footer-grid > div:first-child {
    padding-right: 40px;
}

.footer-grid p {
    max-width: 360px;
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.7;
    color: #8f949e;
}

.footer-grid h4 {
    margin-bottom: 22px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
}

.footer-grid > div > a:not(.logo) {
    display: block;
    width: fit-content;
    margin-bottom: 12px;
    color: #8f949e;
    font-size: 14px;
    transition: color 0.25s ease;
}

.footer-grid > div > a:not(.logo):hover {
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    margin: 0;
    font-size: 12px;
    color: #6f747e;
}


/* =========================
   FOOTER — MOBILE
========================= */

@media (max-width: 700px) {

    .site-footer {
        padding-top: 65px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 45px;
        padding-bottom: 55px;
    }

    .footer-grid > div:first-child {
        padding-right: 0;
    }

    .footer-grid p {
        max-width: 320px;
    }

    .footer-bottom {
        min-height: auto;
        padding: 22px 0;
    }

}

/* =========================
   PROJECTS — MOBILE
========================= */

.projects-grid {
    grid-template-columns: 1fr;
    gap: 35px;
}

.project-card {
    width: 100%;
}

.project-visual {
    min-height: 300px;
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.project-info h3 {
    font-size: 28px;
}

.project-info p {
    font-size: 15px;
    line-height: 1.6;
}

.project-info a {
    align-self: flex-start;

}

/* =========================
   RESPONSIVE
   ========================= */

/* =========================
   HERO - PREMIUM VISUAL
   ========================= */

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 80px;

    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 80px;
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.hero-visual {
    position: relative;
    z-index: 2;

    display: flex;
    justify-content: flex-end;
}

.dashboard {
    width: 100%;
    max-width: 520px;

    padding: 28px;

    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);

    backdrop-filter: blur(14px);
}

.dashboard-top {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding-bottom: 20px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    font-size: 11px;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.55);
}

.dashboard-status {
    color: #4ade80;
}

.dashboard-main {
    padding: 35px 0 30px;
}

.dashboard-label {
    margin: 0 0 12px;

    font-size: 11px;
    letter-spacing: 0.14em;

    color: rgba(255, 255, 255, 0.5);
}

.dashboard-value {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -0.04em;

    color: #ffffff;
}

.dashboard-line {
    width: 100%;
    height: 1px;

    margin: 25px 0;

    background: rgba(255, 255, 255, 0.08);
}

.dashboard-chart {
    height: 150px;

    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.dashboard-chart span {
    flex: 1;

    min-width: 0;

    border-radius: 4px 4px 0 0;

    background: linear-gradient(
        to top,
        #2563eb,
        rgba(37, 99, 235, 0.25)
    );

    box-shadow: 0 0 20px rgba(37, 99, 235, 0.12);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.dashboard-card {
    padding: 16px;

    background: rgba(255, 255, 255, 0.035);

    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
}

.dashboard-card span {
    display: block;

    margin-bottom: 7px;

    font-size: 9px;
    letter-spacing: 0.12em;

    color: rgba(255, 255, 255, 0.45);
}

.dashboard-card strong {
    font-size: 12px;
    font-weight: 600;

    color: #ffffff;
}


/* =========================
   MOBILE MENU BUTTON
   ========================= */

.mobile-menu-button {
    display: none;

    width: 42px;
    height: 42px;

    padding: 0;

    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;

    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;

    cursor: pointer;
}

.mobile-menu-button span {
    display: block;

    width: 18px;
    height: 1px;

    background: var(--white);

    transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-menu-button.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-button.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}


/* =========================
   TABLET
   ========================= */

@media (max-width: 1000px) {

    .main-nav {
        gap: 18px;
    }

    .hero {
        min-height: 760px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-visual {
        justify-content: flex-start;
    }

    .dashboard {
        max-width: 600px;
    }

    .capabilities-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-heading {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .two-column {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-text {
        padding-top: 0;
    }

}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 700px) {

    .container {
        width: min(
            var(--container),
            calc(100% - 32px)
        );
    }

    .site-header {
        padding: 22px 0;
    }

    .mobile-menu-button {
        display: flex;
    }

    .main-nav {
        display: none;
    }

    .main-nav.mobile-open {
        position: absolute;

        top: 75px;
        left: 16px;
        right: 16px;

        display: flex;
        flex-direction: column;

        padding: 20px;

        background: #111318;

        border: 1px solid var(--border);
        border-radius: 12px;

        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);

        z-index: 100;
    }

    .main-nav.mobile-open a {
        width: 100%;

        padding: 14px 0;

        border-bottom: 1px solid var(--border);
    }

    .main-nav.mobile-open a:last-child {
        border-bottom: none;
    }

    .main-nav.mobile-open .nav-cta {
        width: 100%;

        margin-top: 10px;

        text-align: center;

        border-bottom: none;
    }


    /* HERO */

    .hero {
        min-height: auto;

        padding: 120px 0 80px;
    }

    .hero-content {
        grid-template-columns: 1fr;

        gap: 55px;

        padding-top: 0;
    }

    .hero h1 {
        font-size: clamp(52px, 15vw, 80px);
    }

    .hero-text {
        font-size: 17px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-visual {
        justify-content: stretch;
    }

    .dashboard {
        max-width: none;
        padding: 22px;
    }

    .dashboard-value {
        font-size: 34px;
    }

    .dashboard-chart {
        height: 120px;
        gap: 7px;
    }

    .dashboard-grid {
        gap: 7px;
    }

    .dashboard-card {
        padding: 12px;
    }


    /* CAPABILITIES */

    .capabilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .capabilities-grid div {
        border-bottom: 1px solid var(--border);
    }


    /* SECTIONS */

    .section {
        padding: 90px 0;
    }

    h2 {
        font-size: 42px;
    }


    /* SERVICES */

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: auto;
    }


    /* PROCESS */

    .process-grid {
        grid-template-columns: 1fr;
    }

    .process-item {
        border-left: 1px solid var(--border);
    }


    /* FOOTER */

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }


    /* FINAL CTA */

    .final-cta {
        padding: 100px 0;
    }

}

/* =========================
   PROJECT PAGE
   ========================= */

.project-page-hero {
    padding: 190px 0 110px;
    background:
        radial-gradient(
            circle at 75% 35%,
            rgba(37, 99, 235, 0.18),
            transparent 30%
        ),
        #111318;
}

.project-page-hero h1 {
    margin: 25px 0;
    font-size: clamp(60px, 9vw, 120px);
}

.project-page-intro {
    max-width: 650px;
    font-size: 21px;
    line-height: 1.7;
}

.back-link {
    font-size: 14px;
    color: var(--grey-light);
}

.project-page-content {
    background: #ffffff;
    color: #111318;
    padding: 100px 0;
}

.project-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid #dfe1e6;
    border-bottom: 1px solid #dfe1e6;
}

.project-details div {
    padding: 30px;
    border-right: 1px solid #dfe1e6;
}

.project-details div:last-child {
    border-right: none;
}

.project-details span {
    display: block;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 700;
    color: #6f737c;
    letter-spacing: 0.12em;
}

.project-details strong {
    font-size: 17px;
}

.project-block {
    max-width: 800px;
    padding: 120px 0 0;
}

.project-block h2 {
    margin: 20px 0 25px;
    font-size: clamp(38px, 5vw, 64px);
}

.project-block p {
    max-width: 680px;
    font-size: 17px;
    line-height: 1.8;
    color: #6f737c;
}

.project-concept {
    max-width: 800px;
    margin-top: 120px;
    padding: 30px;
    background: #f5f6f8;
    border-left: 3px solid var(--blue);
}

.project-concept span {
    display: block;
    margin-bottom: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--blue);
}

.project-concept p {
    color: #6f737c;
}

.project-cta {
    margin-top: 140px;
    padding-top: 70px;
    border-top: 1px solid #dfe1e6;
}

.project-cta h2 {
    margin-bottom: 35px;
    color: #111318;
}

.project-cta .button {
    display: inline-flex;
    
}

/* =========================
   ALMA VISUAL
   ========================= */

.project-visual-hero {
    background: #f5f6f8;
    padding: 0 0 100px;
}

.alma-visual {
    min-height: 520px;
    display: flex;
    align-items: flex-end;
    padding: 50px;
    position: relative;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 75% 25%,
            rgba(255,255,255,0.25),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #bca98e,
            #66767a 55%,
            #202c35
        );
}

.alma-visual::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(17,19,24,0.05),
            rgba(17,19,24,0.35)
        );
}

.alma-visual-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.alma-visual-content span {
    display: block;
    margin-bottom: 18px;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.alma-visual-content strong {
    display: block;

    font-size: clamp(60px, 9vw, 120px);
    line-height: 0.85;
    letter-spacing: -0.06em;
}

.alma-visual-content small {
    display: block;
    margin-top: 25px;

    font-size: 11px;
    letter-spacing: 0.14em;
    opacity: 0.75;
}

.alma-visual-meta {
    position: absolute;
    right: 40px;
    bottom: 40px;

    z-index: 2;

    display: flex;
    gap: 30px;

    color: #ffffff;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.alma-visual-meta span:last-child {
    opacity: 0.7;
}

/* =========================
   FINAL CTA / CONTACT
========================= */

.final-cta {
    padding: 130px 0;
    background: #111318;
    color: #ffffff;
}

.final-cta .eyebrow {
    margin-bottom: 45px;
    color: var(--blue-light);
}

.final-cta-content {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 80px;
    align-items: end;
    padding-top: 45px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.final-cta-content h2 {
    max-width: 850px;
    margin-bottom: 30px;
    font-size: clamp(48px, 6vw, 88px);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.final-cta-content p {
    max-width: 620px;
    font-size: 17px;
    line-height: 1.8;
    color: var(--grey);
}

.final-cta-action {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}

.final-cta-action .button {
    white-space: nowrap;
}

.final-cta-action span {
    font-size: 13px;
    color: #8d929d;
}

/* =========================
   SERVICES — PREMIUM HOVER
========================= */

.service-card {
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(37, 99, 235, 0.35);
    background: #f8f9fb;
}

.service-card span {
    transition: color 0.3s ease;
}

.service-card:hover span {
    color: #2563eb;
}

.service-card h3 {
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: #2563eb;
}

/* =========================
   SERVICES — VISUAL HIERARCHY
========================= */

.services-grid {
    margin-top: 70px;
}

.service-card {
    position: relative;
    padding: 38px;
}

.service-card > span {
    display: block;
    margin-bottom: 55px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #8d929d;
}

.service-card h3 {
    margin-bottom: 18px;
    font-size: 30px;
    letter-spacing: -0.03em;
}

.service-card p {
    max-width: 420px;
    line-height: 1.7;
}

.service-card a {
    display: inline-block;
    margin-top: 30px;
}

/* =========================
   PROJECTS — PREMIUM CARDS
========================= */

.project-card {
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(17, 19, 24, 0.12);
}

.project-card .project-visual {
    transition: transform 0.5s ease;
}

.project-card:hover .project-visual {
    transform: scale(1.015);
}

.project-card .project-info {
    padding-top: 28px;
}

.project-card .project-info h3 {
    transition: color 0.3s ease;
}

.project-card:hover .project-info h3 {
    color: #2563eb;
}

.project-card .project-info a {
    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

.project-card:hover .project-info a {
    color: #2563eb;
    transform: translateX(5px);
}

/* =========================
   PROJECTS — EDITORIAL LAYOUT
========================= */

.projects-grid {
    margin-top: 70px;
}

.project-info {
    display: grid;
    grid-template-columns: 0.8fr 1.4fr auto;
    gap: 35px;
    align-items: start;
}

.project-info h3 {
    margin: 0;
    font-size: 32px;
    letter-spacing: -0.03em;
}

.project-info p {
    margin: 0;
    max-width: 430px;
    line-height: 1.7;
}

.project-info a {
    white-space: nowrap;
    align-self: center;
}

/* =========================
   PROCESS — PREMIUM STEPS
========================= */

.process-grid {
    margin-top: 70px;
}

.process-step {
    position: relative;
    padding: 35px 30px 40px;
    border-top: 1px solid #dfe1e6;
    transition:
        border-color 0.3s ease,
        transform 0.3s ease;
}

.process-step:hover {
    border-color: #2563eb;
    transform: translateY(-4px);
}

.process-step > span {
    display: block;
    margin-bottom: 55px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #8d929d;
    transition: color 0.3s ease;
}

.process-step:hover > span {
    color: #2563eb;
}

.process-step h3 {
    margin-bottom: 18px;
    font-size: 28px;
    letter-spacing: -0.03em;
}

.process-step p {
    max-width: 300px;
    line-height: 1.7;
}

/* =========================
   ABOUT — PREMIUM LAYOUT
========================= */

.about-section .two-column {
    align-items: start;
    gap: 100px;
}

.about-section .section-text {
    max-width: 650px;
}

.about-section .section-text p {
    margin-bottom: 28px;
    font-size: 18px;
    line-height: 1.8;
}

.about-section .section-text p:last-child {
    margin-bottom: 0;
}

/* =========================
   FINAL CTA — PREMIUM
========================= */

.final-cta-content {
    position: relative;
}

.final-cta-content::after {
    content: "AVANTIANEXT";
    position: absolute;
    right: 0;
    top: -35px;
    font-size: clamp(70px, 11vw, 170px);
    font-weight: 700;
    letter-spacing: -0.07em;
    line-height: 1;
    color: rgba(255, 255, 255, 0.025);
    pointer-events: none;
    white-space: nowrap;
}

.final-cta-content h2,
.final-cta-content p,
.final-cta-action {
    position: relative;
    z-index: 2;
}

.final-cta-action .button {
    transition:
        transform 0.3s ease,
        background 0.3s ease;
}

.final-cta-action .button:hover {
    transform: translateY(-3px);
}

/* =========================
   FOOTER — PREMIUM
========================= */

.site-footer {
    position: relative;
    background: #0c0e12;
}

.footer-grid {
    gap: 80px;
}

.footer-grid a {
    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.footer-grid a:hover {
    color: #ffffff;
    transform: translateX(3px);
}

.footer-grid > div:first-child p {
    max-width: 340px;
    line-height: 1.7;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
    color: #6f737c;
    font-size: 12px;
    letter-spacing: 0.02em;
}

/* =========================
   HEADER — NAVIGATION
========================= */

.main-nav a {
    position: relative;
    transition: color 0.25s ease;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 1px;
    background: #2563eb;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.main-nav a:hover {
    color: #ffffff;
}

.main-nav a:hover::after {
    transform: scaleX(1);
}

/* =========================
   MOBILE — SERVICES & PROCESS
========================= */

@media (max-width: 700px) {

    .services-grid,
    .process-grid {
        margin-top: 45px;
    }

    .service-card,
    .process-step {
        padding: 28px 24px 32px;
    }

    .service-card > span,
    .process-step > span {
        margin-bottom: 35px;
    }

    .service-card h3,
    .process-step h3 {
        font-size: 26px;
    }

    .service-card p,
    .process-step p {
        max-width: none;
        font-size: 15px;
        line-height: 1.65;
    }

    .service-card a {
        margin-top: 24px;
    }

}

/* =========================
   MOBILE — PROJECTS
========================= */

@media (max-width: 700px) {

    .projects-grid {
        margin-top: 45px;
        gap: 45px;
    }

    .project-card {
        transform: none;
    }

    .project-card:hover {
        transform: none;
    }

    .project-card:hover .project-visual {
        transform: none;
    }

    .project-info {
        display: flex;
        flex-direction: column;
        gap: 18px;
        padding-top: 24px;
    }

    .project-info h3 {
        font-size: 28px;
    }

    .project-info p {
        max-width: none;
        font-size: 15px;
        line-height: 1.65;
    }

    .project-info a {
        align-self: flex-start;
        margin-top: 5px;
    }

}

/* =========================
   MOBILE — ABOUT & CTA
========================= */

@media (max-width: 700px) {

    .about-section .two-column {
        gap: 50px;
    }

    .about-section .section-text p {
        font-size: 16px;
        line-height: 1.7;
        margin-bottom: 24px;
    }

    .final-cta {
        padding: 90px 0;
    }

    .final-cta-content {
        grid-template-columns: 1fr;
        gap: 45px;
        padding-top: 35px;
    }

    .final-cta-content h2 {
        font-size: clamp(46px, 13vw, 68px);
    }

    .final-cta-content p {
        font-size: 16px;
        line-height: 1.7;
    }

    .final-cta-action {
        align-items: stretch;
    }

    .final-cta-action .button {
        width: 100%;
        justify-content: center;
    }

    .final-cta-content::after {
        right: -15px;
        top: 5px;
        font-size: 65px;
        opacity: 0.7;
    }

}

/* =========================
   MOBILE — NAVIGATION
========================= */

@media (max-width: 700px) {

    .main-nav.mobile-open {
        padding: 25px 0 35px;
    }

    .main-nav.mobile-open a {
        display: block;
        padding: 14px 0;
        font-size: 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .main-nav.mobile-open a::after {
        display: none;
    }

    .mobile-menu-button {
        transition: transform 0.25s ease;
    }

    .mobile-menu-button.active {
        transform: rotate(90deg);
    }

}

/* =========================
   MOBILE — HERO REFINEMENT
========================= */

@media (max-width: 700px) {

    .hero {
        padding-top: 105px;
        padding-bottom: 70px;
    }

    .hero-content {
        gap: 45px;
    }

    .hero h1 {
        max-width: 650px;
        font-size: clamp(48px, 14vw, 72px);
        line-height: 0.98;
        letter-spacing: -0.045em;
    }

    .hero-text {
        max-width: 500px;
        margin-top: 25px;
        font-size: 16px;
        line-height: 1.7;
    }

    .hero-actions {
        margin-top: 30px;
        gap: 12px;
    }

    .dashboard {
        border-radius: 16px;
    }

}

/* =========================
   HEADER — DESKTOP REFINEMENT
========================= */

@media (min-width: 701px) {

    .site-header .container {
        min-height: 78px;
        display: flex;
        align-items: center;
    }

    .site-header .logo {
        flex-shrink: 0;
    }

    .main-nav {
        margin-left: auto;
    }

    .main-nav ul {
        display: flex;
        align-items: center;
        gap: 32px;
    }

    .main-nav a {
        font-size: 13px;
        letter-spacing: 0.01em;
    }

}

/* =========================
   HERO VIDEO — WATERMARK
   ========================= */

.hero {
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.10;
    filter: grayscale(100%) contrast(1.1) brightness(0.8);
    pointer-events: none;
}

/* =========================================================
   HERO — VIDEO MARCA DE AGUA
   ========================================================= */

.hero-watermark-video {
    position: absolute;

    right: 2%;
    top: 50%;

    width: 72%;
    height: 72%;

    transform: translateY(-50%) scale(1.8);

    z-index: 2;

    opacity: 1;

    object-fit: cover;

    filter:
        grayscale(100%)
        contrast(1.15)
        brightness(0.85);

    pointer-events: none;

    outline: none;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            90deg,
            rgba(17, 19, 24, 0.96) 0%,
            rgba(17, 19, 24, 0.90) 50%,
            rgba(17, 19, 24, 0.82) 100%
        );
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 5;
}

/* =========================
   EL RETO — FINAL LAYOUT
   ========================= */

.problem-section {
    background: #111318;
    color: #ffffff;
    padding: 0;
    overflow: hidden;
}

.problem-layout {
    width: 100%;
    max-width: none;
    margin: 0;
    display: grid !important;
    grid-template-columns: 45% 55% !important;
    align-items: stretch !important;
    min-height: 600px;
}

.problem-copy {
    width: 100%;
    max-width: 620px;
    padding: 100px 70px 100px max(24px, calc((100vw - 1180px) / 2));
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.problem-copy h2 {
    color: #ffffff;
}

.problem-copy .section-text {
    margin-top: 45px;
}

.problem-copy .section-text p {
    color: #c4c7ce;
    line-height: 1.75;
}

.problem-visual {
    position: relative;
    width: 100%;
    min-height: 600px;
    overflow: hidden;
    background: #111318;
}

.problem-visual img {
    width: 100%;
    height: 100%;
    min-height: 600px;
    object-fit: cover;
    display: block;
}

.problem-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(17, 19, 24, 0.20),
        rgba(17, 19, 24, 0.05)
    );
    pointer-events: none;
}

.problem-visual-label {
    position: absolute;
    left: 32px;
    bottom: 30px;
    z-index: 2;
    color: #ffffff;
}

.problem-visual-label span {
    display: block;
    margin-bottom: 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: #7da7ff;
}

.problem-visual-label strong {
    font-size: 12px;
    letter-spacing: 0.12em;
}

/* MOBILE */

@media (max-width: 700px) {

    .problem-layout {
        grid-template-columns: 1fr !important;
        min-height: auto;
    }

    .problem-copy {
        max-width: none;
        padding: 80px 24px 60px;
    }

    .problem-visual {
        min-height: 380px;
    }

    .problem-visual img {
        min-height: 380px;
        height: 380px;
    }

    .hero-watermark-video {
    right: 50%;
    top: 58%;
    width: 100%;
    height: 70%;
    transform: translate(50%, -50%) scale(1.15);
    z-index: 4;
    opacity: 0.15;
    object-fit: cover;
}

}

/* =========================
   EL RETO — COMPACT VISUAL
   ========================= */

.problem-layout {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    display: grid !important;
    grid-template-columns: 1fr 0.8fr !important;
    gap: 80px;
    align-items: center !important;
    min-height: 560px;
}

.problem-copy {
    padding: 80px 0 !important;
    max-width: 560px;
}

.problem-visual {
    width: 100%;
    height: 430px;
    min-height: 430px !important;
    overflow: hidden;
}

.problem-visual img {
    width: 100%;
    height: 100%;
    min-height: 0 !important;
    object-fit: cover;
    display: block;
}

@media (max-width: 700px) {

    .problem-layout {
        width: calc(100% - 48px);
        grid-template-columns: 1fr !important;
        gap: 40px;
        min-height: auto;
    }

    .problem-copy {
        padding: 80px 0 20px !important;
    }

    .problem-visual {
        height: 320px;
        min-height: 320px !important;
    }

}

/* =========================
   HERO — TABLET / PANTALLAS MEDIAS
   ========================= */

@media (min-width: 701px) and (max-width: 1100px) {

    .hero-watermark-video {
        right: 1%;
        top: 52%;
        width: 75%;
        height: 70%;
        transform: translateY(-50%) scale(1.45);
        opacity: 0.09;
    }

    .hero-content {
        gap: 40px;
    }
}


/* =========================================================
   AVANTIANEXT AI CHAT
   ========================================================= */

.ai-chat-button {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;

    isolation: isolate;

    display: inline-flex;
    align-items: center;
    gap: 9px;

    min-height: 46px;
    padding: 12px 18px;

    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;

    background: #0b0b0d;
    color: #ffffff;

    font-family: inherit;
    font-size: 12px;
    font-weight: 600;

    cursor: pointer;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.28),
        0 3px 12px rgba(0, 0, 0, 0.18);

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.ai-chat-button:hover {
    transform: translateY(-2px);
    background: #151518;
    border-color: rgba(255, 255, 255, 0.28);

    box-shadow:
        0 16px 42px rgba(0, 0, 0, 0.34),
        0 5px 16px rgba(0, 0, 0, 0.20);
}

/* =========================================================
   AI CHAT — BOTÓN FLOTANTE PREMIUM
   ========================================================= */

.ai-chat-button::after {
    content: "";

    position: absolute;
    inset: -4px;

    border: 1px solid rgba(37, 99, 235, 0.22);
    border-radius: 999px;

    opacity: 0;

    transform: scale(0.96);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;

    pointer-events: none;
}

.ai-chat-button:hover::after {
    opacity: 1;
    transform: scale(1);
}

.ai-chat-button:active {
    transform: translateY(0);
}

.ai-chat-button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

.ai-chat-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;

    border-radius: 50%;

    background: #7cff9b;

    box-shadow:
        0 0 0 4px rgba(124, 255, 155, 0.08),
        0 0 12px rgba(124, 255, 155, 0.28);

    animation: aiButtonStatus 2.2s ease-in-out infinite;
}


/* =========================================================
   VENTANA
   ========================================================= */

.ai-chat-window {
    position: fixed;
    right: 24px;
    bottom: 84px;
    z-index: 9998;

    width: min(390px, calc(100vw - 32px));
    height: min(650px, calc(100vh - 40px));

    display: flex;
    flex-direction: column;

    background: #0b0b0d;
    color: #ffffff;

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 20px;

    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.45),
        0 8px 30px rgba(0, 0, 0, 0.25);

    overflow: hidden;

    visibility: hidden;
    opacity: 0;
    pointer-events: none;

    transform: translateY(12px) scale(0.98);
    transform-origin: bottom right;

    transition:
        opacity 0.22s ease,
        transform 0.22s ease,
        visibility 0.22s ease;
}

/* =========================================================
   AI CHAT — ACENTO DE MARCA
   ========================================================= */

.ai-chat-window::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;
    right: 0;

    height: 1px;

    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(37, 99, 235, 0.85) 50%,
        transparent 100%
    );

    pointer-events: none;
    z-index: 5;
}

.ai-chat-window.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;

    transform: translateY(0) scale(1);
}


/* =========================================================
   HEADER
   ========================================================= */

.ai-chat-header {
    min-height: 70px;

    padding: 16px 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(255, 255, 255, 0.03);

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(12px);
}

.ai-chat-header strong {
    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.ai-chat-header strong::before {
    content: "";

    width: 7px;
    height: 7px;
    flex: 0 0 auto;

    border-radius: 50%;

    background: #7cff9b;

    box-shadow:
        0 0 0 4px rgba(124, 255, 155, 0.08),
        0 0 12px rgba(124, 255, 155, 0.35);

    animation: aiStatusPulse 2.4s ease-in-out infinite;
}

.ai-chat-header span {
    display: block;

    margin-top: 5px;

    color: rgba(255, 255, 255, 0.42);

    font-size: 9px;
    font-weight: 600;

    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.ai-chat-close {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;

    font-size: 22px;
    line-height: 1;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.ai-chat-close:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: rotate(90deg);
}

.ai-chat-close:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}


/* =========================================================
   MENSAJES
   ========================================================= */

.ai-chat-messages {
    flex: 1;

    padding: 20px 18px;

    overflow-y: auto;

    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.ai-chat-messages::-webkit-scrollbar {
    width: 5px;
}

.ai-chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.ai-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

.ai-message {
    max-width: 88%;

    margin-bottom: 14px;
    padding: 13px 14px;

    background: #151518;

    border: 1px solid rgba(255, 255, 255, 0.07);
    border-left: 2px solid rgba(37, 99, 235, 0.65);

    border-radius: 14px 14px 14px 4px;

    animation: aiMessageIn 0.24s ease-out;
}

.ai-message > span {
    display: block;

    margin-bottom: 6px;

    color: rgba(255, 255, 255, 0.48);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.ai-message p {
    margin: 0;

    color: rgba(255, 255, 255, 0.82);

    font-size: 13px;
    line-height: 1.6;
}

.ai-message p + p {
    margin-top: 10px;
}

/* =========================================================
   AI CHAT — MENSAJE INICIAL
   ========================================================= */

.ai-message:first-child > span {
    color: #7da7ff;
    font-size: 9px;
    letter-spacing: 0.12em;
}

.ai-message:first-child {
    margin-bottom: 20px;
}

.ai-message:first-child p:first-of-type {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
}

.ai-message:first-child p:last-of-type {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    line-height: 1.6;
}


/* =========================================================
   MENSAJE DEL VISITANTE
   ========================================================= */

.ai-user-message {
    display: flex;
    justify-content: flex-end;

    margin: 0 0 14px;

    animation: aiMessageIn 0.24s ease-out;
}

.ai-user-message span {
    display: inline-block;

    max-width: 82%;

    padding: 11px 14px;

    background: #ffffff;
    color: #0b0b0d;

    border-radius: 14px 14px 4px 14px;

    font-size: 12px;
    line-height: 1.5;

    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.18);
}


/* =========================================================
   OPCIONES
   ========================================================= */

.ai-chat-options {
    display: flex;
    flex-direction: column;
    gap: 8px;

    margin: 12px 0 20px;

    animation: aiMessageIn 0.24s ease-out;
}

/* =========================================================
   AI CHAT — ESPACIADO DE CONVERSACIÓN
   ========================================================= */

.ai-chat-options {
    margin-top: 16px;
}

.ai-message + .ai-chat-options {
    margin-top: 18px;
}

.ai-user-message + .ai-message {
    margin-top: 6px;
}

.ai-user-message + .ai-chat-options {
    margin-top: 12px;
}

.ai-chat-options button {
    width: 100%;

    min-height: 44px;
    padding: 12px 14px;

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 11px;

    background: rgba(255, 255, 255, 0.035);
    color: rgba(255, 255, 255, 0.88);

    font: inherit;
    font-size: 12px;
    line-height: 1.4;

    text-align: left;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.ai-chat-options button:hover {
    background: rgba(255, 255, 255, 0.075);
    border-color: rgba(255, 255, 255, 0.20);

    transform: translateY(-1px);
}

.ai-chat-options button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}


/* =========================================================
   BOTÓN WHATSAPP
   ========================================================= */

.ai-chat-options button[onclick*="WhatsApp"] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    background: #25d366;
    color: #ffffff;

    border-color: #25d366;

    font-weight: 700;
    text-align: center;

    box-shadow:
        0 8px 22px rgba(37, 211, 102, 0.18);
}

.ai-chat-options button[onclick*="WhatsApp"]::before {
    content: "☏";

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 18px;
    height: 18px;

    font-size: 13px;
    font-weight: 700;

    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
}

.ai-chat-options button[onclick*="WhatsApp"]:hover {
    background: #20bd5a;
    border-color: #20bd5a;

    transform: translateY(-2px);

    box-shadow:
        0 11px 28px rgba(37, 211, 102, 0.24);
}


/* =========================================================
   BOTÓN REINICIAR
   ========================================================= */

.ai-chat-options button[onclick="aiRestartChat()"] {
    background: transparent;
    color: rgba(255, 255, 255, 0.42);

    border-color: transparent;

    font-size: 11px;
    text-align: center;
}

.ai-chat-options button[onclick="aiRestartChat()"]:hover {
    background: rgba(255, 255, 255, 0.035);
    color: rgba(255, 255, 255, 0.75);

    border-color: rgba(255, 255, 255, 0.08);

    transform: none;
}


/* =========================================================
   FOOTER
   ========================================================= */

.ai-chat-footer {
    min-height: 38px;

    padding: 0 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-top: 1px solid rgba(255, 255, 255, 0.07);

    background: rgba(255, 255, 255, 0.015);

    color: rgba(255, 255, 255, 0.25);

    font-size: 9px;
    font-weight: 600;

    letter-spacing: 0.10em;
    text-transform: uppercase;
}

/* =========================================================
   AI CHAT — OPCIONES PREMIUM
   ========================================================= */

.ai-chat-options button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.ai-chat-options button {
    position: relative;
    overflow: hidden;
}

.ai-chat-options button::before {
    content: "";

    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;

    width: 2px;

    background: #2563eb;

    transform: scaleY(0);
    transform-origin: center;

    transition: transform 0.2s ease;
}

.ai-chat-options button:not([onclick*="WhatsApp"]):not([onclick="aiRestartChat()"]):hover::before {
    transform: scaleY(1);
}

/* =========================================================
   AI CHAT — ESTADO DE PULSACIÓN
   ========================================================= */

.ai-chat-options button:active {
    transform: translateY(0) scale(0.99);
    background: rgba(255, 255, 255, 0.10);
}

.ai-chat-options button:not([onclick*="WhatsApp"]):not([onclick="aiRestartChat()"])::after {
    content: "→";

    flex: 0 0 auto;

    color: rgba(255, 255, 255, 0.35);

    font-size: 14px;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.ai-chat-options button:not([onclick*="WhatsApp"]):not([onclick="aiRestartChat()"]):hover::after {
    color: #ffffff;
    transform: translateX(3px);
}


/* =========================================================
   INDICADOR "ESCRIBIENDO..."
   ========================================================= */

.ai-typing {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ai-typing span {
    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.45);

    animation: aiTyping 1.2s infinite ease-in-out;
}

.ai-typing span:nth-child(2) {
    animation-delay: 0.15s;
}

.ai-typing span:nth-child(3) {
    animation-delay: 0.30s;
}

/* =========================================================
   AI CHAT — DISEÑO DEL INDICADOR DE ESCRITURA
   ========================================================= */

.ai-typing-message {
    padding: 10px 13px;
    margin-bottom: 12px;
    background: #121214;
}

.ai-typing-message > span {
    margin-bottom: 7px;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.38);
}

.ai-typing {
    min-height: 12px;
}


/* =========================================================
   ANIMACIONES
   ========================================================= */

@keyframes aiMessageIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes aiTyping {
    0%,
    60%,
    100% {
        opacity: 0.3;
        transform: translateY(0);
    }

    30% {
        opacity: 1;
        transform: translateY(-2px);
    }
}

@keyframes aiStatusPulse {
    0%,
    100% {
        opacity: 0.65;
        transform: scale(0.95);
    }

    50% {
        opacity: 1;
        transform: scale(1.08);
    }
}

@keyframes aiButtonStatus {
    0%,
    100% {
        opacity: 0.65;
        transform: scale(0.95);
    }

    50% {
        opacity: 1;
        transform: scale(1.12);
    }
}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 600px) {

    .ai-chat-button {
        right: 10px;
        bottom: 10px;

        min-height: 44px;
        padding: 11px 14px;

        max-width: calc(100vw - 20px);

        font-size: 11px;
    }

    .ai-chat-window {
        right: 8px;
        left: 8px;
        bottom: 68px;

        width: auto;
        max-width: none;

        height: calc(100vh - 84px);

        border-radius: 18px;
    }

    .ai-chat-header {
        min-height: 64px;
        padding: 14px 15px;
    }

    .ai-chat-messages {
        padding: 15px 12px;
    }

    .ai-message {
        max-width: 92%;
        padding: 12px 13px;
    }

    .ai-user-message span {
        max-width: 88%;
    }

    .ai-chat-options {
        gap: 7px;
    }

    .ai-chat-options button {
        min-height: 44px;
        padding: 12px 13px;
        font-size: 12px;
    }

    .ai-chat-footer {
        min-height: 34px;
        padding: 0 14px;
    }
}


/* =========================================================
   MENOS ANIMACIÓN
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .ai-chat-window,
    .ai-chat-options button,
    .ai-chat-button,
    .ai-chat-close,
    .ai-message,
    .ai-user-message,
    .ai-chat-options,
    .ai-chat-header strong::before,
    .ai-typing span,
    .ai-chat-dot {
        transition: none;
        animation: none;
    }
}

@media (max-width: 700px) {

    .hero-watermark-video {
        display: block !important;
        visibility: visible !important;
        position: absolute !important;
        z-index: 2 !important;

        right: 50% !important;
        top: 58% !important;
        width: 100% !important;
        height: 70% !important;

        transform: translate(50%, -50%) scale(1.15) !important;

        opacity: 0.30 !important;
        object-fit: cover !important;

        pointer-events: none !important;
    }
}

/* =========================
   HEADER — POR ENCIMA DEL HERO
   ========================= */

header {
    z-index: 1000 !important;
}

header nav {
    z-index: 1001 !important;
}

/* =========================
   SERVICES — WATERMARK IMAGES
   ========================= */

.service-card {
    position: relative;
    overflow: hidden;
    display: block;
    color: inherit;
    text-decoration: none;
    isolation: isolate;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    opacity: 0.40;

    filter:
        grayscale(60%)
        saturate(0.75)
        contrast(1.25)
        brightness(0.95);

    transform: scale(1.03);

    transition:
        opacity 0.35s ease,
        transform 0.5s ease;
}

.service-card:hover::before {
    opacity: 0.22;
    transform: scale(1.48);
}


/* =========================
   FOTOS DE CADA SERVICIO
   ========================= */

.service-social::before {
    background-image: url("../assets/images/services/social-media.jpg");
}

.service-content::before {
    background-image: url("../assets/images/services/content-reels.jpg");
}

.service-meta::before {
    background-image: url("../assets/images/services/meta-ads.jpg");
}

.service-google::before {
    background-image: url("../assets/images/services/google-ads.jpg");
}

.service-seo::before {
    background-image: url("../assets/images/services/seo-local.jpg");
}

.service-web::before {
    background-image: url("../assets/images/services/web-landing.jpg");
}


/* =========================
   CONTENIDO SOBRE LA IMAGEN
   ========================= */

.service-card > * {
    position: relative;
    z-index: 2;
}

/* =========================
   ACCESIBILIDAD
   ========================= */

.service-card:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 4px;
}

/* =========================
   SERVICES — TYPOGRAPHY
   ========================= */

.services-section .section-heading h2 {
    font-family: "Space Grotesk", Inter, Arial, sans-serif;
    font-weight: 600;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

.services-section .service-card h3 {
    font-family: "Space Grotesk", Inter, Arial, sans-serif;
    font-weight: 600;
    letter-spacing: -0.035em;
}


/* =========================
   SERVICES — SCROLL REVEAL
   ========================= */

.services-section .section-heading h2,
.services-section .section-heading > p {
    opacity: 0;
    will-change: transform, opacity;
}

.services-section .section-heading h2 {
    transform: translateX(-90px);
}

.services-section .section-heading > p {
    transform: translateX(90px);
}


.services-section.services-reveal-visible
.section-heading h2 {
    opacity: 1;
    transform: translateX(0);

    transition:
        transform 0.95s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.75s ease;
}


.services-section.services-reveal-visible
.section-heading > p {
    opacity: 1;
    transform: translateX(0);

    transition:
        transform 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.10s,
        opacity 0.80s ease 0.10s;
}


/* =========================
   SERVICES — MOBILE
   ========================= */

@media (max-width: 700px) {

    .services-section .section-heading h2 {
        letter-spacing: -0.045em;
    }

    .services-section .section-heading h2 {
        transform: translateX(-45px);
    }

    .services-section .section-heading > p {
        transform: translateX(45px);
    }
}


/* =========================
   REDUCED MOTION
   ========================= */

@media (prefers-reduced-motion: reduce) {

    .services-section .section-heading h2,
    .services-section .section-heading > p {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* =========================
   TESTIMONIALS
   ========================= */

.testimonials-section {
    background: #ffffff;
    color: #111318;
}

.testimonials-heading {
    margin-bottom: 70px;
}

.testimonials-heading > p {
    color: #6f737c;
}


/* GRID */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}


/* CARD */

.testimonial-card {
    position: relative;
    min-height: 390px;
    padding: 34px;
    display: flex;
    flex-direction: column;

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(37, 99, 235, 0.08),
            transparent 35%
        ),
        #f5f6f8;

    border: 1px solid #dfe1e6;
    border-radius: 2px;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-6px);

    border-color: rgba(37, 99, 235, 0.30);

    box-shadow:
        0 20px 55px rgba(17, 19, 24, 0.10);
}


/* CABECERA */

.testimonial-top {
    display: flex;
    align-items: center;
    gap: 14px;
}


/* AVATAR */

.testimonial-avatar {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    border-radius: 50%;

    background: #111318;
    color: #ffffff;

    font-family: "Space Grotesk", Inter, Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
}


/* NOMBRE */

.testimonial-top strong {
    display: block;

    color: #111318;

    font-family: "Space Grotesk", Inter, Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
}

.testimonial-top span {
    display: block;
    margin-top: 3px;

    color: #7d818a;

    font-size: 11px;
}


/* ESTRELLAS */

.testimonial-stars {
    margin-top: 28px;

    color: #2563eb;

    font-size: 13px;
    letter-spacing: 0.12em;
}


/* TEXTO */

.testimonial-card blockquote {
    margin: 24px 0 0;

    color: #40444d;

    font-family: "Space Grotesk", Inter, Arial, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    letter-spacing: -0.02em;
}


/* ETIQUETA */

.testimonial-label {
    margin-top: auto;
    padding-top: 28px;

    color: #8b8f98;

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.14em;
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 1000px) {

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        min-height: auto;
    }
}

@media (max-width: 700px) {

    .testimonials-heading {
        margin-bottom: 45px;
    }

    .testimonial-card {
        padding: 28px;
    }

    .testimonial-card blockquote {
        font-size: 17px;
    }
}

/* =========================
   PRICING — COMPARATIVE TABLE
   ========================= */

.pricing-section {
    background: #17191f;
    color: #ffffff;
}

.pricing-heading {
    margin-bottom: 70px;
}

.pricing-heading h2 {
    font-family: "Space Grotesk", Inter, Arial, sans-serif;
    font-weight: 600;
    letter-spacing: -0.055em;
}

.pricing-heading > p {
    color: #a7abb5;
}


/* TABLA */

.pricing-table {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.10);
    background: #15171c;
    overflow: hidden;
}


/* FILAS */

.pricing-row {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.pricing-row:last-child {
    border-bottom: none;
}


/* CABECERA */

.pricing-header {
    background: #17191f;
}

.pricing-feature,
.pricing-check,
.pricing-plan,
.pricing-action {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 20px;
    border-right: 1px solid rgba(255,255,255,0.08);
}

.pricing-feature {
    justify-content: flex-start;
    color: #d7dae0;
    font-size: 14px;
}

.pricing-header .pricing-feature {
    color: #7d838e;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.pricing-plan {
    min-height: 100px;
    flex-direction: column;
    gap: 6px;
}

.pricing-plan:last-child {
    border-right: none;
}

.pricing-plan strong {
    font-family: "Space Grotesk", Inter, Arial, sans-serif;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.pricing-plan span {
    color: #8f95a1;
    font-size: 12px;
}


/* PLAN DESTACADO */

.pricing-featured {
    position: relative;
    background: rgba(37, 99, 235, 0.035);
    border-left: 1px solid rgba(37, 99, 235, 0.20);
    border-right: 1px solid rgba(37, 99, 235, 0.20);
}

.pricing-featured::before {
    content: "RECOMENDADO";
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;

    background: #2563eb;
    color: #ffffff;

    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.pricing-featured strong {
    color: #6ea0ff;
}


/* CHECKS */

.pricing-check {
    font-size: 14px;
}

.pricing-check:last-child {
    border-right: none;
}

.check {
    color: #4ade80;
    font-size: 19px;
    font-weight: 700;
}

.cross {
    color: rgba(255,255,255,0.22);
    font-size: 23px;
    font-weight: 400;
}


/* BOTONES */

.pricing-actions {
    background: #15171c;
}

.pricing-action {
    border-right: 1px solid rgba(255,255,255,0.08);
}

.pricing-action:last-child {
    border-right: none;
}

.pricing-action .button {
    width: 100%;
    max-width: 150px;
}


/* NOTA */

.pricing-note {
    margin-top: 22px;
    color: #6f747e;
    font-size: 11px;
    line-height: 1.6;
}


/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 900px) {

    .pricing-table {
        overflow-x: auto;
    }

    .pricing-row {
        min-width: 820px;
    }
}

@media (max-width: 700px) {

    .pricing-heading {
        margin-bottom: 45px;
    }

    .pricing-heading h2 {
        font-size: 42px;
    }
}

/* =========================
   TESTIMONIALS — STAT
   ========================= */

.testimonial-stat {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 45px;
    padding: 22px 0;
    border-top: 1px solid rgba(255,255,255,0.10);
    border-bottom: 1px solid rgba(255,255,255,0.10);
}

.testimonial-stat strong {
    color: #6ea0ff;
    font-family: "Space Grotesk", Inter, Arial, sans-serif;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 600;
    letter-spacing: -0.04em;
}

.testimonial-stat span {
    color: #a7abb5;
    font-size: 15px;
}

/* =========================================================
   CASOS CONCEPTUALES
   ========================================================= */

.cases-section {
    background: #f5f6f8;
    color: #111318;
}

.cases-heading {
    margin-bottom: 56px;
}

.cases-heading h2 {
    max-width: 760px;
}

.cases-heading > p {
    max-width: 430px;
}


/* =========================
   CASO DESTACADO
   ========================= */

.cases-featured {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    min-height: 500px;
    margin-bottom: 24px;
    background: #111318;
    overflow: hidden;
}

.case-visual {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    color: #ffffff;
}

.case-hospitality {
    background-image:
        linear-gradient(
            135deg,
            rgba(14, 23, 32, 0.20),
            rgba(17, 19, 24, 0.48)
        ),
        url("../assets/images/cases/hoteles.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.case-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            135deg,
            transparent 0%,
            rgba(255,255,255,0.025) 50%,
            transparent 100%
        );
    pointer-events: none;
}

.case-visual-top {
    position: absolute;
    top: 32px;
    left: 34px;
    right: 34px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
    font-family: "Space Grotesk", Inter, Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
}

.case-visual-top span:last-child {
    color: rgba(255,255,255,.62);
}

.case-visual-center {
    position: absolute;
    left: 34px;
    bottom: 40px;
    z-index: 3;
    display: flex;
    flex-direction: column;
}

.case-visual-center strong {
    font-family: "Space Grotesk", Inter, Arial, sans-serif;
    font-size: clamp(54px, 7vw, 94px);
    font-weight: 600;
    line-height: .88;
    letter-spacing: -.07em;
}

.case-visual-center span {
    margin-top: 18px;
    color: rgba(255,255,255,.68);
    font-family: Inter, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.5;
}

.case-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(
            rgba(255,255,255,.045) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.045) 1px,
            transparent 1px
        );
    background-size: 48px 48px;
    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0,0,0,.5) 35%,
        #000 100%
    );
}


/* =========================
   CONTENIDO DESTACADO
   ========================= */

.case-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px;
    background: #ffffff;
}

.case-content-top {
    max-width: 500px;
}

.case-label {
    display: block;
    margin-bottom: 22px;
    color: #2563eb;
    font-family: "Space Grotesk", Inter, Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.case-content h3 {
    margin: 0 0 20px;
    max-width: 500px;
    color: #111318;
    font-family: "Space Grotesk", Inter, Arial, sans-serif;
    font-size: clamp(30px, 3.1vw, 46px);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -.055em;
    text-wrap: balance;
}

.case-content p {
    max-width: 450px;
    margin: 0;
    color: #5b6069;
    font-family: Inter, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.7;
}

.case-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 34px;
}

.case-points span,
.case-mini-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 11px;
    border: 1px solid #dfe2e7;
    border-radius: 999px;
    color: #414650;
    background: #f8f9fa;
    font-family: Inter, Arial, sans-serif;
    font-size: 11px;
    font-weight: 500;
}

.case-cta {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 280px;
    margin-top: 36px;
    padding-top: 18px;
    border-top: 1px solid #e1e3e7;
    color: #111318;
    font-family: "Space Grotesk", Inter, Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition:
        color .25s ease,
        transform .25s ease;
}

.case-cta span {
    font-size: 18px;
}

.case-cta:hover {
    color: #2563eb;
    transform: translateX(4px);
}


/* =========================
   CASOS SECUNDARIOS
   ========================= */

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.case-card {
    display: flex;
    flex-direction: column;
    min-height: 410px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dfe2e7;
    transition:
        transform .35s cubic-bezier(.22,1,.36,1),
        box-shadow .35s ease,
        border-color .35s ease;
}

.case-card:hover {
    transform: translateY(-6px);
    border-color: #cfd4dc;
    box-shadow: 0 18px 45px rgba(17,19,24,.08);
}

.case-card-visual {
    position: relative;
    min-height: 185px;
    padding: 22px;
    overflow: hidden;
    color: #ffffff;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.case-card-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            145deg,
            transparent 10%,
            rgba(255,255,255,.05) 50%,
            transparent 100%
        );
    pointer-events: none;
}

.case-card-visual span,
.case-card-visual strong {
    position: relative;
    z-index: 2;
}

.case-card-visual span {
    align-self: flex-start;
    font-family: "Space Grotesk", Inter, Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    opacity: .7;
}

.case-card-visual strong {
    font-family: "Space Grotesk", Inter, Arial, sans-serif;
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 600;
    line-height: .9;
    letter-spacing: -.06em;
}

.case-health {
    background-image:
        linear-gradient(
            135deg,
            rgba(23, 34, 43, 0.18),
            rgba(61, 86, 101, 0.42)
        ),
        url("../assets/images/cases/salud.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.case-realestate {
    background-image:
        linear-gradient(
            135deg,
            rgba(41, 39, 34, 0.18),
            rgba(101, 92, 80, 0.42)
        ),
        url("../assets/images/cases/inmobiliario.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.case-food {
    background-image:
        linear-gradient(
            135deg,
            rgba(44, 33, 27, 0.18),
            rgba(116, 81, 58, 0.42)
        ),
        url("../assets/images/cases/restauracion-comercio.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.case-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 28px;
}

.case-card-content .case-label {
    margin-bottom: 16px;
}

.case-card h3 {
    margin: 0 0 14px;
    color: #111318;
    font-family: "Space Grotesk", Inter, Arial, sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -.04em;
    text-wrap: balance;
}

.case-card p {
    margin: 0;
    color: #5b6069;
    font-family: Inter, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.65;
}

.case-mini-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: auto;
    padding-top: 26px;
}

.case-mini-tags span {
    min-height: 27px;
    padding: 5px 9px;
    font-size: 10px;
}


/* =========================
   ANIMACIÓN PROYECTOS
   ========================= */

.cases-section .cases-heading h2,
.cases-section .cases-heading > p {
    opacity: 0;
    will-change: transform, opacity;
}

.cases-section .cases-heading h2 {
    transform: translateX(-90px);
}

.cases-section .cases-heading > p {
    transform: translateX(90px);
}

.cases-section.reveal-active .cases-heading h2 {
    opacity: 1;
    transform: translateX(0);

    transition:
        transform 0.95s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.75s ease;
}

.cases-section.reveal-active .cases-heading > p {
    opacity: 1;
    transform: translateX(0);

    transition:
        transform 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.10s,
        opacity 0.80s ease 0.10s;
}

@keyframes casesFadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 900px) {

    .cases-featured {
        grid-template-columns: 1fr;
    }

    .case-visual,
    .case-hospitality {
        min-height: 380px;
    }

    .case-content {
        padding: 36px;
    }

    .cases-grid {
        grid-template-columns: 1fr;
    }

    .case-card {
        min-height: auto;
    }

}

@media (max-width: 700px) {

    .cases-heading {
        margin-bottom: 38px;
    }

    .case-visual {
        min-height: 300px;
    }

    .case-visual-top {
        top: 22px;
        left: 22px;
        right: 22px;
    }

    .case-visual-center {
        left: 22px;
        bottom: 26px;
    }

    .case-visual-center strong {
        font-size: 52px;
    }

    .case-content {
        padding: 28px 24px;
    }

    .case-content h3 {
        font-size: 31px;
    }

    .case-card-content {
        padding: 24px;
    }

}

@media (prefers-reduced-motion: reduce) {

    .cases-section.reveal-active .cases-heading,
    .cases-section.reveal-active .cases-featured,
    .cases-section.reveal-active .case-card {
        animation: none !important;
    }

    .case-card,
    .case-cta {
        transition: none;
    }

}

/* =========================================================
   HERO — DIGITAL PERFORMANCE PANEL
   ========================================================= */

.hero-performance-panel {
    position: relative;
    width: min(100%, 620px);
    padding: 22px;
    overflow: hidden;
    color: #ffffff;

    background:
        linear-gradient(
            145deg,
            rgba(17, 19, 24, 0.88),
            rgba(17, 19, 24, 0.68)
        );

    border: 1px solid rgba(255,255,255,.16);

    box-shadow:
        0 30px 80px rgba(0,0,0,.28),
        inset 0 1px 0 rgba(255,255,255,.06);

    backdrop-filter: blur(14px);

    animation:
        heroPanelEnter
        1.4s
        cubic-bezier(.22,1,.36,1)
        both;
}


/* TOP */

.performance-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding-bottom: 16px;

    border-bottom: 1px solid rgba(255,255,255,.10);

    font-family:
        "Space Grotesk",
        Inter,
        Arial,
        sans-serif;

    font-size: 9px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.performance-brand {
    color: rgba(255,255,255,.48);
}

.performance-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: rgba(255,255,255,.72);
}

.performance-live i {
    width: 6px;
    height: 6px;
    border-radius: 50%;

    background: #2563eb;

    box-shadow:
        0 0 0 4px rgba(37,99,235,.11);

    animation:
        livePulse
        2.6s
        ease-in-out
        infinite;
}


/* MAIN */

.performance-main {
    padding: 28px 0 22px;
}

.performance-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.performance-heading > div {
    display: flex;
    flex-direction: column;
}

.performance-heading > div > span {
    margin-bottom: 8px;

    color: rgba(255,255,255,.43);

    font-family:
        "Space Grotesk",
        Inter,
        Arial,
        sans-serif;

    font-size: 9px;
    font-weight: 700;
    letter-spacing: .15em;
}

.performance-heading strong {
    color: #ffffff;

    font-family:
        "Space Grotesk",
        Inter,
        Arial,
        sans-serif;

    font-size: clamp(24px, 3vw, 34px);
    font-weight: 500;
    line-height: 1;

    letter-spacing: -.045em;
}

.performance-signal {
    padding-bottom: 3px;

    color: rgba(255,255,255,.30);

    font-family:
        "Space Grotesk",
        Inter,
        Arial,
        sans-serif;

    font-size: 8px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}


/* CHART */

.performance-chart {
    position: relative;

    height: 210px;
    margin-top: 30px;

    overflow: hidden;
}

.performance-chart svg {
    display: block;

    width: 100%;
    height: 100%;

    overflow: visible;
}

.performance-chart svg line {
    stroke: rgba(255,255,255,.065);
    stroke-width: 1;
}

.chart-area {
    fill: rgba(37,99,235,.10);
    opacity: 0;

    animation:
        chartAreaIn
        1.6s
        ease
        .55s
        forwards;
}

.chart-line {
    fill: none;

    stroke: #6f9eff;
    stroke-width: 2;

    stroke-linecap: round;
    stroke-linejoin: round;

    stroke-dasharray: 1;
    stroke-dashoffset: 1;

    filter:
        drop-shadow(
            0 0 7px
            rgba(37,99,235,.38)
        );

    animation:
        chartDraw
        2.2s
        cubic-bezier(.22,1,.36,1)
        .35s
        forwards;
}

/* LÍNEA DE FLUJO */

.chart-line-flow {
    fill: none;

    stroke: #9bb9ff;
    stroke-width: 3;

    stroke-linecap: round;
    stroke-linejoin: round;

    stroke-dasharray: .08 .92;
    stroke-dashoffset: 0;

    opacity: .95;

    filter:
        drop-shadow(
            0 0 9px
            rgba(37,99,235,.65)
        );

    animation:
        chartFlow
        4.8s
        linear
        infinite;
}

.chart-line-secondary {
    fill: none;

    stroke: rgba(255,255,255,.22);
    stroke-width: 1.2;

    stroke-linecap: round;

    stroke-dasharray: 1;
    stroke-dashoffset: 1;

    animation:
        chartDrawSecondary
        2.8s
        cubic-bezier(.22,1,.36,1)
        .65s
        forwards;
}

.chart-node {
    fill: #ffffff;

    animation:
        nodePulse
        2.8s
        ease-in-out
        2.2s
        infinite;
}

.chart-node-halo {
    fill: rgba(37,99,235,.16);

    animation:
        nodeHalo
        2.8s
        ease-in-out
        2.2s
        infinite;
}


/* SCAN LINE */

.chart-scan {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -30%;

    width: 22%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.035),
            transparent
        );

    transform: skewX(-12deg);

    pointer-events: none;

    animation:
        chartScan
        7s
        ease-in-out
        2.5s
        infinite;
}


/* METRICS */

.performance-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    border-top: 1px solid rgba(255,255,255,.09);
    border-bottom: 1px solid rgba(255,255,255,.09);
}

.performance-metric {
    min-width: 0;
    padding: 15px 12px;

    border-right: 1px solid rgba(255,255,255,.09);
}

.performance-metric:last-child {
    border-right: none;
}

.performance-metric span {
    display: block;
    margin-bottom: 6px;

    color: rgba(255,255,255,.32);

    font-family:
        "Space Grotesk",
        Inter,
        Arial,
        sans-serif;

    font-size: 8px;
    font-weight: 700;
    letter-spacing: .12em;
}

.performance-metric strong {
    display: block;

    color: rgba(255,255,255,.86);

    font-family:
        "Space Grotesk",
        Inter,
        Arial,
        sans-serif;

    font-size: 9px;
    font-weight: 600;

    letter-spacing: .02em;

    white-space: nowrap;
}


/* FOOTER */

.performance-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;

    padding-top: 15px;

    color: rgba(255,255,255,.27);

    font-family:
        "Space Grotesk",
        Inter,
        Arial,
        sans-serif;

    font-size: 8px;
    font-weight: 700;
    letter-spacing: .13em;
}


/* ANIMATIONS */

@keyframes heroPanelEnter {

    from {
        opacity: 0;
        transform: translate3d(35px, 0, 0) scale(.985);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }

}

@keyframes chartDraw {

    to {
        stroke-dashoffset: 0;
    }

}

@keyframes chartDrawSecondary {

    to {
        stroke-dashoffset: 0;
    }

}

@keyframes chartAreaIn {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}

@keyframes livePulse {

    0%,
    100% {
        opacity: .55;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.18);
    }

}

@keyframes nodePulse {

    0%,
    100% {
        opacity: .85;
        r: 4;
    }

    50% {
        opacity: 1;
        r: 5.5;
    }

}

@keyframes nodeHalo {

    0%,
    100% {
        opacity: .30;
        transform: scale(.8);
        transform-origin: 520px 34px;
    }

    50% {
        opacity: .75;
        transform: scale(1.35);
        transform-origin: 520px 34px;
    }

}

@keyframes chartScan {

    0% {
        left: -30%;
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    55% {
        opacity: .8;
    }

    100% {
        left: 120%;
        opacity: 0;
    }

}

@keyframes chartFlow {

    from {
        stroke-dashoffset: 0;
    }

    to {
        stroke-dashoffset: -1;
    }

}


/* RESPONSIVE */

@media (max-width: 900px) {

    .hero-performance-panel {
        width: 100%;
    }

}

@media (max-width: 700px) {

    .hero-performance-panel {
        padding: 17px;
    }

    .performance-top {
        font-size: 8px;
    }

    .performance-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .performance-signal {
        display: none;
    }

    .performance-chart {
        height: 170px;
        margin-top: 22px;
    }

    .performance-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .performance-metric:nth-child(2) {
        border-right: none;
    }

    .performance-metric:nth-child(-n+2) {
        border-bottom: 1px solid rgba(255,255,255,.09);
    }

    .performance-footer {
        flex-wrap: wrap;
        row-gap: 7px;
    }

}

@media (prefers-reduced-motion: reduce) {

    .hero-performance-panel,
    .performance-live i,
    .chart-area,
    .chart-line,
    .chart-line-secondary,
    .chart-node,
    .chart-node-halo,
    .chart-scan {
        animation: none !important;
    }

    .chart-line,
    .chart-line-secondary {
        stroke-dashoffset: 0;
    }

    .chart-area {
        opacity: 1;
    }

}

/* =========================================================
   FAQ — PREGUNTAS FRECUENTES
   ========================================================= */

.faq-section {
    background: #111318;
    color: #ffffff;
}

.faq-heading {
    margin-bottom: 58px;
}

.faq-heading h2 {
    max-width: 700px;
    color: #ffffff;
}

.faq-heading > p {
    max-width: 420px;
    color: rgba(255,255,255,.55);
}


/* LISTA */

.faq-list {
    max-width: 1000px;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,.12);
}


/* ITEM */

.faq-item {
    border-bottom: 1px solid rgba(255,255,255,.12);
}


/* PREGUNTA */

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    width: 100%;
    min-height: 86px;

    padding: 20px 0;

    border: 0;
    background: transparent;

    color: #ffffff;

    font-family:
        "Space Grotesk",
        Inter,
        Arial,
        sans-serif;

    font-size: clamp(18px, 2vw, 24px);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -.025em;

    text-align: left;

    cursor: pointer;
}


/* ICONO */

.faq-icon {
    flex: 0 0 auto;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255,255,255,.16);
    border-radius: 50%;

    color: rgba(255,255,255,.72);

    font-family: Inter, Arial, sans-serif;
    font-size: 20px;
    font-weight: 300;

    transition:
        transform .3s ease,
        background .3s ease,
        border-color .3s ease,
        color .3s ease;
}


/* RESPUESTA */

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;

    transition:
        grid-template-rows .45s cubic-bezier(.22,1,.36,1);
}

.faq-answer p {
    overflow: hidden;

    max-width: 760px;

    margin: 0;

    color: rgba(255,255,255,.55);

    font-family:
        Inter,
        Arial,
        sans-serif;

    font-size: 14px;
    line-height: 1.75;

    opacity: 0;

    transition:
        opacity .25s ease,
        padding-bottom .45s ease;
}


/* ESTADO ABIERTO */

.faq-item.is-open .faq-answer {
    grid-template-rows: 1fr;
}

.faq-item.is-open .faq-answer p {
    padding-bottom: 28px;
    opacity: 1;
}

.faq-item.is-open .faq-icon {
    transform: rotate(45deg);

    color: #ffffff;

    border-color: rgba(37,99,235,.65);

    background: rgba(37,99,235,.12);
}


/* HOVER */

.faq-question:hover .faq-icon {
    border-color: rgba(37,99,235,.55);
    color: #ffffff;
}


/* ANIMACIÓN AL APARECER */

.faq-section.reveal-active .faq-heading {
    animation:
        faqFadeUp
        0.9s
        cubic-bezier(.22,1,.36,1)
        both;
}

.faq-section.reveal-active .faq-item {
    animation:
        faqFadeUp
        0.75s
        cubic-bezier(.22,1,.36,1)
        both;
}

.faq-section.reveal-active .faq-item:nth-child(1) {
    animation-delay: .08s;
}

.faq-section.reveal-active .faq-item:nth-child(2) {
    animation-delay: .14s;
}

.faq-section.reveal-active .faq-item:nth-child(3) {
    animation-delay: .20s;
}

.faq-section.reveal-active .faq-item:nth-child(4) {
    animation-delay: .26s;
}

.faq-section.reveal-active .faq-item:nth-child(5) {
    animation-delay: .32s;
}

.faq-section.reveal-active .faq-item:nth-child(6) {
    animation-delay: .38s;
}

@keyframes faqFadeUp {

    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* RESPONSIVE */

@media (max-width: 700px) {

    .faq-heading {
        margin-bottom: 38px;
    }

    .faq-question {
        min-height: 78px;

        font-size: 18px;
    }

    .faq-icon {
        width: 30px;
        height: 30px;

        font-size: 18px;
    }

    .faq-answer p {
        font-size: 13px;
        line-height: 1.7;
    }

}


/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

    .faq-section.reveal-active .faq-heading,
    .faq-section.reveal-active .faq-item {
        animation: none !important;
    }

    .faq-answer,
    .faq-answer p,
    .faq-icon {
        transition: none;
    }

}

/* =========================================================
   SERVICE DETAIL — SOCIAL MEDIA
   ========================================================= */

.service-detail-hero {
    position: relative;
    overflow: hidden;

    padding: 130px 0 110px;

    background:
        radial-gradient(
            circle at 82% 28%,
            rgba(37,99,235,.08),
            transparent 28%
        ),
        #111318;

    color: #ffffff;
}


.service-detail-hero-grid {
    display: grid;

    grid-template-columns:
        minmax(0, .95fr)
        minmax(0, 1.05fr);

    gap: 80px;

    align-items: center;
}


.service-detail-hero-copy {
    animation:
        serviceDetailReveal
        1s
        cubic-bezier(.22,1,.36,1)
        both;
}


.service-detail-hero-copy h1 {
    max-width: 690px;

    margin: 0 0 28px;

    color: #ffffff;

    font-family:
        "Space Grotesk",
        Inter,
        Arial,
        sans-serif;

    font-size:
        clamp(48px, 6vw, 82px);

    font-weight: 600;

    line-height: .96;

    letter-spacing: -.065em;

    text-wrap: balance;
}


.service-detail-lead {
    max-width: 590px;

    margin: 0;

    color: rgba(255,255,255,.61);

    font-family:
        Inter,
        Arial,
        sans-serif;

    font-size: 16px;

    line-height: 1.75;
}


.service-detail-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 38px;
}


/* HERO IMAGE */

.service-detail-visual {
    position: relative;

    min-height: 560px;

    overflow: hidden;

    background: #1b1e24;

    animation:
        serviceDetailVisual
        1.2s
        cubic-bezier(.22,1,.36,1)
        .12s
        both;
}


.service-detail-visual img {
    display: block;

    width: 100%;
    height: 100%;

    min-height: 560px;

    object-fit: cover;

    filter:
        grayscale(18%)
        saturate(.82)
        contrast(1.08);

    transform: scale(1.04);
}


.service-visual-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(17,19,24,.10),
            rgba(17,19,24,.72)
        );
}


.service-visual-label {
    position: absolute;

    left: 30px;
    right: 30px;
    bottom: 28px;

    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    color: #ffffff;

    font-family:
        "Space Grotesk",
        Inter,
        Arial,
        sans-serif;
}


.service-visual-label span {
    color: rgba(255,255,255,.52);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: .16em;
}


.service-visual-label strong {
    font-size: 11px;

    font-weight: 600;

    letter-spacing: .13em;
}


/* GENERAL */

.service-problem-section,
.service-strategy-section,
.service-process-section,
.service-measurement-section {
    background: #ffffff;
}


.service-scope-section {
    background: #f5f6f8;
}


.service-two-column {
    display: grid;

    grid-template-columns:
        minmax(0, .9fr)
        minmax(0, 1.1fr);

    gap: 100px;

    align-items: start;
}


.service-two-column h2,
.service-section-intro h2,
.service-section-heading h2,
.service-process-section > .container > h2 {
    margin: 0;

    color: #111318;

    font-family:
        "Space Grotesk",
        Inter,
        Arial,
        sans-serif;

    font-size:
        clamp(38px, 4.4vw, 60px);

    font-weight: 600;

    line-height: 1;

    letter-spacing: -.055em;

    text-wrap: balance;
}


.service-copy {
    max-width: 650px;
}


.service-copy p {
    margin: 0 0 24px;

    color: #555a64;

    font-family:
        Inter,
        Arial,
        sans-serif;

    font-size: 15px;

    line-height: 1.8;
}


.service-section-intro {
    max-width: 700px;

    margin-bottom: 60px;
}


.service-section-intro > p:last-child {
    max-width: 580px;

    margin: 24px 0 0;

    color: #5b6069;

    font-family:
        Inter,
        Arial,
        sans-serif;

    font-size: 15px;

    line-height: 1.75;
}


/* STRATEGY */

.service-strategy-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 1px;

    border-top: 1px solid #dfe2e7;
    border-left: 1px solid #dfe2e7;
}


.service-strategy-card {
    min-height: 270px;

    padding: 28px;

    background: #ffffff;

    border-right: 1px solid #dfe2e7;
    border-bottom: 1px solid #dfe2e7;
}


.service-strategy-card > span {
    display: block;

    margin-bottom: 70px;

    color: #2563eb;

    font-family:
        "Space Grotesk",
        Inter,
        Arial,
        sans-serif;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: .14em;
}


.service-strategy-card h3 {
    margin: 0 0 12px;

    color: #111318;

    font-family:
        "Space Grotesk",
        Inter,
        Arial,
        sans-serif;

    font-size: 25px;

    line-height: 1.05;

    letter-spacing: -.04em;
}


.service-strategy-card p {
    margin: 0;

    color: #5b6069;

    font-family:
        Inter,
        Arial,
        sans-serif;

    font-size: 13px;

    line-height: 1.65;
}


/* SCOPE */

.service-section-heading {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(260px, .65fr);

    gap: 80px;

    align-items: end;

    margin-bottom: 55px;
}


.service-section-heading > p {
    margin: 0;

    color: #5b6069;

    font-family:
        Inter,
        Arial,
        sans-serif;

    font-size: 14px;

    line-height: 1.7;
}


.service-scope-list {
    border-top: 1px solid #d8dbe0;
}


.service-scope-item {
    display: grid;

    grid-template-columns: 70px minmax(0, 1fr);

    gap: 25px;

    padding: 30px 0;

    border-bottom: 1px solid #d8dbe0;
}


.service-scope-item > span {
    color: #2563eb;

    font-family:
        "Space Grotesk",
        Inter,
        Arial,
        sans-serif;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: .12em;
}


.service-scope-item h3 {
    margin: 0 0 9px;

    color: #111318;

    font-family:
        "Space Grotesk",
        Inter,
        Arial,
        sans-serif;

    font-size: 23px;

    font-weight: 600;

    letter-spacing: -.035em;
}


.service-scope-item p {
    max-width: 650px;

    margin: 0;

    color: #5b6069;

    font-family:
        Inter,
        Arial,
        sans-serif;

    font-size: 13px;

    line-height: 1.7;
}


/* PROCESS */

.service-process-section {
    background: #111318;

    color: #ffffff;
}


.service-process-section > .container > .eyebrow {
    color: rgba(255,255,255,.5);
}


.service-process-section > .container > h2 {
    max-width: 750px;

    margin-bottom: 60px;

    color: #ffffff;
}


.service-process-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    border-top: 1px solid rgba(255,255,255,.13);

    border-left: 1px solid rgba(255,255,255,.13);
}


.service-process-item {
    min-height: 290px;

    padding: 28px;

    border-right: 1px solid rgba(255,255,255,.13);
    border-bottom: 1px solid rgba(255,255,255,.13);
}


.service-process-item > span {
    display: block;

    margin-bottom: 72px;

    color: #6f9eff;

    font-family:
        "Space Grotesk",
        Inter,
        Arial,
        sans-serif;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: .14em;
}


.service-process-item h3 {
    margin: 0 0 12px;

    color: #ffffff;

    font-family:
        "Space Grotesk",
        Inter,
        Arial,
        sans-serif;

    font-size: 25px;

    font-weight: 600;

    letter-spacing: -.04em;
}


.service-process-item p {
    margin: 0;

    color: rgba(255,255,255,.53);

    font-family:
        Inter,
        Arial,
        sans-serif;

    font-size: 13px;

    line-height: 1.7;
}


/* MEASUREMENT */

.service-measurement-section {
    padding-bottom: 120px;
}


.service-metrics {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    margin-top: 34px;

    border-top: 1px solid #dfe2e7;
    border-left: 1px solid #dfe2e7;
}


.service-metrics > div {
    padding: 20px;

    border-right: 1px solid #dfe2e7;
    border-bottom: 1px solid #dfe2e7;
}


.service-metrics strong {
    display: block;

    margin-bottom: 6px;

    color: #111318;

    font-family:
        "Space Grotesk",
        Inter,
        Arial,
        sans-serif;

    font-size: 15px;
}


.service-metrics span {
    color: #6b7079;

    font-family:
        Inter,
        Arial,
        sans-serif;

    font-size: 12px;
}


/* FINAL CTA */

.service-final-cta {
    padding: 100px 0;

    background:
        linear-gradient(
            135deg,
            #171a20,
            #101216
        );

    color: #ffffff;
}


.service-final-cta .eyebrow {
    color: rgba(255,255,255,.48);
}


.service-final-cta-content {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(280px, .48fr);

    gap: 80px;

    align-items: end;
}


.service-final-cta h2 {
    max-width: 700px;

    margin: 0 0 25px;

    color: #ffffff;

    font-family:
        "Space Grotesk",
        Inter,
        Arial,
        sans-serif;

    font-size:
        clamp(42px, 5vw, 70px);

    font-weight: 600;

    line-height: .98;

    letter-spacing: -.06em;
}


.service-final-cta p {
    max-width: 600px;

    margin: 0;

    color: rgba(255,255,255,.55);

    font-family:
        Inter,
        Arial,
        sans-serif;

    font-size: 14px;

    line-height: 1.7;
}


.service-final-action {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 14px;
}


.service-final-action span {
    color: rgba(255,255,255,.38);

    font-family:
        Inter,
        Arial,
        sans-serif;

    font-size: 12px;
}


/* ANIMACIONES */

@keyframes serviceDetailReveal {

    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }

}


@keyframes serviceDetailVisual {

    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }

}


/* RESPONSIVE */

@media (max-width: 900px) {

    .service-detail-hero-grid,
    .service-two-column,
    .service-final-cta-content {
        grid-template-columns: 1fr;
    }

    .service-detail-hero {
        padding: 100px 0 80px;
    }

    .service-detail-visual,
    .service-detail-visual img {
        min-height: 450px;
    }

    .service-strategy-grid,
    .service-process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-section-heading {
        grid-template-columns: 1fr;
        gap: 25px;
    }

}


@media (max-width: 700px) {

    .service-detail-hero {
        padding: 80px 0 60px;
    }

    .service-detail-hero-copy h1 {
        font-size: 46px;
    }

    .service-detail-lead {
        font-size: 14px;
    }

    .service-detail-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .service-detail-actions .button {
        text-align: center;
    }

    .service-detail-visual,
    .service-detail-visual img {
        min-height: 360px;
    }

    .service-visual-label {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }

    .service-two-column {
        gap: 45px;
    }

    .service-strategy-grid,
    .service-process-grid {
        grid-template-columns: 1fr;
    }

    .service-strategy-card,
    .service-process-item {
        min-height: auto;
    }

    .service-strategy-card > span,
    .service-process-item > span {
        margin-bottom: 40px;
    }

    .service-scope-item {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 15px;
    }

    .service-metrics {
        grid-template-columns: 1fr;
    }

    .service-final-cta {
        padding: 75px 0;
    }

}

