/* Reset y estilos base */
* {
    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: #f5f5f5;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: #1a1a1a;
    color: #fff;
    font-size: 0.85rem;
    padding: 8px 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-right a {
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}

.top-bar-right a:hover {
    color: #ff6600;
}

.main-header {
    padding: 15px 0;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo h1 {
    font-size: 2rem;
    color: #0033a0;
    font-weight: 700;
}

.logo .simple {
    color: #ff6600;
    font-weight: 400;
    font-size: 1.5rem;
}

.search-bar {
    flex: 1;
    display: flex;
    max-width: 600px;
}

.search-bar input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px 0 0 25px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.search-bar input:focus {
    border-color: #0033a0;
}

.search-bar button {
    padding: 12px 25px;
    background: #ff6600;
    border: none;
    border-radius: 0 25px 25px 0;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}

.search-bar button:hover {
    background: #e55a00;
}

.header-icons {
    display: flex;
    gap: 20px;
}

.icon-link {
    position: relative;
    color: #333;
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.3s;
}

.icon-link:hover {
    color: #ff6600;
}

.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff6600;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(255, 102, 0, 0.4);
    }
    50% {
        box-shadow: 0 2px 15px rgba(255, 102, 0, 0.8);
    }
}

/* Navegación principal */
.main-nav {
    background: #0033a0;
    padding: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-menu li a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
    font-weight: 500;
}

.nav-menu li a:hover {
    background: #002a80;
}

.nav-menu li:first-child a {
    background: #ff6600;
}

.nav-menu li:first-child a:hover {
    background: #e55a00;
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, #0033a0 0%, #002a80 100%);
    color: white;
    padding: 80px 0;
    margin-bottom: 40px;
}

.banner-content {
    text-align: center;
}

.banner-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s;
}

.banner-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s;
}

.btn-primary {
    padding: 15px 40px;
    background: #ff6600;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    animation: fadeInUp 1.2s;
}

.btn-primary:hover {
    background: #e55a00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.3);
}

/* Categorías */
.categories {
    padding: 40px 0;
    background: white;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2rem;
    color: #0033a0;
    margin-bottom: 30px;
    text-align: center;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.category-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 51, 160, 0.2);
    border-color: #0033a0;
}

.category-card i {
    font-size: 3rem;
    color: #0033a0;
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 1.1rem;
    color: #333;
}

/* Productos */
.products {
    padding: 40px 0;
    margin-bottom: 40px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff6600;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    z-index: 10;
}

.product-image {
    height: 250px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-image:hover img {
    transform: scale(1.1);
}

.placeholder-img {
    color: #0033a0;
    opacity: 0.3;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 15px;
    height: 45px;
    overflow: hidden;
}

.product-price {
    margin-bottom: 15px;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
    margin-right: 10px;
}

.current-price {
    color: #ff6600;
    font-size: 1.5rem;
    font-weight: 700;
}

.btn-add-cart {
    width: 100%;
    padding: 12px;
    background: #0033a0;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-add-cart:hover {
    background: #002a80;
    transform: scale(1.02);
}

/* Banner secundario */
.secondary-banner {
    background: white;
    padding: 40px 0;
    margin-bottom: 40px;
}

.banner-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 15px;
    transition: all 0.3s;
}

.info-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.info-item i {
    font-size: 2.5rem;
    color: #ff6600;
}

.info-item h4 {
    color: #0033a0;
    margin-bottom: 5px;
}

.info-item p {
    color: #666;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-column h3 {
    color: #ff6600;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #ff6600;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.social-links a:hover {
    background: #ff6600;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    color: #999;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal del Carrito */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

.cart-modal-content {
    background: white;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: slideDown 0.3s;
}

.cart-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 2px solid #f0f0f0;
    background: linear-gradient(135deg, #0033a0 0%, #002a80 100%);
    color: white;
    border-radius: 15px 15px 0 0;
}

.cart-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.cart-modal-body {
    padding: 20px 25px;
    overflow-y: auto;
    flex: 1;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-cart i {
    color: #ddd;
    margin-bottom: 20px;
}

.empty-cart p {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.btn-continue-shopping {
    padding: 12px 30px;
    background: #0033a0;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-continue-shopping:hover {
    background: #002a80;
    transform: translateY(-2px);
}

.cart-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.cart-item:hover {
    background: #e9ecef;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    color: #333;
    margin-bottom: 8px;
    font-size: 1rem;
}

.item-discount {
    display: inline-block;
    background: #ff6600;
    color: white;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.item-price {
    color: #ff6600;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 5px;
}

.cart-item-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border-radius: 20px;
    padding: 5px;
}

.quantity-controls button {
    width: 28px;
    height: 28px;
    border: none;
    background: #0033a0;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.quantity-controls button:hover {
    background: #002a80;
    transform: scale(1.1);
}

.quantity-controls span {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

.item-subtotal {
    color: #0033a0;
    font-weight: 700;
    font-size: 1rem;
}

.btn-remove {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-remove:hover {
    background: #c82333;
    transform: scale(1.1);
}

.cart-modal-footer {
    padding: 20px 25px;
    border-top: 2px solid #f0f0f0;
    background: #f8f9fa;
    border-radius: 0 0 15px 15px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 10px;
}

.cart-total span:first-child {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.total-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ff6600;
}

.cart-actions {
    display: flex;
    gap: 15px;
}

.btn-clear-cart,
.btn-checkout {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-clear-cart {
    background: #6c757d;
    color: white;
}

.btn-clear-cart:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-checkout {
    background: #ff6600;
    color: white;
}

.btn-checkout:hover {
    background: #e55a00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-bar {
        max-width: 100%;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-menu li a {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .banner-content h2 {
        font-size: 2rem;
    }
    
    .banner-content p {
        font-size: 1rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .banner-info {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Modal responsive */
    .cart-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .cart-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .cart-item-controls {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .cart-modal-header h2 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .logo .simple {
        font-size: 1.2rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

