/* css/app.css */
/* =========================================
   1. VARIABLES & THEME
   ========================================= */
:root {
    --background: 222 47% 6%;
    --foreground: 210 40% 92%;
    --card: 222 40% 9%;
    --card-foreground: 210 40% 92%;
    --popover: 222 40% 9%;
    --popover-foreground: 210 40% 92%;
    --primary: 210 100% 52%;
    --primary-foreground: 0 0% 100%;
    --secondary: 222 30% 14%;
    --secondary-foreground: 210 40% 85%;
    --muted: 222 30% 14%;
    --muted-foreground: 215 20% 55%;
    --accent: 172 66% 50%;
    --accent-foreground: 222 47% 6%;
    --destructive: 0 84% 60%;
    --destructive-foreground: 0 0% 100%;
    --border: 222 20% 18%;
    --input: 222 20% 18%;
    --ring: 210 100% 52%;
    --radius: .5rem;
    --surface-elevated: 222 35% 12%;
    --sidebar-background: 222 40% 7%;
    --sidebar-foreground: 210 40% 92%;
    --sidebar-primary: 210 100% 52%;
    --sidebar-primary-foreground: 0 0% 100%;
    --sidebar-accent: 222 30% 14%;
    --sidebar-accent-foreground: 210 40% 85%;
    --sidebar-border: 222 20% 18%;
    --sidebar-ring: 210 100% 52%;
    --glow-primary: 210 100% 52%;
    --glow-accent: 172 66% 50%;
    --text-dim: 215 15% 45%;
    --success: 152 69% 41%;
    --warning: 38 92% 50%;
    --gradient-card: linear-gradient(145deg, hsl(222 40% 10%) 0%, hsl(222 40% 7%) 100%);
    --gradient-cta: linear-gradient(135deg, hsl(210 100% 52%) 0%, hsl(200 100% 45%) 100%);
    --gradient-hero: linear-gradient(135deg, hsl(222 47% 6%) 0%, hsl(222 35% 12%) 50%, hsl(210 40% 10%) 100%);
    --shadow-glow: 0 0 40px -10px hsl(210 100% 52% / .3);
    --hero-background-image: url('/images/hero-bg.jpg');
    /* Más sutil (casi invisible) */
    --table-cell-border: rgba(148, 163, 184, 0.40);
    --table-header-border: rgba(148, 163, 184, 0.48);
    --table-outer-border: rgba(148, 163, 184, 0.70);
}

/* =========================================
   2. RESET & BASE
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
    border-color: hsl(var(--border));
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: inherit;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: inherit;
    letter-spacing: -.02em;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, textarea {
    font: inherit;
}

/* =========================================
   3. LAYOUT & SHELL
   ========================================= */
.loading {
    min-height: 100vh;
    display: grid;
    place-items: center;
    color: hsl(var(--muted-foreground));
}

main, .app-shell, .site-footer, .section, .pricing-section, .blog-page {
    background: hsl(var(--background));
}

.app-shell {
    min-height: 100vh;
}

.container-narrow {
    max-width: 70rem;
    margin: 0 auto;
}

/* =========================================
   4. HEADER & NAV
   ========================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    height: 4rem;
    border-bottom: 1px solid hsl(var(--border) / .5);
    background: hsl(var(--background) / .8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.header-inner {
    width: 100%;
    max-width: 1400px;
    height: 4rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    color: hsl(var(--foreground));
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 700;
    white-space: nowrap;
    transition: color .15s ease;
}

    .brand:hover {
        color: hsl(var(--primary));
    }

.nav-links, .header-actions, .footer-left, .footer-links {
    display: flex;
    align-items: center;
}

.nav-links {
    gap: 1.5rem;
}

.header-actions {
    gap: .5rem;
}

.nav-links a, .login-link, .register-link, .table-actions a, .footer-inner,
.footer-links, .risk-modal-text, .auth-modal p, .auth-modal label,
.auth-input, .auth-submit, .risk-modal-button {
    font-size: 1.4rem;
    line-height: 2.25rem;
}

.nav-links a {
    color: hsl(var(--muted-foreground));
    transition: color .15s ease;
}

    .nav-links a:hover {
        color: hsl(var(--foreground));
    }

.login-link, .register-link {
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    border-radius: .375rem;
    font-weight: 500;
    transition: all .15s ease;
}

button.login-link, button.register-link {
    border: 0;
    cursor: pointer;
}

.login-link, button.login-link {
    background: transparent;
    color: hsl(var(--muted-foreground));
}

    .login-link:hover {
        background: hsl(var(--accent) / .12);
        color: hsl(var(--foreground));
    }

.register-link, button.register-link {
    background: var(--gradient-cta);
    color: hsl(var(--primary-foreground));
}

    .register-link:hover {
        opacity: .9;
    }

.mobile-menu-button {
    display: none;
    padding: 0;
    border: 0;
    background: transparent;
    color: hsl(var(--foreground));
    cursor: pointer;
}

/* =========================================
   5. HERO SECTION
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: hsl(var(--background));
}

.hero-image, .hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-image {
    opacity: 1;
    background-image: var(--hero-background-image);
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    background: hsl(var(--background) / .7);
}

.hero-glow {
    position: absolute;
    top: 33.333%;
    left: 50%;
    width: 25rem;
    height: 25rem;
    border-radius: 999px;
    background: hsl(var(--primary) / .05);
    filter: blur(120px);
    transform: translateX(-50%);
}

.hero-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 8rem 1rem 6rem;
}

.hero-content {
    /*max-width: 768px;*/
    margin: 0 auto;
    text-align: center;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin: 0 0 2rem;
    padding: .375rem 1rem;
    border: 1px solid hsl(var(--primary) / .2);
    border-radius: 999px;
    background: hsl(var(--primary) / .05);
    color: hsl(210deg 100% 60.9%);
    font-size: 1.2rem;
    line-height: 1.25rem;
    font-weight: 500;
    animation: fadeInUp .7s ease both;
}

.chip-icon {
    font-size: .667rem;
}

.hero-title {
    max-width: 77rem;
    margin: 0 auto 1.5rem;
    color: hsl(var(--foreground));
    font-size: 3rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -.02em;
    text-align: center;
    animation: fadeInUp .7s ease .1s both;
}

    .hero-title span, .section h2 span, .compare-head span:last-child, .pricing-section h2 span {
        background-image: linear-gradient(135deg, rgb(75, 170, 250), hsl(174deg 78% 63%));
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
    }

.lead {
    max-width: 65rem;
    margin: 0 auto 2rem;
    color: hsl(var(--muted-foreground));
    font-size: 1.125rem;
    line-height: 1.625;
    animation: fadeInUp .7s ease .2s both;
}

.actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    animation: fadeInUp .7s ease .2s both;
}

/* =========================================
   6. BUTTONS
   ========================================= */
.btn {
    height: 4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 0 2rem;
    border-radius: .5rem;
    font-size: 1.3rem;
    line-height: 1.5rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all .15s ease;
}

    .btn .icon-after {
        margin-left: .25rem;
    }

    .btn.primary, .auth-submit, .risk-modal-button, .subscription-card.highlight .subscription-button {
        background: var(--gradient-cta);
        color: hsl(var(--primary-foreground));
    }

    .btn.primary {
        box-shadow: var(--shadow-glow);
    }

        .btn.primary:hover, .auth-submit:hover, .risk-modal-button:hover {
            opacity: .9;
        }

    .btn.ghost {
        border: 1px solid hsl(var(--border));
        background: hsl(var(--background));
        color: hsl(var(--foreground));
    }

        .btn.ghost:hover {
            background: hsl(var(--secondary));
        }

/* =========================================
   7. STATS & SECTIONS
   ========================================= */
.stats {
    max-width: 75rem;
    margin: 4rem auto 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

    .stats strong {
        display: block;
        color: hsl(var(--foreground));
        font-size: 2.5rem;
        line-height: 4rem;
        font-weight: 700;
    }

    .stats span {
        display: block;
        margin-top: .25rem;
        color: hsl(var(--muted-foreground));
        font-size: 1.2rem;
        line-height: 1.25rem;
    }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section, .pricing-section {
    padding: 5rem 1rem;
    text-align: center;
}

    .section.alt {
        background: hsl(var(--surface-elevated));
    }

.eyebrow {
    display: block;
    margin-bottom: .5rem;
    color: hsl(var(--primary));
    font-size: 1.4rem;
    line-height: 3.25rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.section h2, .pricing-section h2 {
    margin: 0 0 1rem;
    color: hsl(var(--foreground));
    font-size: 2.25rem;
    line-height: 2.5rem;
    font-weight: 700;
}

.section-copy, .pricing-copy {
    max-width: 50rem;
    margin: 0 auto;
    color: hsl(var(--muted-foreground));
    font-size: 1.425rem;
    line-height: 1.75rem;
}

/* =========================================
   8. CARDS (FEATURE, BLOG, SUBSCRIPTION)
   ========================================= */
.feature-grid, .blog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin: 3.5rem auto 0;
}

.feature-grid {
    max-width: 72rem;
}

.feature-card, .blog-card, .subscription-card {
    border: 1px solid hsl(var(--border) / .5);
    border-radius: .75rem;
    padding: 1.5rem;
    text-align: left;
    transition: all .3s ease;
}

.feature-card {
    margin-top: 3rem;
    background: var(--gradient-card);
}

    .feature-card:hover, .blog-card:hover {
        border-color: hsl(var(--primary) / .3);
        box-shadow: var(--shadow-glow);
    }

    .feature-card .icon {
        width: 3.5rem;
        height: 3.5rem;
        margin-bottom: 1rem;
        display: grid;
        place-items: center;
        border-radius: .4rem;
        background: hsl(var(--primary) / .1);
        color: hsl(217deg 100% 62%);
        font-size: .75rem;
        line-height: 1;
        transition: background-color .3s ease;
    }

        .feature-card .icon svg {
            width: 1.133rem;
            height: 1.133rem;
            stroke-width: 2;
        }

    .feature-card:hover .icon {
        background: hsl(var(--primary) / .2);
    }

    .feature-card h3, .subscription-card h3, .blog-card h2, .unlock-card h3, .theory-card h3, .accordion summary {
        color: hsl(var(--foreground));
        font-size: 1.65rem;
        line-height: 2.75rem;
        margin: 0 0 .333rem;
        font-weight: 600;
    }

    .feature-card p, .blog-card p, .blog-card time, .unlock-card p, .theory-body,
    .accordion-body, .compare-head span, .compare-row span, .subscription-features li,
    .subscription-button, .feedback input, .feedback textarea {
        color: hsl(var(--muted-foreground));
        font-size: 1.3rem;
        line-height: 1.625;
    }

    .feature-card p, .blog-card p, .unlock-card p {
        margin: 0;
    }


/* =========================================
   9. TABLES & COMPARE
   ========================================= */
.table-panel {
    width: fit-content;
    max-width: 100%;
    margin: 2.5rem auto 0;
}

.table-error {
    margin: .5rem 0;
    padding: .5rem .75rem;
    border: 1px solid hsl(var(--primary) / .25);
    border-radius: .5rem;
    background: hsl(var(--card));
    color: hsl(var(--muted-foreground));
    font-size: .75rem;
}

.table-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: .5rem;
}

    .table-actions a {
        display: flex;
        align-items: center;
        gap: .3rem;
        color: hsl(var(--muted-foreground));
        transition: color .15s ease;
    }

        .table-actions a:hover {
            color: hsl(var(--foreground));
        }

    .table-actions svg {
        width: .667rem;
        height: .667rem;
    }

.table-wrap, .compare, .subscription-card, .accordion details, .theory-card, .auth-modal, .risk-modal {
    border: 1px solid hsl(var(--border) / .5);
    background: hsl(var(--card));
}

.table-wrap {
    overflow-x: auto;
    border-radius: .75rem;
    box-shadow: 0 1px 0 hsl(var(--foreground) / .02) inset;
}

.original-table table {
    min-width: 1100px;
    border-collapse: collapse;
    background: hsl(var(--card));
    color: hsl(var(--muted-foreground));
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 18px;
    font-weight: 400;
}

