/*
Theme Name: KN Finca - La Finca Bodegón
Theme URI: https://bodegon.local
Author: La Finca Bodegón Team
Author URI: https://bodegon.local
Description: Tema estilo bar americano para La Finca Bodegón - Licores, snacks y productos de despensa con delivery
Version: 1.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: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, e-commerce, woocommerce, bar, liquor-store
*/

/* ==========================================================================
   Intro Splash Screen
   ========================================================================== */

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

#kn-finca-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(245, 87, 108, 0.15) 0%, transparent 50%);
    animation: gradientShift 10s ease-in-out infinite;
}

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

@keyframes woodGrain {
    0% { transform: translateX(0); }
    100% { transform: translateX(100px); }
}

.intro-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.intro-logo {
    font-size: 5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 900;
    filter: drop-shadow(0 0 30px rgba(102, 126, 234, 0.6));
    margin-bottom: 1rem;
    animation: glowPulse 2s ease-in-out infinite;
}

.intro-icon-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.intro-icon {
    font-size: 5rem;
    animation: bounceIn 1s ease-out 0.3s both;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.5));
}

.intro-icon-small {
    font-size: 3rem;
    opacity: 0.7;
    animation: bounceIn 1s ease-out 0.5s both;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

.intro-tagline {
    font-size: 1.5rem;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-out 0.5s both;
    font-weight: 700;
}

.intro-divider {
    width: 200px;
    height: 4px;
    background: var(--primary-gradient);
    margin: 2rem auto;
    animation: expandWidth 1s ease-out 0.7s both;
    box-shadow: var(--shadow-neon);
    border-radius: var(--radius-full);
}

.intro-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: 2px;
    animation: fadeIn 1s ease-out 1s both;
    font-weight: 500;
}

.intro-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    animation: fadeIn 1s ease-out 1.2s both;
}

.intro-feature-item {
    color: var(--text-primary);
    font-size: 0.95rem;
    letter-spacing: 1px;
    padding: 0.75rem 1.5rem;
    background: rgba(102, 126, 234, 0.2);
    border-radius: var(--radius-full);
    border: 2px solid rgba(102, 126, 234, 0.3);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    font-weight: 600;
}

.intro-feature-item:hover {
    background: rgba(102, 126, 234, 0.3);
    border-color: var(--primary-purple);
    transform: translateY(-2px);
    box-shadow: var(--shadow-neon);
}

.intro-skip {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 1px;
    animation: fadeIn 1s ease-out 1.5s both, blink 2s ease-in-out 2s infinite;
    text-transform: uppercase;
    font-weight: 500;
}

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

/* Fade out animation */
#kn-finca-intro.fade-out {
    animation: fadeOutIntro 1s ease-out forwards;
}

@keyframes fadeOutIntro {
    to {
        opacity: 0;
        transform: scale(1.1);
    }
}

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

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

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(-50px);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes glowPulse {
    0%, 100% {
        text-shadow: 
            0 0 20px rgba(212, 175, 55, 0.5),
            0 0 40px rgba(212, 175, 55, 0.3),
            3px 3px 6px rgba(0, 0, 0, 0.8);
    }
    50% {
        text-shadow: 
            0 0 30px rgba(212, 175, 55, 0.8),
            0 0 60px rgba(212, 175, 55, 0.5),
            3px 3px 6px rgba(0, 0, 0, 0.8);
    }
}

@keyframes expandWidth {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 200px;
        opacity: 1;
    }
}

