/* Variables */
:root {
    --primary-color: #0066cc;
    --primary-dark: #004c99;
    --primary-light: #3399ff;
    --secondary-color: #003366;
    --accent-color: #ff6600;
    --text-color: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --background-color: #f5f5f5;
    --bg-dark: #1a1a2e;
    --bg-card: #16213e;
    --bg-darker: #0f0f23;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.3s ease;
    --border-dark: #2a2a4e;
}

/* Animaciones con Bootstrap y Tailwind */
.logo-animate {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-animate:hover {
    transform: scale(1.1) rotate(-5deg);
    filter: drop-shadow(0 10px 15px rgba(0, 102, 204, 0.3));
}

.nav-link-animate {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link-animate::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
}

.nav-link-animate:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-link-animate:hover::after {
    width: 100%;
}

.filter-animate {
    transition: all 0.3s ease;
    animation: slideInDown 0.5s ease;
}

.filter-animate:hover,
.filter-animate:focus {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 102, 204, 0.2);
    border-color: var(--primary-color);
}

/* Search Wrapper Animado */
.search-wrapper {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeIn 0.6s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-wrapper.active {
    width: 300px;
    border-radius: 50px;
}

.search-wrapper .input-holder {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.search-wrapper .input-holder input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0 60px 0 20px;
    border: none;
    outline: none;
    background: transparent;
    color: var(--white);
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.4s ease;
}

.search-wrapper.active .input-holder input {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.3s;
}

.search-wrapper .input-holder .search-icon {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--white);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-wrapper .input-holder .search-icon span {
    position: relative;
    width: 16px;
    height: 16px;
}

.search-wrapper .input-holder .search-icon span::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    left: 0;
    top: 0;
    border-radius: 16px;
    border: 4px solid #FE5F55;
    box-sizing: border-box;
}

.search-wrapper .input-holder .search-icon span::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 8px;
    left: 10px;
    top: 12px;
    background: #FE5F55;
    transform: rotate(-45deg);
    border-radius: 2px;
}

.search-wrapper:hover {
    box-shadow: 0 8px 20px rgba(254, 95, 85, 0.4);
}

.cart-animate {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: bounceIn 0.6s ease;
}

.cart-animate:hover {
    transform: scale(1.15);
}

.cart-animate:hover svg {
    animation: shake 0.5s;
}

.cart-count {
    animation: pulse 2s infinite;
}

/* Keyframe Animations */
@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

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

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

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

/* Hover effects con Tailwind-style transitions */
.product-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.product-image {
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.add-to-cart {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.add-to-cart:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.4);
}

.add-to-cart svg {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
    position: relative;
    top: 2px;
    transition: transform 0.3s ease;
}

.add-to-cart:hover svg {
    transform: scale(1.2) translateX(3px);
}

.add-to-cart svg path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    transition: all 0.25s ease;
}

.add-to-cart:hover svg path {
    fill: rgba(255, 255, 255, 0.2);
    stroke: var(--white);
}

/* Animación de carrito agregando */
.add-to-cart.adding {
    animation: pulse 0.5s ease;
}

.add-to-cart.adding svg {
    animation: cartShake 0.5s ease;
}

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

@keyframes cartShake {
    0%, 100% { transform: translateX(0) rotate(0); }
    25% { transform: translateX(-3px) rotate(-5deg); }
    75% { transform: translateX(3px) rotate(5deg); }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

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

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 100;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.logo {
    margin-left: 50px;
}

.logo img {
    height: 60px;
    width: auto;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav a:hover {
    color: var(--primary-color);
}

.cart-icon {
    position: relative;
    cursor: pointer;
    padding: 10px;
}

.cart-icon svg {
    color: var(--primary-color);
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent-color);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Header Filters */
.header-filters {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Category Dropdown */
.category-dropdown {
    position: relative;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    background: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: var(--text-color);
}

.category-btn:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15);
}

.category-btn .arrow {
    transition: transform 0.3s ease;
}

.category-btn.active .arrow {
    transform: rotate(180deg);
}

.category-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
}

.category-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-color);
    font-size: 0.9rem;
}