.original-table th, .original-table td {
    padding: 1px .25rem;
    border-bottom: 1px solid hsl(var(--border) / .3);
    background: transparent;
    color: hsl(var(--muted-foreground));
    line-height: 1.25;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    padding: 6px 9px;
}

.original-table th {
    color: hsl(var(--foreground));
}

    .original-table th.letter {
        padding: .25rem;
        color: hsl(var(--muted-foreground));
        font-size: 15px;
    }

.original-table tr:hover {
    filter: brightness(1.3);
}

.original-table td.excel-colored-cell {
    opacity: 1 !important;
    font-weight: 400 !important;
}

.cell-blue {
    background-color: rgb(25, 37, 50) !important;
    color: rgb(201, 217, 232) !important;
}

.cell-red {
    background-color: rgb(47, 12, 6) !important;
    color: rgb(201, 217, 232) !important;
}

.compare {
    max-width: 60rem;
    margin: 3rem auto 0;
    overflow: hidden;
    border-radius: .75rem;
    display: table;
    width: 100%;
    border-collapse: collapse;
}

.compare-head, .compare-row {
    display: table-row;
}

.compare-head {
    background: hsl(var(--secondary) / .5);
    font-weight: 700;
    border-bottom: 1px solid hsl(var(--border) / .3);
    color: hsl(var(--secondary-foreground));
    text-align: left;
}

    .compare-head span, .compare-row span {
        display: table-cell;
        padding: 8px 6px;
        border-bottom: 1px solid hsl(217deg 42.93% 33.76%);
        vertical-align: middle;
        color: hsl(var(--secondary-foreground));
        text-align: left;
    }

        .compare-head span:first-child, .compare-row span:first-child {
            width: 60%;
        }

        .compare-row span:not(:first-child) {
            text-align: center;
        }

.compare-row:nth-child(even) {
    background: hsl(var(--background));
}

.compare-row span:last-child:not(.compare-x), .compare-row span:nth-last-child(2):not(.compare-x) {
    color: hsl(var(--accent));
    font-weight: bolder;
}

span.compare-x {
    color: gray;
}

/* =========================================
   10. UNLOCK, THEORY & ACCORDION
   ========================================= */
.unlock-card {
    max-width: 36rem;
    margin: 2.25rem auto 0;
    padding: 2rem;
    border: 1px solid hsl(var(--primary) / .2);
    border-radius: .75rem;
    background: linear-gradient(145deg, hsl(var(--card)) 0%, hsl(222 40% 7%) 100%);
    text-align: center;
    box-shadow: var(--shadow-glow);
}

    .unlock-card p {
        margin-bottom: 1rem;
    }

.unlock-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
    margin-bottom: 1rem;
}

    .unlock-tags span, .blog-tag, .age-badge, .user-chip, .auth-error, .validation-message {
        font-size: .75rem;
        line-height: 1rem;
    }

    .unlock-tags span {
        padding: .25rem .5rem;
        border-radius: 999px;
        background: hsl(var(--primary) / .1);
        color: hsl(var(--primary));
    }

.theory-card, .accordion {
    max-width: 54rem;
    margin-left: auto;
    margin-right: auto;
}

.theory-card {
    margin-top: 2rem;
    overflow: hidden;
    border-radius: .75rem;
    text-align: left;
}

.theory-body, .accordion-body {
    padding: 0 1.25rem 1.25rem;
    text-align: left;
}

    .theory-body p, .accordion-body p {
        margin: .65rem 0;
    }

    .theory-body strong, .accordion-body strong {
        color: hsl(var(--foreground));
    }

    .theory-body h4 {
        margin: .9rem 0 .4rem;
        color: hsl(var(--foreground));
        font-size: 1rem;
        font-weight: 600;
    }

    .theory-body ul, .accordion-body ul {
        margin: .5rem 0 .5rem 1.2rem;
        padding: 0;
    }

    .theory-body li {
        margin: .2rem 0;
    }

.accordion {
    display: grid;
    gap: .5rem;
    margin-top: 1rem;
}

    .accordion details {
        overflow: hidden;
        border-radius: .75rem;
        border: 1px solid hsl(var(--border) / .5);
        background: hsl(var(--card));
    }

    .accordion summary {
        list-style: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        text-align: left;
        padding: 1.25rem;
        font-weight: 600;
        color: hsl(var(--foreground));
    }

        .accordion summary::-webkit-details-marker {
            display: none;
        }

.chevron {
    color: hsl(var(--muted-foreground));
    font-size: .9rem;
    transition: transform .2s ease;
}

.accordion details[open] .chevron {
    transform: rotate(180deg);
}

.original-accordion details > summary::after {
    content: "⌄";
    width: 1.5rem;
    height: 1.5rem;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: hsl(var(--muted-foreground));
    font-size: 1rem;
    line-height: 1;
    transition: transform .2s ease, color .2s ease, background-color .2s ease;
}

.original-accordion details > summary:hover::after {
    background: hsl(var(--secondary));
    color: hsl(var(--foreground));
}

.original-accordion details[open] > summary::after {
    transform: rotate(180deg);
}

.original-accordion .chevron {
    display: none !important;
}

/* =========================================
   11. SUBSCRIPTIONS & FEEDBACK
   ========================================= */
.subscription-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    max-width: 46rem;
    margin: 3.5rem auto 0;
}

.subscription-card {
    position: relative;
    min-height: 18rem;
    display: flex;
    flex-direction: column;
}

    .subscription-card:hover {
        border-color: hsl(var(--border));
    }

.subscription-price {
    display: flex;
    align-items: baseline;
    gap: .125rem;
    margin-bottom: 1rem;
}

    .subscription-price .amount {
        color: hsl(var(--foreground));
        font-size: 3rem;
        line-height: 1;
        font-weight: 800;
        letter-spacing: -.04em;
    }

    .subscription-price .rub {
        color: hsl(var(--muted-foreground));
        font-size: 1.125rem;
    }

    .subscription-price .period {
        margin-left: .25rem;
        color: hsl(var(--muted-foreground));
        font-size: .875rem;
    }

.subscription-features {
    flex: 1;
    display: grid;
    gap: .5rem;
    margin: 0 0 1.333rem;
    padding: 0;
    list-style: none;
}

    .subscription-features li {
        display: flex;
        align-items: flex-start;
        gap: .4rem;
        color: hsl(var(--secondary-foreground));
    }

        .subscription-features li::before {
            content: "✓";
            color: hsl(var(--accent));
            font-weight: 700;
        }

.subscription-button {
    width: 100%;
    height: 4rem; /* Выравниваем высоту с основной кнопкой .btn */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 0 2rem;
    border-radius: .5rem; /* Выравниваем скругление с .btn */
    font-size: 1.3rem;
    line-height: 1.5rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all .15s ease;
    /* Делаем кнопку яркой, как .btn.primary, но БЕЗ 3D-эффекта */
    background: var(--gradient-cta);
    color: hsl(var(--primary-foreground));
    box-shadow: none; /* Гарантированно убираем тень/свечение */
    border: 1px solid transparent;
}

    .subscription-button:hover {
        opacity: .9; /* Плавное изменение при наведении, как у основных кнопок */
    }

.discount-badge {
    position: absolute;
    top: -.75rem;
    left: 50%;
    display: inline-flex;
    align-items: center;
    padding: .25rem .75rem;
    border-radius: 999px;
    background: hsl(var(--accent) / .2);
    color: hsl(var(--accent));
    font-size: 1rem;
    font-weight: 700;
    transform: translateX(-50%);
}

.feedback form {
    display: grid;
    gap: .75rem;
    /*max-width: 28rem;*/
    margin: 1.25rem auto 0;
}

.feedback input, .feedback textarea {
    width: 100%;
    padding: .75rem 1rem;
    border: 1px solid hsl(210 40% 98%);
    border-radius: .375rem;
    background: hsl(var(--card));
    color: hsl(var(--foreground));
}

.feedback textarea {
    min-height: 5rem;
}

.feedback .btn {
    width: 100%;
}

/* =========================================
   12. BLOG PAGE
   ========================================= */
.blog-page {
    min-height: calc(100vh - 3rem);
    padding: 6rem 1rem 4rem;
}

.blog-hero, .blog-grid {
    width: 100%;
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
}

.back-link {
    display: inline-flex;
    margin-bottom: 1.75rem;
    color: hsl(var(--muted-foreground));
    font-size: .875rem;
    transition: color .15s ease;
}

    .back-link:hover {
        color: hsl(var(--primary));
    }

.blog-hero h1 {
    margin: 0 0 .75rem;
    font-size: 3rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -.02em;
    text-align: left;
}

.blog-hero p {
    max-width: 42rem;
    margin: 0;
    color: hsl(var(--muted-foreground));
    font-size: 1.125rem;
    line-height: 1.45;
}

.blog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.blog-card {
    min-height: 12.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: hsl(var(--card));
}

    .blog-card.highlight {
        border-color: hsl(var(--primary) / .3);
    }

    .blog-card h2, .blog-card p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
    }

    .blog-card h2 {
        -webkit-line-clamp: 2;
        text-align: left;
        font-weight: 800;
        letter-spacing: -.02em;
    }

    .blog-card p {
        -webkit-line-clamp: 3;
    }

    .blog-card time {
        margin-top: auto;
    }

/* =========================================
   13. FOOTER
   ========================================= */
.site-footer {
    padding: 1.333rem 1rem;
    border-top: 1px solid hsl(var(--border) / .5);
}

.footer-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: hsl(var(--muted-foreground));
}

.footer-left, .footer-links {
    gap: 1rem;
}

.footer-brand {
    color: hsl(var(--foreground));
    font-weight: 700;
}

.footer-links {
    flex-wrap: wrap;
    justify-content: center;
}

    .footer-links a {
        transition: color .15s ease;
    }

        .footer-links a:hover {
            color: hsl(var(--foreground));
        }

/* =========================================
   14. MODALS (AUTH & RISK)
   ========================================= */
.risk-modal-backdrop, .auth-modal-backdrop {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: hsl(var(--background) / .78);
    backdrop-filter: blur(8px);
}

.risk-modal-backdrop {
    z-index: 3000;
}

.auth-modal-backdrop {
    z-index: 3100;
}

.risk-modal, .auth-modal {
    color: hsl(var(--foreground));
    box-shadow: 0 25px 80px rgb(0 0 0 / .55);
    border-radius: .667rem;
    display: flex;
    flex-direction: column;
    background: hsl(var(--card));
}

.risk-modal {
    width: min(100%, 45rem);
    padding: 2rem;
    max-height: 90vh;
}

.risk-modal-text {
    overflow-y: auto;
    max-height: 60vh;
    margin-bottom: 16px;
    display: grid;
    gap: .5rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
}

    .risk-modal-text p {
        margin: 0;
    }

.risk-modal-button {
    width: 100%;
    height: 2.5rem;
    margin-top: 1rem;
    border: 0;
    border-radius: .375rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    background: var(--gradient-cta);
    color: hsl(var(--primary-foreground));
}

    .risk-modal-button:hover {
        opacity: .9;
    }

.auth-modal {
    position: relative;
    width: min(100%, 30rem);
    padding: 2rem;
}

    .auth-modal h3 {
        margin: 0 0 .35rem;
        color: hsl(var(--foreground));
        font-size: 1.25rem;
        line-height: 1.75rem;
        font-weight: 700;
    }

    .auth-modal p {
        margin: 0 0 1rem;
        color: hsl(var(--muted-foreground));
        line-height: 1.55;
    }

    .auth-modal form {
        display: grid;
        gap: .45rem;
    }

    .auth-modal label {
        color: hsl(var(--secondary-foreground));
        font-weight: 600;
    }

.auth-input {
    width: 100%;
    height: 2.5rem;
    padding: 0 .6rem;
    border: 1px solid hsl(210 40% 98%);
    border-radius: .375rem;
    outline: none;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
}

    .auth-input:focus {
        border-color: hsl(var(--primary));
        box-shadow: 0 0 0 2px hsl(var(--primary) / .15);
    }

