/* ==========================================================================
   SportPlayers360 Premium Landing Page Stylesheet (Vanilla CSS - Light Obsidian Theme)
   ========================================================================== */

:root {
    /* Color Palette (Clean Slate-White light mode with Obsidian details) */
    --bg-dark: #f8fafc;       /* Slate 50 background */
    --bg-card: rgba(255, 255, 255, 0.75); /* Frosted white card background */
    --border-color: rgba(15, 23, 42, 0.06); /* Ultra-fine dark slate border */
    --border-hover: rgba(15, 23, 42, 0.12);
    
    /* Brand Accent Colors */
    --primary: #2563eb;      /* Cobalt Blue */
    --secondary: #10b981;    /* Emerald Green */
    --accent: #6366f1;       /* Indigo */
    --accent-pink: #ec4899;  /* Pink */
    
    /* Gradients */
    --grad-primary: linear-gradient(90deg, #10b981 0%, #2563eb 100%);
    --grad-button: linear-gradient(135deg, #10b981 0%, #2563eb 100%);
    --grad-hero: linear-gradient(135deg, #2563eb 0%, #6366f1 100%);
    
    /* Text colors (Dark slate for maximum readability & contrast) */
    --text-white: #0f172a;    /* Title text on light background */
    --text-light: #1e293b;    /* Body text on light background */
    --text-muted: #475569;    /* Muted text on light background */
    --text-dim: #64748b;      /* Dimmed text on light background */
    
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    background-image: radial-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Ambient Glow Effects (multiply blend on light bg for premium look) */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.22;
    mix-blend-mode: multiply;
}

.glow-1 {
    top: 5%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, transparent 70%);
}

.glow-2 {
    top: 40%;
    right: -10%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.4) 0%, transparent 70%);
}

/* Navigation Header (Frosted Glass) */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(20px);
    background: rgba(248, 250, 252, 0.8);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    color: var(--text-white);
    text-decoration: none;
    text-transform: uppercase;
}

.logo-accent {
    color: var(--secondary);
}

.nav {
    display: flex;
    gap: 2.25rem;
}

.nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav a:hover {
    color: var(--text-white);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.65rem 1.35rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-align: center;
}

.btn-text {
    color: var(--text-muted);
}

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

/* Header Obsidian Login Button style */
.nav-actions .btn-text {
    background-color: #0f172a;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
    padding: 0.55rem 1.15rem;
    border-radius: 8px;
}

.nav-actions .btn-text:hover {
    background-color: #1e293b;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.25);
    transform: translateY(-1.5px);
}

.btn-primary-nav {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-primary-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
    background-color: #1d4ed8;
}

.btn-gradient {
    background: var(--grad-button);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
    opacity: 0.95;
}

.btn-outline {
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-white);
}

.btn-outline:hover {
    background: rgba(15, 23, 42, 0.03);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.btn-large {
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
    border-radius: 10px;
}

.btn-full {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 160px 0 100px 0;
    position: relative;
    z-index: 10;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    text-align: left;
}

.badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 30px;
    padding: 0.35rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: #0f172a;
}

.text-gradient {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.stat-card {
    text-align: left;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-white);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

/* Mockup Window Styling (Hybrid Premium Mockup) */
.hero-visual {
    display: flex;
    justify-content: center;
}

.mockup-window {
    width: 100%;
    max-width: 520px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.15);
}

.mockup-header {
    height: 42px;
    background: #f1f5f9;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

.mockup-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}

.mockup-header .red { background-color: #ef4444; }
.mockup-header .yellow { background-color: #f59e0b; }
.mockup-header .green { background-color: #10b981; }

.mockup-url {
    margin: 0 auto;
    font-size: 0.7rem;
    color: #64748b;
    font-family: monospace;
    background: #ffffff;
    padding: 0.2rem 1.5rem;
    border-radius: 4px;
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.mockup-body {
    display: grid;
    grid-template-columns: 140px 1fr;
    height: 320px;
    background: #ffffff;
}

.mockup-sidebar {
    background: #0f172a; /* Obsidian deep dark sidebar */
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0.75rem;
}

.sidebar-logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 0.85rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    padding-left: 0.5rem;
}

.sidebar-item {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5); /* Explicit white/grey text */
    padding: 0.4rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.4rem;
}

.sidebar-item.active {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa; /* Vibrant blue for active item */
    border-left: 2px solid #3b82f6;
}

.mockup-content {
    background: #f8fafc; /* Content area light background */
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: hidden;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.content-header h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a; /* Explicit dark slate */
}

.user-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.widget-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.widget-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 10px;
    padding: 0.75rem;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.02);
}

.glow-border {
    border-color: rgba(16, 185, 129, 0.3);
}

.widget-label {
    font-size: 0.6rem;
    color: var(--text-dim);
    font-weight: 600;
    text-transform: uppercase;
}

