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

body {
    font-family: 'Montserrat', 'Arial', 'Helvetica', sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
    font-weight: 300;
}

/* Animaciones globales */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
}

/* Header */
.header {
    background-color: #ffffff;
    padding: 0;
    border-bottom: 1px solid #f0f0f0;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
}

.hamburger-menu {
    background: none;
    border: none;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    padding: 5px;
    display: none;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease;
}

.hamburger-menu:hover {
    transform: scale(1.1);
    color: #666;
}

.hamburger-menu:active {
    transform: scale(0.95);
}

.cart-icon {
    background: none;
    border: none;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    padding: 5px;
    display: none;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease;
}

.cart-icon:hover {
    transform: scale(1.1);
    color: #666;
}

.cart-icon:active {
    transform: scale(0.95);
}

.header-right {
    display: none;
    align-items: center;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Playfair Display', serif;
}

.logo-text {
    font-size: 18px;
    font-weight: 400;
    color: #333;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
}

.logo-image {
    max-height: 60px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 50px;
    align-items: center;
    padding: 0 20px;
}

.nav-menu a {
    text-decoration: none;
    color: #999;
    font-size: 13px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    padding: 4px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #333;
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: #333;
}

.nav-menu a:hover::after {
    width: 100%;
}

.language-selector {
    display: flex;
    align-items: center;
    position: relative;
}

.language-selector::before {
    content: '🌐';
    position: absolute;
    left: 12px;
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
}

.language-selector select {
    padding: 6px 32px 6px 38px;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    background-color: #fff;
    color: #333;
    font-size: 12px;
    font-weight: 300;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    min-width: 80px;
}

.language-selector select:hover {
    border-color: #999;
    background-color: #fafafa;
}

.language-selector select:focus {
    border-color: #333;
    background-color: #fff;
}

/* Mobile Tabs */
.mobile-tabs {
    display: none;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    gap: 0;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 300;
    color: #999;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Montserrat', sans-serif;
}

.tab-btn.active {
    color: #333;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #333;
    animation: slideDown 0.3s ease forwards;
}

.tab-btn:hover {
    color: #333;
    transform: translateY(-2px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background-color: #fff;
    padding: 30px 20px;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
    animation: slideInLeft 0.4s ease;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: scaleIn 0.3s ease 0.2s both;
}

.close-menu:hover {
    transform: rotate(90deg) scale(1.1);
    color: #666;
}

.close-menu:active {
    transform: rotate(90deg) scale(0.9);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.mobile-nav a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    padding: 12px 0;
    transition: all 0.3s ease;
    opacity: 0;
    animation: slideInLeft 0.4s ease forwards;
}

.mobile-nav a:nth-child(1) { animation-delay: 0.1s; }
.mobile-nav a:nth-child(2) { animation-delay: 0.2s; }
.mobile-nav a:nth-child(3) { animation-delay: 0.3s; }
.mobile-nav a:nth-child(4) { animation-delay: 0.4s; }

.mobile-nav a:hover {
    padding-left: 15px;
    color: #666;
}

.mobile-language {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #f0f0f0;
}

.mobile-language label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.mobile-language select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* Filter Modal */
.filter-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
}

.filter-modal.active {
    display: block;
    opacity: 1;
}

.filter-modal-content {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    height: 100%;
    background-color: #fff;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    overflow-y: auto;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.1);
}

.filter-modal.active .filter-modal-content {
    transform: translateX(0);
    animation: slideInRight 0.4s ease;
}

.filter-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 10;
}

.filter-modal-header h2 {
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Playfair Display', serif;
}

.close-filter {
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: scaleIn 0.3s ease 0.2s both;
}

.close-filter:hover {
    transform: rotate(90deg) scale(1.1);
    color: #666;
}

.close-filter:active {
    transform: rotate(90deg) scale(0.9);
}

.filter-modal-body {
    padding: 20px;
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
    display: flex;
    gap: 40px;
}

/* Sidebar */
.sidebar {
    width: 250px;
    flex-shrink: 0;
}

.filter-section {
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 10px 0;
    color: #999;
    font-size: 13px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s;
    font-family: 'Montserrat', sans-serif;
}

.filter-header:hover {
    color: #333;
}