.auth-submit {
    height: 2.5rem;
    margin-top: .5rem;
    border: 0;
    border-radius: .375rem;
    font-weight: 700;
    cursor: pointer;
    background: var(--gradient-cta);
    color: hsl(var(--primary-foreground));
}

    .auth-submit:disabled {
        opacity: .6;
        cursor: wait;
    }

    .auth-submit:hover {
        opacity: .9;
    }

.auth-close {
    position: absolute;
    top: .5rem;
    right: .65rem;
    border: 0;
    background: transparent;
    color: hsl(var(--muted-foreground));
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

    .auth-close:hover {
        color: hsl(var(--foreground));
    }

.auth-error {
    padding: .45rem .55rem;
    border: 1px solid rgb(239 68 68 / .3);
    border-radius: .375rem;
    background: rgb(127 29 29 / .25);
    color: rgb(252 165 165);
    line-height: 1.35;
}

.validation-message {
    color: rgb(252 165 165);
}

/* =========================================
   15. PREMIUM CTA
   ========================================= */
.premium-cta {
    max-width: 70rem;
    margin: 2rem auto;
    padding: 3rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid hsl(var(--border) / .45);
    border-radius: 1.5rem;
    background: linear-gradient(145deg, hsl(224 75% 6%) 0%, hsl(226 80% 5%) 100%);
    overflow: hidden;
    position: relative;
}

    .premium-cta::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top center, hsl(var(--primary) / .15), transparent 60%);
        pointer-events: none;
    }

.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1.5rem;
    padding: .6rem 1.2rem;
    border-radius: 999px;
    background: rgb(255 183 0 / .12);
    color: rgb(255 193 35);
    font-size: 0.95rem;
    font-weight: 700;
}

    .premium-badge svg {
        width: 1rem;
        height: 1rem;
        stroke-width: 2.5;
    }

