/* Variables globales */
:root {
    --primary-color: #ffb700;
    --secondary-color: #26704b;
    --accent-color: #ffc107;
    --dark-color: #007888;
    --light-color: #f8f9fa;
}

/* Estilos generales */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #fb9301 0%, #62ff00 100%);
    color: white;
    padding: 2rem 0;
}

.hero-section h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.search-bar {
    max-width: 500px;
    margin: 2rem auto;
}

.search-bar input {
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 30px;
}

/* Categorías */
.category-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card img {
    border-radius: 8px;
    margin-bottom: 1rem;
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.category-card h3 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Productos */
.product-card {
    height: 100%;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    height: 200px;
    object-fit: cover;
}

.price {
    color: #2c5282;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Carrito */
.cart-badge {
    position: relative;
    top: -8px;
    right: -8px;
}

/* Detalles del producto */
.product-details img {
    max-height: 400px;
    object-fit: contain;
}

/* Footer */
footer {
    background-color: #2d3748;
    color: white;
}

.social-icons a {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: white;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #667eea;
}

/* Navbar personalizado */
.navbar {
    padding: 1rem 0;
}

.nav-link:hover{
    font-weight: bold;
    color: #fbb001;
}

.men{
    font-weight: bold;
    color: #fbb001;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Footer */
footer {
    margin-top: 3rem;
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent-color) !important;
}

/* Botones */
.btn {
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .category-card img {
        height: 150px;
    }
    
    .product-card img {
        height: 150px;
    }
}

/* Estilos del carrito */
.carrito-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1rem;
    min-width: 300px;
    max-width: 400px;
    max-height: 500px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.carrito-dropdown.show {
    display: block;
}

.carrito-item {
    margin-bottom: 0.5rem;
}

.carrito-item:last-child {
    margin-bottom: 0;
}

.carrito-item-imagen {
    border-radius: 4px;
}

.cantidad-control button {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.carrito-contador {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    min-width: 1.5rem;
    text-align: center;
}

#carritoTotal {
    font-size: 1.1rem;
    margin-top: 1rem;
    border-top: 1px solid #ddd;
    padding-top: 1rem;
}

/* Modal de inicio de sesión */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border-radius: 5px;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.close {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
}

/* Notificaciones */
.notificacion {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1rem;
    border-radius: 4px;
    color: white;
    z-index: 1100;
    animation: fadeInOut 3s ease;
}

.notificacion-success {
    background-color: #28a745;
}

.notificacion-error {
    background-color: #dc3545;
}

/* Modal de detalles del producto */
.modal-lg {
    max-width: 800px !important;
    width: 90% !important;
}

.modal-lg img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.descripcion {
    margin: 1rem 0;
    line-height: 1.6;
}

/* Estilos adicionales para modales */
.modal-content {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Estilos para el menú desplegable */
.navbar-nav .dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    text-transform: uppercase;
    padding: 8px 20px;
    transition: background-color 0.3s;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #0d6efd;
}

.nav-link {
    text-transform: uppercase;
    font-weight: 500;
}

/* Animación suave para el menú desplegable */
.dropdown-menu {
    margin-top: 0;
    border-radius: 0.25rem;
    border-top: 3px solid #0d6efd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 