/* CSS Variables for design system */
:root {
    --bg-dark: #131e2f;
    --bg-darker: #0b111b;
    --bg-card: rgba(30, 41, 59, 0.6);
    --bg-card-hover: rgba(30, 41, 59, 0.8);
    --border-glass: rgba(255, 255, 255, 0.08);

    --primary: #3b82f6;
    /* Accent blue */
    --primary-hover: #2563eb;
    --accent: #d97706;
    /* Gold/Amber from the app admin button */
    --accent-hover: #b45309;
    --success: #10b981;
    --danger: #ef4444;

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

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

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(217, 119, 6, 0.04) 0%, transparent 40%);
    background-attachment: fixed;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(19, 30, 47, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    transition: var(--transition-smooth);
}

header.scrolled {
    padding: 10px 0;
    background-color: rgba(11, 17, 27, 0.95);
    box-shadow: var(--shadow-premium);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img-wrapper {
    background-color: #ffffff;
    padding: 6px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.logo-img {
    height: 32px;
    width: 32px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, #ffffff 60%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 32px;
}

.nav-item a {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.95rem;
    position: relative;
    padding: 4px 0;
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition-smooth);
}

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

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

.btn-cta {
    background-color: var(--primary);
    color: white;

    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#navCta {
    padding: 10px 28px;
}


.btn-cta:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.btn-cta:visited {
    color: white;
}

/* El botón CTA del menú no muestra la línea de hover */
.nav-item a.btn-cta::after {
    display: none;
}

.nav-item a.btn-cta:hover {
    color: white;
}



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

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
    padding-top: 160px;
    padding-bottom: 80px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 50%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

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

.hero-badges {
    display: flex;
    align-items: center;
    gap: 24px;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-badge svg {
    color: var(--success);
    width: 18px;
    height: 18px;
}

/* Mockup CSS */
.hero-mockup-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.device-mockup {
    width: 290px;
    height: 590px;
    background-color: #0b111b;
    border: 12px solid #1e293b;
    border-radius: 40px;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.8),
        inset 0 0 2px 2px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
}

.device-screen {
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    display: flex;
    flex-direction: column;
}

.screen-header {
    height: 80px;
    padding: 30px 15px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg-dark);
}

.screen-logo-box {
    background-color: #ffffff;
    padding: 3px;
    border-radius: 6px;
    display: flex;
    align-items: center;
}

.screen-logo {
    width: 28px;
    height: 28px;
}

.screen-username {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
}

.screen-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 4px 8px 12px;
    background-color: var(--bg-dark);
}

.screen-btn {
    background-color: #262626;
    padding: 8px 2px;
    border-radius: 6px;
    text-align: center;
    font-size: 0.55rem;
    font-weight: 700;
    color: white;
}

.screen-btn.accent {
    background-color: var(--accent);
}

.screen-btn.gray {
    background-color: #a3a3a3;
}

.screen-body {
    flex: 1;
    background-color: #ffffff;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.screen-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #1f2937;
}

.screen-stats-row {
    display: flex;
    gap: 8px;
}

.screen-stat-card {
    flex: 1;
    background-color: #f3f4f6;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

.screen-stat-val {
    font-size: 1.1rem;
    font-weight: 800;
    color: #111827;
}

.screen-stat-lbl {
    font-size: 0.55rem;
    color: #6b7280;
    margin-top: 2px;
}

.screen-login-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 10px;
}

.screen-input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.screen-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: #374151;
}

.screen-input {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.7rem;
    color: #111827;
}

.screen-submit-btn {
    background-color: var(--bg-dark);
    color: white;
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 8px;
}

.device-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 60%);
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
}

/* Stats Section */
.stats-bar {
    background-color: var(--bg-darker);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    padding: 40px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Features Section */
.features {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

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

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

.feature-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 40px 32px;
    border-radius: 16px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-card:hover {
    background-color: var(--bg-card-hover);
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: var(--shadow-premium);
}

.feature-icon-wrapper {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    width: 54px;
    height: 54px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon-wrapper.accent {
    background-color: rgba(217, 119, 6, 0.1);
    color: var(--accent);
}

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

.feature-card h3 {
    font-size: 1.25rem;
    color: white;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Interactive Preview Section */
.preview-section {
    padding: 80px 0;
    background-color: var(--bg-darker);
    border-top: 1px solid var(--border-glass);
}

.preview-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.preview-tabs {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.preview-tab {
    background-color: transparent;
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 20px;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.preview-tab.active {
    background-color: rgba(59, 130, 246, 0.1);
    border-color: var(--primary);
}

.preview-tab h3 {
    font-size: 1.15rem;
    margin-bottom: 6px;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.preview-tab.active h3 {
    color: white;
}

.preview-tab p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.preview-tab.active p {
    color: var(--text-secondary);
}

.preview-mockup-container {
    display: flex;
    justify-content: center;
}

/* CTA Section */
.download-cta {
    padding: 100px 0;
    position: relative;
}

.cta-box {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: var(--shadow-premium);
    overflow: hidden;
    position: relative;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cta-box p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 36px;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Footer */
footer {
    background-color: #0b111b;
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-glass);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 320px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links-column h4 {
    font-size: 1rem;
    color: white;
}

.footer-links-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-column a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links-column a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-glass);
    padding-top: 30px;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.social-links {
    display: flex;
    gap: 16px;
}

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

.social-link:hover {
    color: var(--text-primary);
}

/* Responsive Styles */
@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-badges {
        justify-content: center;
    }

    .preview-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .preview-tabs {
        order: 2;
    }

    .preview-mockup-container {
        order: 1;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-darker);
        flex-direction: column;
        padding: 40px;
        gap: 24px;
        transition: var(--transition-smooth);
        border-top: 1px solid var(--border-glass);
    }

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

    .menu-toggle {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.75rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}