/* Nuevo estilo para el sistema de pedidos - Inspirado en el diseño de referencia */
:root {
    --primary-color: #f44336; /* Rojo para destacar elementos principales */
    --secondary-color: #ff9800; /* Naranja para acentos */
    --background-color: #f9f5ec; /* Fondo crema claro */
    --text-color: #333333;
    --light-color: #ffffff;
    --dark-color: #212121;
    --success-color: #4CAF50;
    --border-radius: 10px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-color);
    background-image: url('../img/pattern-bg.png');
    background-size: 400px;
    background-repeat: repeat;
    background-attachment: fixed;
    overflow-x: hidden;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(244, 67, 54, 0.25);
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 152, 0, 0.3);
    color: white;
}

.btn-primary {
    background-color: var(--primary-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
}

.btn-success {
    background-color: var(--success-color);
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.25);
}

.btn-success:hover {
    background-color: #3d8b40;
    box-shadow: 0 6px 15px rgba(76, 175, 80, 0.3);
}

.btn i {
    margin-right: 8px;
}

/* Cabecera */
.header {
    background-color: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 8px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 62px;
    padding: 0 18px;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo h1 {
    font-size: 1.38rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    letter-spacing: -0.5px;
}

.logo p {
    font-size: 0.83rem;
    color: var(--text-color);
    opacity: 0.7;
    font-style: italic;
}

.menu ul {
    display: flex;
    list-style: none;
}

.menu ul li {
    margin-left: 25px;
}

.menu ul li a {
    color: var(--text-color);
    font-weight: 500;
    padding: 9px 15px;
    border-radius: 30px;
    text-transform: uppercase;
    font-size: 0.88rem;
    letter-spacing: 0.5px;
}

.menu ul li a:hover, .menu ul li a.active {
    color: var(--primary-color);
}

.menu ul li a.active {
    background-color: rgba(244, 67, 54, 0.1);
    font-weight: 600;
}

.cart-btn a {
    position: relative;
    font-size: 1.13rem;
    color: var(--primary-color);
    background-color: rgba(244, 67, 54, 0.1);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cart-btn a:hover {
    background-color: var(--primary-color);
    color: white;
}

.cart-btn a #cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#cart-count:empty,
#cart-count:contains("0") {
    display: none !important;
}

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    background-image: url('../img/fondo.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: left;
    padding: 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 60px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
}

.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 100px 15px;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 450px;
}

.hero-features {
    margin-bottom: 30px;
}

.hero-features .feature {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.hero-features .feature i {
    color: var(--secondary-color);
    margin-right: 10px;
}

.hero-image {
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    transform: rotate(5deg);
}

.price-tag {
    position: absolute;
    right: 30%;
    top: 20%;
    background-color: var(--secondary-color);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: rotate(-15deg);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.3);
}

.price-tag span:first-child {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.price-tag span:last-child {
    font-size: 2.2rem;
    font-weight: 800;
}

/* Secciones */
.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2rem;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 20px;
    font-weight: 700;
}

.section-title span {
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    margin-top: -40px;
    margin-bottom: 50px;
    font-size: 1.1rem;
    color: #777;
}

/* Sección de productos destacados */
.featured-section {
    padding: 80px 0;
    background-color: white;
    border-radius: 40px;
    margin: 0 20px 60px;
    box-shadow: var(--shadow);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Sección de categorías */
.categories-section {
    padding: 80px 0;
    position: relative;
}

.categories-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/fondo.jpg');
    background-size: 300px;
    opacity: 0.4;
    z-index: -1;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.category-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    padding-bottom: 20px;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.category-image {
    height: 200px;
    overflow: hidden;
    position: relative;
    background-color: var(--primary-color);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    opacity: 0.9;
}

.category-card:hover .category-image img {
    transform: scale(1.05);
    opacity: 1;
}

.category-card h3 {
    padding: 20px 15px 5px;
    font-size: 1.3rem;
    color: var(--dark-color);
    font-weight: 600;
}

/* Tarjetas de producto */
.product-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.badge-featured {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--secondary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(255, 152, 0, 0.3);
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--dark-color);
    font-weight: 600;
}

.product-info p {
    color: #777;
    font-size: 0.95rem;
    margin-bottom: 20px;
    height: 40px;
    overflow: hidden;
}

.product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

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

.product-card .btn {
    width: 100%;
}

/* Carrito de compras */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1100;
    display: none;
    backdrop-filter: blur(3px);
}

