// ═══════════════════════════════════════════════
// FERMENTY — Landing page
// ═══════════════════════════════════════════════

// ── Hero ─────────────────────────────────────
.landing-hero {
    background-color: $green-main;
    // SIN linear-gradient hardcodeado — fondo plano, más limpio y rápido

    .hero-inner {
        max-width: 680px;
        margin: 0 auto;
    }

    .hero-tag {
        display: inline-block;
        background: rgba(255, 255, 255, 0.12);
        color: $green-light;
        font-size: $font-size-sm;
        padding: 4px $spacing-lg;
        border-radius: $radius-pill;
        letter-spacing: 0.03em;
    }

    .hero-title {
        font-family: $font-brand;
        color: #fff;
        font-size: clamp(1.6rem, 5vw, 2.2rem);
        font-weight: $font-weight-medium;
        line-height: 1.2;
    }

    .hero-highlight { color: $orange-main; }

    .hero-subtitle {
        font-family: $font-ui;
        color: rgba(255, 255, 255, 0.75);
        font-size: $font-size-lg;
        max-width: 500px;
        line-height: 1.65;
    }

    .hero-pill {
        background: rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.8);
        font-size: $font-size-sm;
        padding: 5px $spacing-md;
        border-radius: $radius-pill;
        text-decoration: none;
        transition: $transition-base;

        &:hover {
            background: rgba(255, 255, 255, 0.18);
            color: #fff;
        }

        &.hero-pill-premium {
            color: lighten($orange-main, 18%);
            background: rgba($orange-main, 0.18);
        }
    }

    .btn-hero-outline {
        background: transparent;
        color: #fff;
        border: 1.5px solid rgba(255, 255, 255, 0.45);
        border-radius: $radius-pill;
        padding: 10px $spacing-xl;
        font-family: $font-ui;
        font-weight: $font-weight-medium;
        transition: $transition-base;

        &:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.75);
            color: #fff;
        }
    }
}

// ── Sections ─────────────────────────────────
.landing-section {
    .section-title {
        font-family: $font-brand;
        font-size: $font-size-2xl;
        font-weight: $font-weight-medium;
        color: $text-dark;
        text-align: center;
        margin-bottom: $spacing-xs;
    }

    .section-subtitle {
        font-size: $font-size-md;
        color: $text-muted;
        text-align: center;
        max-width: 520px;
        margin: 0 auto;
        line-height: 1.65;
    }
}

// ── How it works ─────────────────────────────
.how-step {
    padding: $spacing-lg $spacing-md;
    text-align: center;

    .how-step-num {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: $green-main;
        color: #fff;
        font-size: $font-size-lg;
        font-weight: $font-weight-semibold;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto $spacing-md;
    }

    .how-step-title {
        font-family: $font-brand;
        font-size: $font-size-lg;
        font-weight: $font-weight-medium;
        color: $text-dark;
        margin-bottom: $spacing-xs;
    }

    .how-step-text {
        font-size: $font-size-md;
        color: $text-muted;
        line-height: 1.6;
    }
}

// ── Ferment cards ────────────────────────────
.ferment-card {
    background: #fff;
    border: $border-width solid $border-color;
    border-radius: $radius-lg;
    padding: $spacing-lg;
    text-align: center;
    transition: $transition-base;
    position: relative;
    height: 100%;

    &:hover {
        border-color: $green-mid;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba($green-main, 0.08);
    }

    &.ferment-card-premium {
        opacity: 0.8;

        &:hover {
            border-color: $orange-main;
            box-shadow: 0 6px 20px rgba($orange-main, 0.1);
        }
    }

    .ferment-card-letter {
        width: 50px;
        height: 50px;
        border-radius: $radius-md;
        background-color: $green-pale;
        color: $green-main;
        font-size: 1.4rem;
        font-weight: $font-weight-semibold;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto $spacing-sm;

        &.orange {
            background-color: $orange-light;
            color: $orange-text;
        }
    }

    .ferment-card-name {
        font-family: $font-brand;
        font-size: $font-size-md;
        font-weight: $font-weight-medium;
        color: $text-dark;
        margin-bottom: $spacing-xs;
    }

    .ferment-card-days {
        font-size: $font-size-xs;
        color: $text-hint;
        margin-bottom: $spacing-xs;
    }

    .ferment-card-badge {
        font-size: $font-size-xs;
        padding: 2px $spacing-sm;
        border-radius: $radius-pill;
        display: inline-block;
        font-weight: $font-weight-medium;

        &.badge-free    { background: $green-pale;   color: $green-main; }
        &.badge-premium { background: $orange-light;  color: $orange-text; }
    }

    .ferment-card-lock {
        position: absolute;
        top: $spacing-sm;
        right: $spacing-sm;
        font-size: 13px;
        opacity: 0.5;
    }
}

