:root {
    color-scheme: dark;
    font-family: "DM Sans", "Segoe UI", sans-serif;
    color: #f5f5f7;
    background: #111318;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    --banana: #f5c542;
    --banana-light: #ffd95a;
    --green: #8db600;
    --bg: #111318;
    --bg-soft: #191c23;
    --surface: #222631;
    --text: #f5f5f7;
    --muted: #a7abb5;
    --line: rgba(245, 245, 247, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    min-width: 320px;
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

.skip-link {
    position: fixed;
    z-index: 10;
    top: 12px;
    left: 12px;
    padding: 12px 16px;
    transform: translateY(-150%);
    border-radius: 8px;
    background: var(--banana);
    color: var(--bg);
    font-weight: 700;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    width: 100%;
    height: 86px;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 0 clamp(24px, 4vw, 48px);
    border-bottom: 1px solid var(--line);
    background: rgba(17, 19, 24, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: background-color 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
    box-sizing: border-box;
}

.site-header.is-scrolled {
    background: rgba(17, 19, 24, 0.94);
    border-bottom-color: rgba(245, 197, 66, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    position: relative;
    display: block;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 13px;
    border: 1px solid var(--line);
    background: var(--surface);
}

.brand-logo img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 148px;
    max-width: none;
    height: auto;
    transform: translate(-50%, -50%);
}

.brand-name {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.6px;
}

.brand-name span {
    color: var(--banana);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 34px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.main-nav a {
    position: relative;
    padding-bottom: 8px;
}

.main-nav a::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--banana);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 180ms ease;
    content: "";
}

.main-nav a,
.text-link,
.back-top {
    transition: color 160ms ease;
}

.main-nav a:hover,
.text-link:hover,
.back-top:hover {
    color: var(--banana-light);
}

.main-nav a.is-active,
.main-nav a.is-active:hover {
    color: var(--banana-light);
}

.main-nav a.is-active::after,
.main-nav a:hover::after {
    transform: scaleX(1);
}

.main-nav .nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid rgba(245, 197, 66, 0.5);
    border-radius: 999px;
    color: var(--banana);
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.main-nav .nav-cta::after {
    display: none;
}

.main-nav .nav-cta.is-active,
.main-nav .nav-cta.is-active:hover {
    background: rgba(245, 197, 66, 0.1);
    border-color: rgba(245, 197, 66, 0.8);
    box-shadow: 0 0 0 1px rgba(245, 197, 66, 0.2);
    color: var(--banana-light);
}

.section-wrap {
    width: min(100% - 64px, 1180px);
    margin-inline: auto;
}

.hero {
    position: relative;
    display: grid;
    min-height: 610px;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: 32px;
    padding-top: 48px;
    padding-bottom: 84px;
}

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 610px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 22px;
    color: var(--banana);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.status-dot,
.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px rgba(141, 182, 0, 0.7);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: "Manrope", "Segoe UI", sans-serif;
}

h1 {
    max-width: 670px;
    margin-bottom: 22px;
    font-size: clamp(42px, 5.5vw, 70px);
    font-weight: 800;
    letter-spacing: -4.6px;
    line-height: 1.06;
}

h1 span,
.section-heading h2 span,
.method h2 span,
.contact h2 span {
    color: var(--banana);
}

.hero-description {
    max-width: 500px;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 0 19px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    transition: transform 160ms ease, background-color 160ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--banana);
    color: var(--bg);
}

.button-primary:hover {
    background: var(--banana-light);
}

.text-link {
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
}

.hero-proof {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 48px;
}

.proof-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(245, 197, 66, 0.35);
    border-radius: 50%;
    color: var(--banana);
    font-size: 21px;
}

.hero-proof p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}

.hero-proof strong {
    color: var(--text);
    font-weight: 600;
}

.hero-art {
    position: relative;
    display: flex;
    min-height: 435px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    isolation: isolate;
}

.hero-art::before {
    position: absolute;
    z-index: -1;
    width: min(100%, 430px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 197, 66, 0.13), rgba(109, 22, 199, 0.07) 48%, transparent 72%);
    content: "";
}

.orbit {
    position: absolute;
    border: 1px solid rgba(245, 197, 66, 0.18);
    border-radius: 50%;
}

.orbit-large {
    width: min(100%, 390px);
    aspect-ratio: 1;
}

.orbit-small {
    width: min(78%, 300px);
    aspect-ratio: 1;
    border-color: rgba(245, 245, 247, 0.1);
}

