/*
Theme Name: NeoStore Professional
Description: Tema premium de WordPress y WooCommerce con IA integrada, PWA, Analytics avanzado, SEO dominante y performance extremo. Desarrollado por Edgar Felipe Galvis Nieto - EFGN Soluciones Digitales y Tecnológicas.
Author: Edgar Felipe Galvis Nieto
Author URI: https://wa.me/573247047694
Version: 3.0.0
License: GPL v2 or later
Text Domain: neostore
Tags: e-commerce, business, modern, futuristic, responsive, woocommerce, multilingual, enterprise
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
*/

/* Variables CSS Profesionales */
:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #10b981;
    --accent: #f59e0b;
    --dark: #0f172a;
    --gray-dark: #1e293b;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --border-radius: 8px;
    --border-radius-lg: 12px;
}

/* Reset Avanzado */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* Container Avanzado */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

/* Header Futurista Completo */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--gray-light);
    z-index: 9999;
    transition: var(--transition);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

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

.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-branding h1 a {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: var(--transition);
}

.site-branding h1 a:hover {
    color: var(--primary-dark);
}

/* Navegación Cyber */
.main-navigation {
    position: relative;
}

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

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: var(--gray-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

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

.nav-menu a:hover::after {
    width: 80%;
}

/* Content Principal */
.site-content {
    padding-top: 120px;
    min-height: 100vh;
}

.site-main {
    padding: 4rem 0;
}

/* Posts Grid Futurista */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.post-card {
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-cyber);
    filter: brightness(0.8) contrast(1.2);
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.1);
    filter: brightness(1) contrast(1.3);
}

.post-content {
    padding: 2rem;
    position: relative;
}

.post-card h2 {
    margin-bottom: 1rem;
}

.post-card h2 a {
    color: var(--dark);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    transition: var(--transition);
}

.post-card h2 a:hover {
    color: var(--primary);
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    margin: 1rem 0;
    font-size: 0.875rem;
    color: var(--gray);
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-excerpt {
    color: var(--gray-dark);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more {
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.read-more:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Single Post/Page Futurista */
.single-post, .single-page {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: var(--border-radius-cyber);
    padding: 4rem;
    margin: 2rem auto;
    max-width: 900px;
    position: relative;
    box-shadow: var(--cyber-shadow);
}

.single-post::before, .single-page::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-neon);
    border-radius: var(--border-radius-cyber);
    z-index: -1;
    opacity: 0.3;
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.post-header h1, .page-header h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 2rem;
    text-align: center;
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2;
}

.post-content, .page-content {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.post-content h2, .page-content h2 {
    color: var(--neon-blue);
    font-size: 2rem;
    margin: 3rem 0 1.5rem;
    position: relative;
    padding-left: 2rem;
}

.post-content h2::before, .page-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background: var(--gradient-neon);
    border-radius: 2px;
}

.post-content p, .page-content p {
    margin-bottom: 2rem;
    text-align: justify;
}

.post-content a, .page-content a {
    color: var(--neon-blue);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition-cyber);
}

.post-content a:hover, .page-content a:hover {
    border-bottom-color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(0, 245, 255, 0.8);
}

/* No Posts Futurista */
.no-posts {
    text-align: center;
    padding: 6rem 3rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: var(--border-radius-cyber);
    margin: 3rem auto;
    max-width: 700px;
    position: relative;
}

.no-posts::before {
    content: '🚀';
    font-size: 4rem;
    display: block;
    margin-bottom: 2rem;
    animation: float 3s ease-in-out infinite;
}

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

.no-posts h2 {
    color: var(--neon-blue);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.no-posts p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Footer Futurista Completo */
.site-footer {
    background: var(--gray-dark);
    color: var(--gray-light);
    padding: 4rem 0 2rem;
    margin-top: 6rem;
}

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

.footer-section {
    padding: 0;
}

.footer-section h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-info p {
    margin: 1rem 0;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

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

.footer-info a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: rgba(255, 255, 255, 0.6);
}

/* Buttons Futuristas Avanzados */
.btn, .button {
    background: var(--gradient-neon);
    color: var(--cyber-dark);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    transition: var(--transition-cyber);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    font-family: var(--font-cyber);
}

.btn::before, .button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition-cyber);
}

.btn:hover::before, .button:hover::before {
    left: 100%;
}

.btn:hover, .button:hover {
    transform: translateY(-5px);
    box-shadow: var(--cyber-shadow);
    color: var(--cyber-dark);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--neon-blue);
    color: var(--neon-blue);
}

.btn-secondary:hover {
    background: var(--neon-blue);
    color: var(--cyber-dark);
}

/* Pagination Futurista */
.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 4rem 0;
}

.page-numbers a,
.page-numbers span {
    padding: 1rem 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: var(--border-radius-cyber);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-cyber);
    position: relative;
}

.page-numbers a:hover,
.page-numbers .current {
    background: var(--gradient-neon);
    border-color: var(--neon-blue);
    color: var(--cyber-dark);
    transform: translateY(-3px);
    box-shadow: var(--cyber-shadow);
}

/* WordPress Core Avanzado */
.alignwide {
    margin-left: auto;
    margin-right: auto;
    clear: both;
    max-width: 1200px;
}

.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.wp-caption {
    max-width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-cyber);
    padding: 1rem;
    margin: 1rem 0;
}

.wp-caption-text {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
    font-style: italic;
}

/* Scrollbar Futurista */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--cyber-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-neon);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-blue);
}

/* Selection Futurista */
::selection {
    background: var(--neon-blue);
    color: var(--cyber-dark);
}

::-moz-selection {
    background: var(--neon-blue);
    color: var(--cyber-dark);
}

/* Responsive Avanzado */
@media (max-width: 1200px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem 0;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .nav-menu a {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .site-branding h1 a {
        font-size: 1.5rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .single-post, .single-page {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .post-header h1, .page-header h1 {
        font-size: 2rem;
    }
    
    .post-content, .page-content {
        font-size: 1.1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .site-content {
        padding-top: 140px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .post-card {
        margin: 0 0.5rem;
    }
    
    .single-post, .single-page {
        padding: 1.5rem 1rem;
    }
    
    .post-header h1, .page-header h1 {
        font-size: 1.8rem;
    }
    
    .nav-menu {
        gap: 0.5rem;
    }
    
    .nav-menu a {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* Animaciones Avanzadas */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Aplicar animaciones */
.post-card {
    animation: slideInUp 0.6s ease-out;
}

.single-post, .single-page {
    animation: fadeIn 0.8s ease-out;
}

.site-header {
    animation: slideInUp 0.5s ease-out;
}

/* Print Styles */
@media print {
    *, *::before, *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .site-header, .site-footer {
        display: none;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .single-post, .single-page {
        background: white !important;
        border: none !important;
        box-shadow: none !important;
    }
}