/* ==================== CSS VARIABLES ==================== */
:root {
    /* Brand Colors */
    --black: #000000;
    --white: #FFFFFF;
    --red: #FFB300;
    --red-bright: #FFD54F;
    
    /* Semantic Aliases */
    --gold: #FFB300;
    --gold-bright: #FFD54F;
    
    /* Dark Theme */
    --dark: #000000;
    --dark-alt: #0a0a0a;
    --dark-lighter: #1a1a1a;
    --dark-card: #141414;
    
    /* Text Colors */
    --text-light: #ffffff;
    --text-gray: #b0b0b0;
    
    /* Typography */
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* UI */
    --radius: 8px;
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background: var(--dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(255, 179, 0, 0.3);
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: var(--spacing-sm);
}

p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--text-gray);
    max-width: 65ch;
}

/* ==================== UTILITIES ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.text-center {
    text-align: center;
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

/* Section Subtitle - Always Centered */
.section-subtitle {
    text-align: center;
    display: block;
    width: 100%;
    max-width: 800px;
    margin: 0 auto var(--spacing-lg) auto;
    font-size: 1.25rem;
    color: var(--text-gray);
    font-weight: 300;
    padding: 0 2rem;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    color: var(--white);
    box-shadow: 0 10px 30px rgba(255, 179, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 179, 0, 0.6);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--red-bright), var(--red));
    color: var(--text-light);
    box-shadow: 0 10px 30px rgba(255, 179, 0, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 179, 0, 0.6);
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
    box-shadow: 0 5px 20px rgba(255, 179, 0, 0.2);
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(255, 179, 0, 0.4);
}

/* ==================== HEADER / NAV ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 179, 0, 0.1);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.98);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--gold);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 2rem;
    text-shadow: 0 0 20px rgba(255, 179, 0, 0.6);
}

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

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
    transition: var(--transition);
}

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-alt) 100%);
}

/* Vídeo de fondo del hero */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.62) 55%,
        rgba(0, 0, 0, 0.85) 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 179, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 179, 0, 0.1) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: var(--gold);
    border-radius: 50%;
    animation: float 20s infinite;
    opacity: 0.1;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-100px) translateX(50px);
    }
    50% {
        transform: translateY(-50px) translateX(-30px);
    }
    75% {
        transform: translateY(-150px) translateX(20px);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: var(--spacing-md);
}

.hero-logo {
    font-size: clamp(4rem, 12vw, 8rem);
    margin-bottom: var(--spacing-sm);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        text-shadow: 
            0 0 20px rgba(255, 179, 0, 0.5),
            0 0 40px rgba(255, 179, 0, 0.3),
            0 0 60px rgba(255, 179, 0, 0.2);
    }
    50% {
        text-shadow: 
            0 0 30px rgba(255, 179, 0, 0.8),
            0 0 60px rgba(255, 179, 0, 0.5),
            0 0 90px rgba(255, 179, 0, 0.3);
    }
}

.hero h1 {
    margin-bottom: var(--spacing-sm);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--text-gray);
    margin-bottom: var(--spacing-md);
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-md);
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid var(--gold);
    border-radius: 20px;
    opacity: 0.6;
    animation: bounce 2s infinite;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

/* ==================== COUNTDOWN ==================== */
.countdown-wrapper {
    margin: var(--spacing-md) auto;
    max-width: 500px;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.countdown-label {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--dark-lighter);
    padding: 1.25rem 1.5rem;
    border-radius: var(--border-radius);
    border: 2px solid var(--gold);
    box-shadow: 0 0 20px rgba(255, 179, 0, 0.2);
    min-width: 100px;
}

.countdown-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--gold-bright);
    line-height: 1;
}

.countdown-unit {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==================== HOW IT WORKS ==================== */
.how-it-works {
    background: var(--dark-alt);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: var(--spacing-lg);
}

.step-card {
    background: var(--dark-lighter);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 179, 0, 0.1);
}

.step-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--gold), var(--red));
    border-radius: var(--border-radius);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.step-card:hover::before {
    opacity: 0.2;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.step-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    color: var(--white);
    font-size: 1.75rem;
    font-weight: 900;
    border-radius: 50%;
    margin-bottom: 1rem;
    box-shadow: 0 10px 30px rgba(255, 179, 0, 0.4);
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.step-card h3 {
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.step-card p {
    margin: 0 auto;
    color: var(--text-gray);
}

/* ==================== GRUPOS PRIVADOS ==================== */
.grupos-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: var(--spacing-lg);
}

.grupo-card {
    background: var(--dark-lighter);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
}

.grupo-card:hover {
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(255, 179, 0, 0.2);
    transform: translateY(-5px);
}

.grupo-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.grupo-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--gold-bright);
}

.grupo-card p {
    color: var(--text-gray);
    margin: 0 auto;
}

/* ==================== FEATURES SECTIONS ==================== */
.features-section {
    background: var(--dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: var(--spacing-lg);
}

.feature-card {
    background: var(--dark-lighter);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature-card:hover {
    border-color: var(--gold);
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 179, 0, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-gray);
}

/* ==================== PROVIDERS SECTION ==================== */
.providers-section {
    background: linear-gradient(135deg, var(--dark-alt), var(--dark));
    position: relative;
}

.providers-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.providers-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.benefit-card {
    background: rgba(255, 179, 0, 0.05);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 179, 0, 0.2);
    transition: var(--transition);
}

.benefit-card:hover {
    background: rgba(255, 179, 0, 0.1);
    border-color: var(--gold);
}

/* ==================== FAQ SECTION ==================== */
.faq {
    background: var(--dark);
}

.faq-list {
    max-width: 800px;
    margin: var(--spacing-lg) auto 0;
}

.faq-item {
    background: var(--dark-lighter);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 179, 0, 0.1);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.125rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--gold);
}

.faq-icon {
    font-size: 1.5rem;
    transition: var(--transition);
    color: var(--gold);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-gray);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* ==================== CTA SECTIONS ==================== */
.players-cta {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.provider-cta {
    margin-top: var(--spacing-lg);
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--dark-alt);
    border-top: 1px solid rgba(255, 179, 0, 0.1);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-desc {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: var(--spacing-lg);
}

.footer-section h4 {
    color: var(--gold);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--dark-lighter);
    border-radius: 50%;
    color: var(--gold);
    font-size: 1.25rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-icon:hover {
    background: var(--gold);
    color: var(--white);
    transform: translateY(-5px);
}

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

.newsletter-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--dark-lighter);
    border: 1px solid rgba(255, 179, 0, 0.2);
    border-radius: var(--border-radius);
    color: var(--text-light);
    font-size: 0.95rem;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--gold);
}

.newsletter-submit {
    padding: 0.75rem 1.5rem;
    background: var(--gold);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-submit:hover {
    background: var(--gold-bright);
    transform: scale(1.05);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 179, 0, 0.1);
    color: var(--text-gray);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0 auto;
    padding: 0;
    text-align: center;
    width: 100%;
    max-width: none;
    display: block;
}

.footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-gray);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--red);
    background: rgba(255, 179, 0, 0.1);
    transform: translateY(-3px);
}

/* ==================== SCROLL REVEAL ==================== */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.98);
        width: 100%;
        padding: 2rem;
        gap: 1.5rem;
        transition: var(--transition);
        border-bottom: 1px solid rgba(255, 179, 0, 0.1);
    }

    .nav-links.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .section {
        padding: var(--spacing-lg) 0;
    }

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

    .countdown {
        gap: 0.75rem;
    }
    
    .countdown-item {
        padding: 1rem 0.75rem;
        min-width: 80px;
    }
    
    .countdown-value {
        font-size: 1.875rem;
    }

    .section-subtitle {
        font-size: 1.125rem;
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    .countdown-wrapper {
        padding: 0 1rem;
    }

    .countdown {
        gap: 0.5rem;
    }
    
    .countdown-item {
        padding: 0.75rem 0.5rem;
        min-width: 70px;
        flex: 1;
    }
    
    .countdown-value {
        font-size: 1.5rem;
    }

    .countdown-unit {
        font-size: 0.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    h2 {
        margin-bottom: var(--spacing-sm);
    }
}


.how-it-works-visual {
    position: sticky;
    top: 100px;
}

.visual-card {
    background: linear-gradient(135deg, rgba(255, 179, 0, 0.1), rgba(255, 179, 0, 0.05));
    border: 2px solid rgba(255, 179, 0, 0.3);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    text-align: center;
}

.visual-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.visual-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--red);
}