// ── Feature cards ────────────────────────────
.feature-card {
    background: $green-bg;
    border: $border-width solid $border-color;
    border-radius: $radius-lg;
    padding: $spacing-xl $spacing-lg;
    height: 100%;
    transition: $transition-base;

    &:hover { border-color: $border-strong; }

    .feature-icon {
        width: 42px;
        height: 42px;
        border-radius: $radius-md;
        background: $green-pale;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: $spacing-md;
        color: $green-main;
        font-size: 1.1rem;
    }

    .feature-title {
        font-family: $font-brand;
        font-size: $font-size-lg;
        font-weight: $font-weight-medium;
        color: $text-dark;
        margin-bottom: $spacing-xs;
    }

    .feature-text {
        font-size: $font-size-md;
        color: $text-muted;
        line-height: 1.6;
    }
}

// ── Newsletter inline ─────────────────────────
.newsletter-box {
    max-width: 520px;

    .newsletter-form { max-width: 440px; margin: 0 auto; }

    .newsletter-input {
        border-radius: $radius-pill !important;
        border: $border-width solid $border-color;
        font-family: $font-ui;
        padding: 10px $spacing-lg;
        min-width: 220px;

        &:focus {
            border-color: $green-mid;
            box-shadow: 0 0 0 3px rgba($green-mid, 0.12);
        }
    }
}

// ═══════════════════════════════════════════════
// PREMIUM LANDING
// ═══════════════════════════════════════════════

.premium-hero {
    background-color: $green-dark;
    // Sin gradient hardcodeado

    .premium-badge-label {
        display: inline-block;
        background: rgba($orange-main, 0.18);
        color: lighten($orange-main, 18%);
        font-size: $font-size-xs;
        font-weight: $font-weight-semibold;
        letter-spacing: 0.1em;
        padding: 4px $spacing-md;
        border-radius: $radius-pill;
        border: 1px solid rgba($orange-main, 0.35);
    }
}

.premium-hero-title {
    font-family: $font-brand;
    color: #fff;
    font-size: clamp(1.5rem, 5vw, 2.4rem);
    font-weight: $font-weight-medium;
    line-height: 1.2;
}

.premium-hero-highlight { color: $orange-main; }

.premium-hero-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: $font-size-lg;
    max-width: 560px;
    line-height: 1.7;
}

.btn-premium-cta {
    background: $orange-main;
    color: #fff;
    border: none;
    border-radius: $radius-pill;
    padding: 12px $spacing-2xl;
    font-family: $font-ui;
    font-weight: $font-weight-semibold;
    font-size: $font-size-md;
    transition: $transition-base;

    &:hover {
        background: $orange-hover;
        color: #fff;
        transform: translateY(-1px);
    }
}

.btn-premium-outline {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: $radius-pill;
    padding: 12px $spacing-2xl;
    font-family: $font-ui;
    font-weight: $font-weight-medium;
    transition: $transition-base;

    &:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.75);
        color: #fff;
    }
}

.premium-section {
    .premium-section-title {
        font-family: $font-brand;
        font-size: $font-size-2xl;
        font-weight: $font-weight-medium;
        color: $text-dark;
    }

    .premium-section-subtitle,
    .premium-section-text {
        font-size: $font-size-md;
        color: $text-muted;
        line-height: 1.75;
    }
}