.widget-value {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a; /* Explicit dark slate */
    margin: 0.15rem 0;
}

.widget-bar {
    height: 4px;
    background: rgba(0,0,0,0.05);
    border-radius: 10px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--secondary);
    border-radius: 10px;
}

.widget-sub {
    font-size: 0.55rem;
    color: var(--secondary);
    font-weight: 700;
}

.attendance-table-mock {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 10px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.02);
}

.table-header-mock {
    font-size: 0.65rem;
    font-weight: 700;
    color: #475569; /* Muted dark slate */
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    padding-bottom: 0.3rem;
    margin-bottom: 0.2rem;
}

.table-row-mock {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.6rem;
    color: #475569;
}

.status-mock {
    padding: 0.1rem 0.4rem;
    border-radius: 20px;
    font-size: 0.55rem;
    font-weight: 700;
}

.status-mock.present {
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary);
}

.status-mock.absent {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Features Section */
.features-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 10;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 1rem;
    color: #0f172a;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.02), 0 2px 4px -1px rgba(15, 23, 42, 0.01);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.05), 0 10px 10px -5px rgba(15, 23, 42, 0.02);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.feature-description {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Pricing Section */
.pricing-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 10;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.02);
}

.pricing-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.05);
    transform: translateY(-2px);
}

.premium-card {
    border: 2px solid var(--primary);
    box-shadow: 0 20px 40px -15px rgba(37, 99, 235, 0.1);
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
}

.pricing-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.price {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
    margin: 1rem 0 0.25rem 0;
}

.price-desc {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 600;
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.pricing-features li {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Contact / CTA Box */
.contact-section {
    padding: 80px 0 120px 0;
    position: relative;
    z-index: 10;
}

.cta-box {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, rgba(16, 185, 129, 0.03) 100%);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 4rem 2rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05);
}

.cta-box h2 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #0f172a;
}

.cta-box p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto 2.5rem auto;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
}

/* Footer (Dark Obsidian footer for visual anchoring) */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3.5rem 0;
    position: relative;
    z-index: 10;
    background: #0f172a; /* Deep obsidian background */
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 900;
    color: #ffffff; /* Explicitly white logo */
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-copy {
    font-size: 0.8rem;
    color: #94a3b8; /* Light muted copy */
}

.footer-support {
    font-size: 0.8rem;
    color: #cbd5e1; /* Light support link */
}

.footer-support a {
    color: #60a5fa; /* Light sky blue link */
    text-decoration: none;
    font-weight: 600;
}

.footer-support a:hover {
    text-decoration: underline;
}

.footer-links {
    display: flex;
    gap: 1.25rem;
    font-size: 0.8rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 150ms ease;
}

.footer-links a:hover {
    color: #60a5fa;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        text-align: center;
    }
    
    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-title, .hero-subtitle {
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .stats-grid {
        width: 100%;
        max-width: 550px;
        margin: 0 auto;
    }
    
    .hero-visual {
        width: 100%;
        max-width: 550px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .header-container {
        height: 70px;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .nav {
        display: none;
    }
    
    .nav-actions .btn-primary-nav {
        display: none;
    }
    
    .nav-actions .btn-text {
        background-color: #0f172a;
        color: #ffffff !important;
        padding: 0.45rem 0.85rem;
        border-radius: 8px;
        font-size: 0.75rem;
        font-weight: 700;
        box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
        white-space: nowrap;
    }
    
    .nav-actions .btn-text:hover {
        background-color: #1e293b;
        transform: translateY(-1px);
        box-shadow: 0 6px 14px rgba(15, 23, 42, 0.3);
    }
    
    .hero {
        padding: 120px 0 60px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
        padding: 0 1rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 3rem;
        padding: 0 1rem;
    }
    
    .features-section, .pricing-section, .contact-section {
        padding: 60px 0;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        padding: 0 0.5rem;
    }
    
    .cta-box {
        padding: 3rem 1.5rem;
    }
    
    .cta-box h2 {
        font-size: 1.8rem;
    }
    
    .cta-box p {
        font-size: 0.95rem;
    }
    
    .cta-actions {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1.25rem;
    }
    
    .hero-title {
        font-size: 2.1rem;
        line-height: 1.2;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 0.85rem;
        width: 100%;
        max-width: 320px;
    }
    
    .btn-large {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding-top: 1.5rem;
        max-width: 320px;
        border-top: 1px solid var(--border-color);
        margin: 0 auto;
    }
    
    .stat-card {
        text-align: center;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    /* Adaptar Mockup del Dashboard en pantallas móviles */
    .mockup-body {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 280px;
    }
    
    .mockup-sidebar {
        display: none;
    }
    
    .mockup-content {
        padding: 1rem;
        gap: 0.85rem;
    }
    
    .widget-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .pricing-card {
        padding: 2.5rem 1.5rem;
    }
    
    .price {
        font-size: 2.25rem;
    }
}
