:root {
    --bg-color: #0B192C; /* Azul profundo corporativo (pista/World Padel Tour) */
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --accent: #65B741; /* Verde césped/pelota profesional */
    --card-bg: rgba(26, 42, 66, 0.85);
    --card-border: rgba(255, 255, 255, 0.08);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
    /* Abstracción geométrica de pista de pádel (línea central y línea de saque) */
    background-image: 
        linear-gradient(90deg, transparent 49.8%, rgba(255, 255, 255, 0.04) 49.8%, rgba(255, 255, 255, 0.04) 50.2%, transparent 50.2%),
        linear-gradient(0deg, transparent 25%, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.04) 25.4%, transparent 25.4%),
        radial-gradient(circle at top right, rgba(101, 183, 65, 0.08), transparent 40%),
        radial-gradient(circle at bottom left, rgba(11, 25, 44, 0.8), transparent 50%);
}

.app-container {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero {
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

#progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    margin-bottom: 2rem;
    overflow: hidden;
}

#progress-bar {
    height: 100%;
    width: 0%;
    background: var(--accent);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#question-text {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.option-btn {
    width: 100%;
    padding: 0.8rem 1.2rem;
    margin-bottom: 0.6rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.5rem;
    color: var(--text-main);
    font-size: 0.95rem;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.hidden {
    display: none !important;
}

#result-wrapper {
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.highlight {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent);
    margin: 1rem 0;
}

#level-description {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-primary:hover {
    transform: scale(1.05);
    background-color: #559e35;
}

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

.ads-container {
    width: 100%;
    min-height: 90px;
    background: rgba(0,0,0,0.3);
    border: 1px dashed rgba(255,255,255,0.2);
    border-radius: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ads-label { 
    color: var(--text-muted); 
    font-size: 0.75rem; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
}

.seo-block { 
    padding: 2rem; 
}

.seo-block h2, .seo-block h3 { 
    color: var(--accent); 
    margin-bottom: 1rem; 
    font-size: 1.3rem; 
}

.seo-block p { 
    color: var(--text-muted); 
    line-height: 1.7; 
    margin-bottom: 1.5rem; 
    font-size: 0.95rem; 
    text-align: justify;
    text-justify: inter-word;
    -webkit-hyphens: auto;
    hyphens: auto;
}

.seo-block p:last-child {
    margin-bottom: 0;
}

.affiliate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    text-align: left;
}

/* Cabecera Pro */
.site-header {
    position: relative;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 0 0 1rem 1rem;
    border-top: none;
    background: rgba(11, 25, 44, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header-logo {
    font-size: 1.2rem;
    color: var(--text-main);
}

.hamburger-btn {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0.2rem;
}

.hamburger-btn .bar {
    width: 22px;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
}

@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;
    }
}