.visual-card > p {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.visual-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 179, 0, 0.2);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--red);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Responsive */
@media (max-width: 968px) {
    .how-it-works-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .how-it-works-visual {
        position: static;
    }
    
    .visual-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .visual-card {
        padding: 2rem 1.5rem;
    }
    
    .visual-card h3 {
        font-size: 1.5rem;
    }
    
    .visual-stats {
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

/* Step Card Visual (6th card) */
.step-card-visual {
    background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(255, 179, 0, 0.8)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><text x="50%" y="50%" font-size="120" text-anchor="middle" fill="%23FFB300" opacity="0.1">🎯</text></svg>');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 2px solid var(--red);
    min-height: 280px;
}

.step-card-visual h3 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.step-card-visual p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
}

.step-card-visual .btn {
    margin-top: 1.2rem;
}

.step-card-visual .step-number,
.step-card-visual .step-icon {
    display: none;
}

/* ==================== AUTH NAV STYLES ==================== */
.nav-auth {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.btn-auth-nav {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: transparent;
    border: 1px solid var(--red, #FFB300);
    color: var(--red, #FFB300);
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 6px;
    transition: var(--transition, all 0.3s ease);
}

.btn-auth-nav:hover {
    background: var(--red, #FFB300);
    color: var(--white, #FFF) !important;
    border-color: var(--red, #FFB300);
}

/* User menu dropdown */
.nav-user-menu {
    position: relative;
}

.btn-user-nav {
    background: var(--red, #FFB300) !important;
    color: #fff !important;
    border-color: var(--red, #FFB300) !important;
}

.nav-user-menu .user-dropdown {
    display: none !important;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    min-width: 180px;
    z-index: 1000;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.nav-user-menu .user-dropdown.active {
    display: block !important;
}

.user-dropdown a {
    display: block;
    padding: 0.75rem 1.2rem;
    color: #fff;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background 0.2s;
    white-space: nowrap;
}

.user-dropdown a:hover {
    background: rgba(255, 179, 0, 0.2);
    color: #FFB300 !important;
}

.user-dropdown a::after {
    display: none;
}

.dropdown-separator {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 0.25rem 0;
}

.dropdown-logout {
    color: #FFB300 !important;
}

.dropdown-arrow {
    font-size: 0.7em;
    margin-left: 2px;
}

.nav-links a.active {
    color: var(--gold, #FFD700);
}

.nav-links a.active::after {
    width: 100%;
}

/* ==================== FOOTER SIGNUP ==================== */
.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.85rem 1rem;
    background: var(--dark, #1a1a1a);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--white, #FFFFFF);
    font-size: 1rem;
    outline: none;
    transition: var(--transition, all 0.3s ease);
}

.newsletter-input:focus {
    border-color: var(--red, #FFB300);
    box-shadow: 0 0 12px rgba(255, 179, 0, 0.15);
}

.newsletter-submit {
    padding: 0.85rem 1.5rem;
    background: linear-gradient(135deg, #FFB300, #FFD54F);
    color: var(--white, #FFFFFF);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition, all 0.3s ease);
    white-space: nowrap;
}

.newsletter-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 179, 0, 0.4);
}

/* ==================== RESPONSIVE AUTH ==================== */
@media (max-width: 768px) {
    .nav-auth {
        margin-left: 0;
        width: 100%;
    }

    .btn-auth-nav {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem;
    }

    /* En movil el menu de usuario se muestra desplegado dentro del menu
       hamburguesa: sin esto las opciones de cuenta (Mi perfil, Mi cuenta,
       Historial...) quedan ocultas tras un dropdown que no se ve. */
    .nav-user-menu {
        width: 100%;
    }

    .nav-user-menu .user-dropdown {
        display: block !important;
        position: static;
        margin-top: 0.5rem;
        width: 100%;
        min-width: 0;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: none;
    }

    /* La flecha del desplegable no aplica en movil (ya esta abierto) */
    .btn-user-nav .dropdown-arrow {
        display: none;
    }
}

/* ==================== MODAL AUTH ==================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    background: var(--black, #000);
    border: 2px solid var(--red, #FFB300);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.modal-title {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--white, #FFF);
    text-align: center;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    text-align: center;
    color: var(--text-gray, #b0b0b0);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.auth-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.auth-toggle-btn {
    flex: 1;
    padding: 0.75rem;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: var(--text-gray, #b0b0b0);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.auth-toggle-btn.active {
    background: var(--red, #FFB300);
    border-color: var(--red, #FFB300);
    color: var(--white, #FFF);
}

.auth-form {
    margin-bottom: 1.5rem;
}

.auth-field {
    margin-bottom: 1rem;
}

.auth-field label {
    display: block;
    font-weight: 600;
    color: var(--white, #FFF);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.auth-field input {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: var(--white, #FFF);
    font-size: 1rem;
}

.auth-field input:focus {
    outline: none;
    border-color: var(--red, #FFB300);
    background: rgba(255,255,255,0.08);
}

.auth-password-wrap {
    position: relative;
}

.auth-password-wrap input {
    padding-right: 4.5rem;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white, #FFF);
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-password-toggle:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--red, #FFB300);
}

.auth-hint {
    font-size: 0.85rem;
    color: var(--text-gray, #b0b0b0);
    margin-top: 0.5rem;
}

.auth-error {
    color: var(--red, #FFB300);
    font-size: 0.9rem;
    text-align: center;
    min-height: 1.5rem;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.modal-btn {
    flex: 1;
    padding: 0.875rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    border: none;
}

.modal-btn-cancel {
    background: rgba(255,255,255,0.1);
    color: var(--white, #FFF);
}

.modal-btn-cancel:hover {
    background: rgba(255,255,255,0.15);
}

.modal-btn-confirm {
    background: var(--red, #FFB300);
    color: var(--white, #FFF);
}

.modal-btn-confirm:hover {
    background: #FF8F00;
    transform: translateY(-2px);
}

.auth-legal {
    font-size: 0.8rem;
    color: var(--text-gray, #b0b0b0);
    text-align: center;
    margin-top: 1rem;
}

.auth-legal a {
    color: var(--red, #FFB300);
    text-decoration: none;
}

.modal-price {
    font-size: 2rem;
    font-weight: 900;
    color: var(--red, #FFB300);
    text-align: center;
    margin: 1rem 0;
}

.modal-price-small {
    font-size: 1.25rem;
    margin: 1rem 0;
}

.modal-warning {
    text-align: center;
    color: #ff9800;
    font-size: 0.9rem;
    margin: 1rem 0;
}

.btn-auth-nav:hover,
.btn-auth-nav:hover * {
    color: var(--white, #FFFFFF) !important;
}

/* ==================== RETOS ==================== */
.retos-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.retos-header h1 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.retos-header p {
    color: var(--text-gray);
    font-size: 1.05rem;
}

.retos-lista {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

/* Banner horizontal */
.reto-banner {
    background: var(--dark-card);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
    transition: var(--transition);
}

.reto-banner:hover {
    border-color: var(--red);
    box-shadow: 0 0 30px rgba(255,179,0,0.1);
}

/* Imagen: al lado de la descripcion */
.reto-banner-img {
    display: none;
}

.reto-banner-img .reto-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
}

.reto-content-row {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.reto-content-text {
    flex: 1;
}

.reto-content-img {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.reto-content-img img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.reto-img-cta {
    width: 100%;
    text-align: center;
}

.reto-img-cta .btn-reto-jugar {
    width: 100%;
    display: block;
}

.reto-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 6px 14px;
    border-radius: 6px;
}

.badge-activo {
    background: var(--red);
    color: var(--white);
    box-shadow: 0 2px 12px rgba(255,179,0,0.4);
}

.badge-finalizado {
    background: var(--dark-lighter);
    color: var(--text-gray);
}

/* Contenido */
.reto-banner-right {
    display: flex;
    flex-direction: column;
}

.reto-banner-top {
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reto-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.reto-title-row h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.3;
}

.reto-title-row .reto-badge {
    white-space: nowrap;
}

.reto-unidades {
    color: var(--red);
}

.reto-banner-desc {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.7;
}

.reto-banner-desc strong {
    color: var(--white);
}

/* Bottom: condiciones centradas */
.reto-banner-bottom {
    display: flex;
    justify-content: center;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin: 0 2rem;
    padding: 1.2rem 0;
}

.reto-banner-condiciones {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-gray);
}

.reto-banner-condiciones span {
    background: rgba(255,255,255,0.04);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.06);
}

.reto-ver-normas {
    color: var(--red);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
}

.reto-ver-normas:hover {
    text-decoration: underline;
}

/* CTA */
.reto-banner-cta {
    flex-shrink: 0;
}

.btn-reto-jugar {
    display: inline-block;
    padding: 14px 32px;
    background: var(--red);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
    line-height: 1.4;
    box-shadow: 0 4px 16px rgba(255,179,0,0.3);
}

.btn-reto-jugar:hover {
    background: var(--red-bright);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255,179,0,0.4);
}

.reto-banner-aviso {
    font-size: 0.75rem;
    color: #ff9800;
    font-weight: 600;
    margin-top: 4px;
}

/* Mobile: se apila vertical */
/* ==================== REFERENTES ==================== */
.ref-landing {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ref-logo {
    max-height: 80px;
    width: auto;
    margin: 0 auto;
    border-radius: 8px;
}

.ref-titulo {
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1.2;
    color: var(--white);
}

.ref-desc {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.6;
}

.ref-registro {
    background: var(--dark-card);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 2rem;
}

.ref-registro-titulo {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.ref-form {
    display: flex;
    gap: 10px;
}

.ref-input {
    flex: 1;
    padding: 14px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    color: var(--white);
    font-size: 1rem;
    font-family: var(--font-main);
}

.ref-input:focus {
    outline: none;
    border-color: var(--red);
}

.btn-ref-registrar {
    padding: 14px 24px;
    background: var(--red);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-ref-registrar:hover {
    background: var(--red-bright);
}

.btn-ref-registrar:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ref-form-hint {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-top: 8px;
}

.ref-msg {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
}

.ref-msg-ok {
    background: rgba(76,175,80,0.1);
    border: 1px solid rgba(76,175,80,0.3);
    color: #4CAF50;
}

.ref-msg-error {
    background: rgba(255,179,0,0.1);
    border: 1px solid rgba(255,179,0,0.3);
    color: #FFD54F;
}

.ref-ya-registrado {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.ref-ya-registrado p {
    color: var(--text-gray);
}

.btn-ref-jugar {
    display: inline-block;
    padding: 16px 40px;
    background: var(--red);
    color: var(--white);
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 2px;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
}

.btn-ref-jugar:hover {
    background: var(--red-bright);
    transform: translateY(-1px);
}

.ref-acciones {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.ref-link {
    color: var(--red);
    font-size: 0.85rem;
    font-weight: 700;
}

.ref-link:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .ref-titulo { font-size: 1.4rem; }
    .ref-form { flex-direction: column; }
    .ref-acciones { flex-direction: column; gap: 0.8rem; }
}

@media (max-width: 640px) {
    .reto-banner-top {
        padding: 1.2rem;
    }

    .reto-content-row {
        flex-direction: column-reverse;
        align-items: center;
    }

    .reto-content-img {
        flex: none;
        width: 160px;
    }

    .reto-banner-bottom {
        flex-direction: column;
        margin: 0 1.2rem;
        align-items: stretch;
    }

    .reto-banner-cta {
        text-align: center;
    }

    .reto-banner-bottom {
        flex-direction: column;
    }

    .reto-banner-cta {
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.06);
        padding: 1.2rem;
        justify-content: center;
        width: 100%;
    }

    .btn-reto-jugar {
        width: 100%;
        padding: 14px 24px;
    }
}

/* ==================== GIFT BANNER (premio en juego) ==================== */
/* Compartido por participa.php, juego.php y futuras páginas. */
.gift-banner {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    background: linear-gradient(135deg, rgba(255, 179, 0, 0.12) 0%, rgba(255, 179, 0, 0.04) 100%);
    border: 1px solid rgba(255, 179, 0, 0.35);
    border-radius: 12px;
    padding: 0.4rem 1rem 0.4rem 0.4rem;
    margin-top: 1rem;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}
.gift-banner:hover {
    border-color: var(--red);
    box-shadow: 0 4px 18px rgba(255, 179, 0, 0.22);
}
.gift-banner-img {
    flex-shrink: 0;
    width: 108px;
    height: 108px;
    border-radius: 10px;
    overflow: hidden;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gift-banner-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gift-banner-img .no-img { font-size: 3rem; }
.gift-banner-body { flex: 1; min-width: 0; }
.gift-banner-label {
    display: inline-block;
    background: var(--red);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
}
.gift-banner-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.25;
    margin-bottom: 0.35rem;
}
.gift-banner-sub {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.4;
}
.gift-banner-sub strong { color: var(--red-bright); }

/* ==================== NEWS FLASH (anuncio tipo noticia) ==================== */
.news-flash {
    background: var(--dark);
}
.news-card {
    max-width: 920px;
    margin: 0 auto;
    background: linear-gradient(180deg, var(--dark-card) 0%, var(--dark-alt) 100%);
    border: 1px solid rgba(255, 179, 0, 0.28);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
}

/* Cinta superior tipo "última hora" */
.news-ticker {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    padding: 0.55rem 1.3rem;
}
.news-ticker-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(0, 0, 0, 0.88);
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    padding: 0.32rem 0.85rem;
    border-radius: 999px;
    white-space: nowrap;
}
.news-ticker-tag .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red-bright);
    animation: newsPulse 1.2s infinite;
}
@keyframes newsPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.25; transform: scale(0.55); }
}
.news-ticker-text {
    color: #1a0000;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Imagen destacada de la noticia (premio): banner horizontal a todo el ancho de la
   tarjeta, alto contenido (~200px) para que se vea como un banner y no se recorte feo. */
.news-figure {
    margin: 0;
    position: relative;
    overflow: hidden;
    background: var(--dark-alt);
    border-bottom: 1px solid rgba(255, 179, 0, 0.2);
}
.news-figure img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    display: block;
}
.news-figure figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.2rem 1rem 0.65rem;
    font-size: 0.78rem;
    color: #dcdcdc;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
}

/* Hueco para imagen pendiente de generar */
.news-figure-ph {
    aspect-ratio: 16 / 7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    text-align: center;
    padding: 1.5rem;
    color: var(--text-gray);
    border-bottom: 1px dashed rgba(255, 179, 0, 0.45);
    background:
        repeating-linear-gradient(45deg, rgba(255, 179, 0, 0.06) 0 18px, transparent 18px 36px),
        var(--dark-alt);
}
.news-figure-ph .ph-label {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    color: var(--gold);
}
.news-figure-ph .ph-hint {
    font-size: 0.86rem;
    max-width: 480px;
    line-height: 1.45;
}

/* Dos casos: precio exacto vs. más cercano */
.news-cases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin: 1.6rem 0;
}
.news-case {
    border-radius: 10px;
    padding: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}
.news-case-exact {
    border-color: rgba(255, 179, 0, 0.45);
    background: rgba(255, 179, 0, 0.09);
}
.news-case .ico {
    font-size: 1.7rem;
    display: block;
    margin-bottom: 0.45rem;
}
.news-case-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    margin-bottom: 0.7rem;
}
.news-case-exact .news-case-tag { background: var(--red); color: var(--white); }
.news-case-closest .news-case-tag { background: rgba(255, 255, 255, 0.14); color: var(--white); }
.news-case h4 {
    font-size: 1.08rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}
.news-case p {
    font-size: 0.92rem;
    color: var(--text-gray);
    line-height: 1.5;
}
.news-case p strong { color: var(--red-bright); }
.news-case-note {
    display: block;
    margin-top: 0.55rem;
    font-size: 0.8rem;
    font-style: italic;
    opacity: 0.75;
}

.news-body {
    padding: 2.4rem;
}
.news-meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-gray);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.85rem;
    margin-bottom: 1.5rem;
}
.news-source { color: var(--gold); font-weight: 800; }
.news-headline {
    font-size: 2.1rem;
    font-weight: 900;
    line-height: 1.18;
    margin-bottom: 1rem;
}
.news-headline em { color: var(--gold); font-style: normal; }
.news-lead {
    font-size: 1.16rem;
    font-weight: 500;
    color: #ededed;
    margin-bottom: 1.3rem;
}
.news-text p {
    color: var(--text-gray);
    margin-bottom: 0.9rem;
}
.news-quote {
    border-left: 4px solid var(--gold);
    background: rgba(255, 179, 0, 0.09);
    padding: 1.15rem 1.4rem;
    margin: 1.6rem 0;
    border-radius: 0 8px 8px 0;
    font-size: 1.12rem;
    font-style: italic;
    font-weight: 600;
    color: var(--white);
}

/* Pasos para conseguir el regalo */
.news-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1rem;
    margin: 1.6rem 0;
}
.news-step {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 1.1rem 1rem;
}
.news-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    color: var(--white);
    font-weight: 900;
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
}
.news-step h4 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
}
.news-step p {
    font-size: 0.88rem;
    color: var(--text-gray);
    line-height: 1.45;
}

