.hero-section {
    position: relative;
    overflow: hidden;
    text-align: center;
    height: auto;
    margin-bottom: 0;
    padding: 10rem 0 5rem;
    background: #ffffff;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 100% 18%, rgba(3, 22, 52, 0.08), transparent 26%),
        radial-gradient(circle at 85% 30%, rgba(3, 22, 52, 0.04), transparent 18%);
}

.hero-home-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
    padding-top: 165px;
    padding-bottom: 96px;
    background-position: right center;
    background-repeat: no-repeat;
    background-size: auto 100%;
}

.hero-home-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.82) 42%, rgba(255, 255, 255, 0.18) 100%);
    pointer-events: none;
    z-index: 0;
}

.hero-home-wrap::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 180px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 55%, rgba(255, 255, 255, 0.98) 100%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: left;
}

.hero-home-wrap .row {
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1.5rem, 3vw, 3rem);
}

.hero-main-row {
    min-height: min(70vh, 720px);
}

.hero-content {
    min-height: min(70vh, 720px);
}

.hero-copy-column {
    max-width: min(100%, 640px);
}

.hero-section h1 {
    max-width: 12ch;
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.8rem, 4.3vw, 4rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
    margin-top: 1rem;
    color: #000000;
}

.hero-kicker {
    display: inline-block;
    color: var(--eluva-muted);
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-subtitle {
    max-width: 40rem;
    color: var(--eluva-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.hero-floating-visual {
    position: absolute;
    right: clamp(-3rem, -2vw, -1rem);
    top: clamp(-2.5rem, 0vh, 0.5rem);
    width: min(46vw, 720px);
    z-index: 2;
    pointer-events: none;
    filter: drop-shadow(0 24px 58px rgba(3, 22, 52, 0.18));
}

.hero-floating-image {
    display: block;
    width: 120%;
    height: auto;
    object-fit: contain;
    background: transparent;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-floating-image.is-active {
    opacity: 1;
    z-index: 1;
}

.hero-metrics .metric-card {
    background: #ffffff;
}

.hero-metrics .metric-card strong,
.hero-metrics .metric-card span {
    color: #000000;
}

.section-block,
.grid-sec,
.section-alt,
.full-sec {
    background-color: #ffffff;
}

.full-sec {
    background: #ffffff;
}

.overflow-case,
.section-alt {
    background: #ffffff;
}

.portfolio-card {
    border: 1px solid var(--eluva-border);
    box-shadow: 0 18px 44px rgba(3, 22, 52, 0.08);
}

.portfolio-card-copy span,
.portfolio-card-copy strong {
    color: #ffffff;
}

.service-card h3,
.timeline-card span,
.contact-note p,
.section-heading h2,
.hero-section h1,
.hero-subtitle,
.metric-card span {
    color: #000000;
}

.service-card p,
.timeline-card span,
.contact-note p,
.text-secondary {
    color: var(--eluva-muted) !important;
}

.btn-outline-light:hover {
    background: var(--eluva-primary);
    color: #ffffff;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.metric-card {
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid var(--eluva-border);
    background: rgba(255, 255, 255, 0.03);
}

.metric-card strong {
    display: block;
    font-size: 1.4rem;
}

.metric-card span {
    color: var(--eluva-muted);
    font-size: 0.9rem;
}

.section-block {
    padding: 5rem 0;
}

.full-sec {
    padding: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.015);
}

.portfolio-wrapper-image {
    display: grid;
    gap: 1rem;
    padding: 1rem 0 0;
}

.portfolio-list-image {
    display: flex;
    gap: 1rem;
    width: max-content;
    min-width: 100%;
    padding: 0 1rem;
}

.marquee {
    will-change: transform;
}

.marquee-forward {
    animation: marquee-left 34s linear infinite;
}

.marquee-reverse {
    animation: marquee-right 34s linear infinite;
}

.portfolio-item-image {
    flex: 0 0 auto;
    width: min(74vw, 390px);
}

.portfolio-card {
    min-height: 220px;
    border-radius: 0;
    border: 1px solid var(--eluva-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.18);
}

.portfolio-image {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
}

.portfolio-card-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 1rem 1.25rem 1.1rem;
    min-height: 78px;
    text-align: center;
}

.portfolio-card-copy span {
    color: rgba(244, 247, 251, 0.82);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.portfolio-card-copy strong {
    font-size: 1.2rem;
}

.portfolio-card-1 {
    background: linear-gradient(145deg, rgba(102, 217, 255, 0.26), rgba(58, 167, 255, 0.12)), rgba(11, 18, 31, 0.95);
}

.portfolio-card-2 {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(102, 217, 255, 0.14)), rgba(8, 14, 24, 0.98);
}

.portfolio-card-3 {
    background: linear-gradient(145deg, rgba(58, 167, 255, 0.14), rgba(102, 217, 255, 0.08)), rgba(6, 12, 21, 0.98);
}

.grid-sec {
    position: relative;
    padding: 5rem 0;
}

.overflow-case {
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(3, 22, 52, 0.04), rgba(3, 22, 52, 0.01)),
        radial-gradient(circle at top, rgba(3, 22, 52, 0.1), transparent 30%);
}

.overflow-case::before,
.overflow-case::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 120px;
    pointer-events: none;
    z-index: 0;
}

