/* pantallamarketplace-estilos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Header Styles */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

/* Logo Styles */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: transform 0.2s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav {
    display: flex;
    gap: 20px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background-color: #4CAF50; /* Verde del logo */
    color: white;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #4CAF50; /* Verde del logo */
    color: white;
}

.btn-primary:hover {
    background-color: #388E3C; /* Verde oscuro */
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #4CAF50; /* Verde del logo */
    color: #4CAF50; /* Verde del logo */
}

.btn-outline:hover {
    background-color: #4CAF50; /* Verde del logo */
    color: white;
}

.cart-button {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Main Content Styles */
.main-content {
    padding: 0;
    background: url('imagenes/fondo.jpg') no-repeat center center;
    background-size: cover;
}

.marketplace-section {
    padding: 40px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 7px;
    color: #049c11;
    font-size: 30px;
    font-weight: 600;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 15px;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #333;
}

.product-info p {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-price {
    font-size: 20px;
    font-weight: bold;
    color: #4CAF50; /* Verde del logo */
    margin-top: 10px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    color: #666;
    z-index: 1001;
}

.close-btn:hover {
    color: #333;
}

/* Product Detail Modal */
.product-detail-container {
    display: flex;
    gap: 20px;
    padding: 20px;
}

.product-detail-image {
    flex: 0 0 300px;
}

.product-detail-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-detail-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-detail-info h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.product-detail-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.product-detail-price {
    font-size: 24px;
    font-weight: bold;
    color: #4CAF50; /* Verde del logo */
    margin-bottom: 15px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.quantity-selector label {
    font-weight: 500;
}

.quantity-selector input {
    width: 60px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.add-to-cart {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    background-color: #4CAF50; /* Verde del logo */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-to-cart:hover {
    background-color: #388E3C; /* Verde oscuro */
}

/* Cart Modal */
.cart-items {
    max-height: 300px;
    overflow-y: auto;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

.cart-item-info p {
    color: #666;
    font-size: 14px;
}

.cart-item-actions button {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
}

.cart-item-actions button:hover {
    background-color: #fee2e2;
    color: #dc2626;
}

.cart-total {
    padding: 20px;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    border-top: 2px solid #eee;
}

.checkout-btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    margin-top: 20px;
    background-color: #4CAF50; /* Verde del logo */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.checkout-btn:hover {
    background-color: #388E3C; /* Verde oscuro */
}

/* Checkout Form */
#checkoutForm {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 60px;
    color: #10b981;
    margin-bottom: 20px;
}

.success-message h2 {
    font-size: 28px;
    color: #10b981;
    margin-bottom: 15px;
}

.success-message p {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .product-detail-container {
        flex-direction: column;
    }
    
    .product-detail-image {
        flex: 0 0 auto;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .modal-content {
        width: 95%;
        margin: 0 auto;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cart-item img {
        width: 100%;
        max-width: 150px;
    }
    
    .logo-img {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 24px;
    }
    
    .product-card {
        margin-bottom: 15px;
    }
    
    .product-info h3 {
        font-size: 16px;
    }
    
    .product-price {
        font-size: 18px;
    }
    
    .modal-content {
        padding: 15px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 8px;
    }
} 
/*----------------------*/
/* Search Filter Styles */
.search-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
    padding: 10px;
}

.search-input {
    width: 300px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #4CAF50; /* Verde del logo */
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

.search-btn {
    padding: 10px 20px;
    background-color: #4CAF50; /* Verde del logo */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background-color: #388E3C; /* Verde oscuro */
} 