.premium-cta h3 {
    margin: 0 0 1rem;
    color: hsl(var(--foreground));
    font-size: 2.4rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.premium-cta p {
    margin: 0 auto 2rem;
    color: hsl(var(--muted-foreground));
    font-size: 1.15rem;
    line-height: 1.5;
    max-width: 80%;
}

.premium-features {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2.5rem;
    width: 100%;
}

    .premium-features span {
        display: flex;
        align-items: center;
        gap: .6rem;
        color: hsl(var(--foreground));
        font-size: 1.15rem;
        font-weight: 500;
        opacity: 0.9;
        white-space: nowrap;
    }

    .premium-features svg {
        width: 1.2rem;
        height: 1.2rem;
        stroke-width: 2.5;
        flex-shrink: 0;
    }

    .premium-features span:nth-child(1) svg {
        color: #10b981;
    }

    .premium-features span:nth-child(2) svg {
        color: #fbbf24;
    }

    .premium-features span:nth-child(3) svg {
        color: #3b82f6;
    }

.premium-button {
    width: 100%;
    max-width: 22rem;
    height: 3.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.8rem;
    background: var(--gradient-cta, linear-gradient(to right, #3b82f6, #2563eb));
    color: white;
    font-size: 1.15rem;
    font-weight: 600;
    transition: transform 0.2s ease, opacity 0.2s ease;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

    .premium-button:hover {
        transform: translateY(-2px);
        opacity: 0.95;
    }

.premium-note {
    color: hsl(var(--muted-foreground));
    font-size: 0.95rem;
    opacity: 0.7;
}

/* =========================================
   16. UTILITIES & MISC
   ========================================= */
.age-badge {
    display: inline-flex;
    align-items: center;
    padding: .12rem .45rem;
    border: 1px solid hsl(var(--border));
    border-radius: .25rem;
}

.user-chip {
    height: 1.5rem;
    display: inline-flex;
    align-items: center;
    padding: 0 .55rem;
    border: 1px solid hsl(var(--border));
    border-radius: 999px;
    background: hsl(var(--card) / .75);
    color: hsl(var(--foreground));
}

li code.shrink-0, .accordion .accordion-body ul li code.shrink-0 {
    /*color: #179aff;*/
    font-size: 1.2em;
    font-weight: 700;
    white-space: nowrap;
}

.formula {
    margin: 22px 0;
    padding: 18px 20px;
    overflow-x: auto;
    border: 1px solid hsl(var(--border));
    border-radius: 14px;
    background: hsl(var(--background) / .35);
    text-align: center;
}

.caption {
    margin: 0 0 10px;
    color: hsl(var(--muted-foreground));
    font: 12px / 1.2 Arial, sans-serif;
    letter-spacing: .02em;
}

math {
    font-size: 1.35rem;
}

mtext {
    font-size: .9em;
}

div.icon.warning {
    background-color: hsl(0deg 100% 62.13% / 12%);
}

.warning svg {
    color: #ff4040;
}

.card-title-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

    .card-title-row .icon {
        margin-bottom: 0;
    }

    .card-title-row h3 {
        margin: 0;
        padding: .25rem;
    }

#risk-alert {
    margin-bottom: 4rem;
}

.text-xs {
    font-size: .75rem;
    line-height: 1rem;
}

.text-sm {
    font-size: 1rem;
    line-height: 1.25rem;
}

.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.text-5xl {
    font-size: 3rem;
    line-height: 1;
}

.text-6xl {
    font-size: 3.75rem;
    line-height: 1;
}

.leading-relaxed {
    line-height: 1.625;
}

h1:focus, h1:focus-visible, .hero-title, .hero-title:focus, .hero-title:focus-visible {
    outline: none;
    box-shadow: none;
}

/* =========================================
   17. RESPONSIVE MEDIA QUERIES
   ========================================= */
@media (min-width: 640px) {
    .lead, .sm\:text-xl {
        font-size: 1.7rem;
        line-height: 2.5rem;
    }
}

@media (min-width: 768px) {
    .hero-title, .md\:text-6xl {
        font-size: 4.5rem;
        line-height: 1;
    }

    .md\:text-5xl {
        font-size: 3rem;
        line-height: 1;
    }

    .section h2, .pricing-section h2 {
        font-size: 2.8rem;
        line-height: 4.5rem;
    }
}

@media (min-width: 769px) {
    .premium-features {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
    }

    .premium-cta p {
        max-width: 80%;
    }
}

@media (max-width: 1023px) {
    .feature-grid, .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .premium-cta {
        padding: 2rem;
    }

        .premium-cta h3 {
            font-size: 2.4rem;
        }

        .premium-cta p {
            font-size: 1.2rem;
        }

    .premium-button {
        height: 4rem;
        font-size: 1.35rem;
    }

    .premium-note {
        font-size: 1rem;
    }

    .premium-features {
        gap: 1rem;
    }

        .premium-features span {
            font-size: 1rem;
        }
}

@media (max-width: 767px) {
    .site-header, .header-inner {
        height: 3.5rem;
    }

    .header-inner {
        min-height: 24px;
    }

    .mobile-menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links, .header-actions, .user-chip {
        display: none;
    }

    .brand {
        font-size: 1.125rem;
    }

    .hero-container {
        padding-top: 6rem;
        padding-bottom: 4rem;
    }

    .hero-chip {
        font-size: .875rem;
    }

    .hero-title {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }

    .lead, .section-copy, .pricing-copy {
        font-size: 1rem;
        line-height: 1.625;
    }

    .actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section h2, .pricing-section h2 {
        font-size: 2rem;
        line-height: 2.25rem;
    }

    .feature-grid, .subscription-grid, .blog-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner, .footer-left, .footer-links {
        flex-direction: column;
        text-align: center;
    }

    .blog-page {
        padding-top: 5rem;
    }

    .table-actions {
        align-items: flex-start;
    }

        .table-actions svg {
            width: 1rem;
            height: 1rem;
        }

    .feature-card .icon svg {
        width: 1.25rem;
        height: 1.25rem;
    }

    .original-table table {
        font-size: 16px;
    }
}

@media (max-width: 500px) {
    .compare-head span:first-child, .compare-row span:first-child {
        width: 50%;
        word-break: break-word;
    }
}

@media (max-width: 480px) {
    .premium-cta {
        max-width: 95vw;
        margin: 1.5rem auto;
        padding: 2rem 1.2rem;
        border-radius: 1rem;
    }

        .premium-cta h3 {
            font-size: 1.9rem;
        }

        .premium-cta p {
            font-size: 1rem;
            max-width: 100%;
        }

    .premium-button {
        font-size: 1rem;
        height: 3.2rem;
    }
}


@media (min-width: 768px) {
    .premium-upgrade-content {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

        .premium-upgrade-content > div:last-child {
            align-items: center !important;
            text-align: center !important;
        }
}





/* =========================================
   18. CONTACT FORM
   ========================================= */
.contact-form {
    width: 100%;
    max-width: 50rem;
    margin: 0 auto;
    padding: 1.5rem;
    border: 1px solid hsl(var(--border) / .5);
    border-radius: 0.75rem;
    background: hsl(var(--card));
    display: grid;
    gap: 1.3rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    background: hsl(var(--secondary));
    color: hsl(var(--foreground));
    font-size: 1.3rem;
    line-height: 1.5;
    transition: all 0.15s ease;
}

    .form-input::placeholder,
    .form-textarea::placeholder {
        color: hsl(var(--muted-foreground));
    }

    .form-input:focus,
    .form-textarea:focus {
        outline: none;
        border-color: hsl(var(--ring));
        box-shadow: 0 0 0 2px hsl(var(--ring) / .15);
    }

    .form-input:disabled,
    .form-textarea:disabled {
        cursor: not-allowed;
        opacity: 0.5;
    }

.form-textarea {
    min-height: 8rem;
    resize: none;
}

.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0.25rem 0;
}

.form-checkbox {
    width: 1rem;
    height: 1rem;
    margin-top: 0.125rem;
    border: 1px solid hsl(var(--primary));
    border-radius: 0.25rem;
    background: hsl(var(--background));
    cursor: pointer;
    flex-shrink: 0;
}

    .form-checkbox:checked {
        background: hsl(var(--primary));
        border-color: hsl(var(--primary));
    }

    .form-checkbox:focus {
        outline: none;
        box-shadow: 0 0 0 2px hsl(var(--ring) / .15);
    }

.form-label {
    color: hsl(var(--muted-foreground));
    font-size: 1.2rem;
    line-height: 1.5;
    cursor: pointer;
}

.privacy-link {
    color: hsl(var(--primary));
    background: transparent;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
    transition: opacity 0.15s ease;
}

    .privacy-link:hover {
        opacity: 0.8;
    }

.form-submit {
    width: 100%;
    height: 4rem;
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

    .form-submit svg {
        width: 1rem;
        height: 1rem;
        flex-shrink: 0;
    }

@media (max-width: 767px) {
    .contact-form {
        padding: 1.25rem;
    }

    .form-input,
    .form-textarea {
        font-size: 1rem;
    }

    .form-label {
        font-size: 0.8rem;
    }
}

.form-checkbox {
    width: 1.55rem;
    height: 1.55rem;
    margin-top: 0.15rem;
    border: 1.5px solid hsl(var(--primary) / .6);
    border-radius: 0.375rem;
    background: hsl(var(--secondary));
    cursor: pointer;
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    transition: all 0.15s ease;
    display: grid;
    place-items: center;
}

    .form-checkbox:hover {
        border-color: hsl(var(--primary));
        background: hsl(var(--secondary) / .8);
    }

    .form-checkbox:checked {
        background: hsl(var(--primary));
        border-color: hsl(var(--primary));
    }

        .form-checkbox:checked::before {
            content: "✓";
            color: hsl(var(--primary-foreground));
            font-size: 0.875rem;
            font-weight: 700;
            line-height: 1;
        }

    .form-checkbox:focus {
        outline: none;
        border-color: hsl(var(--ring));
        box-shadow: 0 0 0 2px hsl(var(--primary) / .25);
    }

    .form-checkbox:disabled {
        cursor: not-allowed;
        opacity: 0.5;
    }

.privacy-link {
    color: hsl(var(--primary));
    background: transparent;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    text-decoration: none; /* ← Sin subrayado por defecto */
    transition: all 0.15s ease;
}

    .privacy-link:hover {
        text-decoration: underline; /* ← Subrayado solo en hover */
        opacity: 0.9;
    }

    /* Opcional: también en focus para accesibilidad */
    .privacy-link:focus-visible {
        text-decoration: underline;
        outline: 2px solid hsl(var(--ring));
        outline-offset: 2px;
    }


.footer-link {
    color: hsl(var(--muted-foreground));
    background: transparent;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    transition: color 0.15s ease;
}

    .footer-link:hover {
        color: hsl(var(--foreground));
    }

.footer-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

.site-footer {
    padding: 1.333rem 1rem;
    border-top: 1px solid hsl(var(--border) / .5);
}

.footer-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: hsl(var(--muted-foreground));
    flex-wrap: nowrap; /* Evita que los elementos salten de línea */
}

.footer-left,
.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap; /* Evita saltos de línea */
}

.footer-left {
    flex-shrink: 0; /* No permite que se encoja */
    white-space: nowrap; /* Texto en una sola línea */
}

.footer-brand {
    color: hsl(var(--foreground));
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.footer-links {
    justify-content: flex-end;
    flex-shrink: 1; /* Permite compresión controlada */
    min-width: 0; /* Necesario para que flex-shrink funcione */
}

    .footer-links a {
        white-space: nowrap; /* Texto en una sola línea */
        transition: color .15s ease;
        flex-shrink: 0;
    }

        .footer-links a:hover {
            color: hsl(var(--foreground));
        }

.age-badge {
    display: inline-flex;
    align-items: center;
    padding: .12rem .45rem;
    border: 1px solid hsl(var(--border));
    border-radius: .25rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Responsive: en móviles permitir que se ajusten pero sin saltar */
@media (max-width: 767px) {
    .footer-inner {
        padding: 0 1rem;
        gap: 0.75rem;
        flex-wrap: nowrap; /* Mantener en línea incluso en móvil */
        justify-content: space-between;
    }

    .footer-left {
        gap: 0.5rem;
        font-size: 0.75rem; /* Texto más pequeño */
    }

    .footer-brand {
        font-size: 0.875rem;
    }

    .footer-links {
        gap: 0.5rem; /* Menor espacio entre enlaces */
    }

        .footer-links a {
            font-size: 0.7rem; /* Texto más pequeño en móviles */
            padding: 0 0.25rem;
        }

    .age-badge {
        font-size: 0.65rem;
        padding: 0.1rem 0.3rem;
    }
}

/* En pantallas muy pequeñas */
@media (max-width: 500px) {
    .footer-inner {
        gap: 0.5rem;
    }

    .footer-left span:last-child {
        display: none; /* Ocultar "Все права защищены" en pantallas muy pequeñas */
    }

    .footer-links a {
        font-size: 0.65rem;
    }

        .footer-links a:nth-child(2) {
            display: none; /* Ocultar enlace del medio si es necesario */
        }
}


.site-footer {
    padding: 1.333rem 1rem;
    border-top: 1px solid hsl(var(--border) / .5);
}

.footer-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    color: hsl(var(--muted-foreground));
    flex-wrap: nowrap; /* Evita saltos de línea */
}

.footer-left,
.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap; /* Evita saltos de línea */
    min-width: 0; /* Permite que se encojan si es necesario */
}

.footer-left {
    flex-shrink: 1; /* Permite compresión controlada */
    white-space: nowrap;
}

.footer-brand {
    color: hsl(var(--foreground));
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0; /* No se encoge */
}

.footer-links {
    flex-shrink: 1; /* Permite compresión controlada */
    justify-content: flex-end;
    gap: 0.75rem; /* Espacio más compacto */
}

    .footer-links a {
        white-space: nowrap;
        transition: color .15s ease;
        flex-shrink: 0;
        font-size: 0.875rem; /* Tamaño base más pequeño */
    }

        .footer-links a:hover {
            color: hsl(var(--foreground));
        }

.age-badge {
    display: inline-flex;
    align-items: center;
    padding: .12rem .45rem;
    border: 1px solid hsl(var(--border));
    border-radius: .25rem;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.75rem;
}

/* Tablet - compresión gradual */
@media (max-width: 1024px) {
    .footer-inner {
        gap: 1rem;
        padding: 0 1.5rem;
    }

    .footer-left {
        gap: 0.75rem;
    }

    .footer-links {
        gap: 0.5rem;
    }

        .footer-links a {
            font-size: 0.8rem;
        }

    .footer-brand {
        font-size: 1.1rem;
    }
}

/* Mobile - apilar verticalmente */
@media (max-width: 767px) {
    .footer-inner {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
        text-align: center;
    }

    .footer-left,
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-brand {
        font-size: 1.125rem;
    }

    .footer-left span {
        font-size: 0.8rem;
    }

    .footer-links a {
        font-size: 0.85rem;
    }
}

/* Mobile pequeño - más compacto */
@media (max-width: 480px) {
    .site-footer {
        padding: 1rem 0.5rem;
    }

    .footer-inner {
        gap: 0.75rem;
    }

    .footer-brand {
        font-size: 1rem;
    }

    .footer-left span {
        font-size: 0.75rem;
    }

    .footer-links a {
        font-size: 0.75rem;
        padding: 0 0.25rem;
    }

    .age-badge {
        font-size: 0.7rem;
        padding: 0.1rem 0.35rem;
    }
}

/* Mobile muy pequeño - ocultar elementos menos importantes */
@media (max-width: 380px) {
    .footer-left span:last-child {
        display: none; /* Ocultar "Все права защищены" */
    }

    .footer-links a:nth-child(2) {
        display: none; /* Ocultar enlace del medio si es necesario */
    }
}


/* =========================================
   FOOTER ACTUALIZADO
   ========================================= */
.site-footer {
    padding: 1.333rem 1rem;
    border-top: 1px solid hsl(var(--border) / .5);
}

.footer-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: hsl(var(--muted-foreground));
    font-size: 1rem; /* <--- Aquí unificamos el tamaño base */
    flex-wrap: nowrap; /* Evita saltos de línea en pantallas anchas */
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 1; /* Permite que se comprima si falta espacio */
    white-space: nowrap;
}

.footer-brand {
    color: hsl(var(--foreground));
    font-weight: 700;
    font-size: 1rem; /* <--- Mismo tamaño que los links */
    white-space: nowrap;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 1;
    justify-content: flex-end;
    min-width: 0;
    white-space: nowrap;
}

    /* Estilos unificados para enlaces y botones del footer */
    .footer-links a,
    .footer-links button {
        font-size: 1rem; /* <--- Mismo tamaño que el Brand y Copyright */
        color: hsl(var(--muted-foreground));
        text-decoration: none;
        background: transparent;
        border: none;
        padding: 0;
        cursor: pointer;
        transition: color .15s ease;
    }

        .footer-links a:hover,
        .footer-links button:hover {
            color: hsl(var(--foreground));
        }

.age-badge {
    font-size: 0.75rem; /* <--- Excepción: El badge se mantiene más pequeño */
    display: inline-flex;
    align-items: center;
    padding: .12rem .45rem;
    border: 1px solid hsl(var(--border));
    border-radius: .25rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* =========================================
   RESPONSIVE FOOTER
   ========================================= */
@media (max-width: 1024px) {
    .footer-inner {
        gap: 0.75rem;
        padding: 0 1.5rem;
    }

    .footer-links {
        gap: 0.5rem;
    }
}

@media (max-width: 767px) {
    .footer-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 0 1rem;
        flex-wrap: wrap; /* En móvil permitimos que se ajuste */
    }

    .footer-left,
    .footer-links {
        justify-content: center;
        width: 100%;
    }
}



/* =========================================
   1. VARIABLES & THEME
   ========================================= */
:root {
    --background: 222 47% 6%;
    --foreground: 210 40% 92%;
    --card: 222 40% 9%;
    --card-foreground: 210 40% 92%;
    --popover: 222 40% 9%;
    --popover-foreground: 210 40% 92%;
    --primary: 210 100% 52%;
    --primary-foreground: 0 0% 100%;
    --secondary: 222 30% 14%;
    --secondary-foreground: 210 40% 85%;
    --muted: 222 30% 14%;
    --muted-foreground: 215 20% 55%;
    --accent: 172 66% 50%;
    --accent-foreground: 222 47% 6%;
    --destructive: 0 84% 60%;
    --destructive-foreground: 0 0% 100%;
    --border: 222 20% 18%;
    --input: 222 20% 18%;
    --ring: 210 100% 52%;
    --radius: .5rem;
    --surface-elevated: 222 35% 12%;
    --sidebar-background: 222 40% 7%;
    --sidebar-foreground: 210 40% 92%;
    --sidebar-primary: 210 100% 52%;
    --sidebar-primary-foreground: 0 0% 100%;
    --sidebar-accent: 222 30% 14%;
    --sidebar-accent-foreground: 210 40% 85%;
    --sidebar-border: 222 20% 18%;
    --sidebar-ring: 210 100% 52%;
    --glow-primary: 210 100% 52%;
    --glow-accent: 172 66% 50%;
    --text-dim: 215 15% 45%;
    --success: 152 69% 41%;
    --warning: 38 92% 50%;
    --gradient-card: linear-gradient(145deg, hsl(222 40% 10%) 0%, hsl(222 40% 7%) 100%);
    --gradient-cta: linear-gradient(135deg, hsl(210 100% 52%) 0%, hsl(200 100% 45%) 100%);
    --gradient-hero: linear-gradient(135deg, hsl(222 47% 6%) 0%, hsl(222 35% 12%) 50%, hsl(210 40% 10%) 100%);
    --shadow-glow: 0 0 40px -10px hsl(210 100% 52% / .3);
    --hero-background-image: url('/images/hero-bg.jpg');
}

/* =========================================
   2. RESET & BASE
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
    border-color: hsl(var(--border));
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: inherit;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: inherit;
    letter-spacing: -.02em;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, textarea {
    font: inherit;
}

/* =========================================
   3. LAYOUT & SHELL
   ========================================= */
.loading {
    min-height: 100vh;
    display: grid;
    place-items: center;
    color: hsl(var(--muted-foreground));
}

main, .app-shell, .site-footer, .section, .pricing-section, .blog-page {
    background: hsl(var(--background));
}

.app-shell {
    min-height: 100vh;
}

.container-narrow {
    max-width: 70rem;
    margin: 0 auto;
}

/* =========================================
   4. HEADER & NAV
   ========================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    height: 4rem;
    border-bottom: 1px solid hsl(var(--border) / .5);
    background: hsl(var(--background) / .8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.header-inner {
    width: 100%;
    max-width: 1400px;
    height: 4rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    color: hsl(var(--foreground));
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 700;
    white-space: nowrap;
    transition: color .15s ease;
}

    .brand:hover {
        color: hsl(var(--primary));
    }

.nav-links, .header-actions, .footer-left, .footer-links {
    display: flex;
    align-items: center;
}

.nav-links {
    gap: 1.5rem;
}

.header-actions {
    gap: .5rem;
}

.nav-links a, .login-link, .register-link, .table-actions a, .footer-inner,
.footer-links, .risk-modal-text, .auth-modal p, .auth-modal label,
.auth-input, .auth-submit, .risk-modal-button {
    font-size: 1rem;
    line-height: 1.25rem;
}

.nav-links a {
    color: hsl(var(--muted-foreground));
    transition: color .15s ease;
}

    .nav-links a:hover {
        color: hsl(var(--foreground));
    }

.login-link, .register-link {
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    border-radius: .375rem;
    font-weight: 500;
    transition: all .15s ease;
}

button.login-link, button.register-link {
    border: 0;
    cursor: pointer;
}

.login-link, button.login-link {
    background: transparent;
    color: hsl(var(--muted-foreground));
}

    .login-link:hover {
        background: hsl(var(--accent) / .12);
        color: hsl(var(--foreground));
    }

.register-link, button.register-link {
    background: var(--gradient-cta);
    color: hsl(var(--primary-foreground));
}

    .register-link:hover {
        opacity: .9;
    }

.mobile-menu-button {
    display: none;
    padding: 0;
    border: 0;
    background: transparent;
    color: hsl(var(--foreground));
    cursor: pointer;
}

/* =========================================
   5. HERO SECTION
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: hsl(var(--background));
}

.hero-image, .hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-image {
    opacity: 1;
    background-image: var(--hero-background-image);
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    background: hsl(var(--background) / .7);
}

.hero-glow {
    position: absolute;
    top: 33.333%;
    left: 50%;
    width: 25rem;
    height: 25rem;
    border-radius: 999px;
    background: hsl(var(--primary) / .05);
    filter: blur(120px);
    transform: translateX(-50%);
}

.hero-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 8rem 1rem 6rem;
}

.hero-content {
    margin: 0 auto;
    text-align: center;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin: 0 0 2rem;
    padding: .375rem 1rem;
    border: 1px solid hsl(var(--primary) / .2);
    border-radius: 999px;
    background: hsl(var(--primary) / .05);
    color: hsl(210deg 100% 60.9%);
    font-size: 1.2rem;
    line-height: 1.25rem;
    font-weight: 500;
    animation: fadeInUp .7s ease both;
}

.chip-icon {
    font-size: .667rem;
}

.hero-title {
    max-width: 77rem;
    margin: 0 auto 1.5rem;
    color: hsl(var(--foreground));
    font-size: 3rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -.02em;
    text-align: center;
    animation: fadeInUp .7s ease .1s both;
}

    .hero-title span, .section h2 span, .compare-head span:last-child, .pricing-section h2 span {
        background-image: linear-gradient(135deg, rgb(75, 170, 250), hsl(174deg 78% 63%));
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
    }

.lead {
    max-width: 65rem;
    margin: 0 auto 2rem;
    color: hsl(var(--muted-foreground));
    font-size: 1.125rem;
    line-height: 1.625;
    animation: fadeInUp .7s ease .2s both;
}

.actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    animation: fadeInUp .7s ease .2s both;
}

/* =========================================
   6. BUTTONS
   ========================================= */
.btn {
    height: 4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 0 2rem;
    border-radius: .5rem;
    font-size: 1.3rem;
    line-height: 1.5rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all .15s ease;
}

    .btn .icon-after {
        margin-left: .25rem;
    }

    .btn.primary, .auth-submit, .risk-modal-button, .subscription-card.highlight .subscription-button {
        background: var(--gradient-cta);
        color: hsl(var(--primary-foreground));
    }

    .btn.primary {
        box-shadow: var(--shadow-glow);
    }

        .btn.primary:hover, .auth-submit:hover, .risk-modal-button:hover {
            opacity: .9;
        }

    .btn.ghost {
        border: 1px solid hsl(var(--border));
        background: hsl(var(--background));
        color: hsl(var(--foreground));
    }

        .btn.ghost:hover {
            background: hsl(var(--secondary));
        }

/* =========================================
   7. STATS & SECTIONS
   ========================================= */
.stats {
    max-width: 75rem;
    margin: 4rem auto 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

    .stats strong {
        display: block;
        color: hsl(var(--foreground));
        font-size: 2.5rem;
        line-height: 4rem;
        font-weight: 700;
    }

    .stats span {
        display: block;
        margin-top: .25rem;
        color: hsl(var(--muted-foreground));
        font-size: 1.2rem;
        line-height: 1.25rem;
    }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section, .pricing-section {
    padding: 5rem 1rem;
    text-align: center;
}

    .section.alt {
        background: hsl(var(--surface-elevated));
    }

.eyebrow {
    display: block;
    margin-bottom: .5rem;
    color: hsl(var(--primary));
    font-size: 1.4rem;
    line-height: 3.25rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.section h2, .pricing-section h2 {
    margin: 0 0 1rem;
    color: hsl(var(--foreground));
    font-size: 2.25rem;
    line-height: 2.5rem;
    font-weight: 700;
}

.section-copy, .pricing-copy {
    max-width: 50rem;
    margin: 0 auto;
    color: hsl(var(--muted-foreground));
    font-size: 1.425rem;
    line-height: 1.75rem;
}

/* =========================================
   8. CARDS (FEATURE, BLOG, SUBSCRIPTION)
   ========================================= */
.feature-grid, .blog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin: 3.5rem auto 0;
}

.feature-grid {
    max-width: 72rem;
}

.feature-card, .blog-card, .subscription-card {
    border: 1px solid hsl(var(--border) / .5);
    border-radius: .75rem;
    padding: 1.5rem;
    text-align: left;
    transition: all .3s ease;
}

.feature-card {
    margin-top: 3rem;
    background: var(--gradient-card);
}

    .feature-card:hover, .blog-card:hover {
        border-color: hsl(var(--primary) / .3);
        box-shadow: var(--shadow-glow);
    }

    .feature-card .icon {
        width: 3.5rem;
        height: 3.5rem;
        margin-bottom: 1rem;
        display: grid;
        place-items: center;
        border-radius: .4rem;
        background: hsl(var(--primary) / .1);
        color: hsl(217deg 100% 62%);
        font-size: .75rem;
        line-height: 1;
        transition: background-color .3s ease;
    }

        .feature-card .icon svg {
            width: 1.133rem;
            height: 1.133rem;
            stroke-width: 2;
        }

    .feature-card:hover .icon {
        background: hsl(var(--primary) / .2);
    }

    .feature-card h3, .subscription-card h3, .blog-card h2, .unlock-card h3,
    .theory-card h3, .accordion summary {
        color: hsl(var(--foreground));
        font-size: 1.65rem;
        line-height: 2.75rem;
        margin: 0 0 .333rem;
        font-weight: 600;
    }

    .feature-card p, .blog-card p, .blog-card time, .unlock-card p, .theory-body,
    .accordion-body, .compare-head span, .compare-row span, .subscription-features li,
    .subscription-button, .feedback input, .feedback textarea {
        color: hsl(var(--muted-foreground));
        font-size: 1.3rem;
        line-height: 1.625;
    }

    .feature-card p, .blog-card p, .unlock-card p {
        margin: 0;
    }

/* =========================================
   9. TABLES & COMPARE
   ========================================= */
.table-panel {
    width: fit-content;
    max-width: 100%;
    margin: 2.5rem auto 0;
}

.table-error {
    margin: .5rem 0;
    padding: .5rem .75rem;
    border: 1px solid hsl(var(--primary) / .25);
    border-radius: .5rem;
    background: hsl(var(--card));
    color: hsl(var(--muted-foreground));
    font-size: .75rem;
}

.table-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: .5rem;
}

    .table-actions a {
        display: flex;
        align-items: center;
        gap: .3rem;
        color: hsl(var(--muted-foreground));
        transition: color .15s ease;
    }

        .table-actions a:hover {
            color: hsl(var(--foreground));
        }

    .table-actions svg {
        width: .667rem;
        height: .667rem;
    }

.table-wrap, .compare, .subscription-card, .accordion details, .theory-card, .auth-modal, .risk-modal {
    border: 1px solid hsl(var(--border) / .5);
    background: hsl(var(--card));
}

.table-wrap {
    overflow-x: auto;
    border-radius: .75rem;
    box-shadow: 0 1px 0 hsl(var(--foreground) / .02) inset;
}

.original-table table {
    min-width: 1100px;
    border-collapse: collapse;
    background: hsl(var(--card));
    color: hsl(var(--muted-foreground));
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 18px;
    font-weight: 400;
}

.original-table th, .original-table td {
    padding: 1px .25rem;
    border-bottom: 1px solid hsl(var(--border) / .3);
    background: transparent;
    color: hsl(var(--muted-foreground));
    line-height: 1.25;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
}

.original-table th {
    color: hsl(var(--foreground));
}

    .original-table th.letter {
        padding: .08rem;
        color: hsl(var(--muted-foreground));
        font-size: 14px;
    }

.original-table tr:hover {
    filter: brightness(1.3);
}

.original-table td.excel-colored-cell {
    opacity: 1 !important;
    font-weight: 400 !important;
}

.cell-blue {
    background-color: rgb(25, 37, 50) !important;
    color: rgb(201, 217, 232) !important;
}

.cell-red {
    background-color: rgb(47, 12, 6) !important;
    color: rgb(201, 217, 232) !important;
}

.compare {
    max-width: 60rem;
    margin: 3rem auto 0;
    overflow: hidden;
    border-radius: .75rem;
    display: table;
    width: 100%;
    border-collapse: collapse;
}

.compare-head, .compare-row {
    display: table-row;
}

.compare-head {
    background: hsl(var(--secondary) / .5);
    font-weight: 700;
    border-bottom: 1px solid hsl(var(--border) / .3);
    color: hsl(var(--secondary-foreground));
    text-align: left;
}

    .compare-head span, .compare-row span {
        display: table-cell;
        padding: 8px 6px;
        border-bottom: 1px solid hsl(217deg 42.93% 33.76%);
        vertical-align: middle;
        color: hsl(var(--secondary-foreground));
        text-align: left;
    }

        .compare-head span:first-child, .compare-row span:first-child {
            width: 60%;
        }

        .compare-row span:not(:first-child) {
            text-align: center;
        }

.compare-row:nth-child(even) {
    background: hsl(var(--background));
}

.compare-row span:last-child:not(.compare-x), .compare-row span:nth-last-child(2):not(.compare-x) {
    color: hsl(var(--accent));
    font-weight: bolder;
}

span.compare-x {
    color: gray;
}

/* =========================================
   10. UNLOCK, THEORY & ACCORDION
   ========================================= */
.unlock-card {
    max-width: 36rem;
    margin: 2.25rem auto 0;
    padding: 2rem;
    border: 1px solid hsl(var(--primary) / .2);
    border-radius: .75rem;
    background: linear-gradient(145deg, hsl(var(--card)) 0%, hsl(222 40% 7%) 100%);
    text-align: center;
    box-shadow: var(--shadow-glow);
}

    .unlock-card p {
        margin-bottom: 1rem;
    }

.unlock-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
    margin-bottom: 1rem;
}

    .unlock-tags span, .blog-tag, .age-badge, .user-chip, .auth-error, .validation-message {
        font-size: .75rem;
        line-height: 1rem;
    }

    .unlock-tags span {
        padding: .25rem .5rem;
        border-radius: 999px;
        background: hsl(var(--primary) / .1);
        color: hsl(var(--primary));
    }