.cart-container {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background-color: white;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 1200;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.cart-container.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid #eee;
    background-color: var(--primary-color);
    color: white;
}

.cart-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
}

.cart-header button {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cart-header button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.cart-item-image {
    width: 70px;
    height: 70px;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-right: 15px;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.cart-item-price {
    color: #777;
    font-size: 0.95rem;
}

.cart-item-actions {
    display: flex;
    align-items: center;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.cart-item-quantity button {
    background-color: #f5f5f5;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.cart-item-quantity button:hover {
    background-color: #e0e0e0;
}

.cart-item-quantity span {
    margin: 0 10px;
    font-weight: 600;
}

.cart-item-total {
    font-weight: 600;
    color: var(--dark-color);
    margin-right: 15px;
}

.cart-item-remove {
    color: #999;
    cursor: pointer;
    transition: var(--transition);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.cart-item-remove:hover {
    color: var(--primary-color);
    background-color: rgba(244, 67, 54, 0.1);
}

.cart-footer {
    padding: 25px;
    border-top: 1px solid #eee;
    background-color: #f9f9f9;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

.empty-cart {
    text-align: center;
    padding: 30px 0;
}

.empty-cart i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-cart p {
    color: #999;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Productos por categoría */
.product-categories {
    margin-top: -30px;
    margin-bottom: 60px;
}

.category-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    gap: 10px;
}

.category-tab {
    padding: 10px 25px;
    background-color: white;
    color: var(--text-color);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.category-tab.active, .category-tab:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Footer */
.footer {
    background-color: #222;
    color: white;
    padding: 80px 0 20px;
    margin-top: 100px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background-size: cover;
    background-repeat: no-repeat;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-info h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.footer-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Alertas */
.alert {
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.alert i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.alert-error {
    background-color: rgba(244, 67, 54, 0.1);
    border-left: 4px solid var(--primary-color);
    color: var(--primary-color);
}

.alert-success {
    background-color: rgba(76, 175, 80, 0.1);
    border-left: 4px solid var(--success-color);
    color: var(--success-color);
}

/* Checkout */
.checkout-banner {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 60px;
}

.checkout-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.checkout-section {
    padding: 0 0 80px;
}

.checkout-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.checkout-form {
    background-color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1);
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    transition: var(--transition);
    flex: 1;
    min-width: 150px;
}

.radio-option:hover {
    background-color: rgba(244, 67, 54, 0.05);
    border-color: rgba(244, 67, 54, 0.3);
}

.radio-option input {
    margin-right: 10px;
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.payment-icon {
    height: 20px;
    margin-right: 8px;
}

.checkout-summary {
    background-color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.checkout-summary h3 {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    font-size: 1.4rem;
    font-weight: 600;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.item-info h4 {
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: 500;
}

.item-details {
    display: flex;
    gap: 20px;
    color: #777;
    font-size: 0.95rem;
}

.item-total {
    font-weight: 600;
    color: var(--dark-color);
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #eee;
    font-size: 1.3rem;
    font-weight: 600;
}

.empty-cart-message {
    text-align: center;
    padding: 40px 0;
}

.empty-cart-message p {
    margin-bottom: 20px;
    color: #777;
    font-size: 1.1rem;
}

.hidden {
    display: none;
}

/* Elementos decorativos */
.decoration {
    position: absolute;
    z-index: -1;
}

.decoration-1 {
    top: 20%;
    left: 5%;
    animation: float 6s ease-in-out infinite;
}

.decoration-2 {
    bottom: 15%;
    right: 5%;
    animation: float 8s ease-in-out infinite;
}

.decoration-3 {
    top: 60%;
    left: 10%;
    animation: float 7s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Ícono de WhatsApp flotante */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Media queries */
@media (max-width: 1200px) {
    .hero-content h2 {
        font-size: 3rem;
    }
    
    .price-tag {
        width: 100px;
        height: 100px;
    }
    
    .price-tag span:last-child {
        font-size: 1.8rem;
    }
}

@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-features .feature {
        justify-content: center;
    }
    
    .hero-image {
        justify-content: center;
        margin-top: 30px;
    }
    
    .hero-content p {
        max-width: 100%;
    }
    
    .price-tag {
        position: absolute;
        right: 20%;
        top: 5%;
    }
    
    .checkout-container {
        grid-template-columns: 1fr;
    }
    
    .menu ul {
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
        justify-content: center;
        height: auto;
        padding: 15px;
    }
    
    .logo {
        margin-bottom: 15px;
        text-align: center;
    }

    /* Mejoras para la presentación en grid de los productos */

/* Grid de productos mejorado */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Mejoras para las tarjetas de producto */
.product-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    transform: translateY(0);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--dark-color);
    font-weight: 600;
    line-height: 1.3;
    /* Limitar a 2 líneas */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6rem;
}

.product-info p {
    color: #777;
    font-size: 0.95rem;
    margin-bottom: 20px;
    /* Limitar a 2 líneas */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8rem;
}

.product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    margin-top: auto;
}

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

.product-card .btn {
    width: 100%;
    margin-top: auto;
}

/* Categorías mejoradas */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.category-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.category-image {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-card h3 {
    padding: 20px 15px;
    font-size: 1.2rem;
    color: var(--dark-color);
    font-weight: 600;
    margin: 0;
}

/* Filtros mejorados */
.category-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.category-tab {
    padding: 12px 25px;
    background-color: white;
    color: var(--text-color);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.category-tab.active, 
.category-tab:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.2);
}

/* Animación de carga con esqueleto */
.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

@media (min-width: 768px) {
    .skeleton-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .skeleton-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.skeleton-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: 400px;
}

.skeleton-image {
    height: 220px;
    background: #f0f0f0;
    position: relative;
}

.skeleton-content {
    padding: 25px;
}

.skeleton-line {
    height: 20px;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 5px;
}

.skeleton-line:nth-child(2) {
    width: 60%;
}

.skeleton-line:nth-child(3) {
    height: 40px;
    margin-top: 30px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Estilos para productos en grid como en la imagen de referencia */

/* Contenedor principal */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
    padding: 0 15px;
}

/* Para tabletas */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Para móviles */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Tarjeta de producto estilo catálogo */
.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
}

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

/* Imagen del producto */
.product-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #fff;
    position: relative;
}

.product-image img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* Badge para productos destacados */
.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 1;
}

/* Información del producto */
.product-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #333;
    font-weight: 600;
}

.product-info .category {
    color: #888;
    font-size: 0.8rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.product-price {
    margin: 10px 0 15px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #f44336;
}

/* Botón de añadir al carrito */
.add-to-cart {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    width: 100%;
}

.add-to-cart:hover {
    background-color: #e53935;
}

.add-to-cart i {
    margin-right: 5px;
}

/* Filtros de categorías en estilo de pestañas horizontales */
.category-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.category-tab {
    padding: 10px 20px;
    background-color: #f1f1f1;
    color: #333;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-tab.active,
.category-tab:hover {
    background-color: #ff9800;
    color: white;
}

.checkout-banner{
    background-color: orange !important;
}

/* --- MENÚ HAMBURGUESA --- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1301;
    transition: all 0.3s;
}
.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    margin: 4px 0;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s;
}

@media (max-width: 900px) {
    .menu {
        display: none !important;
    }
    .hamburger {
        display: flex;
        margin-left: 12px;
        margin-right: auto;
    }
    .cart-btn {
        margin-left: auto;
        margin-right: 0;
        position: absolute;
        right: 18px;
        top: 50%;
        transform: translateY(-50%);
    }
    .header .container {
        justify-content: flex-start;
        position: relative;
    }
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -260px;
    width: 240px;
    height: 100vh;
    background: #fff;
    box-shadow: 2px 0 20px rgba(0,0,0,0.10);
    z-index: 1302;
    display: flex;
    flex-direction: column;
    padding-top: 80px;
    transition: left 0.35s cubic-bezier(.77,0,.18,1);
}
.mobile-menu ul {
    list-style: none;
    padding: 0 30px;
}
.mobile-menu ul li {
    margin-bottom: 30px;
}
.mobile-menu ul li a {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.2s;
    border-radius: 8px;
    padding: 10px 0;
    display: block;
}
.mobile-menu ul li a.active,
.mobile-menu ul li a:hover {
    color: var(--secondary-color);
    background: rgba(255,152,0,0.08);
}
.mobile-menu.active {
    left: 0;
}
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.35);
    z-index: 1300;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

@media (min-width: 901px) {
    .mobile-menu,
    .mobile-menu-overlay,
    .mobile-only {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        position: absolute !important;
        left: -9999px !important;
    }
}

.desktop-only { display: block; }
.mobile-only { display: none; }
@media (max-width: 900px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: block !important; }
}
}