.landing-shell {
    --landing-bg:
        linear-gradient(color-mix(in srgb, var(--color-border) 40%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--color-border) 40%, transparent) 1px, transparent 1px),
        radial-gradient(circle at top left, color-mix(in srgb, var(--color-accent) 18%, transparent) 0%, transparent 34%),
        radial-gradient(circle at bottom right, color-mix(in srgb, var(--color-success) 14%, transparent) 0%, transparent 26%),
        linear-gradient(180deg, color-mix(in srgb, var(--color-surface) 90%, transparent) 0%, color-mix(in srgb, var(--color-surface-soft) 95%, transparent) 100%),
        url('/assets/img/blurred_code_bg.png');
    background: var(--landing-bg);
    background-size: 32px 32px, 32px 32px, 100% 100%, 100% 100%, 100% 100%, cover;
    background-attachment: scroll, scroll, scroll, scroll, scroll, fixed;
    background-position: 0 0, 0 0, 0 0, 0 0, 0 0, center;
    font-family: "Manrope", sans-serif;
}

.landing-shell h1,
.landing-shell h2,
.landing-shell h3,
.landing-shell .landing-brand span,
.landing-shell .section-tag {
    font-family: "Space Grotesk", sans-serif;
}

.landing-nav {
    backdrop-filter: blur(18px);
    background: color-mix(in srgb, var(--color-surface) 88%, transparent);
}

.landing-nav-inner,
.hero-grid,
.section-inner,
.site-footer-inner,
.legal-main {
    width: 100%;
    max-width: 1800px;
    padding: 0 clamp(1rem, 5vw, 4rem);
    margin: 0 auto;
}

.landing-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.landing-brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: -.02em;
}

.landing-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.landing-nav-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.landing-main {
    padding-bottom: 4rem;
}

.hero {
    padding: 3rem 0 4rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(420px, .96fr);
    gap: 2.2rem;
    align-items: center;
}

.hero-copy {
    display: grid;
    gap: 1.35rem;
}

.hero-kicker,
.section-tag {
    margin: 0;
    color: var(--color-accent);
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
}

.hero-title {
    margin: 0;
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    line-height: .97;
    letter-spacing: -.05em;
    max-width: 11ch;
}