.premium-benefit-card {
    background: #fff;
    border: $border-width solid $border-color;
    border-radius: $radius-lg;
    padding: $spacing-xl $spacing-lg;
    height: 100%;
    transition: $transition-base;
    text-align: center;

    &:hover {
        border-color: $orange-border;
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba($orange-main, 0.08);
    }

    .premium-benefit-icon {
        font-size: 1.8rem;
        margin-bottom: $spacing-md;
        line-height: 1;
    }

    .premium-benefit-title {
        font-family: $font-brand;
        font-size: $font-size-lg;
        font-weight: $font-weight-medium;
        color: $text-dark;
        margin-bottom: $spacing-xs;
    }

    .premium-benefit-text {
        font-size: $font-size-md;
        color: $text-muted;
        line-height: 1.6;
        margin: 0;
    }
}

.premium-compare-card {
    border-radius: $radius-lg;
    border: $border-width solid $border-color;
    padding: $spacing-xl;
    height: 100%;
    position: relative;

    &.premium-compare-free {
        background: $green-bg;
    }

    &.premium-compare-premium {
        background: #fff;
        border-color: $orange-main;
        border-width: 2px;
        box-shadow: 0 8px 32px rgba($orange-main, 0.1);
    }

    .premium-compare-badge-top {
        position: absolute;
        top: -13px;
        left: 50%;
        transform: translateX(-50%);
        background: $orange-main;
        color: #fff;
        font-size: $font-size-xs;
        font-weight: $font-weight-semibold;
        padding: 4px $spacing-lg;
        border-radius: $radius-pill;
        white-space: nowrap;
    }

    .premium-compare-plan {
        font-family: $font-brand;
        font-size: $font-size-xl;
        font-weight: $font-weight-medium;
        color: $text-dark;
    }

    .premium-compare-price {
        font-size: $font-size-sm;
        color: $text-muted;
        font-weight: $font-weight-medium;
    }

    .premium-compare-list {
        list-style: none;
        padding: 0;
        margin: 0;

        li {
            font-size: $font-size-md;
            color: $text-mid;
            padding: $spacing-xs 0;
            border-bottom: $border-width solid rgba($border-color, 0.7);

            &:last-child { border-bottom: none; }

            &.disabled {
                color: $text-hint;
                text-decoration: line-through;
                opacity: 0.5;
            }
        }
    }
}

.premium-testimonial {
    background: $green-pale;
    border-left: 3px solid $green-mid;
    border-radius: 0 $radius-md $radius-md 0;
    padding: $spacing-lg $spacing-xl;

    .premium-testimonial-text {
        font-size: $font-size-md;
        color: $text-dark;
        line-height: 1.7;
        font-style: italic;
        margin-bottom: $spacing-sm;
    }

    .premium-testimonial-author {
        font-size: $font-size-xs;
        color: $text-muted;
        font-weight: $font-weight-medium;
    }
}

.premium-faq-item {
    border: $border-width solid $border-color;
    border-radius: $radius-md;
    overflow: hidden;
    margin-bottom: $spacing-sm;
}

.premium-faq-question {
    width: 100%;
    background: #fff;
    border: none;
    text-align: left;
    padding: $spacing-md $spacing-xl;
    font-size: $font-size-md;
    font-weight: $font-weight-medium;
    color: $text-dark;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: $spacing-md;
    transition: background $transition-base;
    font-family: $font-ui;

    &:hover { background: $green-bg; }

    .premium-faq-icon {
        font-size: 1.1rem;
        color: $green-mid;
        flex-shrink: 0;
    }
}

.premium-faq-answer {
    display: none;
    padding: 0 $spacing-xl $spacing-md;
    font-size: $font-size-md;
    color: $text-muted;
    line-height: 1.7;
    background: #fff;

    &.open { display: block; }
}