.theory-card, .accordion {
    max-width: 54rem;
    margin-left: auto;
    margin-right: auto;
}

.theory-card {
    margin-top: 2rem;
    overflow: hidden;
    border-radius: .75rem;
    text-align: left;
}

.theory-body, .accordion-body {
    padding: 0 1.25rem 1.25rem;
    text-align: left;
}

    .theory-body p, .accordion-body p {
        margin: .65rem 0;
    }

    .theory-body strong, .accordion-body strong {
        color: hsl(var(--foreground));
    }

    .theory-body h4 {
        margin: .9rem 0 .4rem;
        color: hsl(var(--foreground));
        font-size: 1rem;
        font-weight: 600;
    }

    .theory-body ul, .accordion-body ul {
        margin: .5rem 0 .5rem 1.2rem;
        padding: 0;
    }

    .theory-body li {
        margin: .2rem 0;
    }

.accordion {
    display: grid;
    gap: .5rem;
    margin-top: 1rem;
}

    .accordion details {
        overflow: hidden;
        border-radius: .75rem;
        border: 1px solid hsl(var(--border) / .5);
        background: hsl(var(--card));
    }

    .accordion summary {
        list-style: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        text-align: left;
        padding: 1.25rem;
        font-weight: 600;
        color: hsl(var(--foreground));
    }

        .accordion summary::-webkit-details-marker {
            display: none;
        }

.chevron {
    color: hsl(var(--muted-foreground));
    font-size: 1.3rem;
    transition: transform .2s ease;
}

.accordion details[open] .chevron {
    transform: rotate(180deg);
}

.original-accordion details > summary::after {
    content: "";
    width: 1.5rem;
    height: 1.5rem;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: hsl(var(--muted-foreground));
    font-size: 1rem;
    line-height: 1;
    transition: transform .2s ease, color .2s ease, background-color .2s ease;
}

