/* ==========================================================================
   ARQSEO - Hoja de estilos principal
   Estilo: "Dual Mode Pro" - SaaS moderno con degradados azul->violeta
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fonts - Inter (self-hosted, loaded via inter.css)
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   CSS Variables - Light Theme (default)
   -------------------------------------------------------------------------- */
:root {
    /* Primary palette */
    --color-primary: #4a3af5;
    --color-primary-hover: #3b2be0;
    --color-primary-light: rgba(74, 58, 245, 0.1);
    --color-primary-rgb: 74, 58, 245;
    --color-secondary: #8b5cf6;
    --color-accent: #a855f7;

    /* Gradient */
    --gradient-primary: linear-gradient(135deg, #4a3af5 0%, #8b5cf6 50%, #a855f7 100%);
    --gradient-hero: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 40%, #2d1b69 100%);

    /* Backgrounds */
    --color-bg: #ffffff;
    --color-surface: #f8fafc;
    --color-surface-hover: #f1f5f9;

    /* Text */
    --color-text: #09090b;
    --color-text-secondary: #64748b;
    --color-text-muted: #94a3b8;
    --color-text-inverse: #ffffff;

    /* Borders */
    --color-border: #e2e8f0;
    --color-border-light: #f1f5f9;

    /* Cards */
    --color-card-bg: #ffffff;

    /* Status colors */
    --color-success: #22c55e;
    --color-success-light: #ecfdf5;
    --color-warning: #f59e0b;
    --color-warning-light: #fffbeb;
    --color-error: #ef4444;
    --color-error-light: #fef2f2;
    --color-danger: #ef4444;
    --color-danger-light: rgba(239, 68, 68, 0.1);
    --color-info: #3b82f6;
    --color-info-light: #eff6ff;

    /* Input */
    --color-input-bg: #ffffff;
    --color-input-border: #e2e8f0;
    --color-input-focus: #4a3af5;
    --color-input-placeholder: #94a3b8;

    /* Overlay */
    --color-overlay: rgba(0, 0, 0, 0.5);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

    /* Layout */
    --container-max: 1200px;
    --header-height: 72px;

    /* Border radius */
    --radius-sm: 6px;
    --radius: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-pill: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition: 200ms ease;
    --transition-slow: 300ms ease;

    /* Z-index layers */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-overlay: 300;
    --z-modal: 400;
    --z-toast: 500;
}

/* --------------------------------------------------------------------------
   Dark Theme
   -------------------------------------------------------------------------- */
[data-theme="dark"] {
    --color-bg: #0f0f23;
    --color-surface: #1a1a3e;
    --color-surface-hover: #252550;
    --color-text: #e2e8f0;
    --color-text-secondary: #94a3b8;
    --color-text-muted: #64748b;
    --color-border: #2d2d5e;
    --color-border-light: #1e1e4a;
    --color-card-bg: #1a1a3e;
    --color-input-bg: #1a1a3e;
    --color-input-border: #2d2d5e;
    --color-input-placeholder: #64748b;
    --color-overlay: rgba(0, 0, 0, 0.7);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
}

/* --------------------------------------------------------------------------
   Accessibility
   -------------------------------------------------------------------------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-primary-hover);
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    font-weight: 700;
    color: var(--color-text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

strong {
    font-weight: 700;
}

::selection {
    background-color: var(--color-primary);
    color: #fff;
}

/* --------------------------------------------------------------------------
   Container
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --------------------------------------------------------------------------
   Header / Navigation
   -------------------------------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: background-color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

[data-theme="dark"] .header {
    background-color: rgba(15, 15, 35, 0.92);
}

.header.header--scrolled {
    box-shadow: var(--shadow-md);
}

/* Nav container: logo left, links center, actions right */
.nav.container,
nav.nav.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity var(--transition);
}

.nav__logo:hover {
    opacity: 0.85;
}

.nav__logo-img { height: 32px; width: auto; }
.nav__logo-img--dark { display: none; }
.nav__logo-img--light { display: block; }
[data-theme="dark"] .nav__logo-img--dark { display: block; }
[data-theme="dark"] .nav__logo-img--light { display: none; }
/* home-3d always shows dark logo (white text on dark bg) */
body.home-3d .nav__logo-img--dark { display: block; }
body.home-3d .nav__logo-img--light { display: none; }
html[data-theme="light"] body.home-3d .nav__logo-img--dark { display: none; }
html[data-theme="light"] body.home-3d .nav__logo-img--light { display: block; }

.nav__logo-icon {
    flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(74, 58, 245, 0.3));
}

.nav__logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #1a1a2e;
    -webkit-text-fill-color: #1a1a2e;
}

/* White ARQ on dark theme only */
[data-theme="dark"] .nav__logo-text {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}
/* Light theme always dark ARQ — even on home-3d */
html[data-theme="light"] .nav__logo-text {
    color: #1a1a2e !important;
    -webkit-text-fill-color: #1a1a2e !important;
}

.nav__logo-highlight {
    font-weight: 800;
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav__menu {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: space-between;
    margin-left: 3rem;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav__item {
    list-style: none;
}

.nav__link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-decoration: none;
    border-radius: var(--radius);
    transition: color var(--transition), background-color var(--transition);
    white-space: nowrap;
}

.nav__link:hover {
    color: var(--color-text);
    background-color: var(--color-surface);
}

.nav__link--active {
    color: var(--color-primary);
    background-color: var(--color-primary-light);
    font-weight: 600;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: 1.5rem;
    flex-shrink: 0;
}

/* Hamburger toggle - hidden on desktop */
.nav__toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    color: var(--color-text);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background-color var(--transition);
}

.nav__toggle:hover {
    background-color: var(--color-surface);
}

/* Mobile nav */
@media (max-width: 768px) {
    .nav__toggle {
        display: flex;
    }

    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        background-color: var(--color-bg);
        padding: 5rem 1.5rem 2rem;
        margin-left: 0;
        box-shadow: var(--shadow-xl);
        transition: right var(--transition-slow);
        z-index: var(--z-overlay);
        overflow-y: auto;
    }

    .nav__menu.nav__menu--open {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
    }

    .nav__link {
        padding: 0.875rem 1rem;
        font-size: 1rem;
        border-radius: var(--radius);
    }

    .nav__actions {
        flex-direction: column;
        align-items: stretch;
        margin-left: 0;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid var(--color-border);
        gap: 0.75rem;
    }

    .nav__actions .btn {
        justify-content: center;
        width: 100%;
    }
}

/* --------------------------------------------------------------------------
   Icon Button
   -------------------------------------------------------------------------- */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    color: var(--color-text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color var(--transition), background-color var(--transition);
    text-decoration: none;
    flex-shrink: 0;
}

.btn-icon:hover {
    color: var(--color-text);
    background-color: var(--color-surface);
}

.btn-icon svg {
    width: 20px;
    height: 20px;
}

/* --------------------------------------------------------------------------
   Theme Toggle
   -------------------------------------------------------------------------- */
.theme-toggle {
    position: relative;
}

.theme-icon {
    transition: opacity var(--transition), transform var(--transition);
}

.theme-icon--dark {
    display: none;
}

[data-theme="dark"] .theme-icon--light {
    display: none;
}