.news-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.6rem;
}
.news-disclaimer {
    margin-top: 1.1rem;
    max-width: none;
    font-size: 0.8rem;
    color: var(--text-gray);
    opacity: 0.75;
}

@media (max-width: 768px) {
    .news-body { padding: 1.6rem; }
    .news-headline { font-size: 1.55rem; }
    .news-lead { font-size: 1.05rem; }
    .news-ticker-text { font-size: 0.8rem; }
    .news-cta .btn { width: 100%; max-width: none; }
    .news-figure img { height: 150px; }
}

/* ==================== VIDEO MODAL (vídeo de ayuda) ==================== */
.video-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    backdrop-filter: blur(4px);
}
.video-modal.active { display: flex; }
.video-modal-inner {
    width: 100%;
    max-width: 900px;
    position: relative;
}
.video-modal-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 179, 0, 0.35);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.85);
    background: #000;
}
.video-modal-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.video-modal-close {
    position: absolute;
    top: -2.8rem;
    right: 0;
    background: none;
    border: 0;
    color: var(--white);
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
}
.video-modal-close:hover { color: var(--gold); transform: scale(1.15); }


/* Distintivo de ganador reutilizable (🏆 nº de premios) — usado en ranking, regalos, etc. */
.px-trophy { display:inline-flex; align-items:center; gap:.2rem; background:rgba(255,215,0,.15); color:#FFD700; font-weight:800; font-size:.72rem; padding:.05rem .4rem; border-radius:999px; text-decoration:none; margin-left:.35rem; vertical-align:middle; white-space:nowrap; }
.px-trophy:hover { background:rgba(255,215,0,.28); }

/* ==================== SORTEOX ====================
   Sobre el acento dorado el texto va oscuro: blanco sobre ámbar no da contraste. */
.btn-primary, .btn-secondary, .btn-outline:hover, .step-number, .social-icon:hover,
.newsletter-submit, .btn-auth-nav:hover, .btn-user-nav, .auth-toggle-btn.active,
.modal-btn-confirm, .badge-activo, .btn-reto-jugar, .btn-ref-registrar, .btn-ref-jugar,
.gift-banner-label, .news-step-num {
    color: #1a1200;
}

/* Logotipo de texto con gradiente (misma técnica que el h1) */
.logo-text {
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    letter-spacing: 0.03em;
}
/* Logo bicolor de marca: SORTEO dorado + X blanca */
.logo-text .logo-x { -webkit-text-fill-color: #fff; color: #fff; }

/* ---------- Herramienta de sorteo ---------- */
.sorteo-box {
    background: var(--dark-card);
    border: 1px solid rgba(255, 179, 0, 0.15);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-top: var(--spacing-md);
}
.sorteo-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; }
@media (max-width: 820px) { .sorteo-grid { grid-template-columns: 1fr; } }
.sorteo-label { display: block; font-weight: 700; color: var(--text-light); margin-bottom: 0.5rem; }
.sorteo-textarea {
    width: 100%;
    min-height: 150px;
    background: var(--dark-lighter);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    padding: 1rem;
    font-family: var(--font-main);
    font-size: 0.95rem;
    line-height: 1.6;
    resize: vertical;
}
.sorteo-textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 179, 0, 0.15); }