.filter-header i {
    font-size: 12px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-header.active i {
    transform: rotate(180deg);
}

.filter-header:hover {
    transform: translateX(5px);
}

.filter-content {
    display: none;
    padding-top: 15px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
}

.filter-content.active {
    display: block;
    max-height: 500px;
    opacity: 1;
    animation: slideDown 0.4s ease;
}

.filter-content label {
    display: block;
    margin-bottom: 12px;
    color: #999;
    font-size: 13px;
    cursor: pointer;
    padding-left: 5px;
}

.filter-content label:hover {
    color: #333;
}

.filter-content input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

/* Products Section */
.products-section {
    flex: 1;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
    display: flex;
    flex-direction: column;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }
.product-card:nth-child(7) { animation-delay: 0.7s; }
.product-card:nth-child(8) { animation-delay: 0.8s; }
.product-card:nth-child(9) { animation-delay: 0.9s; }

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    width: 100%;
    height: 350px;
    background-color: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img,
.product-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-image .product-default-image {
    transition: opacity 0.3s ease;
}

.quick-view-btn {
    position: relative;
    width: calc(100% + 50px);
    margin-top: auto;
    margin-left: -25px;
    margin-right: -25px;
    margin-bottom: 0;
    background-color: #333;
    border: none;
    border-radius: 0 0 8px 8px;
    padding: 14px 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Montserrat', sans-serif;
    display: block !important;
    flex-shrink: 0;
    visibility: visible !important;
    opacity: 1 !important;
    align-self: stretch;
}

.quick-view-btn:hover {
    background-color: #555;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.product-info {
    padding: 25px 25px 0 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
}

.product-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Cormorant Garamond', serif;
}

.product-description {
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
    font-style: italic;
}

.product-type {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.size-selector {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'Montserrat', sans-serif;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 35px;
}

.size-selector:hover {
    border-color: #333;
    background-color: #f8f8f8;
}

.size-selector:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
    text-transform: capitalize;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    letter-spacing: 1px;
}

.product-price {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
    margin-bottom: 0;
}

/* Footer */
.footer {
    background-color: #f5f5f0;
    padding: 50px 0;
    margin-top: 60px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 30px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 50%;
    color: #999;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    opacity: 0;
    animation: scaleIn 0.5s ease forwards;
}

.social-icons a:nth-child(1) { animation-delay: 0.1s; }
.social-icons a:nth-child(2) { animation-delay: 0.2s; }
.social-icons a:nth-child(3) { animation-delay: 0.3s; }
.social-icons a:nth-child(4) { animation-delay: 0.4s; }
.social-icons a:nth-child(5) { animation-delay: 0.5s; }

.social-icons a:hover {
    background-color: #333;
    color: #fff;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.newsletter {
    margin-top: 30px;
}

.newsletter p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
}

.newsletter-input {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-input input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
}

.newsletter-input input:focus {
    border-color: #999;
}

.newsletter-input button {
    padding: 12px 25px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

.newsletter-input button:hover::before {
    width: 300px;
    height: 300px;
}

.newsletter-input button:hover {
    background-color: #555;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0;
    }

    .header-content {
        padding: 10px 15px;
    }

    .nav-menu {
        gap: 30px;
    }

    .nav-menu a {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .language-selector select {
        padding: 8px 30px 8px 35px;
        font-size: 11px;
        min-width: 70px;
    }

    .hamburger-menu {
        display: block;
    }

    .cart-icon {
        display: block;
    }

    .header-right {
        display: flex;
    }

    .logo {
        position: static;
        transform: none;
        margin: 0 auto;
    }

    .logo-text {
        font-size: 16px;
        letter-spacing: 2px;
    }

    .logo-image {
        max-height: 50px;
        max-width: 150px;
    }

    .desktop-nav {
        display: none;
    }

    .desktop-lang {
        display: none;
    }

    .mobile-tabs {
        display: flex;
    }

    .main-content {
        flex-direction: column;
        padding: 15px;
        gap: 0;
    }

    .desktop-sidebar {
        display: none;
    }

    .products-section {
        width: 100%;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* Cuando el menú hamburguesa está abierto, mostrar solo el primer producto */
    body.menu-open .products-grid {
        grid-template-columns: 1fr;
    }

    body.menu-open .products-grid .product-card:not(:first-child) {
        display: none;
    }

    .product-card {
        border: 1px solid #f0f0f0;
        box-shadow: none;
    }

    .product-card:hover {
        transform: none;
        box-shadow: none;
    }

    .product-image {
        height: 250px;
        background-color: #fff;
    }

    .product-info {
        padding: 15px 15px 0 15px;
        text-align: left;
        display: flex;
        flex-direction: column;
        flex: 1;
        gap: 8px;
    }

    .product-name {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .product-type {
        font-size: 11px;
        margin-bottom: 5px;
    }

    .product-price {
        font-size: 16px;
    }

    .quick-view-btn {
        width: calc(100% + 30px);
        margin-top: auto;
        margin-left: -15px;
        margin-right: -15px;
        margin-bottom: 0;
        padding: 12px 15px;
        font-size: 11px;
        border: none;
        border-radius: 0;
        background-color: #333;
        color: #fff;
        align-self: stretch;
    }

    .newsletter-input {
        flex-direction: column;
    }

    .newsletter-input button {
        width: 100%;
    }

    .footer {
        padding: 30px 0;
    }
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulse 2s infinite;
}

.whatsapp-button:hover {
    background-color: #20BA5A;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-button:active {
    transform: scale(0.95);
}

.whatsapp-button i {
    animation: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
}

@media (max-width: 768px) {
    .whatsapp-button {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
        font-size: 28px;
    }
}