[data-theme="dark"] .theme-icon--dark {
    display: inline-block;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.5;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: all var(--transition);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Primary */
.btn--primary,
.btn-primary {
    background: var(--gradient-primary);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(var(--color-primary-rgb), 0.3);
}

.btn--primary:hover,
.btn-primary:hover {
    box-shadow: 0 4px 16px rgba(var(--color-primary-rgb), 0.4);
    transform: translateY(-1px);
    color: #ffffff;
    opacity: 0.92;
}

.btn--primary:active,
.btn-primary:active {
    transform: translateY(0);
}

/* Secondary */
.btn--secondary {
    background-color: var(--color-secondary);
    color: #ffffff;
    border-color: transparent;
}

.btn--secondary:hover {
    background-color: #7c4ddb;
    color: #ffffff;
}

/* Outline */
.btn--outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn--outline:hover {
    background-color: var(--color-primary-light);
    color: var(--color-primary);
}

[data-theme="dark"] .btn--outline {
    color: #c4b5fd;
    border-color: #c4b5fd;
}

[data-theme="dark"] .btn--outline:hover {
    background-color: rgba(196, 181, 253, 0.1);
    color: #c4b5fd;
}

/* Outline white (for CTA sections with dark bg) */
.btn--outline-white {
    background: transparent;
    color: var(--color-text-primary, #1a1a2e);
    border-color: rgba(0, 0, 0, 0.3);
}

.btn--outline-white:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.5);
    color: var(--color-text-primary, #1a1a2e);
}

[data-theme="dark"] .btn--outline-white {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .btn--outline-white:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
    color: #ffffff;
}

/* Ghost */
.btn--ghost {
    background: transparent;
    color: var(--color-text-secondary);
    border-color: transparent;
}

.btn--ghost:hover {
    background-color: var(--color-surface);
    color: var(--color-text);
}

/* White */
.btn--white {
    background: #ffffff;
    color: var(--color-primary);
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn--white:hover {
    background: #f8fafc;
    color: var(--color-primary-hover);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

/* Danger */
.btn--danger {
    background-color: var(--color-error);
    color: #ffffff;
    border-color: transparent;
}

.btn--danger:hover {
    background-color: #dc2626;
    color: #ffffff;
}

/* Success */
.btn--success {
    background-color: var(--color-success);
    color: #ffffff;
    border-color: transparent;
}

.btn--success:hover {
    background-color: #16a34a;
    color: #ffffff;
}

/* Sizes */
.btn--sm,
.btn-sm {
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
}

.btn--sm svg,
.btn-sm svg {
    width: 15px;
    height: 15px;
}

.btn--lg {
    padding: 0.875rem 1.75rem;
    font-size: 1.0625rem;
}

.btn--lg svg {
    width: 20px;
    height: 20px;
}

/* Block */
.btn--block,
.btn-block {
    display: flex;
    width: 100%;
}

/* Loading */
.btn--loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

.btn--loading::after {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   Main Content
   -------------------------------------------------------------------------- */
.main {
    padding-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
}

/* --------------------------------------------------------------------------
   Section
   -------------------------------------------------------------------------- */
.section {
    padding: 5rem 0;
}

.section--alt {
    background-color: var(--color-surface);
}

.section__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem;
}

.section__title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.section__subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    overflow: hidden;
    padding: calc(var(--header-height) + 2rem) 0 4rem;
}

.hero__canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero__container {
    position: relative;
    z-index: 2;
}

.hero__content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero__highlight {
    background: linear-gradient(135deg, #a78bfa, #c084fc, #e879f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero__note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.hero__note svg {
    width: 16px;
    height: 16px;
    color: var(--color-success);
}

/* Responsive Hero */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: calc(var(--header-height) + 3rem) 0 3rem;
    }

    .hero__title {
        font-size: 2.25rem;
    }

    .hero__subtitle {
        font-size: 1.0625rem;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__actions .btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 1.875rem;
    }
}

/* --------------------------------------------------------------------------
   Features Section
   -------------------------------------------------------------------------- */
.features {
    background-color: var(--color-bg);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.feature-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    color: #ffffff;
    margin-bottom: 1.25rem;
}

.feature-card__icon svg {
    width: 24px;
    height: 24px;
}

.feature-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.feature-card__text {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

@media (max-width: 1024px) {
    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .features__grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   Steps / How It Works Section
   -------------------------------------------------------------------------- */
.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.steps__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.step {
    text-align: center;
    padding: 2rem 1.5rem;
    flex: 1;
    min-width: 200px;
    max-width: 320px;
    position: relative;
}

.step__connector {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 3.5rem;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.step__connector svg {
    width: 24px;
    height: 24px;
}

.step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: #ffffff;
    border-radius: 50%;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.step__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: var(--radius-lg);
    margin-bottom: 1.25rem;
}

.step__icon svg {
    width: 28px;
    height: 28px;
}

.step__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.step__text {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* step-card variant (from spec) */
.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: transform var(--transition), box-shadow var(--transition);
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.step-card__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: #ffffff;
    border-radius: 50%;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.step-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: var(--radius-lg);
    margin-bottom: 1.25rem;
}

.step-card__icon svg {
    width: 28px;
    height: 28px;
}

.step-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.step-card__text {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step {
        max-width: 100%;
    }

    .step__connector {
        transform: rotate(90deg);
        padding-top: 0;
        padding: 0.5rem 0;
    }

    .steps__grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   Stats Section
   -------------------------------------------------------------------------- */
.stats {
    background: var(--gradient-primary);
    color: #ffffff;
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-item__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    color: #ffffff;
    margin-bottom: 1rem;
}

.stat-item__icon svg {
    width: 24px;
    height: 24px;
}

.stat-item__number {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.stat-item__label {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.75);
}

/* stat / stat__value / stat__label variants from spec */
.stat {
    text-align: center;
    padding: 2rem 1rem;
}

.stat__value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.stat__label {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 768px) {
    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats__grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   Pricing Section
   -------------------------------------------------------------------------- */
.pricing {
    background-color: var(--color-bg);
}

.pricing-header {
    background-color: var(--color-surface);
    padding-bottom: 2rem;
}

.pricing-plans {
    padding-top: 0;
    margin-top: -1rem;
}

/* Pricing Toggle */
.pricing-toggle,
.pricing__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.pricing-toggle__label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-toggle__label--active {
    color: var(--color-text);
    font-weight: 600;
}

.pricing-toggle__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    background: var(--gradient-primary);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-pill);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-switch__slider {
    position: absolute;
    inset: 0;
    background-color: var(--color-border);
    border-radius: var(--radius-pill);
    transition: background-color var(--transition);
}

.toggle-switch__slider::before {
    content: '';
    position: absolute;
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: #ffffff;
    border-radius: 50%;
    transition: transform var(--transition);
    box-shadow: var(--shadow-sm);
}

.toggle-switch input:checked + .toggle-switch__slider {
    background: var(--gradient-primary);
}

.toggle-switch input:checked + .toggle-switch__slider::before {
    transform: translateX(24px);
}

/* Pricing Grid */
.pricing__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing__grid--preview {
    grid-template-columns: repeat(3, 1fr);
}

/* Plan Card */
.plan-card {
    position: relative;
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.plan-card--featured {
    border-color: var(--color-primary);
    border-width: 2px;
    box-shadow: 0 4px 20px rgba(var(--color-primary-rgb), 0.15);
    position: relative;
    z-index: 1;
    transform: scale(1.03);
}

.plan-card--featured:hover {
    transform: scale(1.03) translateY(-4px);
    box-shadow: 0 8px 30px rgba(var(--color-primary-rgb), 0.2);
}

.plan-card__badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25rem 1rem;
    background: var(--gradient-primary);
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 700;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}

/* Offer pricing on plan cards */
.plan-card__oferta-tag {
    margin-bottom: .5rem;
}
.plan-card__oferta-badge {
    display: inline-block;
    padding: .3rem .85rem;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    border-radius: 100px;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.plan-card__price-original {
    margin-bottom: .25rem;
}
.plan-card__amount-original {
    font-size: .95rem;
    color: var(--color-text-muted);
    text-decoration: line-through;
    opacity: .5;
}
.plan-card__price-current {
    display: flex;
    align-items: baseline;
    gap: .25rem;
}
.plan-card__price-current .plan-card__amount {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1;
    color: var(--color-text);
}
.plan-card__price-current .plan-card__period {
    font-size: .9rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* Oferta banner (pricing page) */
.oferta-banner {
    max-width: 700px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, rgba(124,58,237,.1), rgba(109,40,217,.06));
    border: 1px solid rgba(124,58,237,.3);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
}
.oferta-banner__content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.oferta-banner__left {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex: 1;
    min-width: 0;
    flex-wrap: wrap;
}
.oferta-banner__badge {
    flex-shrink: 0;
    padding: .3rem .75rem;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    border-radius: 6px;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.oferta-banner__text {
    font-size: .88rem;
    color: var(--color-text);
}
.oferta-banner__countdown {
    display: block;
    text-align: center;
    font-size: .8rem;
    color: var(--color-text-muted);
    white-space: nowrap;
    margin-top: .5rem;
}
.oferta-banner__note {
    margin-top: .75rem;
    font-size: .78rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

@media (max-width: 640px) {
    .oferta-banner__content { flex-direction: column; align-items: flex-start; }
    .oferta-banner__left { flex-direction: column; align-items: flex-start; }
    .oferta-banner__countdown { margin-top: .5rem; }
}

/* Toggle on home (glass bg) */
.pricing-toggle--home {
    margin-bottom: 2rem;
    justify-content: center;
}
.pricing-toggle--home .pricing-toggle__label {
    color: rgba(255,255,255,.5);
}
.pricing-toggle--home .pricing-toggle__label--active {
    color: #fff;
}
html[data-theme="light"] .home-3d .pricing-toggle--home .pricing-toggle__label {
    color: rgba(0,0,0,.4);
}
html[data-theme="light"] .home-3d .pricing-toggle--home .pricing-toggle__label--active {
    color: #1a1a2e;
}

.plan-card__period-note {
    font-size: .78rem;
    color: var(--color-text-muted);
    margin-top: .25rem;
}

.plan-card__header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.plan-card__name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.plan-card__desc {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

.plan-card__price {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.plan-card__amount,
.plan-card__price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-text);
    letter-spacing: -1px;
    line-height: 1;
}

.plan-card__period,
.plan-card__price-period {
    font-size: 1rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.plan-card__features {
    list-style: none;
    margin-bottom: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.plan-card__feature,
.plan-card__features li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9375rem;
    color: var(--color-text);
}

.plan-card__features li svg,
.plan-card__feature svg {
    width: 18px;
    height: 18px;
    color: var(--color-success);
    flex-shrink: 0;
}

.plan-card__feature--disabled {
    color: #9ca3af !important;
    opacity: 1;
}

.plan-card__feature--disabled svg {
    color: var(--color-text-muted) !important;
}

.plan-card__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
}

.plan-card__form {
    display: contents;
}

/* Pricing preview CTA */
.pricing-preview__cta {
    text-align: center;
    margin-top: 2.5rem;
}

.pricing-preview__cta a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 1rem;
    transition: gap var(--transition), color var(--transition);
}

.pricing-preview__cta a:hover {
    gap: 0.75rem;
    color: var(--color-primary-hover);
}

.pricing-preview__cta a svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 1024px) {
    .pricing__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .plan-card--featured {
        transform: none;
    }

    .plan-card--featured:hover {
        transform: translateY(-4px);
    }
}

@media (max-width: 480px) {
    .pricing__grid,
    .pricing__grid--preview {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   Comparison Table
   -------------------------------------------------------------------------- */
.pricing-comparison {
    background-color: var(--color-surface);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--color-card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.comparison-table thead th {
    padding: 1rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 700;
    text-align: center;
    background-color: var(--color-surface);
    border-bottom: 2px solid var(--color-border);
    color: var(--color-text);
}

.comparison-table thead th:first-child {
    text-align: left;
}

.comparison-table tbody td {
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
    text-align: center;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
}

.comparison-table tbody td:first-child {
    text-align: left;
    font-weight: 500;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr:hover {
    background-color: var(--color-surface-hover);
}

.comparison-table__highlight {
    background-color: var(--color-primary-light) !important;
}

.comparison-table td svg,
.comparison-table th svg {
    width: 18px;
    height: 18px;
}

.comparison-table td svg[data-feather="check"],
.comparison-table td .feather-check {
    color: var(--color-success);
}

.comparison-table td svg[data-feather="x"],
.comparison-table td .feather-x {
    color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.testimonials {
    background-color: var(--color-bg);
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* FAQ */
.faq__list { display: flex; flex-direction: column; gap: 0; }
.faq__item {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 0;
    overflow: hidden;
    transition: background .2s, border-color .2s;
}
.faq__item:first-child { border-radius: 16px 16px 0 0; }
.faq__item:last-child { border-radius: 0 0 16px 16px; }
.faq__item:only-child { border-radius: 16px; }
.faq__item + .faq__item { border-top: none; }
.faq__item[open] {
    background: rgba(139,92,246,.08);
    border-color: rgba(139,92,246,.2);
}
.faq__item[open] + .faq__item { border-top-color: rgba(139,92,246,.2); }
.faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.35rem 1.75rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    list-style: none;
    gap: 1rem;
    transition: color .2s;
}
.faq__question:hover { color: #a855f7; }
.faq__question::-webkit-details-marker { display: none; }
.faq__question::marker { display: none; content: ''; }
.faq__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform .3s ease;
    color: rgba(255,255,255,.4);
}
.faq__item[open] .faq__icon { color: #a855f7; }
.faq__answer {
    padding: 0 1.75rem 1.5rem 1.75rem;
    color: rgba(255,255,255,.65);
    font-size: .92rem;
    line-height: 1.75;
}
.faq__answer p { margin: 0; }
.faq__answer a { color: #a855f7; text-decoration: underline; }
.faq__answer a:hover { color: #c084fc; }
.faq__answer strong { color: rgba(255,255,255,.9); }

/* FAQ — home-3d dark */
body.home-3d .faq__item {
    background: rgba(15,15,35,.45);
    backdrop-filter: blur(10px);
    border-color: rgba(139,92,246,.12);
}
body.home-3d .faq__item[open] {
    background: rgba(139,92,246,.1);
    border-color: rgba(139,92,246,.25);
}

/* FAQ light theme */
[data-theme="light"] .faq__item { background: #f9fafb; border-color: #e5e7eb; }
[data-theme="light"] .faq__item[open] { background: #f3f0ff; border-color: rgba(139,92,246,.25); }
[data-theme="light"] .faq__question { color: #1a1a2e; }
[data-theme="light"] .faq__question:hover { color: #7c3aed; }
[data-theme="light"] .faq__icon { color: #9ca3af; }
[data-theme="light"] .faq__item[open] .faq__icon { color: #7c3aed; }
[data-theme="light"] .faq__answer { color: #555; }
[data-theme="light"] .faq__answer strong { color: #1a1a2e; }
[data-theme="light"] .faq__item + .faq__item { border-top: none; }

@media (max-width: 640px) {
    .faq__question { padding: 1.1rem 1.25rem; font-size: .92rem; }
    .faq__answer { padding: 0 1.25rem 1.25rem; }
}

.testimonial-card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.testimonial-card__stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
    color: #f59e0b;
}

.testimonial-card__stars svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.testimonial-card__text {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
    font-style: normal;
    border: none;
    padding: 0;
    quotes: none;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-card__name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text);
}

.testimonial-card__role {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

@media (max-width: 1024px) {
    .testimonials__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .testimonials__grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   Avatar
   -------------------------------------------------------------------------- */
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    color: #ffffff;
    border-radius: 50%;
    font-size: 0.9375rem;
    font-weight: 700;
    flex-shrink: 0;
}

.avatar--sm {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
}

.avatar--lg {
    width: 56px;
    height: 56px;
    font-size: 1.125rem;
}

.avatar--img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(139, 92, 246, 0.2);
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.cta-section {
    position: relative;
    padding: 5rem 0;
    overflow: hidden;
    background: var(--gradient-primary);
}

.cta-section__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(168, 85, 247, 0.2) 0%, transparent 50%);
    z-index: 0;
}

.cta-section__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-section__title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.cta-section__text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.cta-section__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .cta-section__title {
        font-size: 1.75rem;
    }

    .cta-section__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-section__actions .btn {
        justify-content: center;
    }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 4rem 0 2rem;
}

[data-theme="dark"] .footer {
    background-color: #0a0a1a;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer__col {
    display: flex;
    flex-direction: column;
}

.footer__title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8125rem;
}

.footer__list,
.footer__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer__link,
.footer__links a,
.footer__list a,
.footer__links li a {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color var(--transition);
}

.footer__link:hover,
.footer__links a:hover,
.footer__list a:hover,
.footer__links li a:hover {
    color: var(--color-primary);
}

.footer__social {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.footer__social-link,
.footer__social .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    color: var(--color-text-secondary);
    transition: color var(--transition), background-color var(--transition);
}

.footer__social-link:hover,
.footer__social .btn-icon:hover {
    color: var(--color-primary);
    background-color: var(--color-primary-light);
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__brand img {
    height: 20px;
    width: auto;
    opacity: 0.6;
    transition: opacity var(--transition);
}

.footer__brand img:hover {
    opacity: 1;
}

.footer__copy {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer__grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   Flash Messages / Toasts
   -------------------------------------------------------------------------- */
.flash-container {
    position: fixed;
    top: calc(var(--header-height) + 1rem);
    right: 1rem;
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 420px;
    width: 100%;
}

.flash {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    border-radius: var(--radius);
    border: 1px solid;
    background-color: var(--color-card-bg);
    box-shadow: var(--shadow-lg);
    animation: flashSlideIn 0.3s ease-out;
    gap: 0.75rem;
}

@keyframes flashSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.flash__content {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex: 1;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
}

.flash__content svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.flash__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-text-muted);
    flex-shrink: 0;
    transition: background-color var(--transition), color var(--transition);
}

.flash__close:hover {
    background-color: var(--color-surface);
    color: var(--color-text);
}

.flash__close svg {
    width: 16px;
    height: 16px;
}

/* Flash variants */
.flash--exito,
.flash--success {
    border-color: var(--color-success);
    background-color: var(--color-success-light);
}

.flash--exito .flash__content svg,
.flash--success .flash__content svg {
    color: var(--color-success);
}

.flash--error {
    border-color: var(--color-error);
    background-color: var(--color-error-light);
}

.flash--error .flash__content svg {
    color: var(--color-error);
}

.flash--warning {
    border-color: var(--color-warning);
    background-color: var(--color-warning-light);
}

.flash--warning .flash__content svg {
    color: var(--color-warning);
}

.flash--info {
    border-color: var(--color-info);
    background-color: var(--color-info-light);
}

.flash--info .flash__content svg {
    color: var(--color-info);
}

@media (max-width: 480px) {
    .flash-container {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
}

/* --------------------------------------------------------------------------
   Alerts (inline)
   -------------------------------------------------------------------------- */
.alert {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 1rem;
    border: 1px solid;
}

.alert svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.alert-exito,
.alert-success {
    background-color: var(--color-success-light);
    color: #166534;
    border-color: #bbf7d0;
}

[data-theme="dark"] .alert-exito,
[data-theme="dark"] .alert-success {
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.3);
}

.alert-error,
.alert-danger {
    background-color: var(--color-error-light);
    color: #991b1b;
    border-color: #fecaca;
}

[data-theme="dark"] .alert-error,
[data-theme="dark"] .alert-danger {
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.3);
}

.alert-warning {
    background-color: var(--color-warning-light);
    color: #92400e;
    border-color: #fde68a;
}

[data-theme="dark"] .alert-warning {
    color: #fcd34d;
    border-color: rgba(245, 158, 11, 0.3);
}

.alert-info {
    background-color: var(--color-info-light);
    color: #1e40af;
    border-color: #bfdbfe;
}

[data-theme="dark"] .alert-info {
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.3);
}

/* --------------------------------------------------------------------------
   Auth Pages
   -------------------------------------------------------------------------- */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    background-color: var(--color-surface);
}

.auth-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    max-width: 520px;
    margin: 0 auto;
    background-color: var(--color-bg);
}

.auth-card-narrow {
    max-width: 440px;
}

/* When auth-container has both auth-card and auth-side, layout side by side */
.auth-container .auth-card {
    flex: 1;
    max-width: none;
    padding: 3rem 4rem;
}

.auth-container .auth-card-narrow {
    flex: none;
    max-width: 440px;
    width: 100%;
    margin: auto;
    padding: 3rem;
    background-color: var(--color-bg);
}

/* When narrowed (no side panel), center the card */
.auth-container:not(:has(.auth-side)) {
    justify-content: center;
    align-items: center;
}

.auth-container:not(:has(.auth-side)) .auth-card,
.auth-container:not(:has(.auth-side)) .auth-card-narrow {
    flex: none;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    width: 100%;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.auth-header p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
}

.auth-logo {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    margin-bottom: 1.5rem;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.auth-footer p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
}

.auth-footer a {
    color: var(--color-primary);
    font-weight: 600;
}

.auth-footer a:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

/* Auth Side Panel */
.auth-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    padding: 3rem;
    min-height: 100vh;
}

.auth-side-content {
    max-width: 400px;
    color: #ffffff;
}

.auth-side-content h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
}

.auth-side-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.auth-side-content ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.auth-side-content li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.9);
}

.auth-side-content li svg {
    width: 20px;
    height: 20px;
    color: #a78bfa;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
    }

    .auth-side {
        display: none;
    }

    .auth-container .auth-card {
        padding: 2rem 1.5rem;
    }

    .auth-container:not(:has(.auth-side)) .auth-card,
    .auth-container:not(:has(.auth-side)) .auth-card-narrow {
        border-radius: 0;
        border: none;
        box-shadow: none;
        min-height: 100vh;
    }
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label,
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.form-row .form-group {
    flex: 1;
}

/* Form row with justify between (like login remember/forgot) */
.form-group.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Input styling */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select,
.input {
    display: block;
    width: 100%;
    padding: 0.6875rem 0.875rem;
    font-size: 0.9375rem;
    color: var(--color-text);
    background-color: var(--color-input-bg);
    border: 1.5px solid var(--color-input-border);
    border-radius: var(--radius);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    line-height: 1.5;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus,
.input:focus {
    border-color: var(--color-input-focus);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.15);
}

input::placeholder,
textarea::placeholder {
    color: var(--color-input-placeholder);
}

.input--lg {
    padding: 0.875rem 1rem;
    font-size: 1rem;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    background-size: 16px;
    padding-right: 2.5rem;
}

/* Input with icon */
.input-icon {
    position: relative;
}

.input-icon i,
.input-icon svg,
.input-icon > .feather {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--color-text-muted);
    z-index: 1;
    pointer-events: none;
}

.input-icon input,
.input-icon .input {
    padding-left: 2.75rem;
}

/* Code input (2FA) */
.input-code {
    text-align: center;
    font-size: 2rem !important;
    font-weight: 700;
    letter-spacing: 0.75rem;
    padding: 0.875rem 1rem !important;
    font-family: 'Courier New', monospace;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: var(--color-text);
    cursor: pointer;
    font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    accent-color: var(--color-primary);
    cursor: pointer;
    flex-shrink: 0;
}

/* Small link */
.link-small {
    font-size: 0.875rem;
    color: var(--color-primary);
    font-weight: 500;
    transition: color var(--transition);
}

.link-small:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

/* Muted text */
.text-muted {
    color: var(--color-text-muted);
    font-weight: 400;
}

/* --------------------------------------------------------------------------
   Cards (Generic)
   -------------------------------------------------------------------------- */
.card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-sm);
}

.card--sticky {
    position: sticky;
    top: 1rem;
}

.card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    gap: 1rem;
}

.card__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
}

.card__title svg {
    width: 18px;
    height: 18px;
    color: var(--color-primary);
}

.card__body {
    padding: 1.5rem;
}

.card__body--flush {
    padding: 0;
}

.card__footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--color-border);
    background-color: var(--color-surface);
}

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table,
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.table thead th,
.data-table thead th {
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-align: left;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--color-border);
    white-space: nowrap;
    background-color: var(--color-surface);
}