/* Marca de agua SORTEOX en el panel de participantes: la marca queda visible
   en capturas y directos sin molestar la lectura */
textarea#listaParticipantes {
    /* Dos marcas por baldosa: la fila intermedia queda desplazada media posición
       (tresbolillo). Con repeat:round las baldosas se ajustan al panel y las
       marcas quedan uniformes, sin cortes ni huecos. */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='225' height='240'%3E%3Ctext x='112' y='60' text-anchor='middle' dominant-baseline='middle' font-family='Arial, sans-serif' font-size='28' font-weight='900' letter-spacing='4' fill='rgba(255,179,0,0.07)' transform='rotate(-16 112 60)'%3ESORTEOX%3C/text%3E%3Ctext x='0' y='180' text-anchor='middle' dominant-baseline='middle' font-family='Arial, sans-serif' font-size='28' font-weight='900' letter-spacing='4' fill='rgba(255,179,0,0.07)' transform='rotate(-16 0 180)'%3ESORTEOX%3C/text%3E%3Ctext x='225' y='180' text-anchor='middle' dominant-baseline='middle' font-family='Arial, sans-serif' font-size='28' font-weight='900' letter-spacing='4' fill='rgba(255,179,0,0.07)' transform='rotate(-16 225 180)'%3ESORTEOX%3C/text%3E%3C/svg%3E");
    background-repeat: round;
}

/* La columna de participantes se estira para no dejar aire muerto:
   el textarea crece hasta igualar la altura de la columna de configuración */
.sorteo-grid > div:last-child { display: flex; flex-direction: column; }
.sorteo-grid > div:last-child .sorteo-textarea { flex: 1; }
.sorteo-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 0.6rem; flex-wrap: wrap; gap: 0.5rem; }
.sorteo-count { color: var(--gold); font-weight: 800; }
.btn-file {
    background: var(--dark-lighter);
    color: var(--text-gray);
    border: 1px dashed rgba(255, 255, 255, 0.25);
    border-radius: var(--radius);
    padding: 0.45rem 0.9rem;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    transition: var(--transition);
}
.btn-file:hover { color: var(--gold); border-color: var(--gold); }
.sorteo-check { display: flex; align-items: center; gap: 0.5rem; color: var(--text-gray); font-size: 0.9rem; margin-top: 0.8rem; cursor: pointer; }
.sorteo-check input { accent-color: var(--gold); width: 16px; height: 16px; }
.sorteo-field { margin-bottom: 1.2rem; }
.sorteo-input {
    width: 100%;
    background: var(--dark-lighter);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    padding: 0.7rem 1rem;
    font-family: inherit;
    font-size: 0.95rem;
}
.sorteo-input:focus { outline: none; border-color: var(--gold); }
.stepper { display: flex; align-items: center; gap: 0.6rem; }
.stepper button {
    width: 42px; height: 42px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: var(--dark-lighter);
    color: var(--gold);
    font-size: 1.3rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
}
.stepper button:hover { border-color: var(--gold); }
.stepper input {
    width: 70px;
    text-align: center;
    background: var(--dark-lighter);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    padding: 0.6rem 0;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    -moz-appearance: textfield;
    appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.btn-sortear { width: 100%; font-size: 1.25rem; padding: 1.1rem; margin-top: 0.5rem; }
.sorteo-error { color: #FF6E6E; font-size: 0.9rem; margin-top: 0; min-height: 0; font-weight: 600; }
.sorteo-error:not(:empty) { margin-top: 0.6rem; }

/* ---------- Overlay de suspense (tómbola) ---------- */
.sorteo-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
/* El display:flex de arriba anularía el atributo hidden (display:none del navegador) */
.sorteo-overlay[hidden] { display: none; }

/* Marca al pie del overlay: en un directo se ve de dónde sale el sorteo */
.sorteo-overlay::after {
    content: 'S O R T E O X . C O M';
    position: absolute;
    bottom: 1.8rem;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 900;
    letter-spacing: 0.25em;
    color: rgba(255, 179, 0, 0.55);
    font-size: 0.95rem;
    pointer-events: none;
}
.tombola-box { text-align: center; max-width: 960px; width: 100%; }
.tombola-label { color: var(--text-gray); text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.95rem; margin-bottom: 1.5rem; }
.tombola-name {
    font-size: clamp(2rem, 7vw, 4.5rem);
    font-weight: 900;
    color: var(--gold-bright);
    text-shadow: 0 0 60px rgba(255, 179, 0, 0.4);
    min-height: 1.3em;
    word-break: break-word;
}

/* ---------- Reveal de ganadores ---------- */
.winner-cards { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin: 1.5rem 0; }
.winner-card {
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    color: #1a1200;
    border-radius: var(--border-radius);
    padding: 1.4rem 2rem;
    min-width: 220px;
    box-shadow: 0 10px 40px rgba(255, 179, 0, 0.35);
}
.winner-rank { font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.75; }
.winner-name { font-size: clamp(1.4rem, 4vw, 2.2rem); font-weight: 900; word-break: break-word; }
.suplentes-list { color: var(--text-gray); margin: 1rem 0 1.5rem; line-height: 1.9; }
.suplentes-list strong { color: var(--text-light); }
.reveal-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }
.reveal-close {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--text-gray);
    background: none;
    border: 0;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
}
.confetti-piece {
    position: fixed;
    top: -20px;
    z-index: 3200;
    width: 10px;
    height: 16px;
    opacity: 0.9;
    animation: confetti-fall linear forwards;
    pointer-events: none;
}
@keyframes confetti-fall { to { transform: translateY(105vh) rotate(720deg); opacity: 0.7; } }

