/*!
Theme Name: vboero.com WP theme
Theme URI: https://vboero.com
Author: Víctor Boero
Author URI: https://www.linkedin.com/in/victorboero/
Description: Tema profesional de alto rendimiento para vboero.com
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vboero
Domain Path: /languages
Requires at least: 5.0
Requires PHP: 7.4
Tested up to: 6.4
*/

:root {
    --premium-gold: #C5A059;
    --premium-dark: #0A0A0A;
    --premium-light: #FDFDFD;
    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--premium-dark);
    background-color: var(--premium-light);
    transition: background-color 0.5s var(--ease-smooth);
}

body.dark {
    color: var(--premium-light);
    background-color: var(--premium-dark);
}

/* ====================================
   GRID BACKGROUND
   ==================================== */
.bg-dots {
    background-image: radial-gradient(rgba(0, 0, 0, 0.5) 2px, transparent 2px);
    background-size: 48px 48px;
}

.dark .bg-dots {
    background-image: radial-gradient(rgba(255, 255, 255, 0.3) 2px, transparent 2px);
}

/* ====================================
   REVEAL ANIMATION (Scroll)
   ==================================== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.9s var(--ease-smooth);
}

.reveal:not(.active) {
    animation: none;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    animation: revealIn 0.9s var(--ease-smooth) backwards;
}

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

/* ====================================
   MOBILE MENU
   ==================================== */
#mobile-menu {
    transform: translateY(-10px);
    pointer-events: none;
}

#mobile-menu.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0);
    pointer-events: auto;
}

/* Mobile Nav Typography & Elements */
.mobile-nav-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-container li {
    position: relative;
    padding-left: 0;
}

.mobile-nav-container a {
    display: flex;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--premium-dark);
    text-decoration: none;
    transition: all 0.3s var(--ease-smooth);
}

.dark .mobile-nav-container a {
    color: white;
}

.mobile-nav-container a::before {
    content: '//';
    color: var(--premium-gold);
    margin-right: 15px;
    font-size: 10px;
    opacity: 0.6;
}

.mobile-nav-container a:hover {
    color: var(--premium-gold);
    transform: translateX(10px);
}

#mobile-menu-toggle.active #hamburger-icon { display: none; }
#mobile-menu-toggle.active #close-icon { display: block; }
#mobile-menu-toggle.active { transform: rotate(90deg); }

/* Stagger delays */
.reveal.stagger-1 { transition-delay: 100ms; }
.reveal.stagger-2 { transition-delay: 200ms; }
.reveal.stagger-3 { transition-delay: 300ms; }

/* ====================================
   SHINE EFFECT (Buttons)
   ==================================== */
@keyframes scan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(400%); }
}

.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

.btn-shine:hover::after {
    animation: scan 0.8s linear;
}

/* ====================================
   GLASSMORPHISM
   ==================================== */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-dark {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ====================================
   UNDERLINE ANIMATION
   ==================================== */
.underline-target {
    display: inline;
    background-image: linear-gradient(var(--premium-gold), var(--premium-gold));
    background-position: 0 95%; /* Adjusted for better baseline alignment */
    background-repeat: no-repeat;
    background-size: 0 2px;
    transition: background-size 0.5s var(--ease-smooth);
}

.underline-target:hover {
    background-size: 100% 2px;
}

/* ====================================
   TECHNICAL WATERMARK SYSTEM
   ==================================== */
.watermark-technical {
    position: absolute;
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1;
    user-select: none;
    pointer-events: auto;
    cursor: default;
    z-index: 1;
    color: var(--premium-dark);
    opacity: 0.02;
    transition: color 0.6s var(--ease-smooth), opacity 0.6s var(--ease-smooth);
}

.dark .watermark-technical {
    color: white;
    opacity: 0.03;
}

.watermark-technical:hover {
    color: var(--premium-gold) !important;
    opacity: 0.5 !important;
    transform: scale(1.02) translateX(10px); /* Slight enlargement on hover for extra depth */
}

/* ====================================
   UTILITIES
   ==================================== */
.text-premium { color: var(--premium-gold); }
.bg-premium { background-color: var(--premium-gold); }
.border-premium { border-color: var(--premium-gold); }

.font-mono { font-family: 'JetBrains Mono', monospace; }

/* ====================================
   MICRO-ANIMATIONS & INTERPRETATION
   ==================================== */

/* Status Dot Pulse */
@keyframes pulse-gold {
    0% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(197, 160, 89, 0); }
    100% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0); }
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--premium-gold);
    border-radius: 50%;
    animation: pulse-gold 2s infinite;
}

/* Magnetic Button Base */
.btn-magnetic {
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    display: inline-block;
}

/* Card Technical Hover (Exquisite Refinement) */
.card-technical {
    transition: transform 0.8s var(--ease-smooth), box-shadow 0.8s var(--ease-smooth), border-color 0.8s var(--ease-smooth);
    position: relative;
    border-radius: 8px !important;
    overflow: hidden;
}

.card-technical:hover {
    transform: translateY(-6px);
    border-color: rgba(197, 160, 89, 0.2) !important;
    box-shadow: 0 30px 60px rgba(0,0,0,0.06);
}

.dark .card-technical:hover {
    box-shadow: 0 30px 60px rgba(0,0,0,0.4), 0 0 30px rgba(197, 160, 89, 0.03);
}

/* Float Animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.float-subtle {
    animation: float 6s ease-in-out infinite;
}

/* ====================================
   UTILITIES & COMPONENTS
   ==================================== */
.text-premium { color: var(--premium-gold); }
.bg-premium { background-color: var(--premium-gold); }
.border-premium { border-color: var(--premium-gold); }

