/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Vibrant Color Palette */
    --primary-purple: #8B5CF6;
    --primary-blue: #3B82F6;
    --primary-pink: #EC4899;
    --primary-orange: #F59E0B;
    --primary-teal: #14B8A6;
    --primary-green: #10B981;

    /* Gradients */
    --gradient-main: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-hero: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-streaming: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-software: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --gradient-tramites: linear-gradient(135deg, #fa709a 0%, #fee140 100%);

    /* Neutral Colors */
    --dark-bg: #0f172a;
    --dark-card: #1e293b;
    --dark-hover: #334155;
    --light-text: #f1f5f9;
    --gray-text: #cbd5e1;
    --border-color: #334155;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.3);

    /* Header Background */
    --header-bg: rgba(15, 23, 42, 0.95);
}

body.light-mode {
    --dark-bg: #f8fafc;
    --dark-card: #ffffff;
    --dark-hover: #e2e8f0;
    --light-text: #0f172a;
    --gray-text: #475569;
    --border-color: #cbd5e1;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.15);

    /* Light Mode Header */
    --header-bg: rgba(255, 255, 255, 0.95);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Header */
.header {
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 800;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-link {
    color: var(--gray-text);
    text-decoration: none;
    font-weight: 600;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--light-text);
    background: var(--dark-hover);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}



.nav-link:hover::after {
    width: 80%;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
    margin-left: auto;
    color: var(--light-text);
    z-index: 1002;
    margin-right: var(--spacing-sm);
}

.theme-toggle:hover {
    background: var(--dark-hover);
    transform: rotate(15deg);
}

.theme-icon {
    font-size: 1.5rem;
    line-height: 1;
}

/* Hamburger Menu Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--light-text);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.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 Section */
.hero {
    background: var(--gradient-hero);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.95;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections */
.section {
    padding: 2.5rem 0;
}

.section-alt {
    background: rgba(30, 41, 59, 0.5);
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.section-icon {
    font-size: 2rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    max-width: 100%;
}

/* Product Cards */
.product-card {
    background: var(--dark-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: var(--primary-purple);
}

.product-header {
    padding: 0.75rem;
    position: relative;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.streaming-disney {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.streaming-hbo {
    background: linear-gradient(135deg, #581c87 0%, #a855f7 100%);
}

.streaming-netflix {
    background: linear-gradient(135deg, #7f1d1d 0%, #dc2626 100%);
}

.streaming-prime {
    background: linear-gradient(135deg, #00a8e1 0%, #0073e6 100%);
}

.streaming-crunchyroll {
    background: linear-gradient(135deg, #f47521 0%, #fab818 100%);
}

.streaming-paramount {
    background: linear-gradient(135deg, #0064ff 0%, #00a0ff 100%);
}

.streaming-chatgpt {
    background: linear-gradient(135deg, #0d5c44 0%, #10a37f 100%);
}

.software-security {
    background: linear-gradient(135deg, #065f46 0%, #10b981 100%);
}

.software-office {
    background: linear-gradient(135deg, #c2410c 0%, #f97316 100%);
}

.software-adobe {
    background: linear-gradient(135deg, #991b1b 0%, #ef4444 100%);
}

.tramites-fiscal {
    background: linear-gradient(135deg, #0e7490 0%, #06b6d4 100%);
}

.tramites-acta {
    background: linear-gradient(135deg, #7c2d12 0%, #ea580c 100%);
}

.tramites-infonavit {
    background: linear-gradient(135deg, #4338ca 0%, #6366f1 100%);
}

.product-name {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.product-badge {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-body {
    padding: 0.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-description {
    color: var(--gray-text);
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.product-price {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.product-price span {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.7;
}

/* Pricing Options */
.pricing-options {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    margin-bottom: 0.5rem;
}

.pricing-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-xs) 0;
}

.pricing-option:not(:last-child) {
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    margin-bottom: var(--spacing-xs);
    padding-bottom: var(--spacing-sm);
}

.option-label {
    color: var(--gray-text);
    font-weight: 600;
    font-size: 0.95rem;
}

.option-price {
    font-size: 1.25rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-features {
    list-style: none;
    margin-bottom: 0.5rem;
    flex-grow: 1;
}

.product-features li {
    padding: 0.25rem 0;
    color: var(--gray-text);
    font-size: 0.8rem;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    border: none;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-primary:active {
    transform: scale(0.98);
}

/* Coming Soon */
.coming-soon {
    text-align: center;
    padding: var(--spacing-2xl);
    background: var(--dark-card);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border-color);
}

.coming-soon-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.coming-soon h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.coming-soon p {
    color: var(--gray-text);
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    margin-top: var(--spacing-2xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section p {
    color: var(--gray-text);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    color: var(--gray-text);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
        gap: 0;
    }

    .menu-toggle {
        display: flex;
        order: 2;
    }

    .logo {
        order: 1;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: var(--dark-bg);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 1rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
        z-index: 1000;
        overflow-y: auto;
    }

    .nav.active {
        right: 0;
    }

    .nav-link {
        padding: 1rem;
        border-radius: var(--radius-md);
        text-align: left;
        font-size: 1.1rem;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 1.5rem;
        flex-direction: column;
        margin-bottom: 1.5rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-card {
        margin-bottom: 0;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    /* Offset for sticky header */
}

/* Selection */
::selection {
    background: var(--primary-purple);
    color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-main);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-purple);
}