/* ---------- Página de resultados ---------- */
.resultado-container { max-width: 860px; margin: 0 auto; padding: 7rem 1.5rem 3rem; }
.resultado-container h1 { font-size: clamp(1.8rem, 5vw, 3rem); text-align: center; margin-bottom: 0.5rem; }
.res-fecha { text-align: center; color: var(--text-gray); margin-bottom: 2rem; }
.res-block {
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
}
.res-block h2 { font-size: 1.1rem; color: var(--gold); margin-bottom: 1rem; }
.res-details summary { cursor: pointer; color: var(--gold); font-weight: 700; font-size: 1.05rem; }
.res-participantes { columns: 3 200px; column-gap: 2rem; margin-top: 1rem; color: var(--text-gray); font-size: 0.92rem; list-style-position: inside; }
.res-participantes li { break-inside: avoid; margin-bottom: 0.25rem; }
.res-participantes .es-ganador { color: var(--gold); font-weight: 800; }
.res-participantes .es-suplente { color: var(--gold-bright); font-weight: 600; }
.res-verif { color: var(--text-gray); font-size: 0.85rem; line-height: 1.7; }
.res-verif strong { color: var(--text-light); }
.res-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin: 2rem 0 0; }
.res-404 { text-align: center; padding: 9rem 1.5rem 5rem; }
.res-404 h1 { font-size: clamp(2rem, 6vw, 3.5rem); margin-bottom: 1rem; }
.res-404 p { color: var(--text-gray); margin-bottom: 2rem; }

/* En escritorio los 3 pasos van siempre en una sola fila
   (el auto-fit de .steps partía en 2+1 según el ancho) */
@media (min-width: 900px) {
    .steps { grid-template-columns: repeat(3, 1fr); }
}

/* Que el header fijo no tape el inicio de la sección al llegar por ancla */
#sortear, #como-funciona, #sorteo-abierto { scroll-margin-top: 80px; }

/* ---------- Sorteo futuro / en abierto ---------- */
.abierto-nota { color: var(--text-gray); font-size: 0.9rem; line-height: 1.6; }
.futuro-explica { color: var(--text-gray); font-size: 0.82rem; line-height: 1.6; margin: 0.4rem 0 0 1.6rem; }
.futuro-explica strong { color: var(--text-light); }
.futuro-fecha { margin-left: 1.6rem; }
.badge-mini { font-size: 0.62rem; padding: 0.08rem 0.45rem; }
.badge-mini s { opacity: 0.7; }
.steppers-fila { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: space-between; }
.steppers-fila .sorteo-label { display: flex; align-items: center; gap: 0.4rem; }
.adicionales { border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 1rem; }
.nota-registro {
    background: rgba(255, 179, 0, 0.07);
    border: 1px solid rgba(255, 179, 0, 0.3);
    border-radius: var(--radius);
    padding: 0.8rem 1rem;
    color: var(--text-gray);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}
.nota-registro a { color: var(--gold); text-decoration: underline; }

/* Los precios de los adicionales, alineados al borde derecho de su línea */
.adicionales .sorteo-check .badge-mini { margin-left: auto; }

/* Landing /sortear: todo a una pantalla, foco en el sorteo */
.st-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.st-volver { color: var(--text-gray); text-decoration: none; font-size: 0.9rem; transition: var(--transition); }
.st-volver:hover { color: var(--gold); }
.st-bar-derecha { display: flex; align-items: center; gap: 1.2rem; }

/* Reloj en directo: fecha y hora visibles en pantalla (y en las grabaciones) */
.reloj-directo { color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.reloj-overlay { position: absolute; top: 1.2rem; right: 1.5rem; font-size: 1.05rem; }
@media (max-width: 600px) { .reloj-overlay { font-size: 0.85rem; top: 0.9rem; right: 1rem; } }

/* Pasos numerados integrados en el panel — dorados y con subrayado para
   diferenciarlos de los campos que se rellenan */
.paso-titulo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 800;
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 179, 0, 0.45);
}
.paso-titulo b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    color: #1a1200;
    font-size: 0.95rem;
    flex-shrink: 0;
}
.paso-bloque {
    border: 1px solid rgba(255, 179, 0, 0.25);
    border-radius: var(--border-radius);
    padding: 1rem 1.2rem 0.5rem;
    margin-bottom: 1rem;
}

/* Cabecera del panel de participantes: marca a la izquierda, reloj chulo a la derecha */
.panel-cabecera { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.8rem; }
.panel-pie { margin: 0.7rem 0 0; padding-top: 0.7rem; border-top: 1px solid rgba(255, 255, 255, 0.08); align-items: flex-end; }
.panel-pie .panel-slogan { margin-bottom: 2px; }
.panel-logo { display: flex; align-items: baseline; gap: 0.25rem; font-size: 1.05rem; font-weight: 900; }
.panel-logo .logo-icon { font-size: 1.25rem; }
.panel-dominio { color: var(--text-gray); font-weight: 700; font-size: 0.85rem; }
.panel-slogan { color: var(--text-gray); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.09em; margin-top: 0.15rem; }
.reloj-chulo {
    text-align: center;
    background: var(--dark-lighter);
    border: 1px solid rgba(255, 179, 0, 0.35);
    border-radius: var(--radius);
    padding: 0.4rem 0.9rem;
    box-shadow: 0 0 14px rgba(255, 179, 0, 0.12);
}
.reloj-hora { display: block; font-size: 1.3rem; font-weight: 900; color: var(--gold-bright); letter-spacing: 0.08em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.reloj-fecha { display: block; font-size: 0.68rem; color: var(--text-gray); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px; }
.st-cabecera { text-align: center; padding: 1.2rem 1.5rem 1rem; }
.st-cabecera h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 0.6rem; }
.st-linea { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.st-linea span {
    background: rgba(255, 179, 0, 0.08);
    border: 1px solid rgba(255, 179, 0, 0.25);
    color: var(--text-gray);
    border-radius: 999px;
    padding: 0.3rem 0.9rem;
    font-size: 0.82rem;
    white-space: nowrap;
}

/* Los 3 pasos, en línea, para que cualquiera entienda el proceso de un vistazo */
.st-pasos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.8rem;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}
.st-pasos b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    color: #1a1200;
    font-size: 0.8rem;
    margin-right: 0.4rem;
}
.st-flecha { color: var(--gold); font-weight: 800; }
@media (max-width: 700px) { .st-flecha { display: none; } .st-pasos { flex-direction: column; gap: 0.4rem; } }
/* margin auto: el p global tiene max-width 65ch y sin esto queda pegado a la izquierda */
.st-tiempo { margin: 0.8rem auto 0; color: var(--gold); font-size: 0.88rem; text-align: center; }