.overflow-case::before {
    top: 0;
    height: 150px;
    background: linear-gradient(180deg, rgba(3, 22, 52, 0.16), rgba(3, 22, 52, 0));
}

.overflow-case::after {
    bottom: 0;
    background: linear-gradient(0deg, rgba(3, 22, 52, 0.1), rgba(3, 22, 52, 0));
}

.overflow-case .container {
    position: relative;
    z-index: 1;
}

.wrap-grid-impacto {
    margin-top: 2rem;
}

.grid-std {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.card-grid {
    min-height: 180px;
}

.content-card-acordeon {
    height: 100%;
}

.acordeon-card-wrap {
    height: 100%;
    padding: 1.5rem;
    border-radius: 0;
    border: 1px solid var(--eluva-border);
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    transition: transform 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}

.card-grid:hover .acordeon-card-wrap {
    transform: translateY(-4px);
    border-color: rgba(102, 217, 255, 0.26);
    background: rgba(255, 255, 255, 0.05);
}

.acordeon-top-line {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.slide-wrap {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.ico-slide-impacto {
    font-size: 1.15rem;
    color: var(--eluva-primary);
}

.text-slide-impacto {
    line-height: 1.05;
}

.text-slide-impacto.first-line {
    color: var(--eluva-muted);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.text-slide-impacto.second-line {
    color: var(--eluva-text);
    font-size: 1rem;
    font-weight: 600;
}

.why-title {
    color: var(--eluva-text);
    font-weight: 700;
    text-align: right;
    max-width: 12ch;
}

.description-why {
    color: var(--eluva-muted);
    max-width: 34ch;
}

.case-card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
    align-items: stretch;
    min-height: 320px;
    border-radius: 2rem;
    overflow: hidden;
    border: 1px solid var(--eluva-border);
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(24px);
    opacity: 0;
    transition: transform 0.9s ease, opacity 0.9s ease, box-shadow 0.9s ease;
}

.case-card.is-visible {
    transform: translateY(0);
    opacity: 1;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.28);
}

.case-card-copy {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

.case-card-copy h3 {
    font-size: clamp(1.4rem, 2vw, 2.2rem);
    margin-bottom: 0.75rem;
}

.case-card-copy p {
    color: var(--eluva-muted);
    max-width: 42ch;
    margin-bottom: 0;
}

.case-tag {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(102, 217, 255, 0.12);
    color: var(--eluva-primary);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.case-card-panel {
    position: relative;
    min-height: 100%;
    background:
        linear-gradient(145deg, rgba(102, 217, 255, 0.3), rgba(58, 167, 255, 0.08)),
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), transparent 18%),
        linear-gradient(180deg, rgba(9, 17, 30, 0.9), rgba(4, 9, 17, 0.95));
}

.case-card-panel::before,
.case-card-panel::after {
    content: '';
    position: absolute;
    inset: auto;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    filter: blur(2px);
}

.case-card-panel::before {
    width: 180px;
    height: 180px;
    top: 18%;
    left: 18%;
}

.case-card-panel::after {
    width: 260px;
    height: 260px;
    right: -70px;
    bottom: -90px;
    background: rgba(102, 217, 255, 0.12);
}

.case-card-secondary {
    margin-left: 2rem;
}

.case-card-tertiary {
    margin-left: 4rem;
}

.section-alt {
    background: rgba(255, 255, 255, 0.02);
}

.contact-form {
    padding: 2rem;
}

@media (max-width: 991.98px) {
    .hero-section {
        padding-top: 8rem;
    }

    .hero-home-wrap {
        padding-top: 8rem;
        padding-bottom: 5rem;
    }

    .hero-section h1 {
        max-width: 100%;
        font-size: clamp(2.5rem, 9vw, 3.6rem);
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .hero-visual-column {
        justify-content: center;
    }

    .hero-floating-visual {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        max-width: 540px;
        margin: 2rem auto 0;
    }

    .hero-floating-image,
    .hero-floating-image.is-active {
        display: none;
    }

    .grid-std {
        grid-template-columns: 1fr;
    }

    .case-card,
    .case-card-secondary,
    .case-card-tertiary {
        grid-template-columns: 1fr;
        margin-left: 0;
    }

    .case-card-panel {
        min-height: 200px;
    }

    .portfolio-item-image {
        width: min(82vw, 320px);
    }

    .portfolio-image {
        height: 140px;
    }
}

@keyframes marquee-left {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@keyframes marquee-right {
    from {
        transform: translateX(-50%);
    }
    to {
        transform: translateX(0);
    }
}