.table tbody td,
.data-table tbody td {
    padding: 0.75rem 1rem;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}

.table tbody tr:last-child td,
.data-table tbody tr:last-child td {
    border-bottom: none;
}

.table tbody tr:hover,
.data-table tbody tr:hover {
    background-color: var(--color-surface-hover);
}

.link-truncate {
    display: inline-block;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

/* --------------------------------------------------------------------------
   Badges
   -------------------------------------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.1875rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    line-height: 1.5;
}

.badge--primary {
    background-color: var(--color-primary-light);
    color: var(--color-primary);
}

.badge--success {
    background-color: var(--color-success-light);
    color: #166534;
}

[data-theme="dark"] .badge--success {
    color: #86efac;
}

.badge--warning {
    background-color: var(--color-warning-light);
    color: #92400e;
}

[data-theme="dark"] .badge--warning {
    color: #fcd34d;
}

.badge--danger {
    background-color: var(--color-danger-light);
    color: #991b1b;
}

[data-theme="dark"] .badge--danger {
    color: #fca5a5;
}

.badge--info {
    background-color: var(--color-info-light);
    color: #1e40af;
}

[data-theme="dark"] .badge--info {
    color: #93c5fd;
}

.badge--secondary {
    background-color: var(--color-surface);
    color: var(--color-text-muted);
}

/* Severity badges (checker) */
.severity-critico,
.severity-critical {
    background-color: var(--color-danger-light);
    color: #991b1b;
}

.severity-alto,
.severity-high {
    background-color: var(--color-error-light);
    color: #991b1b;
}

.severity-medio,
.severity-medium {
    background-color: var(--color-warning-light);
    color: #92400e;
}

.severity-bajo,
.severity-low {
    background-color: var(--color-info-light);
    color: #1e40af;
}

.severity-info {
    background-color: var(--color-info-light);
    color: #1e40af;
}

/* --------------------------------------------------------------------------
   Score Circles
   -------------------------------------------------------------------------- */
.score-circle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.score-circle__svg {
    width: 120px;
    height: 120px;
    transform: rotate(-90deg);
}

.score-circle__bg {
    fill: none;
    stroke: var(--color-border);
    stroke-width: 8;
}

.score-circle__fill {
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease-out, stroke 0.3s ease;
}

.score-circle__value {
    position: absolute;
    display: flex;
    align-items: baseline;
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-text);
}

