/* Assets/CSS/home.css */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    min-height: 100vh;
}

/* NAVBAR */
.navbar {
    background: rgba(30, 30, 46, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b35, #f7931e);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: #ff6b35;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
}

.logo:hover {
    color: #f7931e;
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    color: #ff6b35;
    background: rgba(255, 107, 53, 0.1);
    text-decoration: none;
}

.nav-link.active {
   
    background: rgba(235, 154, 154, 0.1);
    color: #ebe6e6;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #ffffff;
    font-weight: 600;
}

.welcome-text {
    color: #9ca3af;
    font-size: 0.9rem;
}

.username {
    color: #ff6b35;
    font-weight: 700;
}

.btn-logout {
    background: transparent;
    border: 2px solid rgba(239, 68, 68, 0.5);
    color: #ef4444;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
    text-decoration: none;
}

/* HERO SECTION */
.hero-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 24px;
    padding: 60px;
    margin: 32px auto;
    max-width: 1400px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ff6b35;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* PRODUCTS SECTION */
.products-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #9ca3af;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.product-card {
    background: rgba(30, 30, 46, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b35, #f7931e);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover {
    border-color: rgba(255, 107, 53, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    text-decoration: none;
    color: inherit;
}

.product-image-container {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.3) 100%);
}

.product-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.product-content {
    padding: 24px;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ff6b35;
    margin-bottom: 8px;
}

.product-description {
    color: #9ca3af;
    font-size: 0.95rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-view-details {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    text-decoration: none;
}

.btn-view-details:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
    color: white;
    text-decoration: none;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f59e0b;
    font-size: 0.9rem;
    font-weight: 600;
}

/* EMPTY STATE */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 24px;
    opacity: 0.5;
}

.empty-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #9ca3af;
    margin-bottom: 12px;
}

.empty-description {
    color: #64748b;
    font-size: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

/* CTA SECTION */
.cta-section {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-radius: 20px;
    padding: 60px 40px;
    margin: 80px auto 40px;
    max-width: 1400px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></svg>') repeat;
    animation: float 20s infinite linear;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: white;
}

.cta-description {
    font-size: 1.1rem;
    margin-bottom: 32px;
    opacity: 0.95;
    color: white;
    line-height: 1.5;
}

.cta-button {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    padding: 16px 32px;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-button:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    color: white;
    text-decoration: none;
}

/* ANIMATIONS */
@keyframes float {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.product-card {
    animation: fadeInUp 0.6s ease-out;
}

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

/* RESPONSIVE */
@media (max-width: 1200px) {
    .navbar-container {
        padding: 0 24px;
    }
    
    .products-section {
        padding: 24px;
    }
    
    .hero-section {
        margin: 24px;
        padding: 40px;
    }
    
    .hero-stats {
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
        gap: 20px;
        padding: 16px 20px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    
    .user-info {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .hero-section {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .product-image-container {
        height: 200px;
    }
    
    .cta-section {
        padding: 40px 20px;
        margin: 40px 20px 20px;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .navbar-container {
        padding: 12px 16px;
    }
    
    .hero-section {
        padding: 24px 16px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .products-section {
        padding: 16px;
    }
    
    .product-content {
        padding: 20px;
    }
    
    .product-title {
        font-size: 1.1rem;
    }
    
    .product-price {
        font-size: 1.5rem;
    }
}

/* DROPDOWN CATEGORÍAS */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
}

.dropdown-toggle::after {
    content: '▼';
    margin-left: 8px;
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(30, 30, 46, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 12px;
    padding: 8px 0;
    margin-top: 8px;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
    display: none;
}

.dropdown-menu.show {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: rgba(255, 107, 53, 0.1);
    color: #ff6b35;
    text-decoration: none;
    padding-left: 24px;
}

.dropdown-item:first-child {
    font-weight: 700;
    color: #ff6b35;
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
}

/* UTILITY CLASSES */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

.text-center { text-align: center; }
.mb-4 { margin-bottom: 1rem; }
.mt-4 { margin-top: 1rem; }