.hero-subtitle {
    margin: 0;
    max-width: 60ch;
    color: var(--color-text-soft);
    font-size: 1.08rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: .8rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.hero-stat-card {
    padding: 1rem 1.05rem;
    border-radius: 24px;
    border: 1px solid var(--color-border);
    background: color-mix(in srgb, var(--color-surface) 92%, white);
    box-shadow: var(--shadow-sm);
}

.hero-stat-card strong {
    display: block;
    margin-bottom: .4rem;
    font-size: .95rem;
}

.hero-stat-card span {
    display: block;
    font-size: .86rem;
    color: var(--color-text-soft);
    line-height: 1.55;
}

.hero-visual {
    position: relative;
}

.agency-showcase {
    position: relative;
    min-height: 540px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

.showcase-card {
    padding: 1.8rem;
    border-radius: 24px;
    background: color-mix(in srgb, var(--color-surface) 80%, transparent);
    backdrop-filter: blur(12px);
    border: 1px solid color-mix(in srgb, var(--color-border) 60%, transparent);
    box-shadow: var(--shadow-lg);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-card:hover {
    transform: translateY(-8px);
}

.primary-card {
    align-self: flex-start;
    width: 85%;
    z-index: 3;
    background: color-mix(in srgb, var(--color-surface) 90%, white);
}

.primary-card h2 {
    margin: 1rem 0 0.5rem;
    font-size: 1.8rem;
}

.primary-card p {
    margin: 0;
    color: var(--color-text-soft);
    line-height: 1.6;
}

.secondary-card {
    align-self: flex-end;
    width: 75%;
    margin-top: -2rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tertiary-card {
    align-self: flex-start;
    width: 70%;
    margin-top: -1rem;
    margin-left: 2rem;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.showcase-card .material-symbols-rounded {
    background: color-mix(in srgb, var(--color-accent) 15%, transparent);
    color: var(--color-accent);
    padding: 1rem;
    border-radius: 16px;
    font-size: 28px;
}

.card-text strong {
    display: block;
    font-size: 1.1rem;
}

.card-text span {
    font-size: 0.9rem;
    color: var(--color-text-soft);
}

.section-block {
    padding: 0 0 4rem;
}

.section-header {
    max-width: 700px;
    margin-bottom: 1.8rem;
}

.section-header h2 {
    margin: .35rem 0 .75rem;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.02;
    letter-spacing: -.04em;
}

.section-header p {
    margin: 0;
    color: var(--color-text-soft);
    line-height: 1.75;
}

/* Platform Features Board */
.platform-features-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: color-mix(in srgb, var(--color-surface) 93%, white);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.feature-col {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-col.border-left {
    border-left: 1px solid var(--color-border);
}

.feature-col .material-symbols-rounded {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: color-mix(in srgb, var(--color-accent) 12%, transparent);
    color: var(--color-accent);
    font-size: 24px;
}

.feature-col h3 {
    margin: 0;
    font-size: 1.25rem;
}

.feature-col p {
    margin: 0;
    color: var(--color-text-soft);
    line-height: 1.7;
}

/* Bento Grid (Módulos) */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(280px, auto);
    gap: 1.5rem;
}

.bento-item {
    background: color-mix(in srgb, var(--color-surface) 93%, white);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    grid-column: span 1;
}

.bento-large {
    grid-column: span 2;
}

.bento-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.bento-content strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.35rem;
}

.bento-content p {
    margin: 0;
    color: var(--color-text-soft);
    line-height: 1.6;
}

.bento-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top: 1px solid var(--color-border);
}

/* Pipeline Operativo */
.pipeline-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    background: color-mix(in srgb, var(--color-surface) 93%, white);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 3rem 2rem;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.pipeline-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    position: relative;
    z-index: 2;
}

.node-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.pipeline-node:hover .node-icon {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-4px);
}

.node-info strong {
    display: block;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.node-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-soft);
    line-height: 1.6;
    max-width: 200px;
    margin: 0 auto;
}

.pipeline-line {
    flex: 1;
    height: 2px;
    background: var(--color-border);
    margin-top: 32px;
    position: relative;
    z-index: 1;
}

.pipeline-line::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--color-border);
    border-right: 2px solid var(--color-border);
}

/* Contact Section */
.contact-section {
    padding-top: 2rem;
}

.contact-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2.5rem;
    border-radius: 32px;
    background: color-mix(in srgb, var(--color-surface) 90%, white);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
}

.contact-info h2,
.social-links h3 {
    margin: 0 0 1rem;
    font-size: 1.8rem;
}

.contact-warning {
    color: var(--color-text);
    background: color-mix(in srgb, var(--color-text-soft) 15%, transparent);
    border: 1px solid var(--color-border);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-list a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
}

.contact-list a:hover {
    color: var(--color-accent);
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.social-pill {
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    background: var(--color-surface-soft);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.social-pill:hover {
    background: color-mix(in srgb, var(--color-accent) 15%, transparent);
    color: var(--color-accent);
}

.cta-band {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    border-radius: 34px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--color-accent) 18%, transparent) 0%, transparent 50%),
        color-mix(in srgb, var(--color-surface) 90%, white);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
}

.cta-band h2 {
    margin: .35rem 0 .55rem;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    letter-spacing: -.04em;
}

.cta-band p:last-child {
    margin: 0;
    max-width: 62ch;
    color: var(--color-text-soft);
    line-height: 1.75;
}

.site-footer {
    padding: 0 0 2rem;
}

.site-footer-inner {
    padding: 1.4rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    border-radius: 26px;
    border: 1px solid var(--color-border);
    background: color-mix(in srgb, var(--color-surface) 93%, white);
}

.site-footer p {
    margin: 0;
    color: var(--color-text-soft);
}