.hero-title-image {
    position: relative;
    z-index: 1;
    display: block;
    width: min(100%, 480px);
    height: auto;
    filter: drop-shadow(0 12px 34px rgba(245, 197, 66, 0.13));
    pointer-events: none;
}

.hero-signals {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.float-card {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(245, 245, 247, 0.12);
    border-radius: 12px;
    background: rgba(34, 38, 49, 0.93);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(12px);
}

.card-icon {
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    border-radius: 10px;
    background: rgba(245, 197, 66, 0.13);
    color: var(--banana);
    font-size: 18px;
}

.float-card strong,
.float-card small {
    display: block;
    white-space: normal;
}

.float-card strong {
    margin-bottom: 4px;
    font-size: 11px;
}

.float-card small {
    color: var(--muted);
    font-size: 10px;
}

.trend-bars {
    display: flex;
    height: 35px;
    align-items: end;
    gap: 3px;
    padding: 5px 8px;
    border-radius: 9px;
    background: rgba(141, 182, 0, 0.12);
}

.trend-bars i {
    width: 4px;
    border-radius: 3px;
    background: var(--green);
}

.trend-bars i:nth-child(1) { height: 40%; }
.trend-bars i:nth-child(2) { height: 65%; }
.trend-bars i:nth-child(3) { height: 50%; }
.trend-bars i:nth-child(4) { height: 78%; }
.trend-bars i:nth-child(5) { height: 100%; }

.art-caption {
    position: relative;
    z-index: 1;
    color: #777b85;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    white-space: nowrap;
}

.scroll-cue {
    position: absolute;
    bottom: 22px;
    left: 50%;
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    transform: translateX(-50%);
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--muted);
}

.intro-band {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: center;
    gap: clamp(16px, 4vw, 54px);
    padding: 16px 24px;
    border-block: 1px solid var(--line);
    background: #15171d;
}

.intro-band p {
    margin: 0;
    color: #d4d5da;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.35px;
    text-align: center;
}

.intro-band span {
    color: var(--banana);
    font-size: 14px;
}

.solutions {
    padding-top: 110px;
    padding-bottom: 115px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 42px;
}

.section-heading .eyebrow {
    margin-bottom: 15px;
}

.section-heading h2,
.method h2,
.contact h2 {
    max-width: 660px;
    margin-bottom: 0;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    letter-spacing: -2.4px;
    line-height: 1.14;
}

.section-intro {
    max-width: 370px;
    margin: 0 0 3px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.75;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
}

.solution-card {
    position: relative;
    display: flex;
    min-height: 268px;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 20px 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg-soft);
    opacity: 0;
    transform: translateY(20px);
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, opacity 400ms ease;
}

.solution-card.reveal,
.method.reveal,
.contact.reveal {
    opacity: 0;
    transform: translateY(20px);
}

.solution-card.is-visible,
.method.is-visible,
.contact.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.solution-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 197, 66, 0.38);
    background: #1d2028;
}

