/* ============================================
   CSS - ONESHOT TIENDA PROFESIONAL
   Estilo neutral y limpio para cualquier nicho
   ============================================ */

/* Variables CSS - Paleta neutral */
:root {
    /* Colores principales */
    --color-primary: #2c3e50;
    --color-secondary: #34495e;
    --color-accent: #e74c3c;
    --color-success: #27ae60;
    
    /* Colores neutros */
    --color-bg: #f8f9fa;
    --color-bg-alt: #ffffff;
    --color-text: #2c3e50;
    --color-text-light: #7f8c8d;
    --color-border: #ecf0f1;
    
    /* Sombras sutiles */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
    
    /* Espaciados */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    
    /* Tipografía */
    --font-heading: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
    
    /* Bordes */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--space-sm);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: var(--space-sm);
    color: var(--color-text-light);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-primary);
}

.text-center {
    text-align: center;
}

/* ============================================
   BARRA SUPERIOR
   ============================================ */
.top-bar {
    background-color: var(--color-primary);
    color: white;
    padding: var(--space-xs) 0;
    font-size: 0.875rem;
    text-align: center;
}

.top-bar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
}

/* ============================================
   HEADER PRINCIPAL
   ============================================ */
.header {
    background-color: var(--color-bg-alt);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--space-sm) 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-lg);
}

/* Logo */
.logo a {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 2px;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* Navegación */
.nav {
    display: flex;
    gap: var(--space-md);
    flex: 1;
    justify-content: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text);
    font-weight: 500;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.nav-link:hover {
    background-color: var(--color-bg);
    color: var(--color-primary);
}

.nav-link.active {
    background-color: var(--color-primary);
    color: white;
}

/* Acciones de usuario */
.user-actions {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

.search-btn,
.cart-btn,
.user-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-bg);
    color: var(--color-text);
    transition: all 0.2s ease;
}

.search-btn:hover,
.cart-btn:hover,
.user-btn:hover {
    background-color: var(--color-border);
    transform: translateY(-1px);
}

.cart-btn {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--color-accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Botón menú móvil */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text);
    cursor: pointer;
    padding: var(--space-xs);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    padding: var(--space-xl) 0;
    margin-bottom: var(--space-xl);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-md);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-lg);
}

.hero-stats {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-image {
    background-size: cover;
    background-position: center;
    height: 400px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   BOTONES
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    font-family: var(--font-body);
}

.btn-primary {
    background-color: var(--color-accent);
    color: white;
}

.btn-primary:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--color-primary);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: white;
}

.btn-large {
    padding: var(--space-md) var(--space-xl);
    font-size: 1.1rem;
}

/* ============================================
   SECCIÓN DE CONFIANZA
   ============================================ */
.trust {
    background-color: var(--color-bg-alt);
    padding: var(--space-xl) 0;
    margin-bottom: var(--space-xl);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
}

.trust-item {
    text-align: center;
    padding: var(--space-lg);
}

