/*
Theme Name: KN Finca - MI FINCA EXPRESS
Theme URI: https://mifincaexpress.com
Author: MI FINCA EXPRESS Team
Author URI: https://mifincaexpress.com
Description: Tema futurista de alta calidad para MI FINCA EXPRESS - Bodegón con delivery
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kn-finca
Tags: futuristic, modern, delivery, e-commerce, woocommerce, liquor-store, yellow
*/

/* ==========================================================================
   PALETA DE COLORES FUTURISTA - AMARILLO
   ========================================================================== */

:root {
    /* Amarillos Principales */
    --primary-yellow: #FFD700;
    --golden-yellow: #FFC107;
    --bright-yellow: #FFEB3B;
    --dark-yellow: #F57F17;
    
    /* Gradientes Amarillos */
    --gradient-gold: linear-gradient(135deg, #FFD700 0%, #FFA000 100%);
    --gradient-yellow: linear-gradient(135deg, #FFEB3B 0%, #FFC107 100%);
    --gradient-sunset: linear-gradient(135deg, #FF6B6B 0%, #FFD700 50%, #4ECDC4 100%);
    
    /* Colores Complementarios */
    --dark-bg: #0A0E27;
    --darker-bg: #050814;
    --card-bg: #1A1F3A;
    --accent-cyan: #00F5FF;
    --accent-pink: #FF006E;
    --accent-purple: #8B5CF6;
    
    /* Neón */
    --neon-yellow: #FFD700;
    --neon-cyan: #00F5FF;
    --neon-pink: #FF006E;
    
    /* Texto */
    --text-primary: #FFFFFF;
    --text-secondary: #B8C5D6;
    --text-muted: #6B7280;
    
    /* Sombras Neón */
    --shadow-yellow: 0 0 20px rgba(255, 215, 0, 0.5);
    --shadow-yellow-lg: 0 0 40px rgba(255, 215, 0, 0.6);
    --shadow-cyan: 0 0 20px rgba(0, 245, 255, 0.5);
    --shadow-pink: 0 0 20px rgba(255, 0, 110, 0.5);
}

/* ==========================================================================
   RESET Y BASE
   ========================================================================== */

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

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Fondo Animado con Partículas */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 245, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 0, 110, 0.05) 0%, transparent 50%);
    animation: backgroundPulse 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Grid de Fondo Futurista */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 215, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 215, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* ==========================================================================
   INTRO SPLASH SCREEN FUTURISTA
   ========================================================================== */

#kn-finca-intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--darker-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    overflow: hidden;
}

/* Efecto de Rayos de Luz */
#kn-finca-intro::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(255, 215, 0, 0.1) 45deg,
        transparent 90deg,
        transparent 180deg,
        rgba(0, 245, 255, 0.1) 225deg,
        transparent 270deg
    );
    transform: translate(-50%, -50%);
    animation: rotateRays 20s linear infinite;
}

@keyframes rotateRays {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Logo Intro */
.intro-logo {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: logoEntrance 2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: scale(0.5) rotateY(180deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateY(0deg);
    }
}

.intro-logo h1 {
    font-size: 72px;
    font-weight: 900;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: var(--shadow-yellow-lg);
    letter-spacing: 4px;
    margin-bottom: 20px;
    animation: textGlow 2s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(255, 215, 0, 1));
    }
}

.intro-tagline {
    font-size: 24px;
    color: var(--accent-cyan);
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeInUp 1.5s ease-out 0.5s both;
}

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

/* Loader Futurista */
.intro-loader {
    margin-top: 50px;
    position: relative;
    width: 200px;
    height: 4px;
    background: rgba(255, 215, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.intro-loader::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-gold);
    animation: loaderSlide 2s ease-in-out infinite;
    box-shadow: var(--shadow-yellow);
}

@keyframes loaderSlide {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Click to Enter */
.intro-click-text {
    position: absolute;
    bottom: 50px;
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ==========================================================================
   HEADER FUTURISTA
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(10, 14, 39, 0.98);
    box-shadow: 0 10px 60px rgba(255, 215, 0, 0.2);
}

/* Top Bar */
.header-top-bar {
    background: var(--gradient-gold);
    padding: 8px 0;
    font-size: 13px;
    color: var(--darker-bg);
    font-weight: 600;
}

.top-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-info {
    display: flex;
    gap: 30px;
}

.top-bar-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Main Header */
.header-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.site-logo {
    position: relative;
}

.site-logo h1 {
    font-size: 36px;
    font-weight: 900;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    margin: 0;
    animation: logoFloat 3s ease-in-out infinite;
}

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

.site-logo h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.site-logo:hover h1::after {
    transform: scaleX(1);
}

/* Navigation */
.main-navigation {
    display: flex;
    gap: 40px;
    align-items: center;
}

.main-navigation a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 10px 0;
    transition: all 0.3s ease;
}

.main-navigation a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.main-navigation a:hover {
    color: var(--primary-yellow);
}

.main-navigation a:hover::before {
    width: 100%;
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Search Button */
.search-toggle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid var(--primary-yellow);
    color: var(--primary-yellow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.search-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary-yellow);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.search-toggle:hover::before {
    width: 100%;
    height: 100%;
}

.search-toggle:hover {
    color: var(--darker-bg);
    box-shadow: var(--shadow-yellow);
    transform: rotate(90deg);
}

.search-toggle span {
    position: relative;
    z-index: 1;
    font-size: 20px;
}

/* Cart Button */
.cart-button {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--gradient-gold);
    border: none;
    color: var(--darker-bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-yellow);
}

.cart-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-yellow-lg);
}

.cart-button span {
    font-size: 24px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: var(--accent-pink);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    animation: cartBounce 0.5s ease;
    box-shadow: var(--shadow-pink);
}

@keyframes cartBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ==========================================================================
   HERO SECTION FUTURISTA
   ========================================================================== */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 20px 60px;
}

/* Animated Background */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle, rgba(255, 215, 0, 0.15) 1px, transparent 1px),
        radial-gradient(circle, rgba(0, 245, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px, 80px 80px;
    background-position: 0 0, 40px 40px;
    animation: moveStars 60s linear infinite;
}

@keyframes moveStars {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.hero-title {
    font-size: 80px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 30px;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: heroTitleEntrance 1s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-shadow: var(--shadow-yellow-lg);
}

@keyframes heroTitleEntrance {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-subtitle {
    font-size: 28px;
    color: var(--accent-cyan);
    font-weight: 300;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 50px;
    line-height: 1.8;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Hero CTA Buttons */
.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.btn-primary {
    padding: 18px 40px;
    background: var(--gradient-gold);
    color: var(--darker-bg);
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-yellow);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-yellow-lg);
}

.btn-secondary {
    padding: 18px 40px;
    background: transparent;
    color: var(--primary-yellow);
    border: 2px solid var(--primary-yellow);
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-gold);
    transition: all 0.4s ease;
    z-index: -1;
}

.btn-secondary:hover::before {
    left: 0;
}

.btn-secondary:hover {
    color: var(--darker-bg);
    border-color: var(--primary-yellow);
    box-shadow: var(--shadow-yellow);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .intro-logo h1 {
        font-size: 48px;
    }
    
    .intro-tagline {
        font-size: 16px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .main-navigation {
        display: none;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
}
