/* =========================================================
   NEXXA-VIDA
   INICIO.CSS
   V9 - Experiencia visual + evolución de identidad dinámica
   ========================================================= */


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;
    min-height: calc(100vh - 78px);
    display: flex;
    align-items: center;
    padding: 100px 0 110px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    width: 820px;
    height: 620px;
    left: -170px;
    top: 5%;
    border-radius: 50%;
    pointer-events: none;
    background:
        radial-gradient(
            ellipse at center,
            rgba(255, 255, 255, 0.27) 0%,
            rgba(238, 188, 255, 0.17) 30%,
            rgba(163, 201, 255, 0.10) 52%,
            transparent 74%
        );
    filter: blur(24px);
    opacity: 0.92;
    z-index: -1;
}

.hero::after {
    content: "";
    position: absolute;
    width: 540px;
    height: 540px;
    right: -210px;
    bottom: -160px;
    border-radius: 50%;
    pointer-events: none;
    background:
        radial-gradient(
            circle,
            rgba(239, 79, 193, 0.13),
            rgba(127, 190, 255, 0.07) 40%,
            transparent 72%
        );
    filter: blur(30px);
    z-index: -1;
}

.hero-content {
    position: relative;
    max-width: 1180px;
    z-index: 2;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    margin-bottom: 24px;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.88);
    background:
        linear-gradient(
            105deg,
            rgba(255, 255, 255, 0.10),
            rgba(239, 79, 193, 0.08),
            rgba(110, 190, 255, 0.07)
        );
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow:
        0 8px 28px rgba(79, 50, 117, 0.12),
        inset 0 0 20px rgba(255, 255, 255, 0.08);
}

.hero h1 {
    max-width: 1080px;
    margin: 0 0 32px;
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 8vw, 7.2rem);
    font-weight: 600;
    line-height: 0.94;
    letter-spacing: -0.055em;
    color: #ffffff;
    text-shadow:
        0 3px 5px rgba(67, 42, 92, 0.28),
        0 8px 28px rgba(76, 47, 105, 0.18),
        0 0 38px rgba(255, 255, 255, 0.18);
}

.energy-title {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: min(100%, 1080px);
    margin: 1rem 0 1.6rem;
    perspective: 1000px;
    isolation: isolate;
}

.energy-title-main {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 0.18em 0.3em;
    max-width: 1000px;
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6.2vw, 6.5rem);
    font-weight: 800;
    line-height: 0.88;
    letter-spacing: -0.06em;
    text-transform: uppercase;
    isolation: isolate;
}

.energy-word {
    position: relative;
    display: inline-block;
    color: transparent;
    background:
        linear-gradient(
            110deg,
            #ff45c8 0%,
            #c45cff 24%,
            #8067ff 48%,
            #5de8ed 72%,
            #ff45c8 100%
        );
    background-size: 300% 100%;
    background-position: 0% 50%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter:
        drop-shadow(0 0 8px rgba(255, 63, 196, 0.22))
        drop-shadow(0 0 22px rgba(99, 220, 235, 0.12));
    animation:
        energyFlow 7s linear infinite,
        energyEntry 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
    transform-origin: center left;
}

.energy-word:nth-child(1) {
    animation-delay: 0s, 0s;
}

.energy-word:nth-child(2) {
    animation-delay: 0s, 0.12s;
}

.energy-word:nth-child(3) {
    animation-delay: 0s, 0.24s;
}

.energy-word::before {
    content: "";
    position: absolute;
    inset: -8% -4%;
    z-index: -1;
    border-radius: 50%;
    background:
        radial-gradient(
            ellipse at center,
            rgba(255, 55, 201, 0.20),
            rgba(127, 87, 255, 0.10) 42%,
            transparent 72%
        );
    filter: blur(18px);
    opacity: 0.8;
    pointer-events: none;
}

.energy-word::after {
    content: "";
    position: absolute;
    top: -5%;
    bottom: -5%;
    left: -25%;
    width: 8%;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.95),
            rgba(107, 240, 239, 0.60),
            transparent
        );
    filter: blur(3px);
    transform: skewX(-18deg);
    opacity: 0;
    animation: energySweep 5.5s ease-in-out infinite;
    pointer-events: none;
}

