/*
Theme Name: XDivi Theme
Theme URI: https://xdivi.com
Author: XDivi Team
Author URI: https://xdivi.com
Description: Tema personalizado para el CMS XDivi con sistema de suscripciones
Version: 1.0
License: GPL v2 or later
Text Domain: xdivi-theme
*/

:root {
    /* Cyberpunk-inspired color palette */
    --primary-color: #00ff9f;
    --primary-dark: #00cc7f;
    --secondary-color: #ff006e;
    --accent-color: #8338ec;
    --neon-blue: #3a86ff;
    --neon-pink: #ff5e5b;
    --neon-yellow: #ffbe0b;
    --text-color: #2d3748;
    --text-light: #718096;
    --bg-color: #0a0a0f;
    --bg-light: #1a1a2e;
    --bg-card: #16213e;
    --white: #ffffff;
    --success: #00ff9f;
    --danger: #ff006e;
    --shadow-neon: 0 0 20px rgba(0, 255, 159, 0.3);
    --shadow-pink: 0 0 20px rgba(255, 0, 110, 0.3);
    --shadow-purple: 0 0 20px rgba(131, 56, 236, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--white);
    line-height: 1.6;
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-light) 50%, #0f0f23 100%);
    background-attachment: fixed;
    font-weight: 400;
    overflow-x: hidden;
    position: relative;
}

/* Animated background particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(0, 255, 159, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 0, 110, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(131, 56, 236, 0.1) 0%, transparent 50%);
    animation: particleFloat 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.8;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 255, 159, 0.15);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 255, 159, 0.3);
}


.nav-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 32px;
    width: 32px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 255, 159, 0.3);
    transition: all 0.3s ease;
}

.logo-img:hover {
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.3);
}

.logo-text {
    background: linear-gradient(135deg, var(--primary-color), var(--neon-blue), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    text-shadow: 0 0 10px rgba(0, 255, 159, 0.5);
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    transition: all 0.3s ease;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    gap: 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(0, 255, 159, 0.1);
}

.mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 255, 159, 0.3);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 8px;
    transition: width 0.3s ease;
    z-index: -1;
}

.nav-links a:hover::before {
    width: 100%;
}

.nav-links a:hover {
    color: var(--white);
    text-shadow: 0 0 10px rgba(0, 255, 159, 0.8);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 8rem 0;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-card) 50%, var(--accent-color) 100%);
    color: white;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid var(--primary-color);
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(0, 255, 159, 0.1) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(255, 0, 110, 0.1) 50%, transparent 70%);
    animation: heroShimmer 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes heroShimmer {
    0%, 100% {
        opacity: 0.3;
        transform: translateX(-100%);
    }
    50% {
        opacity: 0.8;
        transform: translateX(100%);
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.1"><circle cx="30" cy="30" r="4"/></g></g></svg>');
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--neon-blue), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 300% 300%;
    animation: slideInDown 1s ease-out, textGlow 4s ease-in-out infinite;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 20px rgba(0, 255, 159, 0.5);
}

@keyframes textGlow {
    0%, 100% {
        background-position: 0% 50%;
        filter: drop-shadow(0 0 10px rgba(0, 255, 159, 0.3));
    }
    50% {
        background-position: 100% 50%;
        filter: drop-shadow(0 0 20px rgba(255, 0, 110, 0.5));
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    animation: slideInUp 1s ease-out 0.3s both;
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pricing Cards */
.pricing-section {
    padding: 4rem 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-light));
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-neon);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    border: 1px solid rgba(0, 255, 159, 0.2);
    position: relative;
    backdrop-filter: blur(10px);
    color: var(--white);
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color), var(--secondary-color), var(--neon-blue));
    background-size: 400% 400%;
    border-radius: 22px;
    opacity: 0;
    animation: borderGlow 3s ease-in-out infinite;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.pricing-card:hover::before {
    opacity: 1;
}

@keyframes borderGlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.pricing-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-purple), 0 20px 40px rgba(0,0,0,0.3);
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, var(--bg-card), rgba(0, 255, 159, 0.1));
    box-shadow: var(--shadow-neon), var(--shadow-pink);
    transform: scale(1.05);
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: var(--shadow-neon);
    }
    50% {
        box-shadow: var(--shadow-neon), var(--shadow-pink), var(--shadow-purple);
    }
}

.plan-name {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.plan-price {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--neon-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-weight: 800;
    animation: priceShine 2s ease-in-out infinite alternate;
}

@keyframes priceShine {
    from {
        filter: drop-shadow(0 0 5px rgba(0, 255, 159, 0.3));
    }
    to {
        filter: drop-shadow(0 0 15px rgba(255, 190, 11, 0.6));
    }
}

.plan-features {
    list-style: none;
    margin: 2rem 0;
}

.plan-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    box-shadow: var(--shadow-neon);
    position: relative;
    overflow: hidden;
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--neon-blue));
    box-shadow: var(--shadow-pink), 0 8px 25px rgba(0,0,0,0.3);
    transform: translateY(-3px) scale(1.05);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-outline:hover {
    color: white;
    border-color: var(--accent-color);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-purple);
}

