/* Estilos para Tagueraa - Diseño Mexicano */
.menu-categorias-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, #fff5e6 0%, #ffe8d6 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.menu-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #e53e3e 0%, #dd6b20 100%);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.menu-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="50%" y="50%" font-family="Arial" font-size="10" fill="rgba(255,255,255,0.1)" text-anchor="middle" dominant-baseline="middle">🌮</text></svg>');
    background-size: 50px 50px;
}

.menu-titulo {
    font-size: 4rem;
    font-weight: 900;
    color: white;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
    margin: 0;
    position: relative;
    z-index: 1;
}

.menu-subtitulo {
    font-size: 1.5rem;
    color: #ffd700;
    font-weight: bold;
    margin-top: 10px;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

/* Grid de Categorías Mexicano */
.categorias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.categoria-card {
    background: linear-gradient(145deg, #ffffff, #fff0e6);
    border: 3px solid #e53e3e;
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(229, 62, 62, 0.15);
    position: relative;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.categoria-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.categoria-card:hover::before {
    left: 100%;
}

.categoria-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(229, 62, 62, 0.25);
    border-color: #c53030;
    background: linear-gradient(145deg, #fff, #ffe6d5);
}

.categoria-card.active {
    background: linear-gradient(145deg, #e53e3e, #c53030);
    color: white;
    border-color: #fff;
}

.categoria-card.active .categoria-nombre {
    color: white;
}

.categoria-card.active .categoria-flecha {
    color: #ffd700;
}

.categoria-icono {
    font-size: 4rem;
    margin-bottom: 20px;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.categoria-card:hover .categoria-icono {
    transform: scale(1.1) rotate(5deg);
}

.categoria-nombre {
    font-size: 1.4rem;
    font-weight: 800;
    color: #e53e3e;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.categoria-flecha {
    font-size: 2rem;
    color: #e53e3e;
    font-weight: bold;
    transition: all 0.3s ease;
    transform: translateX(0);
}

.categoria-card:hover .categoria-flecha {
    transform: translateX(8px);
    color: #c53030;
}

/* Productos - Estilo Taquería */
.productos-container {
    min-height: 500px;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid #fed7aa;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.producto-card {
    background: linear-gradient(145deg, #fff, #fffaf0);
    border: 2px solid #fed7aa;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.producto-card::before {
    content: "🌮";
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    opacity: 0.1;
    z-index: 0;
}

.producto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(229, 62, 62, 0.15);
    border-color: #e53e3e;
}

.producto-imagen {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.producto-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.producto-card:hover .producto-imagen img {
    transform: scale(1.1);
}

.producto-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #e53e3e, #dd6b20);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 2;
}

.producto-info {
    padding: 25px;
    position: relative;
    z-index: 1;
}

.producto-nombre {
    font-size: 1.5rem;
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.producto-descripcion {
    color: #4a5568;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.producto-precio {
    font-size: 2rem;
    font-weight: 900;
    color: #e53e3e;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-agregar-carrito {
    background: linear-gradient(135deg, #e53e3e, #dd6b20);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-agregar-carrito::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-agregar-carrito:hover::before {
    left: 100%;
}

.btn-agregar-carrito:hover {
    background: linear-gradient(135deg, #c53030, #c05621);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 62, 62, 0.4);
}

.btn-agregar-carrito:active {
    transform: translateY(0);
}

/* Estados */
.loading {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.3rem;
    color: #e53e3e;
    font-weight: bold;
}

.loading::after {
    content: "🌮";
    animation: pulse 1.5s infinite;
    display: block;
    font-size: 3rem;
    margin-top: 20px;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.error {
    text-align: center;
    padding: 40px 20px;
    color: #e53e3e;
    font-weight: bold;
    font-size: 1.2rem;
}

.no-productos {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-titulo {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .menu-subtitulo {
        font-size: 1.2rem;
    }

    .categorias-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .productos-grid {
        grid-template-columns: 1fr;
    }

    .categoria-card {
        min-height: 140px;
        padding: 20px 15px;
    }

    .categoria-icono {
        font-size: 3rem;
    }

    .categoria-nombre {
        font-size: 1.2rem;
    }
}

/* Decoraciones Mexicanas */
.mexican-border {
    border: 3px solid #e53e3e;
    border-image: repeating-linear-gradient(45deg, #e53e3e, #e53e3e 10px, #ffd700 10px, #ffd700 20px) 3;
}

/* Animación de entrada */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.categoria-card {
    animation: slideInUp 0.6s ease forwards;
}

.categoria-card:nth-child(1) {
    animation-delay: 0.1s;
}

.categoria-card:nth-child(2) {
    animation-delay: 0.2s;
}

.categoria-card:nth-child(3) {
    animation-delay: 0.3s;
}

.categoria-card:nth-child(4) {
    animation-delay: 0.4s;
}

.categoria-card:nth-child(5) {
    animation-delay: 0.5s;
}

/* Estados del carrito */
.btn-agotado {
    background: linear-gradient(135deg, #a0aec0, #718096) !important;
    cursor: not-allowed !important;
}

.btn-agotado:hover {
    transform: none !important;
    box-shadow: none !important;
}

.producto-agotado {
    opacity: 0.7;
    position: relative;
}

.producto-agotado::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 20px;
}

.producto-agotado-badge {
    background: linear-gradient(135deg, #a0aec0, #718096) !important;
    z-index: 3;
}

/* Spinner para carga */
.spinner {
    display: inline-block;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.notificacion-carrito {
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    /* Solo centrar vertical */
    background: linear-gradient(135deg, #38a169, #2f855a);
    color: white;
    padding: 20px 30px;
    border-radius: 12px;
    z-index: 10000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    animation: slideInLeft 0.3s ease;
    font-size: 1.1rem;
}

/* Notificaciones */
.notificacion-carrito,
.notificacion-error {
    animation: slideInRight 0.5s ease !important;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Enlace del carrito */
.cart-link {
    display: inline-block;
    background: linear-gradient(135deg, #e53e3e, #dd6b20);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.cart-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(229, 62, 62, 0.3);
    color: white;
}

/* Estilos para la sección de Más Vendidos */
.mas-vendidos-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background: linear-gradient(135deg, #fffaf0 0%, #fed7aa 100%);
}

.mas-vendidos-header {
    text-align: center;
    margin-bottom: 50px;
}

.mas-vendidos-titulo {
    font-size: 3rem;
    font-weight: 900;
    color: #7c2d12;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.5);
}

.mas-vendidos-subtitulo {
    font-size: 1.2rem;
    color: #e53e3e;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Grid de productos más vendidos */
.mas-vendidos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.producto-mas-vendido-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid #fed7aa;
    position: relative;
}

.producto-mas-vendido-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(229, 62, 62, 0.2);
    border-color: #e53e3e;
}

.producto-mas-vendido-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #e53e3e, #dd6b20);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(229, 62, 62, 0.3);
}

.producto-mas-vendido-imagen {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.producto-mas-vendido-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.producto-mas-vendido-card:hover .producto-mas-vendido-imagen img {
    transform: scale(1.1);
}

.producto-mas-vendido-contenido {
    padding: 25px;
    position: relative;
}

.producto-mas-vendido-nombre {
    font-size: 1.4rem;
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.producto-mas-vendido-descripcion {
    color: #4a5568;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
    min-height: 60px;
}

.producto-mas-vendido-precio {
    font-size: 2rem;
    font-weight: 900;
    color: #e53e3e;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.producto-mas-vendido-acciones {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.btn-mas-vendido-carrito {
    background: linear-gradient(135deg, #e53e3e, #dd6b20);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    flex: 1;
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-mas-vendido-carrito::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-mas-vendido-carrito:hover::before {
    left: 100%;
}

.btn-mas-vendido-carrito:hover {
    background: linear-gradient(135deg, #c53030, #c05621);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 62, 62, 0.4);
}

.btn-ver-detalles {
    background: transparent;
    color: #e53e3e;
    border: 2px solid #e53e3e;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-ver-detalles:hover {
    background: #e53e3e;
    color: white;
    transform: translateY(-2px);
}

/* Estados de disponibilidad */
.producto-mas-vendido-agotado .btn-mas-vendido-carrito {
    background: linear-gradient(135deg, #a0aec0, #718096);
    cursor: not-allowed;
}

.producto-mas-vendido-agotado .btn-mas-vendido-carrito:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(160, 174, 192, 0.3);
}

/* Contador de ventas */
.producto-mas-vendido-ventas {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: #e53e3e;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 62, 62, 0.2);
}

/* Efectos decorativos */
.mas-vendidos-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e53e3e, #dd6b20, #e53e3e);
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.producto-mas-vendido-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.producto-mas-vendido-card:nth-child(1) {
    animation-delay: 0.1s;
}

.producto-mas-vendido-card:nth-child(2) {
    animation-delay: 0.2s;
}

.producto-mas-vendido-card:nth-child(3) {
    animation-delay: 0.3s;
}

.producto-mas-vendido-card:nth-child(4) {
    animation-delay: 0.4s;
}

.producto-mas-vendido-card:nth-child(5) {
    animation-delay: 0.5s;
}

.producto-mas-vendido-card:nth-child(6) {
    animation-delay: 0.6s;
}

.producto-mas-vendido-card:nth-child(7) {
    animation-delay: 0.7s;
}

.producto-mas-vendido-card:nth-child(8) {
    animation-delay: 0.8s;
}

/* Responsive */
@media (max-width: 768px) {
    .mas-vendidos-container {
        padding: 40px 15px;
    }

    .mas-vendidos-titulo {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }

    .mas-vendidos-subtitulo {
        font-size: 1rem;
    }

    .mas-vendidos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .producto-mas-vendido-acciones {
        flex-direction: column;
    }

    .btn-mas-vendido-carrito,
    .btn-ver-detalles {
        width: 100%;
    }
}

/* Efecto de calor/trending */
.trending-fire {
    position: relative;
}

.trending-fire::after {
    content: "🔥";
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 1.2rem;
    animation: pulse-fire 2s infinite;
}

@keyframes pulse-fire {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}