.energy-title-evolution {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.18em 0.32em;
    margin-top: 0.85rem;
    padding-left: 0.08rem;
    font-family: var(--font-display);
    font-size: clamp(2.15rem, 4.6vw, 4.7rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.045em;
    isolation: isolate;
}

.evolution-word {
    position: relative;
    display: inline-block;
    color: transparent;
    background:
        linear-gradient(
            110deg,
            #8fe9e8 0%,
            #a99aff 18%,
            #e5b8ff 35%,
            #74dfe7 52%,
            #a98aff 70%,
            #ff76d5 86%,
            #8fe9e8 100%
        );
    background-size: 320% 100%;
    background-position: 0% 50%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter:
        drop-shadow(0 0 8px rgba(111, 224, 230, 0.25))
        drop-shadow(0 0 18px rgba(165, 133, 255, 0.22))
        drop-shadow(0 0 28px rgba(255, 91, 205, 0.12));
    animation:
        evolutionFlow 7s ease-in-out infinite,
        evolutionEntry 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
    transform-origin: left center;
}

.evolution-word:nth-child(1) {
    animation-delay: 0s, 0.45s;
}

.evolution-word:nth-child(2) {
    animation-delay: 0s, 0.6s;
}

.evolution-word::before {
    content: "";
    position: absolute;
    inset: -18% -7%;
    z-index: -1;
    border-radius: 50%;
    background:
        radial-gradient(
            ellipse at center,
            rgba(105, 232, 232, 0.18),
            rgba(158, 130, 255, 0.15) 40%,
            rgba(255, 91, 205, 0.08) 62%,
            transparent 78%
        );
    filter: blur(18px);
    opacity: 0.8;
    pointer-events: none;
    animation: evolutionAura 5s ease-in-out infinite;
}

.evolution-word::after {
    content: "";
    position: absolute;
    top: -12%;
    bottom: -12%;
    left: -28%;
    width: 9%;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.98),
            rgba(117, 239, 239, 0.72),
            rgba(255, 111, 211, 0.42),
            transparent
        );
    filter: blur(3px);
    transform: skewX(-18deg);
    opacity: 0;
    pointer-events: none;
    animation: evolutionSweep 5.8s ease-in-out infinite;
}

@keyframes energyFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes energyEntry {
    0% {
        opacity: 0;
        transform:
            translateY(38px)
            scale(0.94)
            rotateX(18deg);
        filter: blur(14px);
    }

    60% {
        opacity: 1;
        filter: blur(0);
    }

    100% {
        opacity: 1;
        transform:
            translateY(0)
            scale(1)
            rotateX(0);
        filter: blur(0);
    }
}

@keyframes energySweep {
    0%,
    48% {
        left: -25%;
        opacity: 0;
    }

    55% {
        opacity: 0.95;
    }

    66% {
        left: 115%;
        opacity: 0;
    }

    100% {
        left: 115%;
        opacity: 0;
    }
}

@keyframes evolutionFlow {
    0% {
        background-position: 0% 50%;
        filter:
            drop-shadow(0 0 8px rgba(111, 224, 230, 0.25))
            drop-shadow(0 0 18px rgba(165, 133, 255, 0.22))
            drop-shadow(0 0 28px rgba(255, 91, 205, 0.12));
    }

    25% {
        background-position: 42% 50%;
        filter:
            drop-shadow(0 0 11px rgba(169, 138, 255, 0.28))
            drop-shadow(0 0 23px rgba(255, 91, 205, 0.16))
            drop-shadow(0 0 31px rgba(111, 224, 230, 0.15));
    }

    50% {
        background-position: 100% 50%;
        filter:
            drop-shadow(0 0 12px rgba(111, 231, 235, 0.30))
            drop-shadow(0 0 24px rgba(169, 138, 255, 0.25))
            drop-shadow(0 0 30px rgba(255, 91, 205, 0.14));
    }

    75% {
        background-position: 55% 50%;
        filter:
            drop-shadow(0 0 10px rgba(255, 113, 211, 0.24))
            drop-shadow(0 0 22px rgba(165, 133, 255, 0.27))
            drop-shadow(0 0 30px rgba(111, 224, 230, 0.15));
    }

    100% {
        background-position: 0% 50%;
        filter:
            drop-shadow(0 0 8px rgba(111, 224, 230, 0.25))
            drop-shadow(0 0 18px rgba(165, 133, 255, 0.22))
            drop-shadow(0 0 28px rgba(255, 91, 205, 0.12));
    }
}

