.hero-bg-image {
    background-image: url('/img/fondoslide.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 1;
    transform: none;
    filter: saturate(1.08) contrast(1.02);
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.2;

}

.hero-overlay-light {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.25) 40%, rgba(0, 0, 0, 0.05) 70%, rgba(0, 0, 0, 0) 100%);
}

.hero-overlay-dark {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.30) 40%, rgba(0, 0, 0, 0.08) 70%, rgba(0, 0, 0, 0) 100%);
}

.hero-overlay-radial {
    background: radial-gradient(ellipse at 68% 50%, rgba(127, 29, 29, 0.08) 0%, rgba(28, 26, 22, 0.04) 34%, rgba(28, 26, 22, 0.24) 100%);
}

.hero-grid-light {
    background-image: linear-gradient(rgba(0, 0, 0, 0.035) 0.5px, transparent 0.5px), linear-gradient(90deg, rgba(0, 0, 0, 0.035) 0.5px, transparent 0.5px);
    background-size: 40px 40px;
}

.hero-grid-dark {
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 0.5px, transparent 0.5px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0.5px, transparent 0.5px);
    background-size: 40px 40px;
}

.hero-title {
    font-size: clamp(4rem, 7vw, 7.2rem);
    font-family: Georgia, "Times New Roman", serif;
    line-height: 0.9;
    letter-spacing: -0.04em;
    text-wrap: balance;
    text-align: center;
}

.hero-typewriter {
    text-align: center;
}

#hero-section {
    min-height: calc(100svh - 70px);
    height: calc(100svh - 70px);
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 0;
}

#hero-section .slide-item {
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.9s ease, transform 1.2s ease;
    pointer-events: none;
}

#hero-section .slide-item.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

#hero-section .slide-item>.hero-bg-image {
    position: absolute;
    inset: 0;
    z-index: 0 !important;
}

#hero-section .slide-item>*:not(.hero-bg-image) {
    position: relative;
    z-index: 2;
}

#hero-section .slide-item>.max-w-4xl,
#hero-section .slide-item>div.max-w-4xl {
    min-height: calc(100svh - 70px) !important;
    align-items: center;
    justify-content: center;
    max-width: min(94vw, 1360px) !important;
    padding-top: clamp(3rem, 7vh, 5.5rem) !important;
    padding-bottom: clamp(3rem, 6vh, 5rem);
}

#hero-section h1,
#hero-section h2 {
    text-wrap: balance;
}

#hero-section .hero-title {
    max-width: min(96vw, 18ch);
    margin-left: auto;
    margin-right: auto;
}

#hero-section .hero-title>span:first-child {
    display: block;
    white-space: nowrap;
    text-shadow: 0 14px 34px rgba(28, 26, 22, 0.08);
}

#hero-section .hero-brand-line {
    display: inline-flex;
    align-items: baseline;
    gap: 0.18em;
    white-space: nowrap;
}

#hero-section .hero-brand-primary {
    color: rgba(192, 57, 43, 0.85);
}

#hero-section .hero-brand-secondary {
    color: #1c1a16;
}

#hero-section .hero-title .font-serif,
#hero-section .hero-title em,
#hero-section .hero-title i,
#hero-section .hero-title .italic {
    background-image: linear-gradient(90deg, #7f1d1d 0%, #c0392b 25%, #e74c3c 55%, #9a8060 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 10px 26px rgba(192, 57, 43, 0.16));
}

.dark #hero-section .hero-title .font-serif,
.dark #hero-section .hero-title em,
.dark #hero-section .hero-title i,
.dark #hero-section .hero-title .italic {
    background-image: linear-gradient(90deg, #fca5a5 0%, #fb7185 28%, #fb923c 62%, #fde68a 100%);
}

#hero-section .hero-title .normal-case {
    letter-spacing: -0.02em;
    font-size: 60px;
    line-height: 1.12;
    max-width: min(92vw, 20ch) !important;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1.2rem !important;
    margin-bottom: 0.8rem !important;
}

#hero-section .slide-item>.max-w-4xl>.flex,
#hero-section .slide-item>div.max-w-4xl>.flex {
    align-items: center !important;
    width: min(100%, 54rem);
    gap: clamp(1.5rem, 3vh, 2.5rem);
}

#hero-section .slide-item .inline-flex.items-center.gap-3 {
    align-self: center;
}

#hero-section .slide-item .w-full.pt-2.flex.justify-center {
    justify-content: center;
}

#hero-section .slide-item .group\/btn {
    color: rgba(192, 57, 43, 0.85);
}

#hero-section .slide-item .flex.flex-wrap.items-center.justify-center {
    justify-content: center;
    gap: 1rem 1.75rem;
    max-width: 42rem;
}

#hero-section .hero-kicker,
#hero-section [data-hero-kicker] {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px);
    color: #1f2937;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.dark #hero-section .hero-kicker,