.font-mono { font-family: 'JetBrains Mono', monospace; }

/* Progress Bar Grow Animation */
@keyframes bar-grow {
    from { width: 0; }
    to { width: var(--target-width); }
}

@keyframes scan-horizontal {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.bar-grow {
    width: 0;
    transition: none;
}

.reveal.active .bar-grow {
    animation: bar-grow 2s var(--ease-smooth) forwards;
}

.scan-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: scan-horizontal 2s linear infinite;
}

/* Badge Style (Technical Pill) */
.badge-premium {
    display: inline-block;
    padding: 0.375rem 1.25rem;
    border-radius: 9999px;
    background-color: rgba(197, 160, 89, 0.05);
    color: var(--premium-gold);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    border: 1px solid rgba(197, 160, 89, 0.15);
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
}

.dark .badge-premium {
    background-color: rgba(197, 160, 89, 0.1);
    border-color: rgba(197, 160, 89, 0.2);
}

/* Status Dot inside Badges */
.badge-premium .status-dot {
    width: 6px;
    height: 6px;
    display: inline-block;
    margin-right: 8px;
    margin-top: -2px;
    vertical-align: middle;
    background: var(--premium-gold);
    border-radius: 50%;
}

/* Theme Toggle Icons fix */
#theme-toggle-light-icon { display: none !important; }
#theme-toggle-dark-icon { display: block !important; }

.dark #theme-toggle-light-icon { display: block !important; }
.dark #theme-toggle-dark-icon { display: none !important; }

/* CMS CONTENT TYPOGRAPHY (Exquisite Editorial) */
.cms-content { line-height: 1.8; font-size: 1.1rem; color: #374151 !important; }
.dark .cms-content { color: #D1D5DB !important; }
.cms-content p { margin-bottom: 2rem; color: inherit; }
.cms-content h1, .cms-content h2, .cms-content h3, .cms-content h4, .cms-content h5, .cms-content h6 { 
    color: var(--premium-dark) !important; 
    font-weight: 700; 
    letter-spacing: -0.03em; 
    margin-top: 3.5rem; 
    margin-bottom: 1.5rem; 
    font-style: italic; 
    line-height: 1.2;
}
.dark .cms-content h1, .dark .cms-content h2, .dark .cms-content h3, .dark .cms-content h4, .dark .cms-content h5, .dark .cms-content h6 { 
    color: #F9FAFB !important; 
}
.cms-content h1 { font-size: 3.5rem; }
.cms-content h2 { font-size: 2.5rem; }
.cms-content h3 { font-size: 2rem; }
.cms-content h4 { font-size: 1.5rem; }
.cms-content ul { margin-bottom: 2.5rem; padding-left: 1.5rem; }
.cms-content li { 
    margin-bottom: 0.75rem; 
    display: flex;
    align-items: baseline;
    gap: 0.85rem;
    color: inherit !important; 
}
.cms-content ul li::before { 
    content: '//'; 
    color: var(--premium-gold); 
    font-family: 'JetBrains Mono', monospace; 
    font-size: 0.75rem; 
    opacity: 0.5; 
    flex-shrink: 0;
}
.cms-content blockquote { border-left: 4px solid var(--premium-gold); padding: 2rem 3rem; background: rgba(197, 160, 89, 0.03); border-radius: 0 2rem 2rem 0; margin: 4rem 0; font-style: italic; font-size: 1.4rem; }
.cms-content a { color: var(--premium-gold) !important; text-decoration: none; border-bottom: 1px solid rgba(197, 160, 89, 0.3); transition: all 0.3s var(--ease-smooth); }

/* PEERLESCENT GLASSMORPISM (Scroll to Top) */
.btn-pearlescent {
    position: fixed !important;
    bottom: 40px !important;
    left: 50% !important;
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.6s var(--ease-smooth);
    opacity: 0;
    z-index: 9999999 !important;
    transform: translateX(-50%) translateY(20px) !important;
    background: transparent !important; /* Isolated */
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.2);
}

.btn-pearlescent::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: -1;
    transition: all 0.6s var(--ease-smooth);
    opacity: 0.5; /* Transparency moved here to avoid stacking context issues */
}

.btn-pearlescent.visible {
    display: flex !important;
    opacity: 1 !important; /* Must be 1 for mix-blend-mode to see the background */
    transform: translateX(-50%) translateY(0) !important;
}

.btn-pearlescent:hover {
    transform: translateX(-50%) translateY(-10px) scale(1.1) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25) !important;
}

.btn-pearlescent:hover::before {
    background: rgba(255, 255, 255, 1);
    opacity: 1;
}

.btn-pearlescent svg {
    color: #ffffff !important;
    mix-blend-mode: difference;
    filter: contrast(1000%); /* Absolute black/white */
    transition: transform 0.6s var(--ease-smooth);
    position: relative;
    z-index: 1;
}

.btn-pearlescent:hover svg {
    transform: translateY(-3px);
}

/* ====================================
   LAZY LOADING
   ==================================== */
img[loading="lazy"] {
    background-color: rgba(0, 0, 0, 0.05);
    transition: opacity 0.3s ease-in;
}

.dark img[loading="lazy"] {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Fade in effect when loaded */
img[loading="lazy"].loaded {
    opacity: 1;
}

/* Ensure images respect container width */
img {
    max-width: 100%;
    height: auto;
}

/* Navbar Text Color - Fixed Colors by Mode */

/* Light Mode - text dark */
#navbar span.font-extrabold,
#navbar ul li a {
    color: var(--premium-dark) !important;
}

/* Dark Mode - text white */
.dark #navbar span.font-extrabold,
.dark #navbar ul li a {
    color: white !important;
}