/* Estilos generales */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            
        }
        
        
        body {
            font-family: 'Arial', sans-serif, Montserrat ;
            background: linear-gradient(180deg,  #1341a5 3%, #fdfdfc 30%);
            color: #333;
            overflow-x: hidden;
        }
        
        .container {
            
            margin: 0 auto;
            padding: 0 25px;
        }
        
        /* Header */
        header {
            
            background: linear-gradient(135deg, #1341a5 0%, #ffffff 100%);
            padding: 1rem;
            box-shadow: 0 2px 10px rgba(0,5,0,0.1);
            position: sticky;
            top: 0;
            z-index: 1000;            
        }

        .header-content {
           
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
        }
        
        .logo-section {
            display: flex;
            align-items: center;
           
        }
        
        .logo {
            width: 50px;
            height: 50px;
            z-index: 1000;
            display: flex;            
            animation: spin 12s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        
        .logo img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 50%;
        }
        
        .store-name h1 {
            color: white;
            margin-left: 10px;
            font-weight: bold;
            text-shadow: 0 2px 20px rgb(0, 0, 0);
            display: flex;
            align-items: center;
            animation: mover-izquierda-derercha 3s 1;
            animation-fill-mode:forwards;
        }
        @keyframes  mover-izquierda-derercha{
            from {transform: translateX(-100px);}
            to {transform: translateX(5px);}
        }
        
/* barra buscador*/
        .search-bar {
            display: flex; 
            flex: 1; 
            max-width: 400px; 
            margin: 0 2rem; 
        }
        
        .search-bar input {
            flex: 1; 
            padding: 0.75rem; 
            border: none; 
            border-radius: 25px 0 0 25px; 
            font-size: 1rem; 
            outline: none; 
        }
        
        .search-bar button {  
            border: none; 
            padding: 0.75rem 1rem; 
            border-radius: 0 25px 25px 0; 
            color: rgb(0, 0, 0);
            cursor: pointer;  
        }
        
        .tresbtn{
            display: flex;
            align-items: center;
            gap: 20px;
        }
        .header-actions {
            display: flex;
            align-items: center;
            
        }
         .reversa{                    
            background-color:  #1341a5;
            text-shadow: 0 2px 5px rgb(255, 255, 255);
            padding: 10px 20px;
            color: white;
            border-radius: 50px;
            cursor: pointer;
            position: relative;
            transition: transform 0.2s;
         }
         .reversa:hover {
            transform: scale(1.2);
        }         
        .whatsapp-btn{
            background-color: transparent;
            text-shadow: 0 2px 5px rgb(255, 255, 255);
            border: none;
            font-size: 2rem;
            margin-left: 15px;
            cursor: pointer;
            position: relative;
            transition: all 0.3s;
            
        }
        .whatsapp-btn:hover {
            transform: scale(1.5);
        }
        .header-btn {
            background-color: transparent;
            border: none;
            color: #1341a5;
            font-size: 1.5rem;
            margin-left: 15px;
            cursor: pointer;
            position: relative;
            transition: transform 0.3s;
        }
        
        .header-btn:hover {
            transform: scale(1.5);
        }
        
        .cart-count {
            position: absolute;
            top: -8px;
            right: -8px;
            background-color: #e74c3c;
            color: rgb(255, 255, 255);
            border-radius: 50%;
            width: 20px;
            height: 20px;
            font-size: 0.7rem;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        /* Modal de imagen */
        .modal {
            display: none;
            position: fixed;
            z-index: 1001;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0, 0, 0, 0.9);
        }
        
       .modal-content {
            margin: auto;
            display: block;
            top: 2.5rem;
            width: 80%;
            max-width: 800px;
            max-height: 90vh;
            position: relative;
            
        }
        
        .close {
            position: absolute;
            top: 0.3rem;
            right: 35px;
            color: white;
            font-size: 40px;
            font-weight: bold;
            transition: 0.3s;
            cursor: pointer;
        }
        /*
        .modal-content {
            
            position: relative;
            margin:0 500px;
            padding: 0 30px;
            top: 80px;
            width: 100%;
            max-width: 400px;
            max-height: 90vh;
        }*/
        
        .close:hover {
            color: #bbb;
        }
        
        /* Sección de promociones */
        h4{
            color: #ffffff;
            text-align: center;
            box-sizing: border-box;
        }
        .promotions {
            padding: 30px 0;
        }
        
        .section-title {
            font:Montserrat;
            text-align: center;
            margin-bottom: 15px;
            font-size: 2rem;
            color: #ffffff;
            font-weight: bold;
            text-transform: uppercase;
            text-shadow: 0 2px 20px rgb(0, 0, 0);
        }
        .section-title-2 {
            font:Montserrat;
            text-align: center;
            margin-bottom: 15px;
            font-size: 2rem;
            color:#1341a5;
            font-weight: bold;
            text-transform: uppercase;
            text-shadow: 0 2px 20px rgb(0, 0, 0);
        }
        .promo-grid {
            
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
        }
        
        .product-card {
            background-color: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 10px rgb(0, 0, 0);
            transition: transform 0.3s, box-shadow 0.3s;
        }
        
        .product-card:hover {
            transform: translateY(-15px);
            box-shadow: 0 2px 20px rgb(0, 0, 0);
        }
        
        .product-image {
            height: 200px;
            overflow: hidden;
            position: relative;
            cursor: pointer;
        
        }
        
        .product-image img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            transition: transform 0.5s;
        }
        
        .product-image:hover img {
            transform: scale(1.05);
        }
        
        .promo-badge {
            position: absolute;
            top: 10px;
            left: 10px;
            background-color: #ee2e19;
            color: white;
            padding: 5px 10px;
            border-radius: 5px;
            font-size: 1rem;
            font-weight: bold;
        }
        
        .product-info {
            padding: 15px;
        }
        
        .product-code {
            color: #3a3b3b;
            font-size: 0.8rem;
            margin-bottom: 5px;
        }
        
        .product-name {
            font-size: 1.2rem;
            margin-bottom: 10px;
            color: #000000;
            font-weight: 600;
            height: 40px;
            overflow: hidden;
        }
        
        .product-price {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
        }
        
        .current-price {
            font-size: 1.3rem;
            font-weight: bold;
            color: #e42813;
        }
        
        .original-price {
            font-size: 1rem;
            color: #6c7575;
            text-decoration: line-through;
            margin-left: 1rem;
        }
        
        .product-stock {
            background: #d4edda;
            color: #27ae60;
            font-size: 1.2rem;
            font-weight: bold;
            margin-bottom: 1rem;
            padding: 0.3rem 0.8rem;
            border-radius: 15px;
            display: inline-block;

        }
        
        .out-of-stock {
            background: #f8d7da;
            font-size: 1.2rem;
            font-weight: bold;
            color: #000000;
            margin-bottom: 1rem;
        }
        
        .add-to-cart {
            width: 100%;
            padding: 10px;
            background-color:  #1341a5;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-weight: bold;
            transition: background-color 0.3s;
        }
        
        .add-to-cart:hover {
            background-color: #27ae60;
        }
        
        /* Sección de productos */
        .products {
            padding: 40px 0;
            background-color: #ecf0f1;
        }
        
        .product-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
        }
        
        /* Carrito */
        .cart-overlay {
            position: fixed;
            top: 0;
            right: -100%;
            width: 100%;
            max-width: 500px;
            height: 100%;
            background-color: white;
            box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
            transition: right 0.5s;
            z-index: 1002;
            overflow-y: auto;
            padding: 20px;
        }
        
        .cart-overlay.active {
            right: 0;
        }
        
        .cart-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid #eee;
        }
        
        .cart-title {
            font-size: 1.5rem;
            color: #2c3e50;
        }
        
        .close-cart {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: #7f8c8d;
        }
        
        .cart-items {
            margin-bottom: 20px;
        }
        
        .cart-item {
            display: flex;
            margin-bottom: 15px;
            padding-bottom: 15px;
            border-bottom: 1px solid #eee;
        }
        
        .cart-item-image {
            width: 80px;
            height: 80px;
            margin-right: 15px;
        }
        
        .cart-item-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 5px;
        }
        
        .cart-item-details {
            align-items: center;
            flex-grow: 1;
        }
        
        .cart-item-name {
            font-weight: bold;
            margin-bottom: 5px;
            color: #2c3e50;
        }
        
        .cart-item-code {
            font-size: 0.8rem;
            color: #7f8c8d;
            margin-bottom: 5px;
        }
        
        .cart-item-price {
            font-weight: bold;
            color: #e74c3c;
            margin-bottom: 5px;
        }
        
        .cart-item-quantity {
            display: flex;
            align-items: center;
        }
        
        .quantity-btn {
            width: 25px;
            height: 25px;
            background-color: #eee;
            border: none;
            border-radius: 3px;
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .quantity-input {
            width: 40px;
            text-align: center;
            margin: 0 5px;
        }
        
        .remove-item {
            background: none;
            border: none;
            color: #e74c3c;
            cursor: pointer;
            font-size: 0.9rem;
            margin-top: 5px;
        }
        
        .cart-summary {
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid #eee;
        }
        
        .summary-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
        }
        
        .summary-label {
            color: #7f8c8d;
        }
        
        .summary-value {
            font-weight: bold;
        }
        
        .total {
            font-size: 1.2rem;
            color: #2c3e50;
        }
        
        .shipping-options {
            margin: 20px 0;
        }
        
        .shipping-title {
            font-weight: bold;
            margin-bottom: 10px;
            color: #2c3e50;
        }
        
        .shipping-option {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
        }
        
        .shipping-option input {
            margin-right: 10px;
        }
        
        .payment-options {
            margin: 20px 0;
        }
        
        .payment-title {
            font-weight: bold;
            margin-bottom: 10px;
            color: #2c3e50;
        }
        
        .payment-option {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
        }
        
        .payment-option input {
            margin-right: 10px;
        }
        
        .checkout-btn {
            width: 100%;
            padding: 12px;
            background: #1341a5;
            color: white;
            border: none;
            border-radius: 5px;
            font-weight: bold;
            cursor: pointer;
            transition: background-color 0.3s;
            margin-top: 10px;
        }
        
        .checkout-btn:hover {
            background-color: #219653;
        }

        /* Footer */
        footer {
            background: linear-gradient(135deg, #1341a5, #0a0e23);
            color: white;
            padding: 1rem 5%;
            font-size: 1rem;
        }
        
        .footer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1rem;
            max-width: 1200px;
            margin: 0 auto;
        }
        
              
        .footer-section {
            padding: 1rem;
        }
        
        .footer-section h3 {
            font-size: 1.8rem;
            margin-bottom: 1rem;
            position: relative;
            padding-bottom: 1rem;
        }
        
        .footer-section h3::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100px;
            height: 3px;
            background: linear-gradient(to right, #fdbb2d, #b21f1f);
        }
        
        .footer-links {
            list-style: none;
        }
        
        .footer-links P {
            margin-bottom: 1rem;
        }
        
        .footer-links a {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
        }            
                 
        .copyright {
            text-align: center;
            margin-top: 1rem;
            padding-top: 0.5rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            opacity: 0.7;
        }
        
        @media (max-width: 768px) {
            .header-content {
                flex-direction: column;
                gap: 15px;
            }
            
            .logo-section {
                margin-bottom: 15px;
            }
            
            h1{
                font-size: 2rem;
            }
            .search-bar {
                margin: 15px 0;
                width: 100%;
            }
            
            .cart-overlay {
                width: 100%;
                max-width: 100%;
            }
            
        }
    
        @media (min-width: 1000px){

        .container {
            max-width: 1200px;
            padding: 0 5px ;
            margin: 0 auto;
        }
        .header-content{
         max-width: 1350px; 
           margin: 0 1rem;
        }
        h1{
            font-size: 3rem;
        }
        .section-title, .section-title-2 {
            
            margin-bottom: 30px;
            font-size: 3rem;
        }
        .modal-content {
            
            position: relative;
            margin:0 500px;
            padding: 0 30px;
            top: 80px;
            width: 100%;
            max-width: 400px;
            max-height: 90vh;
            }
    }
    