/* Aviso de registro pegado a la opción que lo requiere */
.aviso-registro {
    background: rgba(255, 179, 0, 0.08);
    border: 1px solid rgba(255, 179, 0, 0.4);
    border-radius: var(--radius);
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.5;
    padding: 0.6rem 0.9rem;
    margin: 0.4rem 0 0.3rem 1.6rem;
}
.aviso-registro a { color: var(--gold); text-decoration: underline; }

/* Sello de empresa verificada (junto al organizador) */
.badge-verif {
    display: inline-block;
    background: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.4);
    border-radius: 999px;
    padding: 0.1rem 0.55rem;
    font-size: 0.68rem;
    font-weight: 800;
    vertical-align: middle;
    margin-left: 0.3rem;
    white-space: nowrap;
}

/* Etiqueta de precio discreta: sin fondo, letra fina, en verde */
.precio-suave {
    margin-left: auto;
    color: #4CAF50;
    font-weight: 300;
    font-size: 0.78rem;
    white-space: nowrap;
}

/* Opción "Próximamente": se atenúan texto, check y precio, pero no el tooltip de ayuda
   (la opacidad no puede ir en el label porque el tooltip es hijo suyo y la heredaría) */
.check-proximamente input,
.check-proximamente .texto-atenuado,
.check-proximamente .precio-suave { opacity: 0.55; }
.check-proximamente .ayuda {
    background: rgba(255, 179, 0, 0.1);
    border-color: rgba(255, 179, 0, 0.3);
    color: rgba(255, 179, 0, 0.55);
}
.check-proximamente .ayuda:hover {
    background: rgba(255, 179, 0, 0.35);
    border-color: rgba(255, 179, 0, 0.55);
    color: var(--gold);
}

/* Icono de ayuda con tooltip */
.ayuda {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: rgba(255, 179, 0, 0.18);
    border: 1px solid rgba(255, 179, 0, 0.55);
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 800;
    cursor: help;
    position: relative;
    flex-shrink: 0;
}
.ayuda:hover { background: rgba(255, 179, 0, 0.35); }
.ayuda::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    max-width: 78vw;
    background: #262626;
    border: 1px solid rgba(255, 179, 0, 0.4);
    color: var(--text-light);
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1.6;
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s;
    z-index: 100;
    pointer-events: none;
    white-space: normal;
    text-transform: none;
    letter-spacing: normal;
}
@media (hover: hover) {
    .ayuda:hover::after { opacity: 1; visibility: visible; }
}
/* Al pulsar el "?" (móvil o escritorio) la ayuda se despliega debajo, en grande */
.ayuda-inline {
    background: #262626;
    border: 1px solid rgba(255, 179, 0, 0.4);
    border-radius: var(--radius);
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.6;
    padding: 0.9rem 1.1rem;
    margin: 0.5rem 0 0.3rem 1.6rem;
}
.sorteo-input[type="datetime-local"] { color-scheme: dark; }
.futuro-condiciones {
    margin-top: 1rem;
    background: rgba(255, 179, 0, 0.06);
    border: 1px solid rgba(255, 179, 0, 0.3);
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
}
.futuro-condiciones .fc-titulo { color: var(--gold); font-weight: 800; font-size: 0.9rem; margin-bottom: 0.6rem; }
.futuro-condiciones ul { list-style: none; margin: 0; padding: 0; }
.futuro-condiciones li { color: var(--text-gray); font-size: 0.85rem; line-height: 1.6; margin-bottom: 0.45rem; }
.futuro-condiciones strong { color: var(--text-light); }