.score-circle__value small {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    margin-left: 0.125rem;
}

/* Small score circle (dashboard stat cards) */
.score-circle--sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #ffffff;
}

/* Score colors */
.score-circle--sm.score-green,
.score-badge.score-green {
    background-color: var(--color-success);
}

.score-circle--sm.score-yellow,
.score-badge.score-yellow {
    background-color: var(--color-warning);
}

.score-circle--sm.score-red,
.score-badge.score-red {
    background-color: var(--color-error);
}

/* Score badge (table inline) */
.score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #ffffff;
    background-color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Progress Bar
   -------------------------------------------------------------------------- */
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--color-border);
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.progress-bar__fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-pill);
    transition: width 0.8s ease-out;
    min-width: 0;
}

.progress-bar__fill--animated {
    background: var(--gradient-primary);
    background-size: 200% 100%;
    animation: progressShimmer 1.5s ease-in-out infinite;
}

@keyframes progressShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.progress-bar__fill--warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.progress-bar__fill--danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* Score bar (horizontal) */
.score-bar {
    width: 100%;
    height: 8px;
    background-color: var(--color-border);
    border-radius: var(--radius-pill);
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   Tabs
   -------------------------------------------------------------------------- */
.tabs {
    width: 100%;
}

.tabs__nav {
    display: flex;
    border-bottom: 2px solid var(--color-border);
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tabs__tab {
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: color var(--transition), border-color var(--transition);
    white-space: nowrap;
}

.tabs__tab:hover {
    color: var(--color-text);
}

.tabs__tab--active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    font-weight: 600;
}

.tabs__content {
    padding-top: 1.5rem;
}

.tabs__panel {
    display: none;
}

.tabs__panel--active {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --------------------------------------------------------------------------
   Cookie Consent Banner
   -------------------------------------------------------------------------- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--z-toast);
    background-color: var(--color-card-bg);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-banner__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 1rem 1.5rem;
}