.original-accordion details > summary:hover::after {
    background: hsl(var(--secondary));
    color: hsl(var(--foreground));
}

.original-accordion details[open] > summary::after {
    transform: rotate(180deg);
}

.original-accordion .chevron {
    display: none !important;
}

/* =========================================
   11. SUBSCRIPTIONS & FEEDBACK
   ========================================= */
.subscription-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    max-width: 46rem;
    margin: 3.5rem auto 0;
}

.subscription-card {
    position: relative;
    min-height: 18rem;
    display: flex;
    flex-direction: column;
}

    .subscription-card:hover {
        border-color: hsl(var(--border));
    }

.subscription-price {
    display: flex;
    align-items: baseline;
    gap: .125rem;
    margin-bottom: 1rem;
}

    .subscription-price .amount {
        color: hsl(var(--foreground));
        font-size: 3rem;
        line-height: 1;
        font-weight: 800;
        letter-spacing: -.04em;
    }

    .subscription-price .rub {
        color: hsl(var(--muted-foreground));
        font-size: 1.125rem;
    }

    .subscription-price .period {
        margin-left: .25rem;
        color: hsl(var(--muted-foreground));
        font-size: .875rem;
    }

.subscription-features {
    flex: 1;
    display: grid;
    gap: .5rem;
    margin: 0 0 1.333rem;
    padding: 0;
    list-style: none;
}

    .subscription-features li {
        display: flex;
        align-items: flex-start;
        gap: .4rem;
        color: hsl(var(--secondary-foreground));
    }

        .subscription-features li::before {
            content: "✓";
            color: hsl(var(--accent));
            font-weight: 700;
        }

.subscription-button {
    width: 100%;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .375rem;
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    font-weight: 500;
    transition: background .15s ease;
}

    .subscription-button:hover {
        background: hsl(var(--secondary) / .8);
    }

.discount-badge {
    position: absolute;
    top: -.75rem;
    left: 50%;
    display: inline-flex;
    align-items: center;
    padding: .25rem .75rem;
    border-radius: 999px;
    background: hsl(var(--accent) / .2);
    color: hsl(var(--accent));
    font-size: 1rem;
    font-weight: 700;
    transform: translateX(-50%);
}

.feedback form {
    display: grid;
    gap: .75rem;
    /*max-width: 28rem;*/
    margin: 1.25rem auto 0;
}

.feedback input, .feedback textarea {
    width: 100%;
    padding: .75rem 1rem;
    border: 1px solid hsl(210 40% 98%);
    border-radius: .375rem;
    background: hsl(var(--card));
    color: hsl(var(--foreground));
}

.feedback textarea {
    min-height: 5rem;
}

.feedback .btn {
    width: 100%;
}

/* =========================================
   12. BLOG PAGE
   ========================================= */
.blog-page {
    min-height: calc(100vh - 3rem);
    padding: 6rem 1rem 4rem;
}

.blog-hero, .blog-grid {
    width: 100%;
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
}

.back-link {
    display: inline-flex;
    margin-bottom: 1.75rem;
    color: hsl(var(--muted-foreground));
    font-size: .875rem;
    transition: color .15s ease;
}

    .back-link:hover {
        color: hsl(var(--primary));
    }

.blog-hero h1 {
    margin: 0 0 .75rem;
    font-size: 3rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -.02em;
    text-align: left;
}

.blog-hero p {
    max-width: 42rem;
    margin: 0;
    color: hsl(var(--muted-foreground));
    font-size: 1.125rem;
    line-height: 1.45;
}

.blog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.blog-card {
    min-height: 12.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: hsl(var(--card));
}

    .blog-card.highlight {
        border-color: hsl(var(--primary) / .3);
    }

.blog-tag {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: .28rem .55rem;
    border-radius: 999px;
    background: hsl(var(--primary) / .1);
    color: hsl(var(--primary));
    font-weight: 700;
}

.blog-card h2 {
    text-align: left;
    font-weight: 800;
    letter-spacing: -.02em;
}

.blog-card time {
    margin-top: auto;
}

.blog-card h2, .blog-card p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
}

.blog-card h2 {
    -webkit-line-clamp: 2;
}

.blog-card p {
    -webkit-line-clamp: 3;
}

/* =========================================
   13. FOOTER (Compactación progresiva)
   ========================================= */
.site-footer {
    padding: 1.5rem 1rem;
    border-top: 1px solid hsl(var(--border) / .5);
}

.footer-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    color: hsl(var(--muted-foreground));
    flex-wrap: wrap;
}

.footer-left, .footer-links {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-left {
    justify-content: flex-start;
}

.footer-links {
    justify-content: flex-end;
}

    .footer-brand, .footer-left span, .footer-links a, .footer-links button {
        font-size: 1rem;
        white-space: normal;
        word-break: break-word;
        line-height: 1.45;
    }

.footer-brand {
    color: hsl(var(--foreground));
    font-weight: 700;
    flex-shrink: 0;
}

.footer-links a, .footer-links button {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    color: hsl(var(--muted-foreground));
    transition: color .15s ease;
    text-align: left;
}

    .footer-links a:hover, .footer-links button:hover {
        color: hsl(var(--foreground));
    }

.age-badge {
    font-size: .75rem;
    display: inline-flex;
    align-items: center;
    padding: .12rem .45rem;
    border: 1px solid hsl(var(--border));
    border-radius: .25rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* =========================================
   14. MODALS (AUTH & RISK)
   ========================================= */
.risk-modal-backdrop, .auth-modal-backdrop {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: hsl(var(--background) / .78);
    backdrop-filter: blur(8px);
}

.risk-modal-backdrop {
    z-index: 3000;
}

.auth-modal-backdrop {
    z-index: 3100;
}

.risk-modal, .auth-modal {
    color: hsl(var(--foreground));
    box-shadow: 0 25px 80px rgb(0 0 0 / .55);
    border-radius: .667rem;
    display: flex;
    flex-direction: column;
    background: hsl(var(--card));
}

.risk-modal {
    width: min(100%, 45rem);
    padding: 2rem;
    max-height: 90vh;
}

    .risk-modal h3, .auth-modal h3 {
        margin: 0 0 .75rem;
        color: hsl(var(--foreground));
        font-size: 1.25rem;
        line-height: 1.75rem;
        font-weight: 700;
    }

.risk-modal-text {
    overflow-y: auto;
    max-height: 60vh;
    margin-bottom: 16px;
    display: grid;
    gap: .5rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
}

    .risk-modal-text p {
        margin: 0;
    }

.risk-modal-button {
    width: 100%;
    height: 2.5rem;
    margin-top: 1rem;
    border: 0;
    border-radius: .375rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    background: var(--gradient-cta);
    color: hsl(var(--primary-foreground));
}

    .risk-modal-button:hover {
        opacity: .9;
    }

.auth-modal {
    position: relative;
    width: min(100%, 30rem);
    padding: 2rem;
}

    .auth-modal h3 {
        margin-bottom: .35rem;
    }

    .auth-modal p {
        margin: 0 0 1rem;
        color: hsl(var(--muted-foreground));
        line-height: 1.55;
    }

    .auth-modal form {
        display: grid;
        gap: .45rem;
    }

    .auth-modal label {
        color: hsl(var(--secondary-foreground));
        font-weight: 600;
    }

.auth-input {
    width: 100%;
    height: 2.5rem;
    padding: 0 .6rem;
    border: 1px solid hsl(210 40% 98%);
    ;
    border-radius: .375rem;
    outline: none;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
}

    .auth-input:focus {
        border-color: hsl(var(--primary));
        box-shadow: 0 0 0 2px hsl(var(--primary) / .15);
    }

.auth-submit {
    height: 2.5rem;
    margin-top: .5rem;
    border: 0;
    border-radius: .375rem;
    font-weight: 700;
    cursor: pointer;
    background: var(--gradient-cta);
    color: hsl(var(--primary-foreground));
}

    .auth-submit:disabled {
        opacity: .6;
        cursor: wait;
    }

    .auth-submit:hover {
        opacity: .9;
    }

.auth-close {
    position: absolute;
    top: .5rem;
    right: .65rem;
    border: 0;
    background: transparent;
    color: hsl(var(--muted-foreground));
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

    .auth-close:hover {
        color: hsl(var(--foreground));
    }

.auth-error {
    padding: .45rem .55rem;
    border: 1px solid rgb(239 68 68 / .3);
    border-radius: .375rem;
    background: rgb(127 29 29 / .25);
    color: rgb(252 165 165);
    line-height: 1.35;
}

.validation-message {
    color: rgb(252 165 165);
}

/* =========================================
   15. PREMIUM CTA
   ========================================= */
.premium-cta {
    max-width: 70rem;
    margin: 2rem auto;
    padding: 3rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid hsl(var(--border) / .45);
    border-radius: 1.5rem;
    background: linear-gradient(145deg, hsl(224 75% 6%) 0%, hsl(226 80% 5%) 100%);
    overflow: hidden;
    position: relative;
}

    .premium-cta::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top center, hsl(var(--primary) / .15), transparent 60%);
        pointer-events: none;
    }

.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1.5rem;
    padding: .6rem 1.2rem;
    border-radius: 999px;
    background: rgb(255 183 0 / .12);
    color: rgb(255 193 35);
    font-size: 0.95rem;
    font-weight: 700;
}

    .premium-badge svg {
        width: 1rem;
        height: 1rem;
        stroke-width: 2.5;
    }

