    /* Estilos base de tu diseño */
    @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
    
    body {
        font-family: 'Poppins', sans-serif;
        background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
        margin: 0;
        padding: 20px;
        min-height: 100vh;
        box-sizing: border-box;
        color: #333;
        line-height: 1.6;
    }

    #content {
        width: 90%;
        max-width: 1200px;
        margin: 20px auto;
        padding: 30px;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }

    h1 {
        font-size: 28px;
        color: #333;
        margin-bottom: 25px;
        padding-bottom: 10px;
        text-align: center;
        position: relative;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    h1:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 4px;
        background: linear-gradient(90deg, #0073aa, #00B4DB);
        border-radius: 2px;
    }

    /* Botones */
    .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 10px 20px;
        border-radius: 8px;
        font-weight: 500;
        text-decoration: none;
        transition: all 0.3s ease;
        cursor: pointer;
        gap: 8px;
        border: none;
    }

    .btn-whatsapp {
        background: linear-gradient(135deg, #25D366, #128C7E);
        color: white;
    }

    .btn-whatsapp:hover {
        background: linear-gradient(135deg, #128C7E, #075E54);
    }

    .btn-salir {
        background: linear-gradient(135deg, #dd0808, #FF416C);
        color: white;
    }

    .btn-categoria {
        background: #f0f0f0;
        color: #333;
    }

    .btn-categoria.active {
        background: linear-gradient(135deg, #0073aa, #00B4DB);
        color: white;
    }

    /* Grid de productos */
    .productos-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
        margin-top: 30px;
    }

    .producto-card {
        background: white;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease;
    }

    .producto-card:hover {
        transform: translateY(-5px);
    }

    .producto-imagen {
        height: 150px;
        background: #f5f5f5;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #777;
        position: relative;
        overflow: hidden;
    }

    .producto-imagen img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .producto-imagen i {
        font-size: 60px;
    }

    .producto-precio-tag {
        position: absolute;
        top: 15px;
        right: 15px;
        background: #0073aa;
        color: white;
        padding: 5px 15px;
        border-radius: 20px;
        font-weight: 600;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    }

    .producto-info {
        padding: 20px;
    }

    .producto-nombre {
        font-weight: 600;
        font-size: 18px;
        margin-bottom: 15px;
        color: #333;
    }

    .producto-codigo {
        font-size: 14px;
        color: #777;
        margin-bottom: 10px;
    }

    .producto-especificaciones {
        margin-bottom: 20px;
        color: #555;
        font-size: 14px;
    }

    .producto-especificaciones ul {
        padding-left: 20px;
        margin: 10px 0;
    }

    .producto-especificaciones li {
        margin-bottom: 8px;
    }

    /* Modal de detalles */
    .modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }

    .modal-content {
        background-color: #fff;
        padding: 30px;
        border-radius: 12px;
        width: 90%;
        max-width: 800px;
        max-height: 90vh;
        overflow-y: auto;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }

    .modal-title {
        font-size: 24px;
        font-weight: 600;
        color: #0073aa;
    }

    .modal-codigo {
        font-size: 16px;
        color: #777;
    }

    .modal-close {
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: #777;
    }

    .modal-body {
        display: flex;
        flex-wrap: wrap;
        gap: 30px;
    }

    .modal-imagen {
        flex: 1;
        min-width: 300px;
        background: #f5f5f5;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        padding: 20px;
        overflow: hidden;
    }

    .modal-imagen img {
        max-width: 100%;
        max-height: 300px;
        object-fit: contain;
    }

    .modal-imagen i {
        font-size: 100px;
        color: #777;
    }

    .modal-details {
        flex: 2;
        min-width: 300px;
    }

    .modal-precio {
        font-size: 28px;
        font-weight: 700;
        color: #0073aa;
        margin: 15px 0;
    }

    .modal-categoria {
        display: inline-block;
        background: #f0f0f0;
        padding: 5px 10px;
        border-radius: 20px;
        font-size: 14px;
        margin-bottom: 15px;
    }

    .modal-especificaciones h3 {
        font-size: 18px;
        margin: 20px 0 10px;
        color: #333;
        border-bottom: 1px solid #eee;
        padding-bottom: 5px;
    }
/* Agreg esto al final de tu archivo CSS actual */

/* MEJORAS PARA IMGENES EN MVILES */

/* Ajuste general de imgenes en tarjetas de productos */
.producto-imagen {
    height: 200px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    overflow: hidden;
}

.producto-imagen img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Para mviles (pantallas menores a 768px) */
@media (max-width: 768px) {
    .producto-imagen {
        height: 180px;
        padding: 12px;
    }
    
    .producto-imagen img {
        max-width: 85%;
        max-height: 85%;
    }
}

/* Para mviles muy pequeos (menos de 480px) */
@media (max-width: 480px) {
    .producto-imagen {
        height: 160px;
        padding: 10px;
    }
    
    .producto-imagen img {
        max-width: 80%;
        max-height: 80%;
    }
}

/* Mejora para el modal en mviles */
@media (max-width: 768px) {
    .modal-imagen {
        min-height: 180px;
        padding: 15px;
    }
    
    .modal-imagen img {
        max-width: 90%;
        max-height: 180px;
        object-fit: contain;
    }
    
    .modal-imagen i {
        font-size: 70px;
    }
}

/* Opcional: efecto hover solo en desktop */
@media (min-width: 769px) {
    .producto-card:hover .producto-imagen img {
        transform: scale(1.05);
    }
}