/*
Theme Name: VMSOI Software Pro
Theme URI: https://www.vmsoi.com/
Author: ING Víctor Maldonado
Description: Una plantilla profesional y moderna diseñada para la venta de software. Con diseño responsivo..
Version: 1.3.3
Text Domain: vmsoi-software
*/

:root {
    --primary: #0062ff;
    --accent: #64ffda;
    --bg-main: #0a192f;
    --bg-card: rgba(17, 34, 64, 0.7);
    --text-main: #ccd6f6;
    --text-dim: #8892b0;
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', sans-serif;
    --orb-color: rgba(0, 98, 255, 0.08);
    --title-grad-1: #ffffff;
    --title-grad-2: #00d4ff;
    --logo-span: #ffffff;
    --card-shadow: rgba(0, 0, 0, 0.3);
    --cta-grad: linear-gradient(135deg, rgba(0, 98, 255, 0.15) 0%, rgba(10, 25, 47, 0.9) 100%);

    /* New: Low Opacity Accent for Tags/Badges */
    --accent-bg-low: rgba(100, 255, 218, 0.1);

    /* Footer & Contact Defaults (Dark) */
    --footer-bg: #020c1b;
    --contact-gradient: linear-gradient(to top, #020c1b 10%, rgba(10, 25, 47, 0) 100%);
    --footer-border: rgba(255, 255, 255, 0.1);

    /* Header Variables */
    --header-bg: #0a192f;
    --header-border: rgba(255, 255, 255, 0.1);
    --logo-color: #64ffda;
    --nav-text: #ffffff;
}

body.light-theme {
    --bg-main: #f8fafc;
    /* Fondo más limpio */
    --bg-card: rgba(255, 255, 255, 0.85);
    /* Más opaco para legibilidad */
    --text-main: #0f172a;
    /* Darker Slate-900 */
    --text-dim: #475569;
    /* Darker Slate-600 for better contrast */
    --accent: #2563eb;
    --accent-bg-low: rgba(37, 99, 235, 0.1);
    /* Blue tint for light mode */

    /* Variables de estilo claro */
    --glass-border: rgba(148, 163, 184, 0.6);
    /* Borde gris azulado visible */
    --orb-color: rgba(37, 99, 235, 0.08);
    --title-grad-1: #0f172a;
    --title-grad-2: #2563eb;
    --logo-span: #0f172a;
    --card-shadow: rgba(100, 116, 139, 0.25);
    /* Sombra más fuerte para profundidad */
    --card-hover-border: rgba(37, 99, 235, 0.8);

    /* Header Light */
    --header-bg: #ffffff;
    --header-border: rgba(203, 213, 225, 1);
    /* Borde header sólido */
    --logo-color: #2563eb;
    --nav-text: #334155;

    /* Footer & Contact Light */
    --footer-bg: #ffffff;
    --contact-gradient: linear-gradient(to top, #ffffff 10%, rgba(255, 255, 255, 0) 100%);
    --footer-border: rgba(203, 213, 225, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    letter-spacing: -0.01em;
    transition: background-color 0.3s ease, color 0.3s ease;
    background-image:
        radial-gradient(circle at 0% 0%, var(--orb-color) 0%, transparent 25%),
        radial-gradient(circle at 100% 100%, var(--orb-color) 0%, transparent 25%);
    background-attachment: fixed;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Glassmorphism Evolved */
.glass-effect {
    background: var(--bg-card);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-premium {
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 10px 40px -10px var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.glass-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.glass-premium:hover {
    border-color: var(--card-hover-border);
    transform: translateY(-12px) scale(1.01);
    box-shadow: 0 20px 60px -15px var(--card-shadow);
}

/* Typography & Buttons */
h1,
h2,
h3,
h4 {
    color: var(--text-main);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #00d4ff 100%);
    color: white !important;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px -1px rgba(0, 118, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px -2px rgba(0, 118, 255, 0.5);
    filter: brightness(1.1);
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section specific */
.hero {
    position: relative;
    overflow: hidden;
}

.decorative-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--orb-color) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    filter: blur(40px);
}

/* Post Content */
.content-wrapper {
    font-size: 1.05rem;
    line-height: 1.7;
}

.content-wrapper p {
    margin-bottom: 1.5em;
    max-width: 800px;
    /* Ancho de lectura cómodo */
}

.content-wrapper ul,
.content-wrapper ol {
    margin-bottom: 1.5em;
    padding-left: 1.5rem;
}

/* Color para viñetas y números */
.content-wrapper li::marker {
    color: var(--accent);
    font-weight: 700;
}

.content-wrapper li {
    margin-bottom: 0.5em;
    padding-left: 0.5rem;
}

/* Listas anidadas */
.content-wrapper ul ul,
.content-wrapper ol ol,
.content-wrapper ul ol,
.content-wrapper ol ul {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    border-left: 1px solid var(--glass-border);
    margin-left: 0.5rem;
    padding-left: 1.5rem;
}

.content-wrapper h2,
.content-wrapper h3 {
    margin-top: 2em;
    margin-bottom: 0.8em;
    font-weight: 700;
}

.post-layout-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 60px;
    align-items: start;
}

.vlm-landing-mode {
    display: block;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 1100px) {
    .post-layout-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }


    .container {
        width: 92%;
    }
}

/* Footer & Contact Layout */
.site-footer {
    background-color: var(--footer-bg);
    padding: 80px 0 30px;
    border-top: 1px solid var(--footer-border);
    margin-top: 100px;
    transition: background-color 0.3s ease;
}

.site-footer ul li a {
    color: var(--text-dim) !important;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.site-footer ul li a:hover {
    color: var(--accent) !important;
}

.contact-section {
    padding: 100px 0;
    background: var(--contact-gradient);
    position: relative;
    transition: background 0.3s ease;
}

/* Sidebar Taxonomy Styles */
.vlm-tech-category .tech-value a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.vlm-tech-category .tech-value a {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.05);
    /* Subtle background */
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.8rem;
    border-radius: 6px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.vlm-tech-category .tech-value a:hover {
    background: var(--accent);
    color: var(--bg-main);
    border-color: var(--accent);
    transform: translateY(-1px);
}

.vlm-tech-tags .tag-cloud a {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent-bg-low);
    color: var(--accent);
    text-decoration: none;
    font-size: 0.75rem;
    border-radius: 15px;
    margin-right: 6px;
    margin-bottom: 6px;
    transition: all 0.3s ease;
    border: 1px solid var(--accent-bg-low);
}

.vlm-tech-tags .tag-cloud a:hover {
    background: var(--accent);
    color: var(--bg-main);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(100, 255, 218, 0.3);
}

.author-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

/* Dark Mode (Default) Buttons */
.author-social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff !important;
    /* Force white text for Dark Mode */
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.author-social-link:hover {
    background: var(--accent);
    color: #0a192f !important;
    /* Dark text on bright accent (Mint) */
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(100, 255, 218, 0.3);
}

/* Light Mode Overrides */
body.light-theme .author-social-link {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-main) !important;
    /* Dark text for Light Mode */
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .author-social-link:hover {
    background: var(--accent);
    /* Blue in Light Mode */
    color: #ffffff !important;
    /* White text on Blue */
    border-color: var(--accent);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}


/* =========================================
   HEADER STYLES (Extracted from header.php)
   ========================================= */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 99999;
    /* Prioridad máxima */
    padding: 12px 0;
    transition: all 0.3s ease;
    background: var(--header-bg) !important;
    /* Fondo adaptable */
    border-bottom: 1px solid var(--header-border);
}

.site-header.scrolled {
    background: var(--bg-card) !important;
    backdrop-filter: blur(12px);
    padding: 8px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

#search-modal.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.header-right {
    display: flex !important;
    align-items: center;
    gap: 12px;
    z-index: 100000;
}

.logo a {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--logo-color) !important;
    text-decoration: none;
    white-space: nowrap;
}

.logo a span {
    color: var(--text-main) !important;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-main);
    transition: 0.3s;
}

/* Desktop Navigation */
@media (min-width: 1101px) {
    .main-navigation ul {
        display: flex;
        list-style: none;
        gap: 30px;
        margin: 0;
        padding: 0;
    }

    .main-navigation ul li a {
        color: var(--nav-text);
        text-decoration: none;
        font-size: 0.95rem;
        font-weight: 500;
        transition: color 0.3s;
    }

    .main-navigation ul li a:hover {
        color: var(--accent);
    }

    .mobile-contact-btn {
        display: none !important;
    }
}

/* Mobile Navigation */
@media (max-width: 1100px) {
    .mobile-menu-toggle {
        display: flex !important;
    }

    .logo a {
        font-size: 1.1rem;
    }

    .header-action-btn {
        display: none !important;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-main);
        display: flex !important;
        flex-direction: column;
        padding: 80px 0 40px;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 99998;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
        border-left: 1px solid var(--glass-border);
    }

    .main-navigation.active {
        right: 0;
    }

    .main-navigation ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .main-navigation ul li {
        text-align: left;
        border-bottom: 1px solid var(--glass-border);
        width: 100%;
    }

    .main-navigation ul li a {
        font-size: 1rem;
        color: var(--text-main);
        text-decoration: none;
        display: block;
        padding: 20px 25px;
    }

    .mobile-contact-btn {
        display: block !important;
        margin: 30px 20px 0;
        text-align: center;
    }

    .main-menu-list {
        display: flex !important;
    }
}

/* Header placeholder (Styles are in header.php but referenced here for completeness if needed) */
/* The header.php contains its own <style> block now, so we keep this style.css for global body and content. */