/* Responsive intro */
@media (max-width: 768px) {
    .intro-logo {
        font-size: 3rem;
        letter-spacing: 4px;
    }

    .intro-icon {
        font-size: 4rem;
    }

    .intro-icon-small {
        font-size: 2.5rem;
    }

    .intro-icon-group {
        gap: 1rem;
    }

    .intro-tagline {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }

    .intro-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .intro-divider {
        width: 150px;
    }

    .intro-features {
        gap: 1rem;
        padding: 0 1rem;
    }

    .intro-feature-item {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .intro-logo {
        font-size: 2.5rem;
        letter-spacing: 3px;
    }

    .intro-icon {
        font-size: 3rem;
    }

    .intro-icon-small {
        font-size: 2rem;
    }

    .intro-icon-group {
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .intro-tagline {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .intro-subtitle {
        font-size: 0.9rem;
    }

    .intro-features {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }

    .intro-feature-item {
        font-size: 0.8rem;
    }

    .intro-skip {
        font-size: 0.8rem;
        bottom: 2rem;
    }
}

/* ==========================================================================
   Reset y Base
   ========================================================================== */

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

:root {
    /* Colores Modernos y Tecnológicos - Delivery App */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    
    /* Backgrounds */
    --bg-primary: #ffffff;          /* Fondo principal blanco */
    --bg-secondary: #f8f9fa;        /* Gris muy claro */
    --bg-card: #ffffff;             /* Cards blancos */
    --bg-dark: #1a1a1a;            /* Modo oscuro */
    --bg-overlay: rgba(0,0,0,0.5);  /* Overlay */
    
    /* Textos */
    --text-primary: #2c3e50;        /* Texto principal */
    --text-secondary: #6c757d;      /* Texto secundario */
    --text-light: #ffffff;          /* Texto claro */
    --text-muted: #adb5bd;          /* Texto deshabilitado */
    
    /* Bordes y sombras */
    --border-light: #e9ecef;        /* Bordes claros */
    --border-medium: #dee2e6;       /* Bordes medios */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
    --text-dark: #1a202c;
    --text-muted: #718096;
    
    /* Efectos */
    --shadow-sm: 0 2px 8px rgba(102, 126, 234, 0.1);
    --shadow-md: 0 4px 20px rgba(102, 126, 234, 0.2);
    --shadow-lg: 0 8px 30px rgba(102, 126, 234, 0.3);
    --shadow-xl: 0 12px 40px rgba(102, 126, 234, 0.4);
    --shadow-neon: 0 0 20px rgba(102, 126, 234, 0.6);
    --shadow-glow: 0 0 30px rgba(245, 87, 108, 0.5);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s ease;
    
    /* Bordes y Radios */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-gray);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(245, 87, 108, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', 'Palatino', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--wood-dark);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

h1 { font-size: 3rem; letter-spacing: 2px; }
h2 { font-size: 2.5rem; letter-spacing: 1px; }
h3 { font-size: 2rem; }
h4 { font-size: 1.75rem; }
h5 { font-size: 1.5rem; }
h6 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Header Styles
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 2px 15px rgba(102, 126, 234, 0.15);
}

.site-header.scrolled .header-top-bar {
    padding: 0.3rem 0;
}

.site-header.scrolled .header-main {
    padding: 0.5rem 0;
}

.site-header.scrolled .logo-icon {
    font-size: 1.75rem;
}

.site-header.scrolled .logo-main {
    font-size: 1.3rem;
}

.site-header.scrolled .cart-link {
    padding: 0.5rem 1rem;
}

/* Top Bar - Opcional: Comentar esta sección completa para ocultarla */
.header-top-bar {
    background: var(--dark-gradient);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    backdrop-filter: blur(10px);
}

/* Descomentar esto para ocultar el top bar en desktop también */
/*
.header-top-bar {
    display: none;
}
*/

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.header-info {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.header-info-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-primary);
    font-size: 0.8rem;
}

.info-icon {
    font-size: 1rem;
}

.info-text {
    font-size: 0.8rem;
    letter-spacing: 0.3px;
}

.header-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    font-size: 1rem;
    transition: var(--transition);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
}

.social-link:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Main Header */
.header-main {
    background: var(--bg-light);
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

/* Site Branding */
.site-branding {
    flex-shrink: 0;
}

.custom-logo-wrapper {
    max-width: 120px;
}

.custom-logo-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
    transition: var(--transition);
}

.custom-logo-wrapper img:hover {
    transform: scale(1.05);
    filter: drop-shadow(3px 3px 8px rgba(212, 175, 55, 0.5));
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition);
    position: relative;
}

.site-logo::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: var(--primary-gradient);
    border-radius: var(--radius-lg);
    opacity: 0;
    filter: blur(20px);
    transition: var(--transition);
    z-index: -1;
}

.site-logo:hover::before {
    opacity: 0.3;
}