.dark #hero-section [data-hero-kicker] {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(10, 10, 10, 0.55);
    color: #f5f5f4;
}

#hero-section .js-typewriter,
#hero-section #typewriter {
    display: inline-block;
    min-width: 11ch;
    white-space: nowrap;
    font-size: 0.54em;
    line-height: 0.92;
    background-image: linear-gradient(90deg, #7f1d1d 0%, #dc2626 28%, #f97316 60%, #b91c1c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 12px 28px rgba(220, 38, 38, 0.24));
    text-shadow: none;
}

#hero-section .hero-title .inline-grid>.invisible {
    display: none;
}

.dark #hero-section .js-typewriter,
.dark #hero-section #typewriter {
    background-image: linear-gradient(90deg, #fb7185 0%, #f87171 30%, #fb923c 62%, #f43f5e 100%);
}

#hero-section #typewriter::after,
#hero-section .js-typewriter::after {
    content: "";
    display: inline-block;
    width: 0.08em;
    height: 0.9em;
    margin-left: 0.08em;
    background: rgba(192, 57, 43, 0.85);
    vertical-align: -0.08em;
    animation: heroCaretBlink 0.9s steps(1) infinite;
}

.dark #hero-section #typewriter::after,
.dark #hero-section .js-typewriter::after {
    background: rgba(251, 113, 133, 0.92);
}

#hero-section .hero-lead,
#hero-section [data-hero-lead] {
    color: #57534e;
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    line-height: 1.8;
    max-width: 42rem;
}

.dark #hero-section .hero-lead,
.dark #hero-section [data-hero-lead] {
    color: #d6d3d1;
}

#hero-section .hero-panel,
#hero-section [data-hero-panel] {
    border: 1px solid rgba(24, 24, 27, 0.08);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.08);
}

.dark #hero-section .hero-panel,
.dark #hero-section [data-hero-panel] {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(10, 10, 10, 0.48);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

#hero-section .hero-accent,
#hero-section [data-hero-accent] {
    color: #111827;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.dark #hero-section .hero-accent,
.dark #hero-section [data-hero-accent] {
    color: #fafaf9;
}

.services-grid-overlay {
    background-image: linear-gradient(#e5e7eb 0.5px, transparent 0.5px), linear-gradient(90deg, #e5e7eb 0.5px, transparent 0.5px);
    background-size: 60px 60px;
}

.threatdown-title {
    font-size: clamp(1.9rem, 6vw, 3.8rem);
}

.reveal-mix,
section:not(#hero-section) {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal-mix.active,
section:not(#hero-section).active {
    opacity: 1;
    transform: translateY(0);
}

#hero-section {
    opacity: 1;
    transform: none;
}

@media (max-width: 768px) {

    .hero-bg-image {
        background-position: 62% center;
        background-size: cover;
    }

    #hero-section {
        min-height: calc(100svh - 70px);
    }

    #hero-section .slide-item>.max-w-4xl,
    #hero-section .slide-item>div.max-w-4xl {
        min-height: calc(100svh - 70px) !important;
        justify-content: center;
        max-width: 100% !important;
        padding-top: 2rem !important;
        padding-bottom: 2rem;
    }

    #hero-section .slide-item>.max-w-4xl>.flex,
    #hero-section .slide-item>div.max-w-4xl>.flex {
        align-items: center !important;
        width: 100%;
        gap: 1.6rem;
    }

    #hero-section .slide-item .inline-flex.items-center.gap-3,
    #hero-section .slide-item .w-full.pt-2.flex.justify-center,
    #hero-section .slide-item .flex.flex-wrap.items-center.justify-center {
        align-self: center;
        justify-content: center;
    }

    #hero-section .hero-title {
        max-width: 100%;
        font-size: clamp(3rem, 13vw, 4.8rem);
        line-height: 0.94;
        text-align: center;
    }

    #hero-section .hero-brand-line {
        gap: 0.12em;
    }

    #hero-section .hero-title .normal-case {
        font-size: 0.36em;
        max-width: 100% !important;
        line-height: 1.08;
        margin-left: auto;
        margin-right: auto;
    }

    #hero-section .js-typewriter,
    #hero-section #typewriter {
        min-width: 8ch;
        font-size: 0.62em;
    }

    .reveal-mix,
    section:not(#hero-section) {
        transform: translateY(10px);
        transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-25%);
    }
}

@keyframes heroCaretBlink {

    0%,
    45% {
        opacity: 1;
    }

    46%,
    100% {
        opacity: 0;
    }
}

.animate-marquee {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

#typewriter {
    display: inline-block;
    text-align: center;
    min-width: 10ch;
    white-space: nowrap;
}

@media (hover: none) {

    a:active,
    button:active {
        opacity: 0.85;
        transform: scale(0.98);
    }
}

html,
body {
    overflow-x: hidden;
}