.premium-cta-final {
    background-color: $green-dark;

    .premium-cta-final-title {
        font-family: $font-brand;
        font-size: clamp(1.35rem, 4vw, 2rem);
        font-weight: $font-weight-medium;
        color: #fff;
    }

    .premium-cta-final-text {
        color: rgba(255, 255, 255, 0.65);
        font-size: $font-size-lg;
        max-width: 520px;
        line-height: 1.7;
    }

    .premium-cta-final-note {
        font-size: $font-size-xs;
        color: rgba(255, 255, 255, 0.4);
    }
}

.premium-feature-tag {
    display: inline-block;
    background: $orange-light;
    color: $orange-text;
    font-size: $font-size-xs;
    font-weight: $font-weight-semibold;
    letter-spacing: 0.08em;
    padding: 4px $spacing-md;
    border-radius: $radius-pill;
}

.premium-feature-title {
    font-family: $font-brand;
    font-size: clamp(1.1rem, 3vw, 1.6rem);
    font-weight: $font-weight-medium;
    color: $text-dark;
    line-height: 1.3;
}

.premium-feature-highlight { color: $green-main; }

.premium-feature-text {
    font-size: $font-size-md;
    color: $text-muted;
    line-height: 1.75;
}

.premium-ai-preview {
    background: $green-bg;
    border: $border-width solid $border-color;
    border-radius: $radius-lg;
    padding: $spacing-lg;
    display: flex;
    flex-direction: column;
    gap: $spacing-sm;

    .premium-ai-preview-header {
        display: flex;
        align-items: center;
        gap: $spacing-sm;
        padding-bottom: $spacing-sm;
        border-bottom: $border-width solid $border-color;
        margin-bottom: $spacing-xs;
    }

    .premium-ai-name {
        font-size: $font-size-sm;
        font-weight: $font-weight-semibold;
        color: $text-dark;
        flex: 1;
    }

    .premium-ai-badge {
        font-size: $font-size-xs;
        background: $orange-light;
        color: $orange-text;
        padding: 2px $spacing-sm;
        border-radius: $radius-pill;
        font-weight: $font-weight-medium;
    }

    .premium-ai-bubble {
        font-size: $font-size-md;
        line-height: 1.6;
        padding: $spacing-sm $spacing-md;
        border-radius: $radius-md;
        max-width: 92%;

        &.user {
            background: $green-pale;
            border: $border-width solid $border-color;
            color: $text-dark;
            align-self: flex-end;
            border-bottom-right-radius: 4px;
        }

        &.ai {
            background: #fff;
            border: $border-width solid $border-color;
            color: $text-mid;
            align-self: flex-start;
            border-bottom-left-radius: 4px;
        }
    }
}

.premium-hints-preview {
    background: $green-bg;
    border: $border-width solid $border-color;
    border-radius: $radius-lg;
    padding: $spacing-lg;

    .premium-hints-preview-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: $spacing-md;
        padding-bottom: $spacing-sm;
        border-bottom: $border-width solid $border-color;
    }

    .premium-hints-preview-step {
        font-size: $font-size-md;
        font-weight: $font-weight-semibold;
        color: $text-dark;
    }

    .premium-hints-preview-count {
        font-size: $font-size-xs;
        background: $orange-light;
        color: $orange-text;
        padding: 3px $spacing-sm;
        border-radius: $radius-pill;
        font-weight: $font-weight-medium;
    }

    .premium-hints-preview-item {
        display: none;
        font-size: $font-size-md;
        color: $text-mid;
        line-height: 1.7;
        min-height: 60px;

        &.active { display: block; }
    }

    .premium-hints-preview-nav {
        display: flex;
        align-items: center;
        gap: $spacing-sm;
        margin-top: $spacing-md;
        justify-content: flex-end;
    }

    .premium-hints-nav-btn {
        background: $green-pale;
        border: $border-width solid $border-color;
        border-radius: $radius-sm;
        padding: 4px $spacing-md;
        font-size: $font-size-sm;
        color: $text-dark;
        cursor: pointer;
        transition: $transition-base;
        font-family: $font-ui;

        &:hover { background: $green-pale; border-color: $green-mid; }
    }

    .premium-hints-nav-counter {
        font-size: $font-size-xs;
        color: $text-muted;
        min-width: 36px;
        text-align: center;
    }
}