.btn-outline:hover::before {
    width: 100%;
}

/* Forms */
.form-container {
    max-width: 400px;
    margin: 2rem auto;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-light));
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-neon);
    border: 1px solid rgba(0, 255, 159, 0.2);
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(0, 255, 159, 0.3);
    border-radius: 10px;
    font-size: 1rem;
    background: rgba(26, 26, 46, 0.8);
    color: var(--white);
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: var(--text-light);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 255, 159, 0.1), var(--shadow-neon);
    background: rgba(26, 26, 46, 1);
}

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.dashboard-sidebar {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-light));
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 159, 0.2);
    box-shadow: var(--shadow-neon);
}

.dashboard-content {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-light));
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 159, 0.2);
    box-shadow: var(--shadow-neon);
}

.site-card {
    border: 1px solid rgba(0, 255, 159, 0.2);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--bg-card), rgba(131, 56, 236, 0.1));
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.site-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-purple);
    border-color: var(--accent-color);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Hover effects for buttons */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

/* Feature cards animation */
.feature-card {
    animation: fadeInUp 0.8s ease-out;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced pricing cards */
.pricing-card {
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(108, 99, 255, 0.1), transparent);
    transition: left 0.5s;
}

.pricing-card:hover::before {
    left: 100%;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: linear-gradient(135deg, var(--bg-card), var(--bg-light));
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem 0;
        box-shadow: 0 4px 20px rgba(0, 255, 159, 0.2);
        z-index: 1000;
        border-right: 1px solid rgba(0, 255, 159, 0.2);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 1rem 0;
        text-align: center;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .logo-img {
        height: 28px;
        width: 28px;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pricing-card {
        padding: 1.5rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .logo-img {
        height: 26px;
        width: 26px;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    .pricing-card {
        padding: 1rem;
    }
    
    .plan-price {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--neon-blue));
}

/* Selection styling */
::selection {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

/* Loading animation for sections */
.section-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-animate.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Floating elements */
.floating {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Glitch effect for special elements */
.glitch {
    position: relative;
    animation: glitch 2s linear infinite;
}

@keyframes glitch {
    2%, 64% {
        transform: translate(2px, 0) skew(0deg);
    }
    4%, 60% {
        transform: translate(-2px, 0) skew(0deg);
    }
    62% {
        transform: translate(0, 0) skew(5deg);
    }
}

/* Neon text effect */
.neon-text {
    color: var(--primary-color);
    text-shadow: 
        0 0 5px var(--primary-color),
        0 0 10px var(--primary-color),
        0 0 15px var(--primary-color),
        0 0 20px var(--primary-color);
    animation: neonPulse 2s ease-in-out infinite alternate;
}

@keyframes neonPulse {
    from {
        text-shadow: 
            0 0 5px var(--primary-color),
            0 0 10px var(--primary-color),
            0 0 15px var(--primary-color),
            0 0 20px var(--primary-color);
    }
    to {
        text-shadow: 
            0 0 2px var(--primary-color),
            0 0 5px var(--primary-color),
            0 0 8px var(--primary-color),
            0 0 12px var(--primary-color);
    }
}

/* Enhanced mobile menu animations */
@media (max-width: 768px) {
    .nav-links {
        background: linear-gradient(135deg, var(--bg-card), var(--bg-light));
        backdrop-filter: blur(15px);
        border: 1px solid rgba(0, 255, 159, 0.2);
    }
    
    .nav-links.active {
        animation: slideInRight 0.3s ease-out;
    }
    
    @keyframes slideInRight {
        from {
            transform: translateX(-100%);
            opacity: 0;
        }
        to {
            transform: translateX(0);
            opacity: 1;
        }
    }
}

/* Responsive form fixes */
.form-container { width: 100% !important; max-width: 400px; }
.form-group input[type="checkbox"] { width: auto !important; margin-right: 0.5rem; }

@media (max-width: 768px) {
.form-container { padding: 1.5rem !important; margin: 1.5rem auto !important; max-width: calc(100% - 2rem) !important; }
.form-container h2 { font-size: 1.5rem !important; margin-bottom: 1.5rem !important; }
.form-group input { padding: 0.7rem !important; font-size: 16px !important; }
.btn-block { width: 100% !important; padding: 0.8rem !important; }
body.menu-open { overflow: hidden !important; }
}

@media (max-width: 480px) {
.form-container { padding: 1.25rem !important; margin: 1rem auto !important; max-width: calc(100% - 1rem) !important; }
}