.cookie-banner__text {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.cookie-banner__text svg {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.cookie-banner__text p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.cookie-banner__text a {
    color: var(--color-primary);
    font-weight: 500;
}

.cookie-banner__actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .cookie-banner__content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner__text {
        flex-direction: column;
    }

    .cookie-banner__actions {
        width: 100%;
        justify-content: center;
    }
}

/* --------------------------------------------------------------------------
   FAQ Section
   -------------------------------------------------------------------------- */
.pricing-faq {
    background-color: var(--color-bg);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--transition);
}

.faq-item[open] {
    border-color: var(--color-primary);
}

.faq-item__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    list-style: none;
    transition: color var(--transition);
}

.faq-item__question::-webkit-details-marker {
    display: none;
}

.faq-item__question span {
    flex: 1;
}

.faq-item__question svg {
    width: 20px;
    height: 20px;
    color: var(--color-text-muted);
    transition: transform var(--transition);
    flex-shrink: 0;
}

.faq-item[open] .faq-item__question svg {
    transform: rotate(180deg);
}

.faq-item__answer {
    padding: 0 1.5rem 1.25rem;
}

.faq-item__answer p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Checker Page
   -------------------------------------------------------------------------- */
.checker-header {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.checker-form-wrapper {
    max-width: 720px;
    margin: 0 auto;
}

.checker-form__fields {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.checker-form__url-group {
    flex: 2;
}

.checker-form__keyword-group {
    flex: 1;
}

.checker-form__submit {
    flex-shrink: 0;
}

.checker-form__note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.875rem;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.checker-form__note svg {
    width: 14px;
    height: 14px;
}

.checker-form__note a {
    font-weight: 600;
}

@media (max-width: 768px) {
    .checker-form__fields {
        flex-direction: column;
    }
}

/* Checker Loading */
.checker-loading {
    padding: 4rem 0;
}

.checker-loading__content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.checker-loading__content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.checker-loading__content p {
    margin-bottom: 2rem;
}

.checker-loading__progress {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checker-loading__progress span {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin-bottom: 1.5rem;
}

.spinner--lg {
    width: 48px;
    height: 48px;
    border-width: 4px;
}

/* Checker Score */
.checker-score {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.checker-score__info h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.checker-score__url {
    font-size: 0.875rem;
    color: var(--color-primary);
    word-break: break-all;
    margin-bottom: 0.5rem;
}

.checker-score__desc {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
}

@media (max-width: 480px) {
    .checker-score {
        flex-direction: column;
        text-align: center;
    }
}

/* Checker Categories */
.checker-categories {
    margin-bottom: 2rem;
}

.checker-categories__title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.checker-categories__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.category-bar {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
}

.category-bar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.625rem;
}

.category-bar__label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
}

.category-bar__label svg {
    width: 16px;
    height: 16px;
    color: var(--color-primary);
}

.category-bar__value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
}

@media (max-width: 768px) {
    .checker-categories__grid {
        grid-template-columns: 1fr;
    }
}

/* Checker Issues */
.checker-issues {
    margin-bottom: 2rem;
}

.checker-issues__title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.checker-issues__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checker-issues__empty {
    text-align: center;
    padding: 2rem;
    color: var(--color-text-muted);
}

.issue-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.issue-item__severity {
    flex-shrink: 0;
}

.issue-item__content {
    flex: 1;
}

.issue-item__title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.issue-item__desc {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* Checker Description (SEO content block) */
.checker-description__content {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem 2.5rem;
}

.checker-description__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.checker-description__content p {
    color: var(--color-text-secondary);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.checker-description__content p:last-of-type {
    margin-bottom: 1.5rem;
}

.checker-description__features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    border-top: 1px solid var(--color-border);
    padding-top: 1.25rem;
}

.checker-description__feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
}

.checker-description__feature svg {
    width: 16px;
    height: 16px;
    color: var(--color-primary);
    flex-shrink: 0;
}

/* Checker CTA */
.checker-cta {
    margin-bottom: 2rem;
}

.checker-cta__content {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--gradient-hero);
    border-radius: var(--radius-lg);
    color: #ffffff;
}

.checker-cta__content svg {
    width: 40px;
    height: 40px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
}

.checker-cta__content h3 {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.checker-cta__content p {
    color: rgba(255, 255, 255, 0.75);
    max-width: 500px;
    margin: 0 auto 1.5rem;
}

.checker-cta__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Checker Error */
.checker-error {
    padding: 4rem 0;
}

.checker-error__content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.checker-error__content svg {
    width: 48px;
    height: 48px;
    color: var(--color-error);
    margin-bottom: 1rem;
}

.checker-error__content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.checker-error__content p {
    margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   Dashboard Layout (shared base styles - full layout in dashboard.css)
   -------------------------------------------------------------------------- */
.dashboard-body {
    background-color: var(--color-surface);
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background-color: var(--color-bg);
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    z-index: var(--z-sticky);
    transition: transform var(--transition-slow);
    overflow-y: auto;
}

.sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.sidebar__logo {
    font-size: 1.25rem;
    font-weight: 800;
    text-decoration: none;
}

.sidebar__close {
    display: none;
}

.sidebar__nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.sidebar__menu {
    list-style: none;
    padding: 0 0.75rem;
}

.sidebar__item {
    margin-bottom: 0.125rem;
}

.sidebar__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    border-radius: var(--radius);
    text-decoration: none;
    transition: color var(--transition), background-color var(--transition);
}

.sidebar__link:hover {
    color: var(--color-text);
    background-color: var(--color-surface);
}

.sidebar__link--active {
    color: var(--color-primary);
    background-color: var(--color-primary-light);
    font-weight: 600;
}

.sidebar__link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar__link .badge {
    margin-left: auto;
}

.sidebar__separator {
    height: 1px;
    background-color: var(--color-border);
    margin: 0.75rem 1.5rem;
}

.sidebar__credits {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--color-border);
}

.credits-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.credits-info__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text);
}

.credits-info__value {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
}

.credits-upgrade {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: 0.5rem;
    text-decoration: none;
}

.credits-upgrade:hover {
    color: var(--color-primary-hover);
}

.credits-upgrade svg {
    width: 14px;
    height: 14px;
}

/* Dashboard main area */
.dashboard-main {
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Topbar */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    height: 64px;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
}

.topbar__left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar__menu-toggle {
    display: none;
}

.topbar__right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Breadcrumb */
.breadcrumb__list {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
}

.breadcrumb__item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.breadcrumb__item a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color var(--transition);
}

.breadcrumb__item a:hover {
    color: var(--color-primary);
}

.breadcrumb__item--active {
    color: var(--color-text);
    font-weight: 500;
}

.breadcrumb__separator {
    width: 14px;
    height: 14px;
    color: var(--color-text-muted);
    margin: 0 0.25rem;
}

.breadcrumb__item svg:not(.breadcrumb__separator) {
    width: 16px;
    height: 16px;
}

/* Search form (topbar) */
.topbar__search {
    position: relative;
}

.search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.search-form__icon {
    position: absolute;
    left: 0.75rem;
    width: 16px;
    height: 16px;
    color: var(--color-text-muted);
    pointer-events: none;
}

.search-form__input {
    padding: 0.5rem 0.75rem 0.5rem 2.25rem;
    font-size: 0.875rem;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    color: var(--color-text);
    width: 220px;
    outline: none;
    transition: width var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.search-form__input:focus {
    width: 300px;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.1);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown__trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    padding: 0.375rem;
    border-radius: var(--radius);
    transition: background-color var(--transition);
    color: var(--color-text);
    font-family: inherit;
    font-size: inherit;
}

.dropdown__trigger:hover {
    background-color: var(--color-surface);
}

.dropdown__menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
    z-index: var(--z-dropdown);
}

.dropdown__menu--right {
    left: auto;
    right: 0;
}

.dropdown:hover .dropdown__menu,
.dropdown--open .dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(4px);
}

.dropdown__header {
    padding: 0.75rem 0.875rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 0.25rem;
}

.dropdown__header h4 {
    font-size: 0.875rem;
    font-weight: 700;
}

.dropdown__user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
}