.premium-cta h3 {
    margin: 0 0 1rem;
    color: hsl(var(--foreground));
    font-size: 2.4rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.premium-cta p {
    margin: 0 auto 2rem;
    color: hsl(var(--muted-foreground));
    font-size: 1.15rem;
    line-height: 1.5;
    max-width: 80%;
}

.premium-features {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2.5rem;
    width: 100%;
}

    .premium-features span {
        display: flex;
        align-items: center;
        gap: .6rem;
        color: hsl(var(--foreground));
        font-size: 1.15rem;
        font-weight: 500;
        opacity: 0.9;
        white-space: nowrap;
    }

    .premium-features svg {
        width: 1.2rem;
        height: 1.2rem;
        stroke-width: 2.5;
        flex-shrink: 0;
    }

    .premium-features span:nth-child(1) svg {
        color: #10b981;
    }

    .premium-features span:nth-child(2) svg {
        color: #fbbf24;
    }

    .premium-features span:nth-child(3) svg {
        color: #3b82f6;
    }

.premium-button {
    width: 100%;
    max-width: 22rem;
    height: 3.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.8rem;
    background: var(--gradient-cta, linear-gradient(to right, #3b82f6, #2563eb));
    color: white;
    font-size: 1.15rem;
    font-weight: 600;
    transition: transform 0.2s ease, opacity 0.2s ease;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

    .premium-button:hover {
        transform: translateY(-2px);
        opacity: 0.95;
    }

.premium-note {
    color: hsl(var(--muted-foreground));
    font-size: 0.95rem;
    opacity: 0.7;
}

/* =========================================
   16. CONTACT FORM
   ========================================= */
.contact-form {
    width: 100%;
    max-width: 50rem;
    margin: 0 auto;
    padding: 1.5rem;
    border: 1px solid hsl(var(--border) / .5);
    border-radius: 0.75rem;
    background: hsl(var(--card));
    display: grid;
    gap: 1.3rem;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    background: hsl(var(--secondary));
    color: hsl(var(--foreground));
    font-size: 1.3rem;
    line-height: 1.5;
    transition: all 0.15s ease;
}

    .form-input::placeholder, .form-textarea::placeholder {
        color: hsl(var(--muted-foreground));
    }

    .form-input:focus, .form-textarea:focus {
        outline: none;
        border-color: hsl(var(--ring));
        box-shadow: 0 0 0 2px hsl(var(--ring) / .15);
    }

    .form-input:disabled, .form-textarea:disabled {
        cursor: not-allowed;
        opacity: 0.5;
    }

.form-textarea {
    min-height: 8rem;
    resize: none;
}

.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0.25rem 0;
}

.form-checkbox {
    width: 1.55rem;
    height: 1.55rem;
    margin-top: 0.15rem;
    border: 1.5px solid hsl(var(--primary) / .6);
    border-radius: 0.375rem;
    background: hsl(var(--secondary));
    cursor: pointer;
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    transition: all 0.15s ease;
    display: grid;
    place-items: center;
}

    .form-checkbox:hover {
        border-color: hsl(var(--primary));
        background: hsl(var(--secondary) / .8);
    }

    .form-checkbox:checked {
        background: hsl(var(--primary));
        border-color: hsl(var(--primary));
    }

        .form-checkbox:checked::before {
            content: "✓";
            color: hsl(var(--primary-foreground));
            font-size: 0.875rem;
            font-weight: 700;
            line-height: 1;
        }

    .form-checkbox:focus {
        outline: none;
        border-color: hsl(var(--ring));
        box-shadow: 0 0 0 2px hsl(var(--primary) / .25);
    }

    .form-checkbox:disabled {
        cursor: not-allowed;
        opacity: 0.5;
    }

.form-label {
    color: hsl(var(--muted-foreground));
    font-size: 1.2rem;
    line-height: 1.5;
    cursor: pointer;
}

.privacy-link {
    color: hsl(var(--primary));
    background: transparent;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
}

    .privacy-link:hover {
        text-decoration: underline;
        opacity: 0.9;
    }

    .privacy-link:focus-visible {
        text-decoration: underline;
        outline: 2px solid hsl(var(--ring));
        outline-offset: 2px;
    }

.form-submit {
    width: 100%;
    height: 4rem;
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

    .form-submit svg {
        width: 1rem;
        height: 1rem;
        flex-shrink: 0;
    }

/* =========================================
   17. UTILITIES & MISC
   ========================================= */
.user-chip {
    height: 1.5rem;
    display: inline-flex;
    align-items: center;
    padding: 0 .55rem;
    border: 1px solid hsl(var(--border));
    border-radius: 999px;
    background: hsl(var(--card) / .75);
    color: hsl(var(--foreground));
}

li code.shrink-0, .accordion .accordion-body ul li code.shrink-0 {
    color: #179aff;
    font-size: 1.2em;
    font-weight: 700;
    white-space: nowrap;
}

.formula {
    margin: 22px 0;
    padding: 18px 20px;
    overflow-x: auto;
    border: 1px solid hsl(var(--border));
    border-radius: 14px;
    background: hsl(var(--background) / .35);
    text-align: center;
}

.caption {
    margin: 0 0 10px;
    color: hsl(var(--muted-foreground));
    font: 12px / 1.2 Arial, sans-serif;
    letter-spacing: .02em;
}

math {
    font-size: 1.35rem;
}

mtext {
    font-size: .9em;
}

div.icon.warning {
    background-color: hsl(0deg 100% 62.13% / 12%);
}

.warning svg {
    color: #ff4040;
}

.card-title-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

    .card-title-row .icon {
        margin-bottom: 0;
    }

    .card-title-row h3 {
        margin: 0;
        padding: .25rem;
    }

#risk-alert {
    margin-bottom: 4rem;
}

.text-xs {
    font-size: .75rem;
    line-height: 1rem;
}

.text-sm {
    font-size: 1rem;
    line-height: 1.25rem;
}

.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.text-5xl {
    font-size: 3rem;
    line-height: 1;
}

.text-6xl {
    font-size: 3.75rem;
    line-height: 1;
}

.leading-relaxed {
    line-height: 1.625;
}

h1:focus, h1:focus-visible, .hero-title, .hero-title:focus, .hero-title:focus-visible {
    outline: none;
    box-shadow: none;
}

/* =========================================
   18. RESPONSIVE MEDIA QUERIES
   ========================================= */
@media (min-width: 640px) {
    .lead, .sm\:text-xl {
        font-size: 1.7rem;
        line-height: 2.5rem;
    }
}

@media (min-width: 768px) {
    .hero-title, .md\:text-6xl {
        font-size: 4.5rem;
        line-height: 1;
    }

    .md\:text-5xl {
        font-size: 3rem;
        line-height: 1;
    }

    .section h2, .pricing-section h2 {
        font-size: 2.8rem;
        line-height: 4.5rem;
    }

    .premium-features {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
    }

    .premium-cta p {
        max-width: 80%;
    }

    .premium-upgrade-content {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

        .premium-upgrade-content > div:last-child {
            align-items: center !important;
            text-align: center !important;
        }
}

@media (max-width: 1024px) {
    .footer-inner {
        gap: 1.5rem;
        padding: 0 1.5rem;
    }

    .footer-left, .footer-links {
        gap: 0.75rem;
    }
}

@media (max-width: 1023px) {
    .feature-grid, .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .premium-cta {
        padding: 2rem;
    }

        .premium-cta h3 {
            font-size: 2.4rem;
        }

        .premium-cta p {
            font-size: 1.2rem;
        }

    .premium-button {
        height: 4rem;
        font-size: 1.35rem;
    }

    .premium-note {
        font-size: 1rem;
    }

    .premium-features {
        gap: 1rem;
    }

        .premium-features span {
            font-size: 1rem;
        }
}

@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.25rem;
        padding: 0 1rem;
    }

    .footer-left, .footer-links {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 767px) {
    .site-header, .header-inner {
        height: 3.5rem;
    }

    .header-inner {
        min-height: 24px;
    }

    .mobile-menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links, .header-actions, .user-chip {
        display: none;
    }

    .brand {
        font-size: 1.125rem;
    }

    .hero-container {
        padding-top: 6rem;
        padding-bottom: 4rem;
    }

    .hero-chip {
        font-size: .875rem;
    }

    .hero-title {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }

    .lead, .section-copy, .pricing-copy {
        font-size: 1rem;
        line-height: 1.625;
    }

    .actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section h2, .pricing-section h2 {
        font-size: 2rem;
        line-height: 2.25rem;
    }

    .feature-grid, .subscription-grid, .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-page {
        padding-top: 5rem;
    }

    .table-actions {
        align-items: flex-start;
    }

        .table-actions svg {
            width: 1rem;
            height: 1rem;
        }

    .feature-card .icon svg {
        width: 1.25rem;
        height: 1.25rem;
    }

    .original-table table {
        font-size: 16px;
    }

    .contact-form {
        padding: 1.25rem;
    }

    .form-input, .form-textarea {
        font-size: 1rem;
    }

    .form-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 500px) {
    .compare-head span:first-child, .compare-row span:first-child {
        width: 50%;
        word-break: break-word;
    }

    .footer-inner {
        gap: 0.5rem;
    }

    .footer-left span:last-child {
        display: none;
    }

    .footer-links a {
        font-size: 0.65rem;
    }

        .footer-links a:nth-child(2) {
            display: none;
        }
}

@media (max-width: 480px) {
    .premium-cta {
        max-width: 95vw;
        margin: 1.5rem auto;
        padding: 2rem 1.2rem;
        border-radius: 1rem;
    }

        .premium-cta h3 {
            font-size: 1.9rem;
        }

        .premium-cta p {
            font-size: 1rem;
            max-width: 100%;
        }

    .premium-button {
        font-size: 1rem;
        height: 3.2rem;
    }

    .site-footer {
        padding: 1rem 0.5rem;
    }

    .footer-inner {
        gap: 0.75rem;
    }

    .footer-brand {
        font-size: 1rem;
    }

    .footer-left span {
        font-size: 0.75rem;
    }

    .footer-links a {
        font-size: 0.75rem;
        padding: 0 0.25rem;
    }

    .age-badge {
        font-size: 0.7rem;
        padding: 0.1rem 0.35rem;
    }
}




/* =========================================
   FIX: ACORDEÓN CHEVRON
   ========================================= */

/* 1. Forzar que se vea el chevron manual del HTML */
.original-accordion .chevron {
    display: inline-flex !important;
}

/* 2. Ocultar el chevron automático (CSS) para que no salgan dos */
.original-accordion details > summary::after {
    content: none;
}

/* =========================================
   19. BACK TO TOP BUTTON
   ========================================= */
.btn-to-top {
    position: fixed;
    bottom: 3rem;
    left: 0.75rem;
    z-index: 50;
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid hsl(var(--primary) / .2);
    border-radius: 9999px;
    background: hsl(var(--primary) / .1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: hsl(var(--primary));
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
}

    .btn-to-top svg {
        width: 1.25rem;
        height: 1.25rem;
        flex-shrink: 0;
        stroke: currentColor;
    }

    .btn-to-top:hover {
        background: hsl(var(--primary) / .2);
        transform: scale(1.1);
        border-color: hsl(var(--primary) / .4);
    }

    .btn-to-top:active {
        transform: scale(0.95);
    }

/* Responsive: ajustar en móviles muy pequeños */
@media (max-width: 480px) {
    .btn-to-top {
        bottom: 1.5rem;
        left: 0.5rem;
        width: 2.75rem;
        height: 2.75rem;
    }

        .btn-to-top svg {
            width: 1.125rem;
            height: 1.125rem;
        }
}

.auth-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem
}

    .auth-tabs .tab {
        background: none;
        border: none;
        color: inherit;
        font-size: 1rem;
        cursor: pointer
    }

    .auth-tabs .active {
        border-bottom: 2px solid currentColor
    }

.plan-card, .google-btn {
    width: 100%;
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.35);
    background: transparent;
    color: inherit;
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    cursor: pointer
}

.google-btn {
    justify-content: center
}

div.form-consent input[type="checkbox"] {
    width: 1.5em;
    height: 1.5em;
    padding: 8px;
}

div.form-consent label[for="consent"] {
    text-align: left;
}

/* Стилизация скроллбара для модального окна "Принцип работы формулы" */
.auth-modal::-webkit-scrollbar {
    width: 10px;
}

.auth-modal::-webkit-scrollbar-track {
    background: rgb(15, 23, 42); /* Очень тёмно-синий фон дорожки */
    border-radius: 5px;
}

.auth-modal::-webkit-scrollbar-thumb {
    background: rgb(51, 65, 85); /* Тёмно-синий цвет ползунка */
    border-radius: 5px;
    border: 2px solid rgb(15, 23, 42);
}

    .auth-modal::-webkit-scrollbar-thumb:hover {
        background: rgb(71, 85, 105); /* Светлее при наведении */
    }

/* Для Firefox */
.auth-modal {
    scrollbar-width: thin;
    scrollbar-color: rgb(51, 65, 85) rgb(15, 23, 42);
}






/* Стили для валидации формы обратной связи */
.contact-form .validation-message {
    color: #f87171;
    font-size: 0.82rem;
    margin-top: 0.25rem;
    display: block;
}

.contact-form .form-input.invalid,
.contact-form .form-textarea.invalid {
    border-color: #f87171;
}

.contact-form .form-label-top {
    display: block;
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-bottom: 0.35rem;
    margin-top: 0.75rem;
}

.contact-form .contact-success {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #4ade80;
    font-size: 0.9rem;
}

.contact-form .form-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-top: 1rem;
}

.contact-form .form-checkbox {
    margin-top: 0.2rem;
    accent-color: #3b82f6;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.contact-form .privacy-link {
    background: none;
    border: none;
    color: #60a5fa;
    padding: 0;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
}

    .contact-form .privacy-link:hover {
        color: #93c5fd;
    }

.contact-form label {
    text-align: left;
}


@media (max-width: 768px) {
    .nav-links {
        display: none; /* Скрыто по умолчанию на мобильных */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgb(15, 23, 42); /* Ваш тёмно-синий цвет */
        padding: 1rem;
        border-top: 1px solid rgba(255,255,255,0.1);
        z-index: 50;
    }

        .nav-links.mobile-open {
            display: flex; /* Показываем, когда класс добавлен Blazor-ом */
        }
}


.cookie-consent .btn {
    font-size: 14px;
    transition: all 0.2s;
}

.cookie-consent .btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
}

.cookie-consent .btn-primary:hover {
    background: #29b6f6;
    transform: scale(1.03);
}

@media (max-width: 600px) {
    .cookie-consent {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 16px;
    }

        .cookie-consent > div:first-child {
            margin-right: 0;
        }
}