@keyframes evolutionEntry {
    0% {
        opacity: 0;
        transform:
            translateY(28px)
            scale(0.94);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform:
            translateY(0)
            scale(1);
        filter:
            drop-shadow(0 0 8px rgba(111, 224, 230, 0.25))
            drop-shadow(0 0 18px rgba(165, 133, 255, 0.22))
            drop-shadow(0 0 28px rgba(255, 91, 205, 0.12));
    }
}

@keyframes evolutionAura {
    0%,
    100% {
        transform: scale(0.94);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.06);
        opacity: 1;
    }
}

@keyframes evolutionSweep {
    0%,
    50%,
    100% {
        left: -28%;
        opacity: 0;
    }

    58% {
        opacity: 0.95;
    }

    70% {
        left: 125%;
        opacity: 0;
    }
}

.hero-description {
    max-width: 720px;
    margin: 0 0 36px;
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.45vw, 1.16rem);
    line-height: 1.75;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.90);
    text-shadow:
        0 2px 4px rgba(55, 34, 78, 0.42),
        0 0 16px rgba(255, 255, 255, 0.12);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.flow-section {
    padding: 110px 0 120px;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 48px;
}

.section-kicker {
    display: block;
    margin-bottom: 13px;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: rgba(255, 211, 245, 0.88);
    text-shadow:
        0 0 16px rgba(239, 79, 193, 0.24);
}

.section-heading h2,
.know-panel h2 {
    margin: 0 0 18px;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.6rem);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -0.045em;
    color: rgba(255, 255, 255, 0.96);
    text-shadow:
        0 4px 20px rgba(68, 43, 94, 0.20);
}

.section-heading p {
    max-width: 680px;
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(250, 246, 255, 0.75);
}

.dimension-carousel {
    --carousel-color: rgba(173, 137, 239, 0.96);
    position: relative;
    width: 100%;
    padding: 22px 0 72px;
}

.carousel-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 36px 0 42px;
}

.dimension-track {
    display: flex;
    align-items: stretch;
    gap: 22px;
    width: max-content;
    will-change: transform;
    transition:
        transform 620ms cubic-bezier(.2, .82, .18, 1);
}

.dimension-card {
    --card-color: rgba(173, 137, 239, 0.94);
    position: relative;
    flex: 0 0 min(720px, calc(100vw - 120px));
    min-height: 430px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: scale(0.86) translateY(16px);
    opacity: 0.52;
    filter: saturate(0.76) brightness(0.88);
    transition:
        transform 620ms cubic-bezier(.2, .82, .18, 1),
        opacity 420ms ease,
        filter 420ms ease,
        box-shadow 420ms ease,
        border-color 420ms ease;
}

.dimension-card.is-active {
    transform: scale(1) translateY(0);
    opacity: 1;
    filter: saturate(1) brightness(1);
    z-index: 5;
    border-color:
        color-mix(
            in srgb,
            var(--card-color) 76%,
            white
        );
    box-shadow:
        0 34px 90px rgba(55, 32, 88, 0.24),
        0 0 42px
        color-mix(
            in srgb,
            var(--card-color) 30%,
            transparent
        ),
        inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.dimension-card:not(.is-active) {
    pointer-events: none;
}

.dimension-visual {
    position: relative;
    width: 100%;
    height: 178px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.11),
            rgba(255, 255, 255, 0.025)
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 0 40px rgba(255, 255, 255, 0.035);
}

