/* =========================================
   1. DUAL-STATE HEADER LOGIC
   ========================================= */

.header {
    transition: background-color 0.3s ease, padding 0.3s ease, transform 0.3s ease;
}

/* Estado inicial / scroll en hero: header transparente */
.header:not(.header-scrolled) {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header:not(.header-scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.header:not(.header-scrolled) .nav-link:hover {
    color: var(--white);
    opacity: 1;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
}

.header:not(.header-scrolled) .navbar-svg-icon .toggler-line {
    stroke: var(--white) !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.header:not(.header-scrolled) .navbar-toggler:not(.collapsed) .toggler-line {
    stroke: var(--text-color) !important;
    filter: none;
}

.header:not(.header-scrolled) .navbar-brand .logo,
.header:not(.header-scrolled) .premium {
    filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* =========================================
   2. HERO SECTION
   ========================================= */
.herosection-container {
    padding: 10vh;
}

.welcome {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    height: 100vh;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
}

#liquid-container {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;

    margin-top: 30px;
    padding: 0.8rem 2.5rem;
    border: 2px solid var(--purple-light);
    border-radius: 50px;

    background-color: transparent;
    color: var(--purple-light);

    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;

    cursor: pointer;
    transition: all 0.3s ease;
}

.btn i,
.btn svg {
    margin-right: 8px;
    font-size: 1rem;
    vertical-align: middle;
}

.btn:hover {
    transform: translateY(-2px);
    background-color: var(--purple-light);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(138, 79, 248, 0.2);
}

.hero-content .btn {
    border-color: var(--white);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-content .btn:hover {
    background-color: var(--white);
    color: var(--purple-light);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .btn {
        padding: 8px 16px;
        font-size: 16px;
    }

    .text-white {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 7px 14px;
    }

    .btn .btn-icon {
        width: 16px;
        margin-right: 6px;
    }
}

/* =========================================
   3. HERO TYPOGRAPHY
   ========================================= */
/* Hero Headings */
.text-main h1 {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 80px;
    letter-spacing: -1px;
    line-height: 1.1;
    text-align: center;
}

.text-main h1 span {
    font-family: var(--font-secondary);
    font-weight: 600;
    font-style: italic;
    font-size: 90px;
}

.text-main h4 {
    margin-top: 30px;
    font-weight: 300;
    font-size: 23px;
}

.words-wrapper .words {
    display: inline-block;
    position: relative;
    vertical-align: middle;
    width: var(--width);
    height: 90px;
    padding: 0 10px;
    box-sizing: content-box;
    transition: all 0.8s;
}

.words-wrapper .words span {
    position: absolute;
    top: 50%;
    left: 50%;
    opacity: 0;
    transform: translate(-50%, -150%);
    transition: transform 0.7s, opacity 0.25s 0.25s;
    line-height: 1;
    margin-top: -6px;
}

.words-wrapper .words span.current {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.words-wrapper .words span.next {
    transform: translate(-50%, 50%);
}

@media (max-width: 1200px) {
    .text-main h1 {
        font-size: 65px;
    }

    .text-main h1 span {
        font-size: 75px;
    }

    .text-main h4 {
        font-size: 21px;
    }

    .words-wrapper .words {
        height: 75px;
    }

    .words-wrapper .words span.current {
        transform: translate(-50%, -50%);
    }

    .welcome {
        background-size: cover;
    }
}

@media (max-width: 1024px) {
    .text-main h1 {
        font-size: 55px;
    }

    .text-main h1 span {
        font-size: 65px;
    }

    .text-main h4 {
        font-size: 19px;
    }

    .words-wrapper .words {
        height: 65px;
    }

    .words-wrapper .words span.current {
        transform: translate(-50%, -50%);
    }
}

@media (max-width: 768px) {
    .text-main h1 {
        font-size: 45px;
    }

    .text-main h1 span {
        font-size: 55px;
    }

    .text-main h4 {
        font-size: 18px;
    }

    .words-wrapper .words {
        height: 55px;
    }
}

@media (max-width: 480px) {
    .text-main h1 {
        font-size: 36px;
    }

    .text-main h1 span {
        font-size: 44px;
    }

    .text-main h4 {
        font-size: 16px;
    }

    .words-wrapper .words {
        height: 44px;
    }
}

/* =========================================
   4. FEATURES & SECTIONS
   ========================================= */
.reading {
    padding: 5rem 0 0;
}

@media (max-width: 768px) {
    .reading {
        padding: 2.5rem 0 0;
    }
}

.reading-section {
    padding: 20px;
    text-align: center;
}

.reading-heading {
    margin: 0;
    font-size: 32px;
}

.reading-subtext {
    margin: 10px 0;
    color: var(--text-muted);
    font-size: 19.2px;
}

.dif-txt {
    color: var(--purple-light);
    font-family: var(--font-secondary) !important;
    font-size: 41px;
    font-style: italic;
}

@media (max-width: 1200px) {
    .reading-heading {
        font-size: 22px;
    }

    .dif-txt {
        font-size: 28px;
    }

    .reading-icon {
        width: 20px;
        height: 20px;
    }

    .reading-subtext {
        font-size: 15px;
    }
}

/* =========================================
   5. FAQ SECTION
   ========================================= */
.wrapper-faq {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60%;
    margin: 50px auto;
}

.container-faq {
    /* Visual */
    background-color: var(--bg-main);
    color: var(--text-color);
    border: 1px solid #ccc;
    border-radius: 12px;

    /* Layout */
    width: 100%;
    margin: 10px 0;
    overflow: hidden;
}

.question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 16px 20px;
    color: var(--purple-hover);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.question::after {
    content: "";
    flex-shrink: 0;
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 50%;


    background-color: var(--purple-light);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'%3E%3C/line%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 16px;

    box-shadow: 0 4px 10px rgba(157, 96, 207, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.question.active::after {
    transform: rotate(135deg);
    background-color: var(--soft-orange);
    box-shadow: 0 4px 10px rgba(225, 148, 127, 0.3);
}

.answercont {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.container-faq .answer {
    padding: 0 20px 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .faq-header {
        text-align: left !important;
        padding: 0 !important;
        position: sticky;
        top: 100px;
    }
}

@media screen and (max-width: 790px) {
    .wrapper-faq {
        width: 90%;
    }

    .question {
        font-size: 0.9rem;
    }
}

/* =========================================
   6. PRICING SECTION
   ========================================= */
.pricing-sec {
    background-color: var(--bg-main);
    border: 1.5px solid rgba(200, 200, 200, 0.5);
}

.pricing-sec h2 {
    padding-top: 10px;
}

.rounded-lg {
    border-radius: 1rem !important;
}

.text-small {
    font-size: 0.9rem !important;
}

.text-uppercase {
    letter-spacing: 0.2em;
}

.btn-warning {
    color: var(--white);
}

.btn-warning:hover {
    color: var(--white);
}

.gradient-txt {
    display: inline-block;
    background-image: linear-gradient(45deg, #7dd191, #54afe4, var(--purple-light), var(--purple-light));
    background-size: 300% 100%;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: gradientAnimation 4s linear infinite alternate;
}

.gradient-bg {
    display: inline-block;
    background-image: linear-gradient(45deg, #7dd191, #54afe4, var(--purple-light), var(--purple-light));
    background-size: 300% 100%;
    animation: gradientAnimation 4s linear infinite alternate;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

.gradient-txt-vitalia {
    background-image: linear-gradient(45deg, #E1947F, #9d60cf, #80CACD, #E1947F);
    background-size: 300% 100%;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: gradientAnimation 8s linear infinite alternate;
}

body {
    position: relative;
    overflow-x: hidden;
}

/* =========================================
   7. BACKGROUND DECORATIONS
   ========================================= */
.decoration-container {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

.decoration-star {
    position: absolute;
    z-index: 1;
    width: 40px;
    height: 40px;
    color: var(--purple-light);
    animation: pulse-sparkle 3s infinite ease-in-out;
}

.decoration-star svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.blur-glow {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(circle, var(--purple-light) 0%, rgba(157, 96, 207, 0) 70%);
    filter: blur(90px);
    opacity: 0.4;
}

@keyframes pulse-sparkle {

    0%,
    100% {
        opacity: 0.8;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}

.glow-faq {
    top: 45%;
    right: -15%;
    width: 500px;
    height: 500px;
}

.star-faq {
    top: 48%;
    left: 5%;
}

.glow-pricing {
    top: 75%;
    left: -15%;
    width: 600px;
    height: 600px;
}

.star-pricing {
    top: 78%;
    right: 8%;
}

.hero-composition {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    min-width: 100%;
    min-height: 100vh;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
    transform: scale(1.15);
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

.hero-flower {
    position: absolute;
    top: 20%;
    z-index: 2;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    width: auto;
}

.flower-left {
    left: 0;
    height: 100vh;
}

.flower-right {
    right: 0;
    height: 100vh;
}

@media (min-width: 1025px) {
    .flower-left {
        left: 0%;
        height: 90vh;
    }

    .flower-right {
        right: -2%;
        height: 90vh;
    }
}

@media (max-width: 1024px) {
    .flower-left {
        left: -1%;
        height: 90vh;
    }

    .flower-right {
        right: -1%;
        height: 90vh;
    }
}

@media (max-width: 768px) {
    .hero-flower {
        opacity: 0.9;
        height: auto;
    }

    .flower-left {
        left: -10%;
        width: 60vw;
        max-width: 300px;
        bottom: 0;
        top: auto;
    }

    .flower-right {
        right: -10%;
        width: 60vw;
        max-width: 300px;
        bottom: 0;
        top: auto;
    }
}

@media (max-width: 991px) {
    .header:not(.header-scrolled) .nav-link {
        color: var(--black) !important;
    }

    .header:not(.header-scrolled) .nav-link:hover {
        color: var(--black) !important;
    }
}

.hero-content {
    position: relative;
    z-index: 3;
}

/* =========================================
   PERFORMANCE OPTIMIZATION (CLS Fixes)
   ========================================= */

#magic-bento-root {
    min-height: 800px;
    contain: content;
    margin-top: 4rem;
    margin-bottom: 2rem;
}

#faq-list-root {
    min-height: 200px;
    contain: content;
}

#pricing-list-root {
    min-height: 200px;
    contain: content;
}

@media (max-width: 768px) {
    #magic-bento-root {
        min-height: 1400px;
        margin-top: 2rem;
        margin-bottom: 1rem;
    }
}

#header-placeholder {
    min-height: 0 !important;
}