.trust-item i {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.trust-item h4 {
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.trust-item p {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* ============================================
   CATEGORÍAS
   ============================================ */
.categories {
    padding: var(--space-xl) 0;
    margin-bottom: var(--space-xl);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-header h2 {
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.section-header p {
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.category-card {
    background-color: var(--color-bg-alt);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

.category-icon {
    width: 70px;
    height: 70px;
    background-color: var(--color-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
}

.category-icon i {
    font-size: 1.8rem;
    color: var(--color-primary);
}

.category-card h3 {
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.category-card p {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
}

.category-count {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--color-bg);
    color: var(--color-text-light);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ============================================
   PRODUCTOS
   ============================================ */
.featured-products {
    padding: var(--space-xl) 0;
    background-color: var(--color-bg-alt);
    margin-bottom: var(--space-xl);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.product-card {
    background-color: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.product-badge {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    background-color: var(--color-accent);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1;
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.wishlist-btn {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    width: 36px;
    height: 36px;
    background-color: white;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    color: var(--color-text-light);
}

.wishlist-btn:hover {
    background-color: var(--color-accent);
    color: white;
}

.product-info {
    padding: var(--space-md);
}

.product-category {
    display: inline-block;
    color: var(--color-text-light);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.product-title {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
    height: 3em;
    overflow: hidden;
}

.product-price {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.current-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.old-price {
    font-size: 1rem;
    color: var(--color-text-light);
    text-decoration: line-through;
}

.discount {
    background-color: var(--color-success);
    color: white;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: var(--space-md);
    color: #f39c12;
}

.rating-count {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-left: 4px;
}

.product-card .add-to-cart {
    width: 100%;
    justify-content: center;
}

/* ============================================
   TESTIMONIOS
   ============================================ */
.testimonials {
    padding: var(--space-xl) 0;
    margin-bottom: var(--space-xl);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.testimonial-card {
    background-color: white;
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.testimonial-rating {
    color: #f39c12;
    margin-bottom: var(--space-md);
}

.testimonial-text {
    font-style: italic;
    color: var(--color-text);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    color: var(--color-text);
    margin-bottom: 2px;
}

.testimonial-author p {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    padding: var(--space-xl) 0;
    text-align: center;
}

.newsletter-content h2 {
    color: white;
    margin-bottom: var(--space-sm);
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto var(--space-lg);
}

.newsletter-form {
    display: flex;
    gap: var(--space-sm);
    max-width: 500px;
    margin: 0 auto var(--space-sm);
}

.newsletter-form input {
    flex: 1;
    padding: var(--space-md);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.3);
}

.form-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: var(--color-primary);
    color: white;
    padding: var(--space-xl) 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-col h4 {
    color: white;
    margin-bottom: var(--space-md);
    font-size: 1.1rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-md);
}

.social-links {
    display: flex;
    gap: var(--space-sm);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.social-links a:hover {
    background-color: var(--color-accent);
    transform: translateY(-2px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-xs);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: var(--space-sm);
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact i {
    width: 20px;
    color: var(--color-accent);
}

/* Footer bottom */
.footer-bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-md);
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: var(--space-xs);
}

.copyright a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

.credits {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 992px) {
    html {
        font-size: 15px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-image {
        height: 300px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav {
        display: none;
        width: 100%;
        order: 3;
        flex-direction: column;
        margin-top: var(--space-md);
        padding: var(--space-md);
        background-color: var(--color-bg-alt);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-md);
    }
    
    .nav.active {
        display: flex;
    }
    
    .user-actions {
        margin-left: auto;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .trust-grid,
    .categories-grid,
    .products-grid,
    .testimonials-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .btn-large {
        padding: var(--space-sm) var(--space-lg);
    }
}

/* Utilidades */
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }














/* ESTILOS PARA CATÁLOGO Y FILTROS */

/* Hero del catálogo */
.catalog-hero {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    color: white;
    padding: 40px 0;
}

.catalog-header {
    text-align: center;
}

.catalog-header h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.catalog-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* Filtros principales */
.catalog-filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
}

.filter-group label {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
}

.filter-select {
    padding: 10px 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #00b0ff;
    box-shadow: 0 0 0 3px rgba(0, 176, 255, 0.2);
}

.filter-select option {
    color: #333;
    background: white;
}

/* Estadísticas */
.catalog-stats {
    display: flex;
    gap: 20px;
    justify-content: center;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Layout principal del catálogo */
.catalog-main {
    padding: 40px 0;
}

.catalog-main .container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* Sidebar de filtros */
.catalog-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.sidebar-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.sidebar-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #1a237e;
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 10px;
}

.filter-section {
    margin-bottom: 25px;
}

.filter-section h4 {
    font-size: 0.95rem;
    margin-bottom: 12px;
    color: #333;
    font-weight: 600;
}

.filter-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-checkboxes label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #555;
    transition: color 0.2s ease;
}

.filter-checkboxes label:hover {
    color: #1a237e;
}

.filter-checkboxes input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #1a237e;
    cursor: pointer;
}

/* Rango de precios */
.price-range {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-range input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
}

.price-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1a237e;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.price-values {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #666;
}

/* Etiquetas de filtro */
.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tag {
    background: #f0f2f5;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tag:hover {
    background: #e0e0e0;
}

.filter-tag.active {
    background: #1a237e;
    color: white;
}

/* Grid de productos en catálogo */
.catalog-products .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Paginación */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination-btn {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #1a237e;
    background: #1a237e;
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 8px;
}

.page-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.page-number:hover {
    border-color: #1a237e;
    color: #1a237e;
}

.page-number.active {
    background: #1a237e;
    color: white;
    border-color: #1a237e;
}

/* Sin resultados */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-results i {
    color: #ccc;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

/* Metadatos del producto */
.product-meta {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
    font-size: 0.85rem;
}

.product-marca {
    color: #666;
    font-weight: 500;
}

.product-stock {
    font-weight: 600;
}

.product-stock.in-stock {
    color: #00c853;
}

.product-stock.out-stock {
    color: #ff3d00;
}

/* Botones de acción del producto */
.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.product-actions .btn {
    flex: 1;
    padding: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* Notificaciones */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification i {
    color: #00c853;
    font-size: 1.2rem;
}

/* Loading */
.loading-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.loading-products i {
    margin-bottom: 15px;
    font-size: 2rem;
    color: #1a237e;
}

/* Error */
.error-loading {
    text-align: center;
    padding: 60px 20px;
    color: #ff3d00;
}

.error-loading i {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Animación para contador de carrito */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.cart-count.pulse {
    animation: pulse 0.5s ease;
}

/* Responsive */
@media (max-width: 1024px) {
    .catalog-main .container {
        grid-template-columns: 1fr;
    }
    
    .catalog-sidebar {
        position: static;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .catalog-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .catalog-products .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}

/* ESTILOS ESPECÍFICOS PARA EL CARRITO */

/* Breadcrumb */
.breadcrumb {
    background: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #1a237e;
}

.breadcrumb .current {
    color: #1a237e;
    font-weight: 600;
}

.breadcrumb i {
    font-size: 0.8rem;
    color: #999;
}

/* Encabezado del carrito */
.cart-header {
    text-align: center;
    padding: 40px 0 30px;
}

.cart-header h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 2.5rem;
    color: #1a237e;
    margin-bottom: 10px;
}

.cart-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Layout del carrito */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    padding-bottom: 60px;
}

/* Sección de productos */
.cart-items-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.cart-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f2f5;
}

.cart-section-header h2 {
    font-size: 1.4rem;
    color: #333;
}

.btn-text {
    background: none;
    border: none;
    color: #ff4757;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-text:hover {
    background: #fff5f5;
}

/* Carrito vacío */
.cart-empty {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart-icon {
    font-size: 4rem;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.cart-empty h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.cart-empty p {
    color: #666;
    margin-bottom: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Ítems del carrito */
.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr 150px;
    gap: 20px;
    padding: 25px;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    margin-bottom: 20px;
    background: white;
    transition: all 0.3s ease;
    position: relative;
}

.cart-item:hover {
    border-color: #1a237e;
    box-shadow: 0 4px 12px rgba(26, 35, 126, 0.1);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 5px 0;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.cart-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.cart-item-category {
    font-size: 0.85rem;
    color: #666;
    background: #f8f9fa;
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-block;
}

.remove-item {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1.1rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.remove-item:hover {
    color: #ff4757;
    background: #fff5f5;
}

.cart-item-details {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #666;
}

.cart-item-details span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    padding: 5px;
    border-radius: 8px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #333;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.quantity-btn:hover {
    background: #1a237e;
    color: white;
}

.quantity-input {
    width: 40px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    font-family: 'Poppins', sans-serif;
}

.quantity-input:focus {
    outline: none;
}

.cart-item-price {
    text-align: right;
}

.current-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a237e;
    display: block;
}

.old-price {
    font-size: 0.9rem;
    color: #999;
    text-decoration: line-through;
    display: block;
    margin-top: 5px;
}

/* Total por ítem */
.item-total {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

/* Resumen móvil */
.cart-summary-mobile {
    display: none;
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Continuar comprando */
.continue-shopping {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

/* Resumen del pedido */
.summary-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 20px;
    margin-bottom: 20px;
}

.summary-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: #333;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f2f5;
}

.summary-details {
    margin-bottom: 25px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 1rem;
}

.summary-row span {
    color: #666;
}

.summary-row.total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f0f2f5;
    font-size: 1.3rem;
}

.summary-row.total strong {
    color: #1a237e;
}

.summary-row.discount span:last-child {
    color: #00c853;
}

/* Código promocional */
.promo-code {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}

.promo-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.promo-header h4 {
    font-size: 1rem;
    color: #333;
}

.promo-input {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.promo-input input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.promo-input input:focus {
    outline: none;
    border-color: #1a237e;
}

.promo-input .btn {
    white-space: nowrap;
    padding: 12px 20px;
}

.promo-message {
    font-size: 0.9rem;
    min-height: 20px;
    margin-bottom: 15px;
}

.promo-message.success {
    color: #00c853;
}

.promo-message.error {
    color: #ff4757;
}

.available-promos {
    font-size: 0.85rem;
    color: #666;
}

.available-promos p {
    margin-bottom: 8px;
    font-weight: 500;
}

.available-promos ul {
    list-style: none;
    padding-left: 0;
}

.available-promos li {
    margin-bottom: 5px;
    padding-left: 15px;
    position: relative;
}

.available-promos li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #1a237e;
}

/* Botón de checkout */
#checkout-btn {
    padding: 16px;
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#checkout-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Métodos de pago */
.payment-methods-summary {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e9ecef;
}

.payment-methods-summary p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 1.8rem;
    color: #666;
}

/* Garantías */
.cart-guarantees {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.guarantee-item i {
    font-size: 1.5rem;
    color: #1a237e;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f2f5;
    border-radius: 50%;
}

.guarantee-item h5 {
    font-size: 0.95rem;
    margin-bottom: 3px;
    color: #333;
}

.guarantee-item p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

/* Productos recomendados */
.recommended-products {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.recommended-products h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #333;
}

.recommended-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recommended-product {
    display: flex;
    gap: 15px;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.recommended-product:hover {
    border-color: #1a237e;
    background: #f8f9fa;
}

.recommended-product img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
}

.recommended-product-info {
    flex: 1;
}

.recommended-product-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.recommended-product-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a237e;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    margin: 0;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f8f9fa;
    color: #333;
}

.modal-body {
    padding: 25px;
}

.modal-body p {
    margin: 0;
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
}

.modal-footer {
    display: flex;
    gap: 15px;
    padding: 20px 25px;
    border-top: 1px solid #e9ecef;
    justify-content: flex-end;
}

.modal-footer .btn {
    min-width: 100px;
}

/* Responsive */
@media (max-width: 1024px) {
    .cart-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .summary-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .cart-header h1 {
        font-size: 2rem;
    }
    
    .cart-items-section {
        padding: 20px;
    }
    
    .cart-item {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px;
    }
    
    .cart-item-image {
        width: 100%;
        height: 200px;
    }
    
    .cart-item-actions {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .cart-summary-mobile {
        display: block;
    }
    
    .cart-summary {
        display: none;
    }
    
    .recommended-products {
        display: none;
    }
}

@media (max-width: 480px) {
    .cart-header {
        padding: 30px 0 20px;
    }
    
    .cart-header h1 {
        font-size: 1.7rem;
    }
    
    .cart-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .promo-input {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
}
/* =========================================== */
/* ESTILOS ADICIONALES PARA MAIN.JS */
/* =========================================== */

/* Header con scroll */
.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Animación para botón del carrito */
.cart-btn.pulse {
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.cart-count.has-items {
    background: #ff4757;
    color: white;
}

/* Sistema de notificaciones */
#notif-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

.notification {
    background: white;
    border-radius: 10px;
    padding: 15px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.3s ease;
    border-left: 4px solid #00c853;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.error {
    border-left-color: #ff4757;
}

.notification.warning {
    border-left-color: #ffa502;
}

.notification.info {
    border-left-color: #2ed573;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.notification i {
    font-size: 1.2rem;
}

.notification.success i { color: #00c853; }
.notification.error i { color: #ff4757; }
.notification.warning i { color: #ffa502; }
.notification.info i { color: #2ed573; }

.notification-content span {
    font-size: 0.95rem;
    color: #333;
}

.notification-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 0.9rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.notification-close:hover {
    background: #f8f9fa;
    color: #333;
}

/* Sistema de búsqueda */
.search-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    display: none;
}

.search-container.show {
    display: block;
}

.search-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.search-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: searchSlideDown 0.3s ease;
}

@keyframes searchSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
}

.search-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    margin: 0;
    color: #1a237e;
}

.search-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.search-close:hover {
    background: #f8f9fa;
    color: #333;
}

.search-input-group {
    padding: 20px 25px;
    display: flex;
    gap: 10px;
}

.search-input-group input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.search-input-group input:focus {
    outline: none;
    border-color: #1a237e;
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.search-input-group button {
    padding: 0 25px;
    background: #1a237e;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input-group button:hover {
    background: #283593;
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
    padding: 0 25px 20px;
}

.search-placeholder, 
.search-loading,
.search-no-results,
.search-error {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.search-products-grid {
    display: grid;
    gap: 15px;
}

.search-product {
    display: flex;
    gap: 15px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.search-product:hover {
    border-color: #1a237e;
    background: #f8f9fa;
    transform: translateY(-2px);
}

.search-product img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.search-product-info {
    flex: 1;
}

.search-product-info h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    color: #333;
}

.search-product-price {
    font-weight: 700;
    color: #1a237e;
    font-size: 1rem;
    margin-bottom: 5px;
}

.search-product-category {
    font-size: 0.8rem;
    color: #666;
    background: #f0f2f5;
    padding: 2px 8px;
    border-radius: 12px;
}

.search-trending {
    padding: 20px 25px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 0 0 20px 20px;
}

.search-trending h4 {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: #666;
}

.trending-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.trending-tag {
    background: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
}

.trending-tag:hover {
    background: #1a237e;
    color: white;
    border-color: #1a237e;
}

/* Modales */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.show {
    display: flex;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 15px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-sm {
    max-width: 400px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 1;
}

.modal-close:hover {
    background: #f8f9fa;
    color: #333;
}

/* Estilos para auth modal */
.auth-tabs {
    padding: 30px;
}

.tab-headers {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
}

.tab-header {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.tab-header.active {
    color: #1a237e;
    font-weight: 600;
}

.tab-header.active:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #1a237e;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #1a237e;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #666;
}

.auth-link a {
    color: #1a237e;
    text-decoration: none;
    font-weight: 500;
}

.auth-link a:hover {
    text-decoration: underline;
}

.user-profile {
    padding: 40px 30px;
    text-align: center;
}

.user-avatar {
    font-size: 4rem;
    color: #1a237e;
    margin-bottom: 20px;
}

.user-profile h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: #333;
}

.user-profile p {
    color: #666;
    margin-bottom: 30px;
}

.user-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        display: none;
        flex-direction: column;
        gap: 15px;
        z-index: 1000;
    }
    
    .nav.show {
        display: flex;
    }
    
    .nav-link {
        padding: 12px 20px;
        border-radius: 8px;
        transition: all 0.2s ease;
    }
    
    .nav-link:hover {
        background: #f8f9fa;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    #notif-container {
        left: 20px;
        right: 20px;
        max-width: none;
    }
    
    .notification {
        max-width: 100%;
    }
    
    .modal-content {
        margin: 10px;
        max-height: 80vh;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .search-input-group {
        flex-direction: column;
    }
    
    .search-input-group button {
        padding: 15px;
    }
}

/* Animaciones de carga */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1a237e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Efectos hover para tarjetas */
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.category-card:hover {
    transform: translateY(-3px);
    background: #1a237e;
    color: white;
}

.category-card:hover h3,
.category-card:hover p,
.category-card:hover .category-count {
    color: white;
}

/* Scroll personalizado */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}