.dimension-visual::after {
    content: "";
    position: absolute;
    inset: -40%;
    background:
        radial-gradient(
            circle at 50% 50%,
            color-mix(
                in srgb,
                var(--card-color) 26%,
                transparent
            ),
            transparent 62%
        );
    filter: blur(22px);
    opacity: 0.62;
    pointer-events: none;
}

.dimension-image {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    padding: 16px;
    object-fit: contain;
    object-position: center;
    filter:
        drop-shadow(
            0 0 18px
            color-mix(
                in srgb,
                var(--card-color) 42%,
                transparent
            )
        );
    transition:
        transform 620ms cubic-bezier(.2, .82, .18, 1),
        filter 420ms ease;
}

.dimension-card.is-active .dimension-image {
    transform: scale(1.06);
    filter:
        drop-shadow(
            0 0 28px
            color-mix(
                in srgb,
                var(--card-color) 58%,
                transparent
            )
        );
}

.dimension-content {
    position: relative;
    z-index: 4;
}

.dimension-label {
    display: inline-block;
    margin-bottom: 9px;
    font-family: var(--font-display);
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.17em;
    color:
        color-mix(
            in srgb,
            var(--card-color) 78%,
            white
        );
    text-shadow:
        0 0 14px
        color-mix(
            in srgb,
            var(--card-color) 34%,
            transparent
        );
}

.dimension-card h3 {
    margin: 0 0 13px;
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.045em;
    color:
        color-mix(
            in srgb,
            var(--card-color) 82%,
            white
        );
    text-shadow:
        0 0 24px
        color-mix(
            in srgb,
            var(--card-color) 36%,
            transparent
        );
}

.dimension-card p {
    max-width: 560px;
    margin: 0 0 18px;
    font-family: var(--font-body);
    font-size: 0.96rem;
    line-height: 1.75;
    color: rgba(249, 245, 255, 0.80);
}

.dimension-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 11px;
    border:
        1px solid
        color-mix(
            in srgb,
            var(--card-color) 42%,
            white
        );
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.74);
    background:
        color-mix(
            in srgb,
            var(--card-color) 10%,
            transparent
        );
    box-shadow:
        0 0 18px
        color-mix(
            in srgb,
            var(--card-color) 16%,
            transparent
        );
}

.category-rest {
    --card-color: rgba(78, 219, 211, 0.94);
    --category-glow: rgba(78, 219, 211, 0.58);
}

.category-food {
    --card-color: rgba(173, 137, 239, 0.96);
    --category-glow: rgba(173, 137, 239, 0.62);
}

.category-move {
    --card-color: rgba(239, 79, 193, 0.98);
    --category-glow: rgba(239, 79, 193, 0.64);
}

.carousel-control {
    position: absolute;
    top: 50%;
    z-index: 20;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.94);
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(16px) saturate(130%);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
    box-shadow:
        0 12px 32px rgba(49, 30, 79, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
    cursor: pointer;
    transition:
        transform 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease,
        background 220ms ease;
}

.carousel-control span {
    position: relative;
    top: -2px;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    line-height: 1;
}

.carousel-control-prev {
    left: 4px;
}

.carousel-control-next {
    right: 4px;
}

.carousel-control:hover,
.carousel-control:focus-visible {
    transform: translateY(-50%) scale(1.08);
    border-color: rgba(255, 186, 235, 0.78);
    background: rgba(255, 255, 255, 0.16);
    box-shadow:
        0 16px 38px rgba(49, 30, 79, 0.22),
        0 0 28px rgba(239, 79, 193, 0.20);
}

.carousel-indicators {
    position: absolute;
    left: 50%;
    bottom: 16px;
    display: flex;
    align-items: center;
    gap: 9px;
    transform: translateX(-50%);
}

.carousel-indicator {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.20);
    cursor: pointer;
    transition:
        width 260ms ease,
        transform 260ms ease,
        background 260ms ease,
        box-shadow 260ms ease;
}

