/* Variables globales */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --light-gray: #f8f9fa;
    --background-gray: #f8f9fa;
    --text-color: #333;
    --border-color: #e9ecef;
    --whatsapp-color: #25D366;
}

/* Estilos generales */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-color);
    background-color: var(--background-gray);
}

/* Header Styles */
.header {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: white;
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    margin-right: 0;
}

.logo {
    height: 40px;
    width: auto;
}

/* Navbar personalizado */
.navbar {
    background-color: white !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
}

.navbar-brand img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

/* Contact Info Styles */
.contact-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
}

.contact-link i {
    font-size: 1.2rem;
}

/* Email Link Style */
a[href^="mailto"].contact-link {
    color: #2c3e50;
    background-color: var(--light-gray);
    border: 1px solid var(--border-color);
}

a[href^="mailto"].contact-link:hover {
    background-color: #e9ecef;
    color: #1a252f;
}

/* WhatsApp Link Style */
a[href^="https://wa.me"].contact-link {
    color: var(--whatsapp-color);
    background-color: #e7f7ef;
    border: 1px solid var(--whatsapp-color);
}

a[href^="https://wa.me"].contact-link:hover {
    background-color: var(--whatsapp-color);
    color: white;
}

/* Contenedor de filtros */
.filters-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
    padding: 1.5rem;
}

/* Tarjetas de producto */
.product-card {
    background: white;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 1rem;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

/* Badges y etiquetas */
.badge {
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
    font-weight: 500;
}

.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Botones */
.btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #1147d1;
    transform: translateY(-1px);
}

/* Inputs y campos de búsqueda */
.form-control {
    border-radius: 6px;
    border: 2px solid var(--border-color);
    padding: 0.75rem 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(22, 82, 240, 0.1);
}

/* Filtros activos */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.filter-tag {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-tag i {
    cursor: pointer;
    opacity: 0.6;
}

.filter-tag i:hover {
    opacity: 1;
}

/* Paginación */
.pagination {
    margin-top: 2rem;
}

.page-link {
    color: var(--primary-color);
    border: none;
    margin: 0 0.2rem;
    border-radius: 4px;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Spinner de carga */
.loading-spinner {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .filters-section {
        margin-bottom: 1rem;
        padding: 1rem;
    }

    .product-card {
        margin-bottom: 1rem;
    }
}

/* Custom styles for product catalog */
.product-card {
    transition: transform 0.3s ease-in-out;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

/* Transport Options Styles */
.transport-options {
    margin-bottom: 1rem;
}

.transport-select {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.transport-option {
    display: block;
    margin: 0;
    cursor: pointer;
}

.transport-option input[type="radio"] {
    display: none;
}

.transport-label {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: white;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.transport-label i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.transport-option input[type="radio"]:checked + .transport-label {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.transport-option input[type="radio"]:checked + .transport-label i {
    color: white;
}

.transport-option:hover .transport-label {
    background: var(--light-gray);
}

.transport-option input[type="radio"]:checked:hover + .transport-label {
    background: var(--primary-color);
}

/* Footer Styles */
.footer {
    margin-top: 3rem;
    padding: 2rem 0;
    background-color: var(--light-gray);
    border-top: 1px solid var(--border-color);
}

.footer-logo {
    height: 40px;
    width: auto;
}

.contact-info-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.social-links a {
    color: var(--secondary-color);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

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

/* Responsive Styles */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        border-top: 1px solid var(--border-color);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .navbar-nav {
        margin-left: auto;
    }
    
    .nav-link {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
        margin: 0.25rem 0;
        border-radius: 25px;
        transition: all 0.3s ease;
    }
    
    .nav-link i {
        font-size: 1.2rem;
    }
}

/* Estilos para alinear los elementos de contacto a la derecha */
.contact-info {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
}

.contact-info a {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.contact-info i {
    margin-right: 0.5rem;
}