/* Bloque de garantías en la página pública del sorteo futuro */
.garantias { border: 2px solid rgba(255, 179, 0, 0.45); background: rgba(255, 179, 0, 0.05); }
.garantias h2 { font-size: 1.3rem; text-align: center; margin-bottom: 1.5rem; }
.garantias-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 1.8rem; }
@media (max-width: 700px) { .garantias-grid { grid-template-columns: 1fr; } }
.garantia { display: flex; gap: 0.8rem; align-items: flex-start; color: #cdcdcd; font-size: 0.95rem; line-height: 1.65; }
.garantia strong { color: var(--gold); }
.garantia .g-icono { font-size: 1.6rem; line-height: 1; }
.garantia code { color: var(--gold); }

/* Página del sorteo abierto (pendiente de ejecutar) */
.badge-abierto { display: inline-block; background: rgba(255, 179, 0, 0.15); color: var(--gold); border: 1px solid rgba(255, 179, 0, 0.4); border-radius: 999px; padding: 0.25rem 0.9rem; font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.abierto-total { text-align: center; margin: 1.5rem 0; }
.abierto-total .num { font-size: clamp(2.5rem, 8vw, 4rem); font-weight: 900; color: var(--gold-bright); line-height: 1; }
.abierto-total .lbl { color: var(--text-gray); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem; }
.abierto-lista li { position: relative; }
.abierto-lista .quitar { background: none; border: 0; color: var(--text-gray); cursor: pointer; font-size: 0.9rem; margin-left: 0.4rem; padding: 0 0.2rem; }
.abierto-lista .quitar:hover { color: #FF6E6E; }

/* Bloque destacado de la lista pública: es lo primero que busca un participante */
.lista-viva { border-color: rgba(255, 179, 0, 0.35); box-shadow: 0 0 0 1px rgba(255, 179, 0, 0.08); }
.lista-viva .abierto-total { margin: 0.2rem 0 1rem; }
.lista-viva-titulo { text-align: center; font-size: 1.25rem !important; }
.buscar-nombre {
    width: 100%;
    background: var(--dark-lighter);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 0.85rem 1.4rem;
    font-family: var(--font-main);
    font-size: 1rem;
}
.buscar-nombre::placeholder { color: var(--text-gray); }
.buscar-nombre:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 179, 0, 0.15); }
.buscar-estado { font-size: 0.92rem; margin-top: 0.6rem; min-height: 1.3em; }
.buscar-estado.ok { color: #4CAF50; font-weight: 700; }
.buscar-estado.ko { color: #FF6E6E; }
.abierto-lista .coincide { color: var(--gold-bright); font-weight: 700; }
.panel-dueno { border: 1px dashed rgba(255, 179, 0, 0.4); }
.panel-dueno h2 { color: var(--gold); font-size: 1.1rem; margin-bottom: 1rem; }
.panel-dueno .sorteo-textarea { min-height: 120px; }

/* ---------- Modal auth: extras no definidos en el CSS heredado ---------- */
.modal-card { position: relative; }
.modal-close-x {
    position: absolute;
    top: 0.6rem;
    right: 0.9rem;
    background: none;
    border: 0;
    color: var(--text-gray);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
}
.modal-close-x:hover { color: var(--gold); }
.modal-btn-full { width: 100%; }

/* ==================== BLOG ==================== */
.blog-container { max-width: 1020px; margin: 0 auto; padding: 7rem 1.5rem 3rem; min-height: 60vh; }
.blog-container h1 { text-align: center; font-size: clamp(2rem, 6vw, 3.2rem); margin-bottom: 0.5rem; }
.blog-intro { text-align: center; color: var(--text-gray); margin-bottom: 2rem; font-size: 1.05rem; }
.blog-vacio { text-align: center; color: var(--text-gray); padding: 3rem 0; }
.blog-filtros { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }
.blog-filtros a { padding: 0.5rem 1.2rem; border-radius: 999px; border: 1px solid rgba(255,255,255,0.15); color: var(--text-gray); text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: var(--transition); }
.blog-filtros a:hover { border-color: rgba(255,179,0,0.5); color: var(--text-light); }
.blog-filtros a.activa { background: var(--gold); border-color: var(--gold); color: #1a1200; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.blog-card { display: flex; flex-direction: column; background: var(--dark-card); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--border-radius); overflow: hidden; text-decoration: none; transition: var(--transition); }
.blog-card:hover { border-color: rgba(255,179,0,0.5); transform: translateY(-3px); }
.blog-card-img { aspect-ratio: 16/9; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-img-placeholder { display: flex; align-items: center; justify-content: center; font-size: 3rem; background: linear-gradient(135deg, rgba(255,179,0,0.16), rgba(255,143,0,0.05)); }
.blog-card-cuerpo { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.55rem; }
.blog-card-meta { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.blog-card-fecha { color: var(--text-gray); font-size: 0.8rem; }
.blog-card h2, .blog-card h3 { color: var(--text-light); font-size: 1.08rem; line-height: 1.4; margin: 0; }
.blog-card p { color: var(--text-gray); font-size: 0.88rem; line-height: 1.6; margin: 0; }
.blog-badge { display: inline-block; border-radius: 999px; padding: 0.18rem 0.75rem; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none; background: rgba(255,179,0,0.15); color: var(--gold); border: 1px solid rgba(255,179,0,0.4); }
.blog-badge-fiabilidad { background: rgba(76,175,80,0.15); color: #4CAF50; border-color: rgba(76,175,80,0.4); }
.blog-badge-sorteos-reales { background: rgba(130,150,255,0.15); color: #9AA8FF; border-color: rgba(130,150,255,0.4); }
.blog-badge-novedades { background: rgba(255,110,110,0.15); color: #FF9E9E; border-color: rgba(255,110,110,0.4); }
.blog-badge-actualidad { background: rgba(255,213,79,0.15); color: #FFD54F; border-color: rgba(255,213,79,0.45); }
.blog-badge-historias { background: rgba(76,175,80,0.15); color: #4CAF50; border-color: rgba(76,175,80,0.4); }
.blog-paginacion { display: flex; gap: 1rem; justify-content: center; align-items: center; margin-top: 2rem; color: var(--text-gray); font-size: 0.9rem; }
.blog-paginacion a { color: var(--gold); text-decoration: none; font-weight: 700; }

/* Página de artículo */
.articulo-container { max-width: 760px; margin: 0 auto; padding: 7rem 1.5rem 3rem; }
.articulo-miga { margin-bottom: 1.2rem; }
.articulo-miga a { color: var(--gold); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.articulo-header h1 { font-size: clamp(1.7rem, 5vw, 2.6rem); line-height: 1.25; margin: 0.7rem 0 1.2rem; }
.articulo-meta { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.articulo-meta time { color: var(--text-gray); font-size: 0.88rem; }
.articulo-portada { width: 100%; border-radius: var(--border-radius); margin-bottom: 0.5rem; }
.articulo-analizado { background: rgba(130,150,255,0.08); border: 1px solid rgba(130,150,255,0.3); border-radius: var(--border-radius); padding: 0.9rem 1.2rem; margin: 1rem 0; color: var(--text-gray); font-size: 0.92rem; }
.articulo-analizado strong { color: var(--text-light); }
.articulo-analizado a { color: var(--gold); }
.articulo-cuerpo { color: var(--text-gray); font-size: 1.02rem; line-height: 1.8; margin-top: 1rem; }
.articulo-cuerpo h2 { color: var(--text-light); font-size: 1.45rem; margin: 2.2rem 0 0.8rem; padding-top: 0.4rem; border-top: 1px solid rgba(255,179,0,0.18); }
.articulo-cuerpo h3 { color: var(--text-light); font-size: 1.15rem; margin: 1.6rem 0 0.6rem; }
.articulo-cuerpo p { margin-bottom: 1.1rem; }
.articulo-cuerpo a { color: var(--gold); }
.articulo-cuerpo strong { color: var(--text-light); }
.articulo-cuerpo ul, .articulo-cuerpo ol { margin: 0 0 1.1rem 1.4rem; }
.articulo-cuerpo li { margin-bottom: 0.45rem; }
.articulo-cuerpo blockquote { border-left: 3px solid var(--gold); margin: 1.3rem 0; padding: 0.4rem 0 0.4rem 1.1rem; color: var(--text-light); font-style: italic; }
.articulo-cuerpo code { color: var(--gold); background: rgba(255,179,0,0.08); padding: 0.1rem 0.35rem; border-radius: 4px; font-size: 0.92em; }
.articulo-cuerpo img { max-width: 100%; border-radius: var(--border-radius); }
.articulo-cuerpo table { width: 100%; border-collapse: collapse; margin-bottom: 1.1rem; font-size: 0.92rem; }
.articulo-cuerpo th { color: var(--gold); text-align: left; padding: 0.5rem 0.7rem; border-bottom: 2px solid rgba(255,179,0,0.3); }
.articulo-cuerpo td { padding: 0.5rem 0.7rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.articulo-cta { background: rgba(255,179,0,0.07); border: 1px solid rgba(255,179,0,0.35); border-radius: var(--border-radius); padding: 1.8rem 1.5rem; text-align: center; margin: 2.5rem 0; }
.articulo-cta .cta-titulo { color: var(--text-light); font-size: 1.25rem; font-weight: 800; margin-bottom: 0.4rem; }
.articulo-cta p { color: var(--text-gray); margin-bottom: 1rem; }
.articulo-relacionados { margin-top: 2.5rem; }
.articulo-relacionados h2 { font-size: 1.4rem; margin-bottom: 1.2rem; }
.articulo-preview-banner { position: sticky; top: 0; z-index: 200; background: #3a2c00; border-bottom: 1px solid var(--gold); color: var(--text-light); text-align: center; padding: 0.6rem 1rem; font-size: 0.9rem; margin-top: 64px; }
.articulo-preview-banner a { color: var(--gold); font-weight: 700; }
