/* Importar fuente Open Sans si no está ya importada */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

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

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    font-weight: 400;
    
}
.woocommerce #primary {
    margin-top: 40px; 
}
aside#sidebar-right {
    margin-top: 40px;
}


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

/* Header */
header {
    background: #fff !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
    position: relative !important;
    width: 100% !important;
    top: 0 !important;
    z-index: 1000 !important;
    border-bottom: 3px solid #dd3333 !important;
}

.header-content {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 1rem 0 !important;
    width: 100% !important;
}

.logo-section {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
}

.nav-item {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
}

/* Hamburger menu styles */
.hamburger {
    display: none !important;
    flex-direction: column !important;
    cursor: pointer !important;
    padding: 10px !important;
    z-index: 1001 !important;
}

.hamburger span {
    width: 25px !important;
    height: 3px !important;
    background: #333 !important;
    margin: 3px 0 !important;
    transition: 0.3s !important;
    border-radius: 2px !important;
}

.mobile-nav {
    display: none !important;
}

.mobile-nav.active {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.8) !important;
    z-index: 1000 !important;
}

.mobile-nav-content {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 70% !important;
    height: 100% !important;
    background: white !important;
    padding: 80px 20px 20px !important;
    transform: translateX(100%) !important;
    transition: transform 0.3s ease !important;
}

.mobile-nav.active .mobile-nav-content {
    transform: translateX(0) !important;
}

.mobile-nav-item {
    display: block !important;
    padding: 15px 0 !important;
    border-bottom: 1px solid #eee !important;
}

.mobile-nav-item a {
    text-decoration: none !important;
    color: #333 !important;
    font-weight: 500 !important;
    font-size: 1.1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: block !important;
}

.mobile-nav-item a:hover {
    color: #2c5aa0 !important;
}

.close-btn {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    background: none !important;
    border: none !important;
    font-size: 1.5rem !important;
    cursor: pointer !important;
    color: #333 !important;
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background-color: #f5f5f5 !important;
}

.logo {
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    color: #e53e3e !important;
    letter-spacing: -0.5px !important;
}

.tagline {
    font-size: 0.85rem !important;
    color: #666 !important;
    margin-top: -2px !important;
    font-weight: 300 !important;
    font-style: italic !important;
}

.nav-item a {
    text-decoration: none !important;
    color: #111 !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: color 0.3s !important;
    text-align: center !important;
}

.nav-item a:hover {
    color: #04abea !important;
}

#pais-selector {
    /*border: 1px solid #ccc !important;*/
    padding: 6px 10px !important;
    border-radius: 50px !important;
    background-color: #f8f8f8 !important;
    font-size: 0.85rem !important;
    font-family: 'Open Sans', sans-serif !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    color: #333 !important;
    outline: none !important;
    /*box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;*/
    transition: all 0.2s ease !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23555' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    background-size: 16px !important;
    padding-right: 30px !important;
}

#pais-selector:hover {
    /*border-color: #aaa !important;*/
    background-color: #fff !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    

    .container {
        padding: 0 15px !important;
    }

    /* Header responsive */
    .header-content {
        justify-content: space-between !important;
        padding: 0.5rem 0 !important;
    }

    .logo-section {
        flex: 0 !important;
        justify-content: flex-start !important;
    }

    .logo-section img {
        height: 40px !important;
    }

    .nav-item {
        display: none !important;
    }
    
    /* El selector de país se muestra en móvil pero con estilo adaptado */
    .nav-item:nth-last-child(2) {
        display: flex !important;
        position: absolute !important;
        right: 60px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }
    
    #pais-selector {
        padding: 4px 8px !important;
        font-size: 0.75rem !important;
        background-size: 14px !important;
        padding-right: 25px !important;
        background-position: right 6px center !important;
    }

    .hamburger {
        display: flex !important;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .header-content {
        padding: 0.3rem 0 !important;
    }

    .nav-item a {
        font-size: 0.6rem !important;
    }
    
    .logo-section img {
        height: 35px !important;
    }
}