.logo-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.4));
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-tagline {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 0.2rem;
    font-weight: 500;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.main-navigation a {
    color: var(--text-dark);
    font-weight: 600;
    padding: 0.5rem 1rem;
    position: relative;
    text-transform: capitalize;
    letter-spacing: 0.3px;
    font-size: 0.9rem;
    transition: var(--transition);
    border-radius: var(--radius-md);
}

.main-navigation a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.main-navigation a:hover,
.main-navigation a.current-menu-item {
    color: var(--text-primary);
}

.main-navigation a:hover::before,
.main-navigation a.current-menu-item::before {
    opacity: 1;
}

.main-navigation a.current-menu-item {
    box-shadow: var(--shadow-neon);
}

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

.header-search {
    position: relative;
}

.search-toggle {
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.5rem;
    color: var(--primary-purple);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
}

.search-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition);
}

.search-toggle:hover {
    color: var(--text-primary);
    box-shadow: var(--shadow-neon);
    transform: translateY(-2px);
}

.search-toggle:hover::before {
    opacity: 1;
}

.search-toggle .search-icon {
    position: relative;
    z-index: 1;
}

.header-cart {
    position: relative;
}

.cart-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--secondary-gradient);
    color: var(--text-primary);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    text-transform: capitalize;
    letter-spacing: 0.3px;
    transition: var(--transition);
    border: none;
    box-shadow: 0 2px 10px rgba(245, 87, 108, 0.3);
    position: relative;
    overflow: hidden;
}

.cart-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cart-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.cart-link:hover::before {
    width: 300px;
    height: 300px;
}

.cart-icon {
    font-size: 1.1rem;
}

.cart-label {
    font-size: 0.85rem;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--warning-gradient);
    color: var(--text-dark);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    box-shadow: 0 0 10px rgba(255, 212, 67, 0.6);
    border: 2px solid var(--bg-light);
}

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