.carousel-indicator.is-active {
    width: 28px;
    border-radius: 999px;
    background:
        linear-gradient(
            90deg,
            rgba(239, 79, 193, 0.96),
            rgba(173, 137, 239, 0.96),
            rgba(78, 219, 211, 0.90)
        );
    box-shadow:
        0 0 16px rgba(239, 79, 193, 0.38);
}

.know-section {
    padding: 40px 0 120px;
}

.know-panel {
    max-width: 940px;
    padding: clamp(32px, 5vw, 62px);
}

.know-panel::before {
    background:
        radial-gradient(
            460px circle at 12% 30%,
            rgba(255, 255, 255, 0.22),
            rgba(239, 79, 193, 0.12) 28%,
            rgba(117, 188, 255, 0.08) 46%,
            transparent 72%
        );
    opacity: 0.8;
}

.know-panel h2 {
    max-width: 720px;
}

.know-panel p {
    max-width: 700px;
    margin: 0 0 28px;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(249, 245, 255, 0.78);
}

@media (max-width: 1000px) {
    .hero {
        min-height: auto;
        padding: 90px 0;
    }

    .hero h1 {
        font-size: clamp(3.2rem, 9vw, 5.8rem);
    }

    .dimension-card {
        flex-basis: min(620px, calc(100vw - 100px));
    }

    .carousel-control-prev {
        left: 0;
    }

    .carousel-control-next {
        right: 0;
    }
}

@media (max-width: 900px) {
    .energy-title-main {
        font-size: clamp(2.8rem, 9vw, 5.8rem);
    }

    .energy-title-evolution {
        font-size: clamp(1.95rem, 6.5vw, 3.8rem);
    }
}

@media (max-width: 700px) {
    .hero {
        padding: 72px 0 82px;
    }

    .eyebrow {
        margin-bottom: 20px;
        font-size: 0.61rem;
        letter-spacing: 0.12em;
    }

    .hero h1 {
        margin-bottom: 28px;
        font-size: clamp(3rem, 14vw, 4.7rem);
        line-height: 0.95;
    }

    .hero-description {
        font-size: 0.94rem;
        line-height: 1.7;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .nexa-button {
        width: 100%;
    }

    .flow-section {
        padding: 80px 0 90px;
    }

    .section-heading {
        margin-bottom: 28px;
    }

    .dimension-carousel {
        padding-bottom: 64px;
    }

    .carousel-viewport {
        padding: 22px 0 34px;
    }

    .dimension-track {
        gap: 14px;
    }

    .dimension-card {
        flex-basis: calc(100vw - 56px);
        min-height: 430px;
        padding: 24px;
        transform: scale(0.88) translateY(12px);
    }

    .dimension-card.is-active {
        transform: scale(1) translateY(0);
    }

    .dimension-visual {
        height: 160px;
        margin-bottom: 22px;
    }

    .dimension-image {
        padding: 12px;
    }

    .carousel-control {
        width: 46px;
        height: 46px;
    }

    .carousel-control-prev {
        left: -2px;
    }

    .carousel-control-next {
        right: -2px;
    }

    .know-section {
        padding: 10px 0 90px;
    }

    .know-panel {
        padding: 30px 24px;
    }

    .energy-title {
        margin-top: 1rem;
    }

    .energy-title-main {
        gap: 0.14em 0.22em;
        font-size: clamp(2.45rem, 13vw, 4.5rem);
        line-height: 0.9;
    }

    .energy-title-evolution {
        gap: 0.12em 0.2em;
        margin-top: 0.8rem;
        font-size: clamp(1.65rem, 7.5vw, 2.65rem);
        line-height: 0.95;
    }
}

@media (max-width: 430px) {
    .hero h1 {
        font-size: clamp(2.65rem, 14.5vw, 4rem);
    }

    .dimension-card {
        min-height: 410px;
    }

    .dimension-visual {
        height: 145px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .energy-word,
    .evolution-word,
    .evolution-word::before,
    .evolution-word::after {
        animation: none;
    }

    .dimension-track,
    .dimension-card,
    .dimension-image,
    .carousel-control,
    .carousel-indicator {
        transition: none;
    }
}