.category-item:hover {
    background: linear-gradient(90deg, rgba(0, 102, 204, 0.1), transparent);
    color: var(--primary-color);
}

.category-item svg {
    flex-shrink: 0;
    color: var(--primary-color);
}

.category-item:first-child {
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
    font-weight: 600;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    padding: 8px 35px 8px 15px;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    width: 200px;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-box svg {
    position: absolute;
    right: 10px;
    color: var(--text-light);
    pointer-events: none;
}

/* Hero Section con Banner */
.hero-banner {
    position: relative;
    height: 600px;
    background: url('Banner.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.85), rgba(0, 102, 204, 0.75));
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    padding: 40px;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #e65c00;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-full {
    width: 100%;
}

/* Filters Section (removido - ahora en header) */

/* Products Section */
.products-section {
    padding: 60px 0;
}

/* Sugerencias Section */
.sugerencias-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--background-color) 0%, var(--white) 100%);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: -30px;
    margin-bottom: 50px;
}

#sugerenciasGrid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.ver-mas-container {
    text-align: center;
    margin-top: 50px;
}

.btn-ver-mas {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--accent-color), #e65c00);
    color: var(--white);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(255, 102, 0, 0.3);
}

.btn-ver-mas:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 102, 0, 0.4);
}

.btn-ver-mas i:last-child {
    transition: transform 0.3s ease;
}

.btn-ver-mas:hover i:last-child {
    transform: translateX(5px);
}


.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 40px;
    font-weight: 700;
}

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

.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Sugerencias Product Card - Más compacto */
#sugerenciasGrid .product-card {
    font-size: 0.85rem;
}

#sugerenciasGrid .product-image {
    height: 150px;
}

#sugerenciasGrid .product-info {
    padding: 12px;
}

#sugerenciasGrid .product-name {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

#sugerenciasGrid .product-variation {
    font-size: 0.75rem;
    margin-bottom: 5px;
}

#sugerenciasGrid .product-description {
    font-size: 0.7rem;
    margin-bottom: 8px;
    display: none;
}

#sugerenciasGrid .product-footer {
    margin-bottom: 8px;
}

#sugerenciasGrid .product-price {
    font-size: 1.1rem;
}

#sugerenciasGrid .product-stock {
    font-size: 0.65rem;
}

#sugerenciasGrid .add-to-cart {
    padding: 8px;
    font-size: 0.75rem;
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: #f0f0f0;
}

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
}

.product-variation {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.product-description {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.4;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-stock {
    font-size: 0.8rem;
    color: #28a745;
    font-weight: 500;
}

.add-to-cart {
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.add-to-cart:hover {
    background: var(--primary-dark);
}

/* Contact Section */
.contact-section {
    background: var(--secondary-color);
    color: var(--white);
    padding: 60px 0;
}

.contact-section .section-title {
    color: var(--white);
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

.contact-item a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--accent-color);
}

.contact-item svg {
    color: var(--accent-color);
}

/* Social Media */
.social-media {
    margin-top: 50px;
    text-align: center;
}

.social-media h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 600;
}

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

.social-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--white);
    transition: all 0.3s ease;
    padding: 20px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    min-width: 100px;
}

.social-icon:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.social-icon svg {
    transition: all 0.3s ease;
}

.social-icon span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Colores específicos por red social */
.social-icon.facebook:hover {
    background: #1877F2;
}

.social-icon.tiktok:hover {
    background: #000000;
}

.social-icon.whatsapp:hover {
    background: #25D366;
}

.social-icon:hover svg {
    transform: scale(1.1);
}

/* Footer */
.footer {
    background: #001a33;
    color: var(--white);
    text-align: center;
    padding: 20px 0;
}

.footer p {
    margin-bottom: 10px;
}

.footer-credit {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 10px;
}