/* Search Form */
.header-search-form {
    background: linear-gradient(180deg, var(--wood-medium) 0%, var(--wood-dark) 100%);
    padding: 1.5rem 0;
    border-bottom: 2px solid var(--brass-gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.search-form-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.header-search-form .search-form {
    flex: 1;
}

.header-search-form input[type="search"] {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--brass-gold);
    border-radius: 8px;
    background: rgba(245, 230, 211, 0.1);
    color: var(--cream);
    font-size: 1rem;
    font-family: 'Georgia', serif;
}

.header-search-form input[type="search"]::placeholder {
    color: var(--wood-light);
}

.header-search-form input[type="search"]:focus {
    outline: none;
    background: rgba(245, 230, 211, 0.2);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.search-close {
    background: transparent;
    border: 2px solid var(--brass-gold);
    color: var(--brass-gold);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-close:hover {
    background: var(--brass-gold);
    color: var(--wood-dark);
    transform: rotate(90deg);
}

/* Mobile Menu Toggle - Hamburger */
.menu-toggle {
    display: none;
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid var(--brass-gold);
    border-radius: 8px;
    padding: 0.75rem;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    transition: var(--transition);
}

.menu-toggle:hover {
    background: rgba(212, 175, 55, 0.2);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.menu-toggle .menu-icon {
    width: 25px;
    height: 3px;
    background: var(--brass-gold);
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle[aria-expanded="true"] .menu-icon:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.menu-toggle[aria-expanded="true"] .menu-icon:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-icon:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* ==========================================================================
   Content
   ========================================================================== */

.site-content {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

.content-area {
    max-width: 800px;
    margin: 0 auto;
}

.entry-header {
    margin-bottom: 2rem;
}

.entry-title {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.entry-meta {
    color: var(--text-light);
    font-size: 0.9rem;
}

.entry-content {
    line-height: 1.8;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: linear-gradient(180deg, var(--wood-dark) 0%, var(--bg-dark) 100%);
    color: var(--cream);
    padding: 3rem 0 1.5rem;
    text-align: center;
    border-top: 3px solid var(--brass-gold);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.site-footer a {
    color: var(--brass-gold);
    transition: var(--transition);
}

.site-footer a:hover {
    color: var(--whiskey);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--brass-gold) 0%, var(--copper) 100%);
    color: var(--wood-dark);
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: 2px solid var(--brass-gold);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    position: relative;
    overflow: hidden;
}

.btn::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.5s;
}

.btn:hover {
    background: linear-gradient(135deg, var(--copper) 0%, var(--brass-gold) 100%);
    color: var(--wood-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.6);
}

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

/* ==========================================================================
   WooCommerce Support
   ========================================================================== */

.woocommerce-products-header {
    margin-bottom: 2rem;
}

.products,
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    list-style: none;
    padding: 2rem 0;
    margin: 0;
}

.product,
.woocommerce ul.products li.product {
    background: var(--bg-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
    margin: 0 !important;
    width: 100% !important;
    float: none !important;
    backdrop-filter: blur(10px);
}

.product::before,
.woocommerce ul.products li.product::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition);
    border-radius: var(--radius-xl);
    z-index: 0;
}

.product:hover,
.woocommerce ul.products li.product:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl), 0 0 40px rgba(102, 126, 234, 0.2);
    border-color: var(--primary-purple);
}

.product:hover::before,
.woocommerce ul.products li.product:hover::before {
    opacity: 0.05;
}

.product img,
.woocommerce ul.products li.product img {
    transition: var(--transition);
}

.product:hover img,
.woocommerce ul.products li.product:hover img {
    transform: scale(1.08) rotate(2deg);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Desktop Large */
@media (min-width: 1400px) {
    .products,
    .woocommerce ul.products {
        grid-template-columns: repeat(5, 1fr) !important;
    }
}

/* Desktop */
@media (min-width: 1200px) and (max-width: 1399px) {
    .products,
    .woocommerce ul.products {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* Tablet Large */
@media (min-width: 992px) and (max-width: 1199px) {
    .products,
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.75rem;
    }
}

/* Tablet */
@media (max-width: 991px) and (min-width: 769px) {
    .products,
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.5rem;
    }

    .woocommerce ul.products li.product img {
        max-height: 220px;
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    /* Top Bar Responsive - Ocultar en móvil */
    .header-top-bar {
        display: none;
    }

    /* Main Header Responsive */
    .header-main {
        padding: 0.6rem 0;
    }

    .header-content {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .site-branding {
        order: 1;
    }

    .main-navigation {
        order: 3;
        width: 100%;
    }

    .header-actions {
        order: 2;
        margin-left: auto;
    }

    /* Logo Responsive */
    .custom-logo-wrapper {
        max-width: 100px;
    }

    .logo-icon {
        font-size: 1.75rem;
    }

    .logo-main {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    .logo-tagline {
        font-size: 0.6rem;
    }

    /* Menu Toggle */
    .menu-toggle {
        display: flex;
    }

    .main-navigation ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background: linear-gradient(180deg, var(--wood-dark) 0%, var(--wood-medium) 100%);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
        padding: 1rem 0;
        gap: 0;
        border-bottom: 3px solid var(--brass-gold);
        border-radius: 8px;
        margin-top: 1rem;
    }

    .main-navigation.toggled ul {
        display: flex;
    }

    .main-navigation a {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    }

    .main-navigation a::after {
        display: none;
    }

    /* Header Actions Responsive */
    .cart-label {
        display: none;
    }

    .cart-link {
        padding: 0.75rem 1rem;
    }

    .search-toggle {
        padding: 0.75rem;
    }

    h1 { font-size: 2.5rem; letter-spacing: 1px; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }

    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-features {
        gap: 1.5rem;
    }

    .hero-feature {
        min-width: 150px;
        padding: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .products,
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem;
    }

    .woocommerce ul.products li.product img {
        max-height: 200px;
    }

    .woocommerce ul.products li.product .woocommerce-loop-product__title,
    .woocommerce ul.products li.product h2,
    .woocommerce ul.products li.product h3 {
        font-size: 1rem;
        min-height: 2rem;
    }

    .woocommerce ul.products li.product {
        padding: 1rem 0.75rem;
    }

    .site-logo {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .header-cart {
        margin-left: 1rem;
    }

    .cart-icon {
        padding: 0.5rem 0.75rem;
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    /* Header Mobile Small */
    .header-main {
        padding: 0.5rem 0;
    }

    .logo-icon {
        font-size: 1.5rem;
    }

    .logo-main {
        font-size: 1rem;
        letter-spacing: 0.5px;
    }

    .logo-tagline {
        display: none;
    }

    .header-actions {
        gap: 0.5rem;
    }

    .cart-link {
        padding: 0.5rem 0.8rem;
    }

    .cart-label {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-feature {
        width: 100%;
    }

    .products,
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem;
        padding: 1rem 0;
    }

    .woocommerce ul.products li.product {
        padding: 0.75rem 0.5rem;
    }

    .woocommerce ul.products li.product img {
        max-height: 150px;
        padding: 0.5rem;
    }

    .woocommerce ul.products li.product .woocommerce-loop-product__title,
    .woocommerce ul.products li.product h2,
    .woocommerce ul.products li.product h3 {
        font-size: 0.9rem;
        min-height: auto;
        margin: 0.5rem 0 0.25rem;
    }

    .woocommerce ul.products li.product .price {
        font-size: 1rem !important;
    }

    .woocommerce ul.products li.product .button {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
}

/* ==========================================================================
   WooCommerce Additional Styles
   ========================================================================== */

.woocommerce .price,
.woocommerce ul.products li.product .price {
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 1.5rem;
    display: block;
    margin: 0.75rem 0;
    position: relative;
    z-index: 1;
}

.woocommerce .price del {
    color: var(--text-muted);
    opacity: 0.6;
    font-size: 1.1rem;
    text-decoration: line-through;
    background: none;
    -webkit-text-fill-color: var(--text-muted);
}

.woocommerce .onsale {
    background: var(--warning-gradient);
    color: var(--text-dark);
    font-weight: 800;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
    box-shadow: 0 4px 15px rgba(255, 212, 67, 0.6);
    animation: pulse 2s infinite;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    border: 2px solid var(--bg-light);
}

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

.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    background: linear-gradient(135deg, var(--brass-gold) 0%, var(--copper) 100%);
    color: var(--wood-dark);
    border: 2px solid var(--brass-gold);
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    transition: var(--transition);
}

.woocommerce .button:hover,
.woocommerce button.button:hover {
    background: linear-gradient(135deg, var(--copper) 0%, var(--brass-gold) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.5);
}

.woocommerce-product-gallery {
    border: 3px solid var(--wood-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.woocommerce div.product .woocommerce-tabs {
    background: var(--cream);
    border-radius: 12px;
    padding: 2rem;
    border: 2px solid var(--wood-light);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: var(--wood-medium);
    border-radius: 8px 8px 0 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    color: var(--cream);
    font-weight: 600;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    background: var(--brass-gold);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--wood-dark);
}

/* Product Title Styles */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product h3 {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0.75rem 0 0.5rem;
    min-height: 2.5rem;
    line-height: 1.4;
    text-align: center;
    position: relative;
    z-index: 1;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Product Image Container */
.woocommerce ul.products li.product .woocommerce-loop-product__link {
    display: block;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Product Rating Stars */
.woocommerce ul.products li.product .star-rating {
    margin: 0.5rem auto;
    color: var(--warning-yellow);
    font-size: 1rem;
}

.woocommerce .star-rating span {
    color: var(--warning-yellow);
}

.woocommerce .star-rating::before {
    color: rgba(255, 212, 67, 0.2);
}

/* Product Meta Info */
.woocommerce ul.products li.product .product-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 0.5rem 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.woocommerce ul.products li.product .product-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.woocommerce ul.products li.product img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    padding: 1.5rem;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
}

/* Product Item Padding */
.woocommerce ul.products li.product {
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Product Category Badge */
.woocommerce ul.products li.product .product-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(102, 126, 234, 0.1);
    backdrop-filter: blur(10px);
    color: var(--primary-purple);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

/* Product Quick View Effect */
.woocommerce ul.products li.product::after {
    content: '👁️ Vista Rápida';
    position: absolute;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--dark-gradient);
    color: var(--text-primary);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    white-space: nowrap;
    z-index: 3;
}

.woocommerce ul.products li.product:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Add to Cart Button in Loop */
.woocommerce ul.products li.product .button {
    width: 100%;
    margin-top: auto;
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
    background: var(--primary-gradient);
    color: var(--text-primary);
    border: none;
    border-radius: var(--radius-full);
    font-weight: 700;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.woocommerce ul.products li.product .button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.woocommerce ul.products li.product .button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(102, 126, 234, 0.4);
}

.woocommerce ul.products li.product .button:hover::before {
    width: 300px;
    height: 300px;
}

/* Read More Link */
.woocommerce ul.products li.product .button.product_type_variable,
.woocommerce ul.products li.product .button.product_type_grouped {
    background: var(--success-gradient);
    color: var(--text-primary);
}

.woocommerce ul.products li.product .button.product_type_variable:hover,
.woocommerce ul.products li.product .button.product_type_grouped:hover {
    box-shadow: var(--shadow-lg), 0 0 30px rgba(79, 172, 254, 0.4);
}

/* Out of Stock Badge */
.woocommerce ul.products li.product .outofstock-badge {
    background: linear-gradient(135deg, #718096 0%, #4a5568 100%);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
    font-weight: 800;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    border: 2px solid var(--bg-light);
}

/* Cart Icon in Header */
.header-cart {
    position: relative;
}

.cart-icon {
    color: var(--brass-gold);
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    border: 2px solid var(--brass-gold);
    border-radius: 8px;
    transition: var(--transition);
    background: rgba(212, 175, 55, 0.1);
}

.cart-icon:hover {
    background: var(--brass-gold);
    color: var(--wood-dark);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--red-neon);
    color: #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.8);
}

/* ==========================================================================
   Hero Section - Delivery
   ========================================================================== */

.hero-section {
    background: linear-gradient(135deg, var(--wood-dark) 0%, var(--wood-medium) 50%, var(--leather) 100%);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid var(--brass-gold);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="%23000" opacity="0.1"/></svg>');
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    color: var(--brass-gold);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    animation: fadeInDown 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--cream);
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.hero-feature {
    background: rgba(245, 230, 211, 0.1);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--brass-gold);
    min-width: 200px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.hero-feature:hover {
    transform: translateY(-5px);
    background: rgba(245, 230, 211, 0.2);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.hero-feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-feature-title {
    color: var(--brass-gold);
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-feature-text {
    color: var(--cream);
    margin-top: 0.5rem;
}

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

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

/* ==========================================================================
   Category Sections
   ========================================================================== */

.category-section {
    padding: 4rem 0;
    background: var(--cream);
}

.category-section:nth-child(even) {
    background: linear-gradient(135deg, #f5e6d3 0%, #fff 100%);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    color: var(--wood-dark);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 4px;
    background: linear-gradient(90deg, var(--brass-gold), var(--copper), var(--brass-gold));
    border-radius: 2px;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

/* ==========================================================================
   WooCommerce Columns Override
   ========================================================================== */

/* Force grid layout for all WooCommerce product lists */
.woocommerce.columns-1 ul.products,
.woocommerce.columns-2 ul.products,
.woocommerce.columns-3 ul.products,
.woocommerce.columns-4 ul.products,
.woocommerce.columns-5 ul.products,
.woocommerce.columns-6 ul.products {
    display: grid !important;
}

/* Ensure proper spacing */
.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none;
}

.woocommerce ul.products {
    clear: both;
}

/* Fix for WooCommerce default clearfix */
.woocommerce ul.products li.product:nth-child(n) {
    clear: none !important;
    margin-right: 0 !important;
}

/* Loading Skeleton Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.woocommerce ul.products li.product.loading {
    background: linear-gradient(
        90deg,
        var(--bg-light) 0%,
        rgba(102, 126, 234, 0.1) 50%,
        var(--bg-light) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Product Card Entrance Animation */
.woocommerce ul.products li.product {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Stagger animation for multiple products */
.woocommerce ul.products li.product:nth-child(1) { animation-delay: 0.1s; }
.woocommerce ul.products li.product:nth-child(2) { animation-delay: 0.2s; }
.woocommerce ul.products li.product:nth-child(3) { animation-delay: 0.3s; }
.woocommerce ul.products li.product:nth-child(4) { animation-delay: 0.4s; }
.woocommerce ul.products li.product:nth-child(5) { animation-delay: 0.5s; }
.woocommerce ul.products li.product:nth-child(6) { animation-delay: 0.6s; }
.woocommerce ul.products li.product:nth-child(7) { animation-delay: 0.7s; }
.woocommerce ul.products li.product:nth-child(8) { animation-delay: 0.8s; }

/* ==========================================================================
   Utilities
   ========================================================================== */

.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.hidden { display: none; }