.original-table th, .original-table td {
    padding: 2px 7px;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: hsl(var(--background) / .78);
    backdrop-filter: blur(8px);
    z-index: 3000;
}


/* =========================================
   TOOLTIP INFORMATIVO
   ========================================= */
.form-label-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.info-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: hsla(var(--primary), 0.15);
    color: hsl(var(--primary));
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

    .info-tooltip:hover,
    .info-tooltip:focus {
        background-color: hsl(var(--primary));
        color: white;
        outline: none;
    }

    .info-tooltip svg {
        width: 14px;
        height: 14px;
    }

/* Popup del tooltip - OCULTO POR DEFECTO */
.info-tooltip-content {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    max-width: 90vw;
    padding: 0.85rem 1rem;
    background-color: #1e293b;
    color: #e2e8f0;
    border: 1px solid #334155;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    font-size: 0.82rem;
    line-height: 1.5;
    /* OCULTO POR DEFECTO */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 1000;
}

    /* Texto alineado a la IZQUIERDA */
    .info-tooltip-content p {
        margin: 0;
        text-align: left;
        color: #cbd5e1;
    }

    /* Flechita del tooltip */
    .info-tooltip-content::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        border-width: 6px;
        border-style: solid;
        border-color: #1e293b transparent transparent transparent;
    }

/* MOSTRAR tooltip al hacer hover o focus */
.info-tooltip:hover .info-tooltip-content,
.info-tooltip:focus .info-tooltip-content,
.info-tooltip.active .info-tooltip-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(-4px);
}

/* =========================================
   RESPONSIVE MÓVIL
   ========================================= */
@@media (max-width: 640px) {
    .info-tooltip-content {
        width: 260px;
        left: auto;
        right: 0;
        transform: none;
    }

        .info-tooltip-content::after {
            left: auto;
            right: 6px;
            transform: none;
        }

    .info-tooltip:hover .info-tooltip-content,
    .info-tooltip:focus .info-tooltip-content,
    .info-tooltip.active .info-tooltip-content {
        transform: translateY(-4px);
    }
}


/* =========================================
   AJUSTES PARA BLOG CARDS - MÁS ANCHAS Y TEXTO MÁS PEQUEÑO
   ========================================= */

/* Contenedor del grid - más ancho */
.blog-grid {
    max-width: 1200px !important; /* Aumenta el ancho máximo */
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)) !important; /* Cards más anchas */
    gap: 2rem !important;
    padding: 0 2rem !important;
}

/* Card individual - más padding interno */
.blog-card {
    padding: 2rem !important; /* Más espacio interno */
}

    /* Título - más pequeño */
    .blog-card h2 {
        font-size: 1.25rem !important; /* Reducir de ~1.5rem a 1.25rem */
        line-height: 1.4 !important;
        margin-bottom: 0.75rem !important;
    }

    /* Descripción - más pequeña */
    .blog-card p {
        font-size: 0.875rem !important; /* Reducir a 14px */
        line-height: 1.6 !important;
        margin-bottom: 1rem !important;
    }

/* Tag de categoría - más pequeño */
.blog-tag {
    font-size: 0.7rem !important;
    padding: 0.25rem 0.6rem !important;
    margin-bottom: 0.75rem !important;
}

/* Fecha - más pequeña */
.blog-card time {
    font-size: 0.75rem !important;
    margin-top: auto !important;
    padding-top: 0.75rem !important;
}

/* "Leer más" - más pequeño */
.read-more {
    font-size: 0.8rem !important;
    margin-top: 0.75rem !important;
}

/* =========================================
   RESPONSIVE - AJUSTES PARA MÓVIL
   ========================================= */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr !important; /* Una columna en móvil */
        padding: 0 1rem !important;
    }

    .blog-card {
        padding: 1.5rem !important;
    }

        .blog-card h2 {
            font-size: 1.125rem !important;
        }

        .blog-card p {
            font-size: 0.85rem !important;
        }
}


/* =========================================
   GRID DE BLOG - 4 COLUMNAS EN DESKTOP
   ========================================= */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* ⭐ 4 columnas iguales */
    gap: 1.5rem;
    max-width: 1400px; /* Más ancho para acomodar 4 columnas */
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Tablet grande: 3 columnas */
@media (max-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1100px;
    }
}

/* Tablet: 2 columnas */
@media (max-width: 900px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        padding: 1.5rem 1rem;
    }
}

/* Móvil: 1 columna */
@media (max-width: 600px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* =========================================
   CARDS - AJUSTADAS PARA 4 COLUMNAS (más compactas)
   ========================================= */

.blog-card {
    background-color: hsla(var(--foreground), 0.03);
    border: 1px solid hsla(var(--foreground), 0.1);
    border-radius: 12px;
    padding: 1.25rem; /* Más compacto para 4 columnas */
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s ease;
}

.blog-card-link:hover .blog-card {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: hsl(var(--primary));
}

/* Tag de categoría - más pequeño */
.blog-tag {
    background-color: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    align-self: flex-start;
}

/* Título - compacto */
.blog-card h2 {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    color: hsl(var(--foreground));
}

/* Descripción - más pequeña con límite de líneas */
.blog-card p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
    flex-grow: 1;
    /* Limitar a 3 líneas con ellipsis */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Fecha */
.blog-card time {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid hsla(var(--foreground), 0.05);
}

/* "Leer más" */
.read-more {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: hsl(var(--primary));
    margin-top: 0.5rem;
    transition: transform 0.2s;
}

.blog-card-link:hover .read-more {
    transform: translateX(4px);
}


/* =========================================
   OVERRIDE DEFINITIVO: BLOG GRID 4 COLUMNAS
   ========================================= */

/* Forzar 4 columnas en desktop */
.blog-page .blog-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem !important;
    max-width: 1400px !important;
    margin: 3rem auto !important;
    padding: 0 1.5rem !important;
}

/* Tablet grande (900px - 1200px): 3 columnas */
@media (max-width: 1200px) and (min-width: 901px) {
    .blog-page .blog-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        max-width: 1100px !important;
    }
}

/* Tablet (600px - 900px): 2 columnas */
@media (max-width: 900px) and (min-width: 601px) {
    .blog-page .blog-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.25rem !important;
    }
}

/* Móvil (hasta 600px): 1 columna */
@media (max-width: 600px) {
    .blog-page .blog-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}

/* Ajustar cards para que quepan 4 columnas */
.blog-page .blog-card {
    padding: 1.25rem !important;
    min-height: auto !important;
}

    .blog-page .blog-card h2 {
        font-size: 1.1rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.5rem !important;
        -webkit-line-clamp: 2 !important;
    }

    .blog-page .blog-card p {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
        -webkit-line-clamp: 3 !important;
        margin-bottom: 0.75rem !important;
    }

.blog-page .blog-tag {
    font-size: 0.7rem !important;
    padding: 0.2rem 0.6rem !important;
    margin-bottom: 0.5rem !important;
}

.blog-page .blog-card time {
    font-size: 0.75rem !important;
}

.blog-page .read-more {
    font-size: 0.8rem !important;
    margin-top: 0.5rem !important;
}

/* =========================================
9. TABLES & COMPARE - HOVER EFFECT (CORREGIDO)
========================================= */

/* Transición suave para todas las celdas */
.original-table tbody td,
.original-table thead th {
    transition: background-color 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
}

/* --- HOVER DE FILA (cuando el mouse está en una fila) --- */
.original-table tbody tr.row-hover td {
    background-color: hsl(222 35% 15%) !important;
    color: hsl(var(--foreground)) !important;
}

    /* Fila hover en celdas coloreadas (verde/rojo): las aclara */
    .original-table tbody tr.row-hover td.excel-colored-cell {
        filter: brightness(1.35);
        opacity: 1 !important;
    }

/* --- HOVER DE COLUMNA (cuando el mouse está en una columna) --- */

/* ⭐ CORREGIDO: Celdas normales en la columna activa */
.original-table tbody td.col-hover {
    background-color: hsl(222 35% 15%) !important;
    color: hsl(var(--foreground)) !important;
}

    /* ⭐ Celdas coloreadas (verde/rojo) en la columna activa: las aclara igual que la fila */
    .original-table tbody td.col-hover.excel-colored-cell {
        filter: brightness(1.35);
        opacity: 1 !important;
    }

/* Headers de la columna activa: mismo tratamiento */
.original-table thead th.col-hover {
    background-color: hsl(222 35% 18%) !important;
    color: hsl(var(--foreground)) !important;
}

/* --- CRUCE FILA + COLUMNA (celda activa, más destacada) --- */
.original-table tbody td.cell-cross {
    box-shadow: inset 0 0 0 1.5px rgba(59, 130, 246, 0.5);
    z-index: 2;
    position: relative;
}

    /* Celda cruzada coloreada: brillo aún mayor + borde azul */
    .original-table tbody td.cell-cross.excel-colored-cell {
        filter: brightness(1.55);
        box-shadow: inset 0 0 0 1.5px rgba(59, 130, 246, 0.6);
    }

/* ⭐ Quitar el viejo col.col-hover (ya no se usa) */
.original-table col.col-hover {
    background-color: transparent !important;
}


/* =========================================
20. TABLE OPTIMIZATION - PREMIUM TABLE
========================================= */

/* ⭐ AJUSTABLE: Color del borde entre celdas (línea sutil para fondo oscuro) */
/* Cambia estos valores para ajustar visibilidad del borde:
   - Primer valor (0.10): opacidad del borde (0.05 = muy sutil, 0.20 = más visible)
   - Puedes usar hsl(var(--border) / 0.10) si prefieres usar tu variable
*/
/* --- Encabezados: tamaño reducido (antes estaba inline) --- */
.original-table th.letter {
    font-size: 0.8em !important;
    border-bottom: 1px solid var(--table-header-border) !important;
    border-right: 1px solid var(--table-cell-border);
}

.original-table thead tr:last-child th {
    font-size: 0.8em !important;
    border-bottom: 1px solid var(--table-header-border) !important;
    border-right: 1px solid var(--table-cell-border);
}

    .original-table thead tr:last-child th:last-child {
        border-right: none;
    }

/* --- Celdas del cuerpo: tamaño y bordes --- */
.original-table tbody td {
    font-family: Inter, system-ui, sans-serif;
    font-size: 0.7em;
    font-weight: 300;
    /*font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;*/
    /* ⭐ AJUSTABLE: bordes entre celdas */
    border-bottom: 1px solid var(--table-cell-border) !important;
    border-right: 1px solid var(--table-cell-border);
}

    .original-table tbody td:last-child {
        border-right: none;
    }

    /* ⭐ Celdas coloreadas de Excel: estilos comunes movidos aquí */
    /* Antes estos estilos iban inline en CADA celda. Ahora solo el background-color es inline */
    .original-table tbody td.excel-colored-cell {
        color: rgb(201, 217, 232) !important;
        /*font-weight: 700 !important;*/
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35) !important;
        opacity: 1 !important;
    }

/* Hover mejorado para celdas coloreadas */
.original-table tbody tr:hover td.excel-colored-cell {
    filter: brightness(1.2);
}

/* Última fila sin borde inferior */
.original-table tbody tr:last-child td {
    border-bottom: none !important;
}

/* =========================================
TABLE ALIGNMENT - RIGHT ALIGNED COLUMNS
========================================= */
.original-table th.align-right,
.original-table td.align-right {
    text-align: right !important;
}

/* Opcional: números alineados por el punto decimal (solo para columnas numéricas) */
.original-table td.align-right {
    font-variant-numeric: tabular-nums;
}


.table-wrap.original-table {
    border: 1px solid var(--table-outer-border);
}

/* =========================================
FIX: TABLA FREE - ANCHO AJUSTADO AL CONTENIDO
========================================= */
/* Elimina el aire/margen excesivo en tablas con pocas columnas */
#table .original-table table {
    min-width: auto !important;
    width: max-content !important;
    margin: 0 auto; /* Centra la tabla compacta en su contenedor */
}

/* Opcional: Ajuste fino de padding para la tabla Free si aún la sientes grande */
#table .original-table tbody td {
    padding: 4px 8px !important;
}