/* home-inline.css - Estilos críticos de primer pliegue para testautoconocimiento.com */

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/assets/fonts/inter-latin.woff2") format("woff2");
}

:root,
[data-theme="dark"] {
    --bg-main: #0a0a0a;
    --bg-secondary: #111111;
    --card-bg: #1c1c1c;
    --card-bg-hover: #242424;
    --text-primary: #f0f0f0;
    --text-secondary: #b8b8b8;
    --text-tertiary: #8a8a8a;
    --text-on-accent: #0a0a0a;
    --accent-primary: #d4a017;
    --accent-secondary: #e8b84b;
    --accent-glow: rgba(212, 160, 23, 0.25);
    --accent-subtle: rgba(212, 160, 23, 0.12);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(212, 160, 23, 0.35);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(212, 160, 23, 0.2);
    --shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.7);
    --gradient-hero: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(212, 160, 23, 0.18) 0%, transparent 70%);
    --gradient-accent: linear-gradient(135deg, #d4a017 0%, #e8b84b 100%);
    --gradient-text: linear-gradient(135deg, #f0f0f0 0%, #a0a0a0 100%);
    --nav-bg: rgba(10, 10, 10, 0.85);
}

[data-theme="light"] {
    --bg-main: #FAF8F5;
    --bg-secondary: #F0EDE8;
    --card-bg: #FFFFFF;
    --card-bg-hover: #F7F5F2;
    --text-primary: #1C1917;
    --text-secondary: #44403C;
    --text-tertiary: #78716C;
    --text-on-accent: #ffffff;
    --accent-primary: #7c3aed;
    --accent-secondary: #9d5cf5;
    --accent-glow: rgba(124, 58, 237, 0.2);
    --accent-subtle: rgba(124, 58, 237, 0.08);
    --border-color: rgba(0, 0, 0, 0.08);
    --border-highlight: rgba(124, 58, 237, 0.3);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.07);
    --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.12);
    --shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.12);
    --gradient-hero: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(124, 58, 237, 0.10) 0%, transparent 70%);
    --gradient-accent: linear-gradient(135deg, #7c3aed 0%, #9d5cf5 100%);
    --gradient-text: linear-gradient(135deg, #1C1917 0%, #44403C 100%);
    --nav-bg: rgba(250, 248, 245, 0.92);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    max-width: 100%;
    overflow-x: clip;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    max-width: 100%;
    overflow-x: clip;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    line-height: 1.15;
    word-break: break-word;
}

.title-mobile-break {
    display: inline;
}

@media (max-width: 768px) {
    .title-mobile-break {
        display: block;
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text-primary);
}

.nav-logo span {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--accent-primary);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 20px;
    height: 14px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-hamburger span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 12px var(--accent-glow);
    transform: scale(1.05);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 9999px;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--text-on-accent);
    border-color: transparent;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    border-color: var(--border-highlight);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--accent-subtle);
    border-color: var(--accent-primary);
}

.btn-video-nav {
    padding: 0.5rem 1.25rem;
    min-height: 38px;
    font-size: 0.875rem;
}

/* Hero */
.hero {
    min-height: 100svh;
    padding-top: 72px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    pointer-events: none;
    z-index: 0;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
    contain: layout paint;
}

.hero-orb-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-primary);
    top: -150px;
    left: -100px;
    opacity: 0.08;
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-secondary);
    bottom: -100px;
    right: -80px;
    opacity: 0.06;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 860px;
    padding: 4rem 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.4rem 1.1rem;
    background: var(--accent-subtle);
    border: 1px solid var(--border-highlight);
    border-radius: 9999px;
    color: var(--accent-primary);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 2rem;
    animation: none;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
    animation: none;
}

.hero h1 .accent {
    color: var(--accent-primary);
    display: block;
}

.hero-tagline {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
    animation: none;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
    animation: none;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    animation: none;
}

#test-counter.u-0dc7f869 {
    display: flex;
    min-height: 3.4rem;
    margin-top: 1rem;
    opacity: 0;
    visibility: hidden;
    animation: none;
}

#test-counter.u-0dc7f869.is-visible {
    opacity: 0.7;
    visibility: visible;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
}

.hero-stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent-primary);
    letter-spacing: -0.04em;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    max-width: 100%;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
    align-self: center;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }
    .nav-hamburger {
        display: flex;
    }
}

@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .navbar-inner {
        gap: .75rem;
    }
    .nav-actions {
        gap: .5rem;
    }
    .nav-logo {
        font-size: clamp(.78rem, 3.5vw, 1rem);
        letter-spacing: -.05em;
        white-space: normal;
        line-height: 1.1;
        flex: 1;
    }
    .hero-content {
        width: 100%;
        max-width: calc(100vw - 2rem);
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .hero h1 {
        font-size: clamp(1.85rem, 9vw, 2.25rem);
    }
    .hero-stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
        width: 100%;
    }
    .hero-stat-divider {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-actions .btn {
        width: 100%;
    }
    .btn-video-nav {
        display: none;
    }
}