.dropdown__user-email {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.dropdown__body {
    padding: 0.5rem 0;
}

.dropdown__empty {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-align: center;
    padding: 1rem;
}

.dropdown__footer {
    padding: 0.5rem 0.875rem;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.dropdown__footer a {
    font-size: 0.875rem;
    font-weight: 500;
}

.dropdown__item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    color: var(--color-text);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background-color var(--transition);
    cursor: pointer;
    width: 100%;
    border: none;
    background: none;
    font-family: inherit;
}

.dropdown__item:hover {
    background-color: var(--color-surface);
}

.dropdown__item svg {
    width: 16px;
    height: 16px;
    color: var(--color-text-muted);
}

.dropdown__item--danger {
    color: var(--color-error);
}

.dropdown__item--danger:hover {
    background-color: var(--color-error-light);
}

.dropdown__item--danger svg {
    color: var(--color-error);
}

.dropdown__divider {
    height: 1px;
    background-color: var(--color-border);
    margin: 0.375rem 0;
}

/* User trigger */
.user-trigger {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.user-trigger__name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
}

.user-trigger svg {
    width: 14px;
    height: 14px;
    color: var(--color-text-muted);
}

/* Notification dot */
.notification-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background-color: var(--color-error);
    border-radius: 50%;
    border: 2px solid var(--color-bg);
}

/* Dashboard content area */
.dashboard-content {
    flex: 1;
    padding: 1.5rem;
}

/* Mobile bottom tabs */
.mobile-tabs {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-bg);
    border-top: 1px solid var(--color-border);
    z-index: var(--z-sticky);
    padding: 0.25rem 0;
}

.mobile-tabs__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
    padding: 0.5rem;
    font-size: 0.6875rem;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--transition);
    flex: 1;
}

.mobile-tabs__item svg {
    width: 20px;
    height: 20px;
}

.mobile-tabs__item--active {
    color: var(--color-primary);
}

/* Dashboard responsive */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar--open {
        transform: translateX(0);
    }

    .sidebar__close {
        display: flex;
    }

    .dashboard-main {
        margin-left: 0;
    }

    .topbar__menu-toggle {
        display: flex;
    }

    .user-trigger__name {
        display: none;
    }

    .search-form__input {
        width: 160px;
    }

    .search-form__input:focus {
        width: 200px;
    }

    .mobile-tabs {
        display: flex;
    }

    .dashboard-content {
        padding-bottom: 5rem;
    }
}

@media (max-width: 480px) {
    .topbar__search {
        display: none;
    }

    .dashboard-content {
        padding: 1rem;
    }
}

/* --------------------------------------------------------------------------
   Dashboard Stats Grid
   -------------------------------------------------------------------------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: box-shadow var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
}

.stat-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.stat-card__icon svg {
    width: 22px;
    height: 22px;
}

.stat-card__icon--primary {
    background-color: var(--color-primary-light);
    color: var(--color-primary);
}

.stat-card__icon--success {
    background-color: var(--color-success-light);
    color: var(--color-success);
}

.stat-card__icon--warning {
    background-color: var(--color-warning-light);
    color: var(--color-warning);
}

.stat-card__icon--info {
    background-color: var(--color-info-light);
    color: var(--color-info);
}

.stat-card__info {
    display: flex;
    flex-direction: column;
}

.stat-card__label {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
}

.stat-card__value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   Grid Layouts (Dashboard)
   -------------------------------------------------------------------------- */
.grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid--3-1 {
    grid-template-columns: 2fr 1fr;
}

@media (max-width: 1024px) {
    .grid--2,
    .grid--3,
    .grid--3-1 {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   Credits Bar (Dashboard)
   -------------------------------------------------------------------------- */
.credits-bar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.credits-bar__label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
}

.credits-bar__label svg {
    width: 16px;
    height: 16px;
    color: var(--color-warning);
}

.credits-bar__value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.credits-bar__alert {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--color-warning);
}

.credits-bar__alert svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.credits-bar__alert a {
    font-weight: 600;
    margin-left: auto;
}

/* --------------------------------------------------------------------------
   Empty State
   -------------------------------------------------------------------------- */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    text-align: center;
}

.empty-state svg {
    width: 48px;
    height: 48px;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.empty-state--sm {
    padding: 2rem 1rem;
}

.empty-state--sm svg {
    width: 36px;
    height: 36px;
}

/* --------------------------------------------------------------------------
   Alert Items (Dashboard sidebar)
   -------------------------------------------------------------------------- */
.alerts-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.alert-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.875rem;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    background-color: var(--color-surface);
}

.alert-item--critico {
    border-left: 3px solid var(--color-error);
}

.alert-item--alto {
    border-left: 3px solid #f97316;
}

.alert-item--medio {
    border-left: 3px solid var(--color-warning);
}

.alert-item--bajo,
.alert-item--info {
    border-left: 3px solid var(--color-info);
}

.alert-item__icon {
    flex-shrink: 0;
}

.alert-item__icon svg {
    width: 18px;
    height: 18px;
}

.alert-item--critico .alert-item__icon svg { color: var(--color-error); }
.alert-item--alto .alert-item__icon svg { color: #f97316; }
.alert-item--medio .alert-item__icon svg { color: var(--color-warning); }
.alert-item--bajo .alert-item__icon svg,
.alert-item--info .alert-item__icon svg { color: var(--color-info); }

.alert-item__content {
    flex: 1;
    min-width: 0;
}

.alert-item__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.125rem;
}

.alert-item__text {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.25rem;
    line-height: 1.5;
}

.alert-item__date {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Error Pages
   -------------------------------------------------------------------------- */
.error-page {
    text-align: center;
    padding: 2rem;
    max-width: 540px;
    margin: 0 auto;
}

.error-page__logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 2rem;
}

.error-page__code {
    font-size: 8rem;
    font-weight: 800;
    line-height: 1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.error-page__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1rem 0 0.5rem;
    color: var(--color-text);
}

