* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
}

/* Header Styles */
.header {
    background-color: #ffffff;
    padding: 20px 40px;
    border-bottom: 1px solid #e0e0e0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 150px;
    width: auto;
    object-fit: contain;
    max-width: 400px;
}

.logo-content {
    display: none; /* Oculto por defecto, se mostrará solo si la imagen falla */
    flex-direction: column;
    gap: 2px;
}

.logo-text {
    font-size: 32px;
    font-weight: bold;
    color: #000000;
    letter-spacing: 2px;
    margin: 0;
    line-height: 1;
}

.logo-tagline {
    font-size: 12px;
    font-weight: 400;
    color: #000000;
    letter-spacing: 1px;
    margin: 0;
    line-height: 1;
    text-transform: uppercase;
}

.search-section {
    flex: 1;
    max-width: 500px;
    margin-left: 40px;
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
    border-radius: 25px;
    padding: 10px 20px;
    gap: 10px;
}

.search-icon {
    font-size: 18px;
    color: #666;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    color: #000000;
    outline: none;
}

.search-input::placeholder {
    color: #999;
}

/* Navigation Styles */
.navigation {
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #000000;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #d4af37;
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Featured Products Section */
.featured-products {
    margin-bottom: 60px;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background-color: #ffffff;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

/* Scale Mockups */
.scale-mockup {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.scale-white {
    background-color: #ffffff;
    border: 2px solid #e0e0e0;
}

.scale-dark {
    background-color: #2c2c2c;
    border: 2px solid #1a1a1a;
}

.scale-light-gray {
    background-color: #e8e8e8;
    border: 2px solid #d0d0d0;
}

.scale-platform {
    width: 80%;
    height: 30px;
    background-color: #888888;
    border-radius: 5px;
    margin-bottom: 10px;
}

.scale-platform.circular {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.scale-tray {
    width: 70%;
    height: 5px;
    background-color: rgba(173, 216, 230, 0.5);
    border: 1px solid rgba(173, 216, 230, 0.8);
    border-radius: 3px;
    margin-top: -5px;
    margin-bottom: 5px;
}

.scale-display {
    width: 70%;
    height: 35px;
    background-color: #1e3a8a;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.display-text {
    color: #60a5fa;
    font-size: 18px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.scale-buttons {
    width: 100%;
    display: flex;
    justify-content: center;
}

.button-row {
    display: flex;
    gap: 5px;
}

.scale-btn-small {
    width: 20px;
    height: 15px;
    background-color: #3b82f6;
    border-radius: 3px;
    display: inline-block;
}

.scale-btn-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
}

.scale-btn-circle.blue {
    background-color: #3b82f6;
}

.scale-btn-circle.orange {
    background-color: #f97316;
}

.scale-keypad {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.keypad-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
}

.keypad-btn {
    width: 15px;
    height: 15px;
    background-color: #4a5568;
    border-radius: 2px;
    display: inline-block;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 10px;
}

.product-img {
    max-width: 100%;
    max-height: 250px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.product-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    min-height: 40px;
    line-height: 1.5;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-price {
    font-size: 22px;
    font-weight: bold;
    color: #000000;
}

.product-stock {
    font-size: 14px;
    color: #28a745;
    font-weight: 500;
}

.product-stock.out-of-stock {
    color: #dc3545;
}

/* Mensajes de estado */
.loading-message,
.error-message,
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #666;
}

.error-message {
    color: #dc3545;
    background-color: #f8d7da;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
}

.no-products {
    color: #6c757d;
    background-color: #f8f9fa;
    border-radius: 8px;
}

/* Special Offers Section */
.special-offers {
    margin-top: 60px;
}

.offers-banner {
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    border-radius: 15px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 250px;
}

.offers-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.offers-title {
    font-size: 42px;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 2px;
}

.buy-button {
    background-color: #ffffff;
    color: #d4af37;
    border: none;
    padding: 15px 40px;
    font-size: 20px;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    letter-spacing: 1px;
    width: fit-content;
}

.buy-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.buy-button:active {
    transform: scale(0.98);
}

.offers-product {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Responsive Design */
@media (max-width: 968px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .header-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .search-section {
        max-width: 100%;
        margin-left: 0;
        width: 100%;
    }
    
    .logo-section {
        gap: 12px;
    }
    
    .logo-img {
        height: 120px;
        max-width: 350px;
    }
    
    .logo-text {
        font-size: 28px;
    }
    
    .logo-tagline {
        font-size: 11px;
    }
    
    .offers-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .offers-content {
        align-items: center;
    }
}

@media (max-width: 640px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .offers-title {
        font-size: 32px;
    }
    
    .logo-img {
        height: 140px;
        max-width: 350px;
    }
    
    .logo-text {
        font-size: 24px;
    }
    
    .logo-tagline {
        font-size: 10px;
    }
}