.footer-credit strong {
    color: var(--accent-color);
    font-weight: 600;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.footer-social a {
    color: var(--white);
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.footer-social a:hover {
    transform: scale(1.2);
}

.footer-social a:hover:nth-child(1) {
    background: #1877F2;
}

.footer-social a:hover:nth-child(2) {
    background: #000000;
}

.footer-social a:hover:nth-child(3) {
    background: #25D366;
}

/* Responsive */
@media (max-width: 1024px) {
    .header-content {
        flex-wrap: wrap;
        gap: 15px;
    }

    .header-filters {
        order: 3;
        width: 100%;
        justify-content: center;
        padding-top: 15px;
        border-top: 1px solid #e0e0e0;
    }

    .nav {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .hero-banner {
        height: 400px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

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

    .section-subtitle {
        font-size: 0.95rem;
    }

    .btn-ver-mas {
        padding: 15px 30px;
        font-size: 1rem;
    }

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

    .header-content {
        flex-wrap: wrap;
        position: relative;
    }

    .mobile-menu-toggle {
        display: flex;
        order: 1;
        z-index: 1000;
        background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
        border-radius: 8px;
        padding: 10px;
        box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
        transition: all 0.3s ease;
    }

    .mobile-menu-toggle:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
    }

    .mobile-menu-toggle span {
        background: var(--white);
    }

    .logo {
        order: 2;
        margin-left: 15px;
        flex: 1;
    }

    .cart-icon {
        order: 3;
    }

    .nav {
        order: 4;
        position: fixed;
        top: 0;
        left: -320px;
        right: auto;
        width: 300px;
        height: 100vh;
        background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 80%, var(--primary-dark) 100%);
        flex-direction: column;
        padding: 120px 30px 30px 30px;
        gap: 10px;
        box-shadow: 4px 0 30px rgba(0, 0, 0, 0.3);
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        overflow-y: auto;
    }

    .nav.active {
        left: 0;
    }

    .nav::before {
        content: 'TODO DE TODITO';
        position: absolute;
        top: 35px;
        left: 30px;
        right: 30px;
        text-align: center;
        font-size: 1.1rem;
        font-weight: 700;
        color: rgba(255, 255, 255, 0.15);
        letter-spacing: 2px;
        pointer-events: none;
    }

    .nav a {
        font-size: 1.15rem;
        padding: 15px 20px;
        border-radius: 10px;
        color: var(--white);
        text-decoration: none;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
    }

    .nav a:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateX(10px);
        box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
    }

    .nav a .link-icon {
        width: 8px;
        height: 8px;
        background: var(--accent-color);
        border-radius: 50%;
        transition: all 0.3s ease;
    }

    .nav a:hover .link-icon {
        transform: scale(1.5);
        box-shadow: 0 0 10px var(--accent-color);
    }

    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .header-filters {
        order: 5;
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        padding: 10px 0;
        border-top: 1px solid #e0e0e0;
        gap: 8px;
        position: relative;
    }

    .category-dropdown {
        position: relative;
        width: auto;
        flex-shrink: 0;
        z-index: 50;
    }

    .category-btn {
        padding: 6px 8px;
        font-size: 0;
        white-space: nowrap;
        gap: 0;
        min-width: 42px;
        justify-content: center;
    }

    .category-btn svg:first-child {
        width: 18px;
        height: 18px;
        margin: 0;
    }

    .category-btn #categoryBtnText {
        display: none;
    }

    .category-btn .arrow {
        display: none;
    }

    .category-menu {
        left: auto;
        right: 0;
        min-width: 170px;
        top: calc(100% + 5px);
        z-index: 60;
    }

    .category-item {
        padding: 10px 14px;
        font-size: 0.85rem;
        gap: 10px;
    }

    .category-item svg {
        width: 14px;
        height: 14px;
    }

    .search-wrapper {
        width: 42px;
        height: 42px;
        margin: 0;
        flex-shrink: 0;
        position: relative;
        z-index: 50;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .search-wrapper.active {
        width: calc(100% - 55px);
        max-width: 260px;
        margin-left: 10px;
        z-index: 100;
    }

    .search-wrapper .input-holder {
        position: absolute;
        width: 100%;
        height: 100%;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    .search-wrapper .input-holder .search-icon {
        right: 3px;
        top: 3px;
        width: 36px;
        height: 36px;
    }

    .search-wrapper .input-holder .search-icon span {
        width: 14px;
        height: 14px;
    }

    .search-wrapper .input-holder .search-icon span::after {
        width: 12px;
        height: 12px;
        border: 3px solid #FE5F55;
    }

    .search-wrapper .input-holder .search-icon span::before {
        width: 3px;
        height: 6px;
        left: 9px;
        top: 10px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

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

    .contact-info {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .social-media h3 {
        font-size: 1.2rem;
    }

    .social-icons {
        gap: 15px;
    }

    .social-icon {
        min-width: 80px;
        padding: 15px;
    }

    .social-icon svg {
        width: 28px;
        height: 28px;
    }

    .social-icon span {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 40px 0;
    }

    .header-filters {
        padding: 10px 0;
    }
}

/* ========================================
   Enhanced Mobile Responsive Styles
   ======================================== */

/* Tablet Landscape and Below */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .header-content {
        gap: 10px;
    }

    .logo img {
        max-height: 50px;
    }

    .nav {
        gap: 20px;
    }

    .nav-link {
        font-size: 14px;
    }

    .category-dropdown {
        max-width: 200px;
    }

    .search-wrapper {
        max-width: 250px;
    }

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

    .product-card {
        font-size: 14px;
    }

    .product-image {
        height: 180px;
    }

    .section-title {
        font-size: 28px;
    }

    .hero-banner {
        min-height: 400px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    #sugerenciasGrid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-info {
        flex-wrap: wrap;
        justify-content: center;
    }

    .social-icons {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Tablet Portrait and Below */
@media (max-width: 768px) {
    /* Header Mobile */
    .header {
        position: sticky;
        top: 0;
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .header-content {
        flex-wrap: wrap;
        padding: 10px 20px;
        gap: 10px;
    }

    .logo {
        order: 1;
        flex: 1;
    }

    .logo img {
        max-height: 45px;
    }

    .mobile-menu-toggle {
        display: flex;
        order: 2;
        padding: 8px;
        margin-left: 10px;
    }

    .cart-icon {
        order: 3;
        position: relative;
        margin-left: 10px;
    }

    .header-filters {
        order: 4;
        width: 100%;
        justify-content: center;
        padding: 10px 0;
        border-top: 1px solid #e0e0e0;
        margin-top: 5px;
    }

    .category-dropdown,
    .search-wrapper {
        max-width: 100%;
    }

    /* Navigation Mobile */
    .nav {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        background: linear-gradient(180deg, var(--secondary-color), var(--primary-color));
        z-index: 1001;
        transition: left 0.3s ease;
        padding: 80px 20px 20px;
        overflow-y: auto;
    }

    .nav.active {
        left: 0;
    }

    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Hero Sections Mobile */
    .hero-banner,
    .tienda-hero,
    .carrito-hero,
    .checkout-hero {
        padding: 80px 0 40px;
        min-height: 300px;
    }

    .hero-content h1,
    .tienda-hero h1,
    .carrito-hero h1,
    .checkout-hero h1 {
        font-size: 26px;
        margin-bottom: 10px;
    }

    .hero-content p,
    .tienda-hero p,
    .carrito-hero p,
    .checkout-hero p {
        font-size: 14px;
    }

    /* Product Grid Mobile */
    .productos-grid,
    .products-grid,
    #sugerenciasGrid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .product-card {
        margin-bottom: 0;
    }

    .product-image {
        height: 220px;
        object-fit: cover;
    }

    /* Section Titles Mobile */
    .section-title {
        font-size: 24px;
        padding: 0 20px;
    }

    .section-subtitle {
        font-size: 14px;
        padding: 0 20px;
    }

    /* Buttons Mobile */
    .btn,
    .btn-primary,
    .btn-ver-mas {
        padding: 14px 24px;
        font-size: 14px;
        width: auto;
        min-width: 200px;
    }

    /* Contact Section Mobile */
    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px;
    }

    .contact-item {
        font-size: 14px;
    }

    .social-media {
        padding: 20px;
        text-align: center;
    }

    .social-media h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .social-icons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .social-icon {
        min-width: 90px;
        padding: 12px;
        flex-direction: column;
        gap: 8px;
    }

    .social-icon svg,
    .social-icon i {
        width: 28px;
        height: 28px;
        font-size: 28px;
    }

    .social-icon span {
        font-size: 12px;
    }

    /* Footer Mobile */
    .footer {
        padding: 30px 20px;
        text-align: center;
    }

    .footer p {
        font-size: 13px;
    }

    .footer-credit {
        font-size: 12px;
        margin-top: 10px;
    }

    .footer-social {
        justify-content: center;
        margin-top: 15px;
    }

    /* Category Dropdown Mobile */
    .category-menu {
        max-height: 300px;
        overflow-y: auto;
    }

    .category-item {
        font-size: 14px;
        padding: 12px 15px;
    }

    /* Search Mobile */
    .search-wrapper .input-holder input {
        font-size: 14px;
        padding: 10px 40px 10px 15px;
    }
}

/* Mobile Small (Phones) */
@media (max-width: 480px) {
    /* Header Mobile Small */
    .header-content {
        padding: 8px 15px;
    }

    .logo img {
        max-height: 40px;
    }

    .mobile-menu-toggle {
        padding: 6px;
    }

    .mobile-menu-toggle span {
        width: 22px;
        height: 2px;
    }

    .cart-icon svg,
    .cart-icon i {
        width: 20px;
        height: 20px;
        font-size: 20px;
    }

    .cart-count {
        font-size: 10px;
        min-width: 18px;
        height: 18px;
    }

    /* Hero Mobile Small */
    .hero-banner,
    .tienda-hero,
    .carrito-hero,
    .checkout-hero {
        min-height: 250px;
        padding: 60px 0 30px;
    }

    .hero-content h1,
    .tienda-hero h1,
    .carrito-hero h1,
    .checkout-hero h1 {
        font-size: 22px;
    }

    .hero-content p,
    .tienda-hero p,
    .carrito-hero p,
    .checkout-hero p {
        font-size: 13px;
    }

    /* Product Cards Mobile Small */
    .productos-grid,
    .products-grid,
    #sugerenciasGrid {
        gap: 15px;
        padding: 0 10px;
    }

    .product-card {
        padding: 12px;
    }

    .product-image {
        height: 180px;
    }

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

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

    .add-to-cart {
        font-size: 13px;
        padding: 10px 15px;
    }

    /* Section Spacing Mobile Small */
    .sugerencias-section,
    .contact-section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 20px;
    }

    /* Buttons Mobile Small */
    .btn,
    .btn-primary,
    .btn-ver-mas {
        padding: 12px 20px;
        font-size: 13px;
        min-width: 180px;
    }

    /* Contact Mobile Small */
    .contact-item {
        font-size: 13px;
    }

    .contact-item svg,
    .contact-item i {
        width: 18px;
        height: 18px;
        font-size: 18px;
    }

    /* Footer Mobile Small */
    .footer {
        padding: 20px 15px;
    }

    .footer p {
        font-size: 12px;
    }

    .footer-credit {
        font-size: 11px;
    }

    .footer-social a {
        margin: 5px;
    }

    .footer-social svg,
    .footer-social i {
        width: 20px;
        height: 20px;
        font-size: 20px;
    }
}

/* Landscape orientation for phones */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-banner,
    .tienda-hero,
    .carrito-hero,
    .checkout-hero {
        min-height: 200px;
        padding: 50px 0 25px;
    }

    .nav {
        width: 260px;
    }

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

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn,
    .add-to-cart,
    .category-btn,
    .category-item,
    .nav-link {
        min-height: 44px;
    }

    /* Remove hover effects on touch devices */
    .product-card:hover,
    .btn:hover,
    .nav-link:hover {
        transform: none;
        box-shadow: none;
    }

    /* Better scroll behavior */
    html {
        scroll-behavior: smooth;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .mobile-menu-toggle,
    .cart-icon,
    .header-filters,
    .nav {
        display: none !important;
    }

    body {
        background: white;
    }

    .product-card {
        break-inside: avoid;
    }
}