.error-page__text {
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.error-page__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Legal Pages (aviso-legal, privacidad, cookies)
   -------------------------------------------------------------------------- */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.legal-content h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content h3 {
    font-size: 1.125rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.legal-content ul,
.legal-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    list-style: disc;
}

.legal-content li {
    margin-bottom: 0.5rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.legal-content a {
    color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   Blog Page
   -------------------------------------------------------------------------- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.blog-card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.blog-card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card__body {
    padding: 1.5rem;
}

.blog-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.blog-card__excerpt {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.blog-card__meta {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Blog Layout (sidebar + content) */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
}

.blog-card__content {
    padding: 1.5rem;
}

.blog-card__category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.blog-card__title a {
    color: var(--color-text);
    text-decoration: none;
}

.blog-card__title a:hover {
    color: var(--color-primary);
}

.blog-card__meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.blog-card__date,
.blog-card__read-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.blog-card__date svg,
.blog-card__read-time svg {
    width: 14px;
    height: 14px;
}

/* Blog Sidebar */
.blog-sidebar__widget {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.blog-sidebar__widget--cta {
    background: linear-gradient(135deg, var(--color-primary) 0%, #8b5cf6 100%);
    color: #fff;
    border: none;
}

.blog-sidebar__widget--cta .blog-sidebar__title {
    color: #fff;
}

.blog-sidebar__widget--cta p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
}

.blog-sidebar__widget--cta .input {
    margin-bottom: 0.75rem;
}

.blog-sidebar__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.blog-sidebar__title svg {
    width: 18px;
    height: 18px;
}

.blog-sidebar__categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-sidebar__categories li {
    margin-bottom: 0;
}

.blog-sidebar__categories a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    color: var(--color-text-secondary);
    text-decoration: none;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9375rem;
}

.blog-sidebar__categories a:hover {
    color: var(--color-primary);
}

.blog-sidebar__count {
    background: var(--color-surface);
    color: var(--color-text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
}

.blog-sidebar__popular {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-sidebar__popular li {
    margin-bottom: 0;
}

.blog-sidebar__popular a {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
    text-decoration: none;
}

.blog-sidebar__popular a:hover .blog-sidebar__popular-title {
    color: var(--color-primary);
}

.blog-sidebar__popular-title {
    display: block;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.4;
}

.blog-sidebar__popular-date {
    display: block;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-top: 2px;
}

/* Blog header spacing fix */
.blog-header {
    padding-top: 2rem;
    padding-bottom: 0;
}

.blog-header .section__header {
    margin-bottom: 1.5rem;
}

.blog-content {
    padding-top: 0;
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */

/* Text alignment */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

/* Visibility */
.hidden { display: none !important; }
.visible { display: block !important; }

/* Margins - top */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 0.75rem !important; }
.mt-4 { margin-top: 1rem !important; }
.mt-5 { margin-top: 1.25rem !important; }
.mt-6 { margin-top: 1.5rem !important; }
.mt-7 { margin-top: 1.75rem !important; }
.mt-8 { margin-top: 2rem !important; }
.mt-9 { margin-top: 2.25rem !important; }
.mt-10 { margin-top: 2.5rem !important; }
.mt-11 { margin-top: 2.75rem !important; }
.mt-12 { margin-top: 3rem !important; }

/* Margins - bottom */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 0.75rem !important; }
.mb-4 { margin-bottom: 1rem !important; }
.mb-5 { margin-bottom: 1.25rem !important; }
.mb-6 { margin-bottom: 1.5rem !important; }
.mb-7 { margin-bottom: 1.75rem !important; }
.mb-8 { margin-bottom: 2rem !important; }
.mb-9 { margin-bottom: 2.25rem !important; }
.mb-10 { margin-bottom: 2.5rem !important; }
.mb-11 { margin-bottom: 2.75rem !important; }
.mb-12 { margin-bottom: 3rem !important; }

/* Padding utilities */
.p-0 { padding: 0 !important; }
.p-4 { padding: 1rem !important; }
.p-6 { padding: 1.5rem !important; }
.p-8 { padding: 2rem !important; }

/* Gap utilities */
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Flex utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }

/* Width utilities */
.w-full { width: 100%; }

/* --------------------------------------------------------------------------
   Scrollbar Styling
   -------------------------------------------------------------------------- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: var(--color-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Print Styles
   -------------------------------------------------------------------------- */
@media print {
    .header,
    .footer,
    .nav__toggle,
    .cookie-banner,
    .flash-container,
    .sidebar,
    .topbar,
    .mobile-tabs {
        display: none !important;
    }

    .main {
        padding-top: 0;
    }

    .dashboard-main {
        margin-left: 0;
    }

    body {
        background: #fff;
        color: #000;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* --------------------------------------------------------------------------
   Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* --------------------------------------------------------------------------
   Focus Visible (Accessibility)
   -------------------------------------------------------------------------- */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
input:focus:not(:focus-visible) {
    outline: none;
}

/* ==========================================================================
   3D Scroll-Driven Layout (home-3d)
   ========================================================================== */
body.home-3d {
    overflow-x: hidden;
}

body.home-3d .main {
    padding: 0;
    margin: 0;
}

/* footer is now unified in main layout */

#heroCanvas {
    position: fixed !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 0 !important;
    pointer-events: none;
}

.pw {
    position: relative;
    z-index: 5;
}

.sec {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem calc(24px + 5vw);
    position: relative;
}

/* Reveal animations */
.rv {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 1.2s cubic-bezier(.22,1,.36,1), transform 1.2s cubic-bezier(.22,1,.36,1);
}
.rv.show { opacity: 1; transform: translateY(0); }
.rv.d1 { transition-delay: .15s; }
.rv.d2 { transition-delay: .3s; }
.rv.d3 { transition-delay: .45s; }

/* Glass-morphism cards for 3D page */
body.home-3d .feature-card--glass,
body.home-3d .step--glass,
body.home-3d .stat-item--glass,
body.home-3d .plan-card--glass,
body.home-3d .testimonial-card--glass {
    background: rgba(15, 15, 35, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(139, 92, 246, 0.18);
    color: #fff;
}

body.home-3d .feature-card--glass .feature-card__title,
body.home-3d .step--glass .step__title,
body.home-3d .stat-item--glass .stat-item__number,
body.home-3d .plan-card--glass .plan-card__name,
body.home-3d .plan-card--glass .plan-card__amount,
body.home-3d .testimonial-card--glass .testimonial-card__name {
    color: #fff;
}

body.home-3d .feature-card--glass .feature-card__text,
body.home-3d .step--glass .step__text,
body.home-3d .stat-item--glass .stat-item__label,
body.home-3d .plan-card--glass .plan-card__period,
body.home-3d .plan-card--glass .plan-card__features li,
body.home-3d .testimonial-card--glass .testimonial-card__text,
body.home-3d .testimonial-card--glass .testimonial-card__role {
    color: rgba(255, 255, 255, 0.7);
}

body.home-3d .feature-card--glass .feature-card__icon svg,
body.home-3d .step--glass .step__icon svg,
body.home-3d .stat-item--glass .stat-item__icon svg,
body.home-3d .testimonial-card--glass .testimonial-card__stars svg {
    color: var(--color-accent);
}

body.home-3d .step__connector svg {
    color: rgba(255, 255, 255, 0.35);
}

/* Header glass on 3D page */
body.home-3d .header {
    background: rgba(8, 8, 26, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: rgba(139, 92, 246, 0.15);
}

body.home-3d .header .nav__link,
body.home-3d .header .nav__logo-text {
    color: rgba(255, 255, 255, 0.85);
}
body.home-3d .header .nav__link:hover,
body.home-3d .header .nav__link--active {
    color: #fff;
}

/* Hero section in 3D mode — center content */
body.home-3d #hero {
    justify-content: center;
    align-items: center;
}

/* Pricing featured card glow */
body.home-3d .plan-card--glass.plan-card--featured {
    border-color: rgba(168, 85, 247, 0.45);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.15);
}

/* Article CTAs — white text on gradient, purple text on white buttons */
.article-cta { color: #fff !important; }
.article-cta h3,
.article-cta h4,
.article-cta p,
.article-cta strong,
.article-cta span {
    color: #fff !important;
}
.article-cta a {
    color: #4a3af5 !important;
    background: #fff !important;
}

/* Theme toggle visible on 3D home — users can switch themes */

/* Section titles — adapt to theme */
.sec-title-themed { color: #fff; }
.sec-subtitle-themed { color: rgba(255,255,255,.65); }
html[data-theme="light"] .sec-title-themed { color: #1a1a2e; }
html[data-theme="light"] .sec-subtitle-themed { color: #555; }

/* Feature card icons — white on 3D dark background */
body.home-3d .feature-card__icon {
    color: #fff;
}
body.home-3d .feature-card__icon svg,
body.home-3d .feature-card__icon i {
    color: #fff;
    stroke: #fff;
}

/* ==========================================================================
   Light theme overrides for 3D home
   ========================================================================== */

/* Override white text forced by home-3d for light theme */
html[data-theme="light"] .home-3d .sec .section__title,
html[data-theme="light"] .home-3d .sec .section__subtitle,
html[data-theme="light"] .home-3d .hero__title,
html[data-theme="light"] .home-3d .hero__subtitle,
html[data-theme="light"] .home-3d .hero__claim,
html[data-theme="light"] .home-3d .sec h2,
html[data-theme="light"] .home-3d .sec h3,
html[data-theme="light"] .home-3d .sec p {
    color: #1a1a2e;
}

html[data-theme="light"] .home-3d .hero__eyebrow {
    color: rgba(0,0,0,.45);
}

html[data-theme="light"] .home-3d .hero__highlight {
    color: var(--color-primary);
}

/* Cards in light theme — white bg instead of glassmorphism */
html[data-theme="light"] .home-3d .feature-card--glass,
html[data-theme="light"] .home-3d .step--glass,
html[data-theme="light"] .home-3d .stat-item--glass,
html[data-theme="light"] .home-3d .plan-card--glass,
html[data-theme="light"] .home-3d .testimonial-card--glass {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0,0,0,0.08);
    color: #1a1a2e;
}

html[data-theme="light"] .home-3d .feature-card--glass .feature-card__title,
html[data-theme="light"] .home-3d .step--glass .step__title,
html[data-theme="light"] .home-3d .stat-item--glass .stat-item__number,
html[data-theme="light"] .home-3d .plan-card--glass .plan-card__name,
html[data-theme="light"] .home-3d .plan-card--glass .plan-card__amount,
html[data-theme="light"] .home-3d .testimonial-card--glass .testimonial-card__name {
    color: #1a1a2e;
}

html[data-theme="light"] .home-3d .feature-card--glass .feature-card__text,
html[data-theme="light"] .home-3d .step--glass .step__text,
html[data-theme="light"] .home-3d .stat-item--glass .stat-item__label,
html[data-theme="light"] .home-3d .plan-card--glass .plan-card__period,
html[data-theme="light"] .home-3d .plan-card--glass .plan-card__features li,
html[data-theme="light"] .home-3d .testimonial-card--glass .testimonial-card__text,
html[data-theme="light"] .home-3d .testimonial-card--glass .testimonial-card__role {
    color: rgba(26, 26, 46, 0.7);
}

html[data-theme="light"] .home-3d .feature-card__icon {
    color: var(--color-primary);
}
html[data-theme="light"] .home-3d .feature-card__icon svg,
html[data-theme="light"] .home-3d .feature-card__icon i {
    color: #fff;
    stroke: #fff;
}

html[data-theme="light"] .home-3d .feature-card--glass .feature-card__icon svg,
html[data-theme="light"] .home-3d .step--glass .step__icon svg,
html[data-theme="light"] .home-3d .stat-item--glass .stat-item__icon svg,
html[data-theme="light"] .home-3d .testimonial-card--glass .testimonial-card__stars svg {
    color: var(--color-primary);
}

html[data-theme="light"] .home-3d .step__connector svg {
    color: rgba(0, 0, 0, 0.25);
}

/* Stats section light */
html[data-theme="light"] .home-3d .stat-item {
    background: rgba(255,255,255,0.85);
    color: #1a1a2e;
}

/* Plan cards light */
html[data-theme="light"] .home-3d .plan-card--glass {
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(0,0,0,0.08);
    color: #1a1a2e;
}

html[data-theme="light"] .home-3d .plan-card--glass.plan-card--featured {
    border-color: rgba(168, 85, 247, 0.35);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.1);
}

/* Nav on light home */
html[data-theme="light"] .home-3d .header {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: rgba(0,0,0,0.08);
}

html[data-theme="light"] .home-3d .header .nav__link,
html[data-theme="light"] .home-3d .header .nav__logo-text {
    color: rgba(26, 26, 46, 0.85);
}
html[data-theme="light"] .home-3d .header .nav__link:hover,
html[data-theme="light"] .home-3d .header .nav__link--active {
    color: #1a1a2e;
}

/* Scroll nav dots light */
html[data-theme="light"] .home-3d .scroll-nav__dot {
    background: rgba(0,0,0,0.15);
    border-color: rgba(0,0,0,0.2);
}
html[data-theme="light"] .home-3d .scroll-nav__dot.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
}
html[data-theme="light"] .home-3d .scroll-nav__dot::after {
    color: rgba(0,0,0,0.5);
}

/* Vertical nav dots — left side navigation */
.scroll-nav {
    position: fixed;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.scroll-nav__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}
.scroll-nav__dot:hover {
    background: rgba(168,85,247,0.5);
    transform: scale(1.3);
}
.scroll-nav__dot.active {
    background: #a855f7;
    border-color: #a855f7;
    box-shadow: 0 0 8px rgba(168,85,247,0.5);
}
.scroll-nav__dot::after {
    content: attr(data-label);
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.65rem;
    color: rgba(255,255,255,0.5);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}
.scroll-nav__dot:hover::after {
    opacity: 1;
}

/* Responsive 3D */
@media (max-width: 768px) {
    .scroll-nav { display: none; }
    .sec {
        padding: calc(var(--header-height) + 2rem) 1.25rem 2.5rem;
        justify-content: center;
    }
    body.home-3d .hero__title {
        font-size: 2rem;
    }
    body.home-3d .hero__subtitle {
        font-size: 1rem;
    }
    body.home-3d .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ─── Home: Trust Grid + Footer Grid (responsive) ─── */
.home-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.home-footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.home-footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 768px) {
    .home-trust-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .home-footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .home-footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .sec--footer {
        padding: 2rem 1.25rem !important;
    }
    .sec--white-panel .container {
        padding: 2rem 1.25rem !important;
    }
}

@media (max-width: 480px) {
    .home-footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ─── Hero Eyebrow Invertido ─── */
.hero__eyebrow {
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.55);
    margin-bottom: .75rem;
}
.hero__claim {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.08;
    color: #fff;
    margin-bottom: 1.25rem;
}

/* ─── Stat item description ─── */
.stat-item__desc {
    font-size: .8rem;
    line-height: 1.5;
    color: rgba(255,255,255,.5);
    margin-top: .5rem;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
}
body.home-3d .stat-item--glass .stat-item__desc {
    color: rgba(255,255,255,.45);
}
html[data-theme="light"] .home-3d .stat-item--glass .stat-item__desc,
html[data-theme="light"] .home-3d .stat-item .stat-item__desc {
    color: rgba(0,0,0,.45);
}

/* ─── Trust Cards ─── */
.trust-card {
    text-align: center;
    padding: 2rem 1.75rem;
    background: #f8f7ff;
    border-radius: 16px;
    border: 1px solid rgba(139,92,246,.08);
    transition: transform .2s, box-shadow .2s;
}
.trust-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(139,92,246,.1);
}
.trust-card__icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #4a3af5, #8b5cf6);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}
.trust-card__title {
    color: #1a1a2e;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: .6rem;
}
.trust-card__text {
    color: #666;
    font-size: .9rem;
    line-height: 1.65;
}

/* ─── Beta Offer Section ─── */
.beta-offer-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #92400e 0%, #f59e0b 40%, #ef4444 100%);
    z-index: 0;
}
.beta-offer-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,.12) 0%, transparent 60%);
}
.beta-offer__badge {
    display: inline-block;
    padding: .4rem 1.25rem;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 100px;
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.beta-offer__title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}
.beta-offer__highlight {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.beta-offer__subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,.85);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.beta-offer__subtitle strong {
    color: #fff;
    font-weight: 700;
}
.beta-offer__prices {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}
.beta-offer__plan {
    position: relative;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    text-align: center;
    min-width: 200px;
}
.beta-offer__plan--featured {
    background: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.35);
    transform: scale(1.05);
}
.beta-offer__plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #f59e0b;
    font-size: .7rem;
    font-weight: 700;
    padding: .25rem .75rem;
    border-radius: 100px;
    white-space: nowrap;
}
.beta-offer__plan-name {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255,255,255,.7);
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: .5rem;
}
.beta-offer__plan-original {
    display: block;
    font-size: .9rem;
    color: rgba(255,255,255,.45);
    text-decoration: line-through;
    margin-bottom: .25rem;
}
.beta-offer__plan-price {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
}
.beta-offer__plan-price small {
    font-size: .55em;
    font-weight: 500;
    opacity: .7;
}