.site-footer strong {
    color: var(--color-text);
}

.footer-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
}

.legal-shell {
    min-height: 100vh;
}

.legal-main {
    padding: 3rem clamp(1.25rem, 5vw, 4rem) 4rem;
}

.legal-hero {
    max-width: 820px;
    margin-bottom: 2rem;
}

.legal-hero h1 {
    margin: .35rem 0 .8rem;
    font-size: clamp(2.4rem, 5vw, 4.25rem);
    letter-spacing: -.05em;
    line-height: 1;
}

.legal-hero p:last-child {
    margin: 0;
    color: var(--color-text-soft);
    line-height: 1.8;
}

.legal-layout {
    display: grid;
    grid-template-columns: minmax(260px, .38fr) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.legal-sidecard {
    position: sticky;
    top: 92px;
    padding: 1.35rem;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: color-mix(in srgb, var(--color-surface) 93%, white);
    box-shadow: var(--shadow-sm);
}

.legal-sidecard ul,
.legal-card ul {
    margin: 1rem 0 0;
    padding-left: 1.1rem;
    color: var(--color-text-soft);
    line-height: 1.7;
}

.legal-card {
    padding: 1.4rem;
    display: grid;
    gap: 1.35rem;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: color-mix(in srgb, var(--color-surface) 93%, white);
    box-shadow: var(--shadow-sm);
}

.legal-card section {
    padding-bottom: 1.15rem;
    border-bottom: 1px solid var(--color-border);
}

.legal-card section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.legal-card p {
    margin: .7rem 0 0;
    color: var(--color-text-soft);
    line-height: 1.82;
}

@keyframes spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes spinReverse {
    from {
        transform: translate(-50%, -50%) rotate(360deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

@media (max-width: 1180px) {

    .hero-grid,
    .showcase-grid,
    .legal-layout {
        grid-template-columns: 1fr;
    }

    .hero-stats,
    .feature-grid,
    .process-timeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .legal-sidecard {
        position: static;
    }

    .platform-features-board {
        grid-template-columns: 1fr;
    }

    .feature-col.border-left {
        border-left: none;
        border-top: 1px solid var(--color-border);
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-large {
        grid-column: span 1;
    }

    .pipeline-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
        padding: 2rem;
    }

    .pipeline-node {
        flex-direction: row;
        text-align: left;
        gap: 1.5rem;
        width: 100%;
    }

    .node-icon {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .node-info p {
        margin: 0;
        max-width: 100%;
    }

    .pipeline-line {
        width: 2px;
        height: 32px;
        margin: -1rem 0 -1rem 31px;
    }

    .pipeline-line::after {
        top: 100%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(135deg);
    }
}

@media (max-width: 820px) {
    .hero {
        padding-top: 2rem;
    }

    .hero-grid {
        gap: 1.5rem;
    }

    .hero-stats,
    .bento-grid,
    .services-mosaic {
        grid-template-columns: 1fr;
    }

    .contact-card {
        grid-template-columns: 1fr;
    }

    .agency-showcase {
        min-height: 440px;
    }
}

@media (max-width: 640px) {
    .landing-nav-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .landing-nav-actions,
    .hero-actions,
    .footer-links {
        width: 100%;
    }

    .landing-nav-actions> :not(.icon-button),
    .hero-actions>* {
        flex: 1;
        justify-content: center;
    }

    .hero-title,
    .section-header h2,
    .cta-band h2,
    .legal-hero h1 {
        max-width: none;
    }

    .agency-showcase {
        min-height: 380px;
        gap: 1rem;
    }

    .primary-card {
        width: 100%;
    }

    .secondary-card {
        width: 95%;
        margin-top: -1.5rem;
    }

    .tertiary-card {
        width: 90%;
        margin-top: -1rem;
        margin-left: 0;
        align-self: flex-end;
    }

    .cta-band,
    .site-footer-inner,
    .legal-card,
    .legal-sidecard {
        padding: 1.15rem;
    }
}