.solution-card.featured-card {
    border-color: rgba(245, 197, 66, 0.4);
    background: linear-gradient(145deg, #29281f, #191c23 72%);
}

.solution-index {
    color: #8f939c;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.15px;
}

.solution-icon {
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    margin: 24px 0 15px;
    border: 1px solid rgba(245, 197, 66, 0.22);
    border-radius: 11px;
    background: rgba(245, 197, 66, 0.08);
    color: var(--banana);
    font-size: 20px;
}

.solution-card h3 {
    margin-bottom: 9px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.45px;
}

.solution-card p {
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.65;
}

.solution-tag {
    margin-top: auto;
    padding-top: 11px;
    border-top: 1px solid var(--line);
    color: #d3d4d9;
    font-size: 9px;
    font-weight: 600;
}

.method {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 90px;
    padding: 78px 7%;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(125deg, #1a1d24, #15171d);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 420ms ease, transform 420ms ease;
}

.method-copy .eyebrow {
    margin-bottom: 17px;
}

.method h2 {
    margin-bottom: 19px;
    font-size: clamp(29px, 3.5vw, 42px);
}

.method-copy > p:not(.eyebrow) {
    max-width: 440px;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.75;
}

.method-steps {
    display: grid;
    align-content: center;
    gap: 25px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.method-steps li {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 15px;
}

.method-steps li > span {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    background: rgba(245, 197, 66, 0.1);
    color: var(--banana);
    font-size: 11px;
    font-weight: 800;
}

.method-steps h3 {
    margin: 2px 0 5px;
    font-size: 14px;
}

.method-steps p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}

.contact {
    position: relative;
    display: flex;
    min-height: 255px;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-top: 100px;
    margin-bottom: 82px;
    padding: 45px 6%;
    overflow: hidden;
    border-radius: 16px;
    background: var(--banana);
    color: var(--bg);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 420ms ease, transform 420ms ease;
}

.contact .eyebrow {
    margin-bottom: 15px;
    color: rgba(17, 19, 24, 0.72);
}

.contact h2 {
    max-width: 550px;
    font-size: clamp(34px, 4vw, 52px);
}

.contact h2 span {
    color: #614800;
}

.button-dark {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    background: var(--bg);
    color: var(--text);
}

.button-dark:hover {
    background: #292d37;
}

.contact-decoration {
    position: absolute;
    right: 24%;
    bottom: -92px;
    color: rgba(17, 19, 24, 0.055);
    font-family: "Arial Black", sans-serif;
    font-size: 250px;
    font-weight: 900;
    letter-spacing: -40px;
    line-height: 1;
}

.contact-decoration span {
    font-size: 120px;
}

.site-footer {
    display: grid;
    width: min(100% - 64px, 1180px);
    grid-template-columns: 1.1fr 1.4fr 1fr auto;
    align-items: center;
    gap: 24px;
    margin: auto;
    padding: 26px 0 30px;
    border-top: 1px solid var(--line);
}

.footer-brand .brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 11px;
}

.footer-brand .brand-logo img {
    width: 128px;
}

.footer-brand .brand-name {
    font-size: 13px;
}

.site-footer p,
.back-top,
.site-footer small {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
}

.back-top {
    justify-self: end;
}

.site-footer small {
    white-space: nowrap;
}

@media (max-width: 900px) {
    .hero {
        min-height: 580px;
        grid-template-columns: 1fr 0.8fr;
        gap: 12px;
    }

    h1 {
        font-size: clamp(42px, 6.5vw, 60px);
        letter-spacing: -3px;
    }

    .hero-art {
        transform: scale(0.88);
    }

    .solution-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .method {
        gap: 45px;
        padding-inline: 5%;
    }

    .site-footer {
        grid-template-columns: 1fr 1fr;
    }

    .site-footer p {
        justify-self: end;
    }

    .back-top {
        justify-self: start;
    }
}

@media (max-width: 640px) {
    html {
        scroll-padding-top: 72px;
    }

    .site-header,
    .section-wrap,
    .site-footer {
        width: min(100% - 40px, 1180px);
    }

    .site-header {
        height: 72px;
    }

    .brand-logo {
        width: 40px;
        height: 40px;
    }

    .brand-name {
        font-size: 13px;
    }

    .main-nav {
        gap: 13px;
    }

    .main-nav > a:not(.nav-cta) {
        display: none;
    }

    .main-nav .nav-cta {
        padding: 10px 13px;
        font-size: 11px;
    }

    .hero {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 0;
        padding-top: 74px;
        padding-bottom: 66px;
    }

    .eyebrow {
        font-size: 9px;
    }

    h1 {
        max-width: 540px;
        font-size: clamp(43px, 12vw, 60px);
        letter-spacing: -3.2px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 17px;
    }

    .hero-proof {
        margin-top: 29px;
    }

    .hero-art {
        min-height: 0;
        margin-top: 10px;
        gap: 10px;
        transform: none;
    }

    .orbit-large {
        width: 300px;
    }

    .orbit-small {
        width: 230px;
    }

    .hero-title-image {
        width: min(100%, 390px);
    }

    .hero-signals {
        align-items: stretch;
        gap: 8px;
    }

    .float-card {
        flex: 1 1 0;
        gap: 7px;
        padding: 9px 8px;
    }

    .float-card strong {
        font-size: 8px;
    }

    .float-card small {
        font-size: 8px;
    }

    .card-icon,
    .trend-bars {
        width: 30px;
        height: 30px;
    }

    .art-caption {
        font-size: 8px;
    }

    .scroll-cue {
        bottom: 11px;
    }

    .intro-band {
        min-height: 63px;
        gap: 11px;
        padding-inline: 14px;
    }

    .intro-band p {
        font-size: 7px;
        letter-spacing: 0.6px;
    }

    .intro-band span {
        font-size: 11px;
    }

    .solutions {
        padding-top: 75px;
        padding-bottom: 75px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 28px;
    }

    .section-heading h2,
    .method h2,
    .contact h2 {
        font-size: clamp(33px, 9vw, 43px);
        letter-spacing: -2px;
    }

    .section-intro {
        font-size: 12px;
    }

    .solution-grid {
        gap: 9px;
    }

    .solution-card {
        min-height: 260px;
        padding: 16px 13px 14px;
    }

    .solution-index {
        font-size: 7px;
        letter-spacing: 0.65px;
    }

    .solution-icon {
        width: 34px;
        height: 34px;
        margin: 19px 0 13px;
        font-size: 17px;
    }

    .solution-card h3 {
        font-size: 14px;
    }

    .solution-card p {
        font-size: 10px;
        line-height: 1.6;
    }

    .solution-tag {
        font-size: 8px;
        line-height: 1.4;
    }

    .method {
        grid-template-columns: 1fr;
        gap: 33px;
        padding: 32px 23px;
    }

    .method-steps {
        gap: 21px;
    }

    .contact {
        min-height: 300px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        margin-top: 70px;
        margin-bottom: 60px;
        padding: 32px 25px;
    }

    .contact-decoration {
        right: -8px;
        bottom: -44px;
        font-size: 180px;
    }

    .contact-decoration span {
        font-size: 90px;
    }

    .site-footer {
        grid-template-columns: 1fr auto;
        row-gap: 15px;
        padding-bottom: 24px;
    }

    .site-footer p {
        grid-row: 2;
        justify-self: start;
    }

    .back-top {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    .site-footer small {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
        font-size: 9px;
    }
}

@media (max-width: 370px) {
    .section-wrap,
    .site-header,
    .site-footer {
        width: min(100% - 32px, 1180px);
    }

    .intro-band {
        gap: 7px;
    }

    .intro-band p {
        font-size: 6px;
    }

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

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

/* Modo día */
:root[data-theme="light"] {
    color-scheme: light;
    color: #1b1d23;
    background: #f5f7f2;
    --banana: #7f5c00;
    --banana-light: #6a4d00;
    --green: #5f7d00;
    --bg: #f5f7f2;
    --bg-soft: #ffffff;
    --surface: #ffffff;
    --text: #1b1d23;
    --muted: #575c66;
    --line: rgba(27, 29, 35, 0.12);
}

:root[data-theme="light"] .site-header {
    background: rgba(245, 247, 242, 0.88);
}

:root[data-theme="light"] .site-header.is-scrolled {
    background: rgba(245, 247, 242, 0.96);
    box-shadow: 0 10px 30px rgba(27, 29, 35, 0.1);
}

/* Los logos de esta área traen letras blancas: llevan fondo oscuro */
:root[data-theme="light"] .brand-logo {
    background: #222631;
}

:root[data-theme="light"] .hero-title-image {
    border-radius: 20px;
    background: #15171d;
}

:root[data-theme="light"] .skip-link,
:root[data-theme="light"] .button-primary {
    background: #f5c542;
    color: #1b1d23;
}

:root[data-theme="light"] .button-primary:hover {
    background: #ffd95a;
}

:root[data-theme="light"] .orbit-small {
    border-color: rgba(27, 29, 35, 0.12);
}

:root[data-theme="light"] .float-card {
    border-color: rgba(27, 29, 35, 0.12);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 48px rgba(27, 29, 35, 0.14);
}

:root[data-theme="light"] .art-caption,
:root[data-theme="light"] .solution-index {
    color: #656a73;
}

:root[data-theme="light"] .intro-band {
    background: #eceee8;
}

:root[data-theme="light"] .intro-band p,
:root[data-theme="light"] .solution-tag {
    color: #33363d;
}

:root[data-theme="light"] .solution-card:hover {
    background: #ffffff;
}

:root[data-theme="light"] .solution-card.featured-card {
    background: linear-gradient(145deg, #fff6d8, #ffffff 72%);
}

:root[data-theme="light"] .method {
    background: linear-gradient(125deg, #ffffff, #f0f2ec);
}

:root[data-theme="light"] .contact {
    background: #f5c542;
    color: #1b1d23;
}

:root[data-theme="light"] .button-dark {
    background: #1b1d23;
    color: #f5f5f7;
}

:root[data-theme="light"] .button-dark:hover {
    background: #292d37;
}

/* El encabezado ocupa todo el ancho para dar espacio al botón de modo */
@media (max-width: 640px) {
    .site-header {
        width: 100%;
    }
}