.beta-offer__plan-save {
    display: block;
    font-size: .75rem;
    color: rgba(255,255,255,.5);
    margin-top: .5rem;
    font-weight: 500;
}

/* Beta Counter */
.beta-offer__counter {
    max-width: 420px;
    margin: 0 auto 2.5rem;
    background: rgba(0,0,0,.2);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(255,255,255,.1);
}
.beta-offer__counter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .75rem;
}
.beta-offer__counter-label {
    font-size: .85rem;
    color: rgba(255,255,255,.65);
    font-weight: 500;
}
.beta-offer__counter-number {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
}
.beta-offer__counter-number--urgent {
    color: #fde68a;
    animation: betaPulse 2s ease-in-out infinite;
}
@keyframes betaPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .6; }
}
.beta-offer__progress {
    height: 8px;
    background: rgba(255,255,255,.15);
    border-radius: 100px;
    overflow: hidden;
}
.beta-offer__progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #fde68a, #f59e0b, #ef4444);
    border-radius: 100px;
    transition: width .6s ease;
}
.beta-offer__counter-urgency {
    margin-top: .6rem;
    font-size: .78rem;
    color: #fde68a;
    font-weight: 600;
}

@media (max-width: 480px) {
    .beta-offer__prices { flex-direction: column; align-items: center; }
    .beta-offer__plan--featured { transform: none; }
    .beta-offer__plan { min-width: 240px; }
    .beta-offer__counter-header { flex-direction: column; gap: .4rem; text-align: center; }
}

/* ─── Hero Animated Background ─── */
.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-bg__gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(139,92,246,0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 50%, rgba(74,58,245,0.1) 0%, transparent 50%),
                radial-gradient(ellipse at 20% 80%, rgba(168,85,247,0.08) 0%, transparent 50%);
}

[data-theme="dark"] .hero-bg__gradient {
    background: radial-gradient(ellipse at 50% 0%, rgba(139,92,246,0.25) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 50%, rgba(74,58,245,0.2) 0%, transparent 50%),
                radial-gradient(ellipse at 20% 80%, rgba(168,85,247,0.15) 0%, transparent 50%);
}

.hero-bg__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(139,92,246,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139,92,246,0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    animation: gridPulse 8s ease-in-out infinite;
}

[data-theme="dark"] .hero-bg__grid {
    background-image:
        linear-gradient(rgba(139,92,246,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139,92,246,0.1) 1px, transparent 1px);
}

.hero-bg__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    will-change: transform;
}

.hero-bg__orb--1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #4a3af5, #8b5cf6);
    top: -10%;
    right: -5%;
    animation: orbFloat1 12s ease-in-out infinite;
}

.hero-bg__orb--2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    bottom: -5%;
    left: -5%;
    animation: orbFloat2 15s ease-in-out infinite;
}

.hero-bg__orb--3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #6366f1, #4a3af5);
    top: 40%;
    left: 50%;
    animation: orbFloat3 10s ease-in-out infinite;
}

[data-theme="dark"] .hero-bg__orb { opacity: 0.4; }

.hero-bg__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139,92,246,0.12) 0%, transparent 70%);
    animation: glowPulse 6s ease-in-out infinite;
}

[data-theme="dark"] .hero-bg__glow {
    background: radial-gradient(circle, rgba(139,92,246,0.2) 0%, transparent 70%);
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-30px, 40px) scale(1.1); }
    66% { transform: translate(20px, -20px) scale(0.95); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(-50%, 0) scale(1); opacity: 0.4; }
    50% { transform: translate(-50%, -30px) scale(1.2); opacity: 0.7; }
}

@keyframes glowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.7; }
}

@keyframes gridPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@media (max-width: 768px) {
    .hero-bg__orb--1 { width: 250px; height: 250px; }
    .hero-bg__orb--2 { width: 180px; height: 180px; }
    .hero-bg__orb--3 { width: 120px; height: 120px; }
    .hero-bg__glow { width: 350px; height: 350px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-bg__orb, .hero-bg__glow, .hero-bg__grid {
        animation: none !important;
    }
}
