.chat-card {
    margin: auto;
    border-radius: 0.5rem;
    overflow: hidden;
}
.chat_header {
    background: var(--scnd_clr);
    color: #fff;
    display: flex;
    padding: 1rem;
    align-items: center;
}
.chat-body {
    max-height: 250px;
    min-height: 250px;
    overflow-y: auto;
    padding: 20px;
}

.btn_send_chat {
    background: var(--scnd_clr);
    color: #fff;
    border: none;
    border-radius: 0 0.3rem 0.3rem 0;
    padding: 0.5rem 1rem;
    gap: 0.5rem;
    display: flex;
    align-items: center;
}
.btn_send_chat:hovwer {
    background: var(--main_clr);
    color: #fff;
}

/* ====== AVATARS ====== */

.chat-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    background: #efefef;
}

.chat-avatar-header {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #ddd;
}

/* ====== BURBUJAS ====== */

.msg {
    display: flex;
    align-items: flex-end;
    margin: 12px 0;
    animation: fadeIn .3s ease;
    gap: 0.5rem;
}
.msg-bot .bubble {
    background: #f1f1f1;
    border-radius: 15px 15px 15px 5px;
}
.msg-user .bubble {
    background: #FF5722;
    color: #fff;
    border-radius: 15px 15px 5px 15px;
    margin-left: auto;
}
.bubble {
    padding: 12px 16px;
    max-width: 75%;
    font-size: 18px;
    line-height: 1.4;
}

/* Bot avatar */
.msg-bot {
    justify-content: flex-start;
}

.msg-user {
    justify-content: flex-end;
}

/* ====== TYPING ====== */

.typing {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: #555;
    font-style: italic;
    opacity: 1;
    transition: .3s ease;
}

.hidden {
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.typing-avatar {
    width: 22px;
    height: 22px;
    margin-right: 10px;
    border-radius: 50%;
    object-fit: cover;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Animaci贸n de puntos escribiendo */
.typing-dots {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 15px;
}

.typing-dots .dot {
    width: 8px;
    height: 8px;
    background: #666;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-dots .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* ===================================
   ESTILOS PARA MENSAJES CON IMÁGENES
   =================================== */

.message-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 100%;
}

.product-images {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.product-image-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 200px;
}

.product-image {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-image:hover {
    transform: scale(1.05);
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.image-caption {
    margin: 5px 0 0 0;
    font-size: 12px;
    color: #666;
    text-align: center;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .product-image-wrapper {
        max-width: 150px;
    }
    
    .product-image {
        max-width: 150px;
    }
}

/* Animación de puntos escribiendo */
.typing-dots {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 15px;
}

.typing-dots .dot {
    width: 8px;
    height: 8px;
    background: #666;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-dots .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}
/* ===============================
   ESTILOS ADICIONALES UNIWELD CHAT v3
   Agregar al final de chat.css
   =============================== */

/* ===============================
   LINKS ESPECIALES (Disponibilidad, Garantía, Catálogos)
   =============================== */

.special-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.special-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: fadeInUp 0.3s ease-out forwards;
    opacity: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.special-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.special-link-btn svg {
    flex-shrink: 0;
}

/* Link Disponibilidad - Azul */
.link-disponibilidad {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white !important;
}

.link-disponibilidad:hover {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
}

/* Link Registro Garantía - Verde */
.link-garantia_registro {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    color: white !important;
}

.link-garantia_registro:hover {
    background: linear-gradient(135deg, #388E3C 0%, #2E7D32 100%);
}

/* Link Reclamo Garantía - Naranja */
.link-garantia_reclamo {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    color: white !important;
}

.link-garantia_reclamo:hover {
    background: linear-gradient(135deg, #F57C00 0%, #EF6C00 100%);
}

/* Link Catálogos - Morado */
.link-catalogos {
    background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
    color: white !important;
}

.link-catalogos:hover {
    background: linear-gradient(135deg, #7B1FA2 0%, #6A1B9A 100%);
}

/* ===============================
   GRID DE VENDEDORES
   =============================== */

.sales-team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 10px;
    padding: 5px;
}

@media (max-width: 600px) {
    .sales-team-grid {
        grid-template-columns: 1fr;
    }
    
    .special-links-container {
        flex-direction: column;
    }
    
    .special-link-btn {
        justify-content: center;
    }
}

/* Tarjeta de vendedor */
.sales-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    animation: fadeInUp 0.3s ease-out forwards;
    opacity: 0;
    border: 1px solid #e9ecef;
}

.sales-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Foto del vendedor */
.sales-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 10px;
    border: 3px solid #f47920;
    box-shadow: 0 2px 8px rgba(244, 121, 32, 0.3);
}

.sales-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info del vendedor */
.sales-info {
    width: 100%;
}

.sales-info h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Botones de contacto */
.sales-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.sales-buttons a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

/* Boton WhatsApp */
.btn-whatsapp {
    background: #25D366;
    color: white !important;
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: scale(1.05);
}

/* Boton Llamar */
.btn-call {
    background: #f47920;
    color: white !important;
}

.btn-call:hover {
    background: #d96a1a;
    transform: scale(1.05);
}

/* Boton Email */
.btn-email {
    background: #6c757d;
    color: white !important;
}

.btn-email:hover {
    background: #5a6268;
    transform: scale(1.05);
}

/* Titulo de ventas */
.sales-title {
    background: linear-gradient(135deg, #f47920 0%, #ff9a56 100%) !important;
    color: white !important;
    text-align: center;
    margin-bottom: 5px;
}

.sales-title strong {
    font-size: 15px;
}

/* ===============================
   AJUSTES RESPONSIVOS
   =============================== */

@media (max-width: 480px) {
    .sales-card {
        padding: 12px;
    }
    
    .sales-photo {
        width: 60px;
        height: 60px;
    }
    
    .sales-info h4 {
        font-size: 13px;
    }
    
    .sales-buttons a {
        padding: 5px 8px;
        font-size: 10px;
    }
    
    .special-link-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
}

/* Animacion de entrada secuencial */
.sales-card:nth-child(1) { animation-delay: 0.1s; }
.sales-card:nth-child(2) { animation-delay: 0.2s; }
.sales-card:nth-child(3) { animation-delay: 0.3s; }
.sales-card:nth-child(4) { animation-delay: 0.4s; }

.special-link-btn:nth-child(1) { animation-delay: 0.1s; }
.special-link-btn:nth-child(2) { animation-delay: 0.2s; }
.special-link-btn:nth-child(3) { animation-delay: 0.3s; }
.special-link-btn:nth-child(4) { animation-delay: 0.4s; }

/* =======================================
   ESTILOS PARA PRODUCTOS - UNIWELD CHAT v4.0
   Agregar esto a tu archivo CSS existente
   ======================================= */

/* ====================================== */
/* GRID DE PRODUCTOS */
/* ====================================== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 12px;
    width: 100%;
}

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

/* ====================================== */
/* TARJETA DE PRODUCTO */
/* ====================================== */

.product-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    animation: slideInUp 0.4s ease-out;
    animation-fill-mode: both;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-color: #1976d2;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====================================== */
/* IMAGEN DEL PRODUCTO */
/* ====================================== */

.product-image-container {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

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

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

/* ====================================== */
/* INFORMACIÓN DEL PRODUCTO */
/* ====================================== */

.product-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-model {
    font-size: 18px;
    font-weight: 700;
    color: #1976d2;
    letter-spacing: 0.5px;
}

.product-name {
    font-size: 15px;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
}

.product-category {
    font-size: 13px;
    color: #666;
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-block;
    align-self: flex-start;
    margin-top: 4px;
}

/* ====================================== */
/* BOTONES DE ACCIÓN */
/* ====================================== */

.product-actions {
    padding: 12px 16px 16px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-availability,
.btn-view-product {
    flex: 1;
    min-width: 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-availability {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.btn-availability:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    transform: translateY(-2px);
}

.btn-availability:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
}

.btn-view-product {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.btn-view-product:hover {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
    transform: translateY(-2px);
}

.btn-view-product:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(33, 150, 243, 0.3);
}

.btn-availability svg,
.btn-view-product svg {
    flex-shrink: 0;
}

/* ====================================== */
/* RESPONSIVE - MÓVIL */
/* ====================================== */

@media (max-width: 480px) {
    .product-card {
        border-radius: 10px;
    }
    
    .product-image-container {
        height: 180px;
        padding: 16px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-model {
        font-size: 16px;
    }
    
    .product-name {
        font-size: 14px;
    }
    
    .product-category {
        font-size: 12px;
        padding: 3px 8px;
    }
    
    .product-actions {
        padding: 8px 12px 12px;
        flex-direction: column;
    }
    
    .btn-availability,
    .btn-view-product {
        width: 100%;
        min-width: unset;
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* ====================================== */
/* ANIMACIONES ADICIONALES */
/* ====================================== */

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.product-card.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* ====================================== */
/* ESTADOS ESPECIALES */
/* ====================================== */

.product-card.unavailable {
    opacity: 0.6;
    filter: grayscale(0.3);
}

.product-card.unavailable::after {
    content: "No disponible";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f44336;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

/* ====================================== */
/* MEJORAS VISUALES */
/* ====================================== */

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1976d2, #4CAF50);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover::before {
    opacity: 1;
}

/* ====================================== */
/* COMPATIBILIDAD CON TEMA OSCURO */
/* ====================================== */

@media (prefers-color-scheme: dark) {
    .product-card {
        background: #2d2d2d;
        border-color: #444;
    }
    
    .product-image-container {
        background: linear-gradient(135deg, #3a3a3a 0%, #2d2d2d 100%);
    }
    
    .product-model {
        color: #64B5F6;
    }
    
    .product-name {
        color: #e0e0e0;
    }
    
    .product-category {
        background: #3a3a3a;
        color: #bbb;
    }
}

/* ====================================== */
/* GRID AJUSTES PARA MÚLTIPLES PRODUCTOS */
/* ====================================== */

.products-grid.single-product {
    grid-template-columns: 1fr;
    max-width: 400px;
}

.products-grid.two-products {
    grid-template-columns: repeat(2, 1fr);
}

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

/* ====================================== */
/* LOADING STATE */
/* ====================================== */

.product-card.skeleton .product-image-container,
.product-card.skeleton .product-model,
.product-card.skeleton .product-name,
.product-card.skeleton .product-category {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

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

/* ====================================== */
/* AJUSTES FINALES */
/* ====================================== */

.message-content .products-grid {
    margin-top: 0;
}

/* Espacio entre mensaje de texto y productos */
.msg-bot .bubble + .products-grid {
    margin-top: 12px;
}

/* Asegurar que los productos no se desborden */
.products-grid * {
    box-sizing: border-box;
}

/* =======================================
   ESTILOS PARA PRODUCTOS - UNIWELD CHAT v4.0
   Agregar esto a tu archivo CSS existente
   ======================================= */

/* ====================================== */
/* GRID DE PRODUCTOS */
/* ====================================== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 12px;
    width: 100%;
}

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

/* ====================================== */
/* TARJETA DE PRODUCTO */
/* ====================================== */

.product-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    animation: slideInUp 0.4s ease-out;
    animation-fill-mode: both;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-color: #1976d2;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====================================== */
/* IMAGEN DEL PRODUCTO */
/* ====================================== */

.product-image-container {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

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

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

/* ====================================== */
/* INFORMACIÓN DEL PRODUCTO */
/* ====================================== */

.product-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-model {
    font-size: 18px;
    font-weight: 700;
    color: #1976d2;
    letter-spacing: 0.5px;
}

.product-name {
    font-size: 15px;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
}

.product-category {
    font-size: 13px;
    color: #666;
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-block;
    align-self: flex-start;
    margin-top: 4px;
}

/* ====================================== */
/* BOTONES DE ACCIÓN */
/* ====================================== */

.product-actions {
    padding: 12px 16px 16px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-availability,
.btn-view-product {
    flex: 1;
    min-width: 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-availability {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.btn-availability:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    transform: translateY(-2px);
}

.btn-availability:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
}

.btn-view-product {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.btn-view-product:hover {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
    transform: translateY(-2px);
}

.btn-view-product:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(33, 150, 243, 0.3);
}

.btn-availability svg,
.btn-view-product svg {
    flex-shrink: 0;
}

/* ====================================== */
/* RESPONSIVE - MÓVIL */
/* ====================================== */

@media (max-width: 480px) {
    .product-card {
        border-radius: 10px;
    }
    
    .product-image-container {
        height: 180px;
        padding: 16px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-model {
        font-size: 16px;
    }
    
    .product-name {
        font-size: 14px;
    }
    
    .product-category {
        font-size: 12px;
        padding: 3px 8px;
    }
    
    .product-actions {
        padding: 8px 12px 12px;
        flex-direction: column;
    }
    
    .btn-availability,
    .btn-view-product {
        width: 100%;
        min-width: unset;
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* ====================================== */
/* ANIMACIONES ADICIONALES */
/* ====================================== */

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.product-card.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* ====================================== */
/* ESTADOS ESPECIALES */
/* ====================================== */

.product-card.unavailable {
    opacity: 0.6;
    filter: grayscale(0.3);
}

.product-card.unavailable::after {
    content: "No disponible";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f44336;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

/* ====================================== */
/* MEJORAS VISUALES */
/* ====================================== */

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1976d2, #4CAF50);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover::before {
    opacity: 1;
}

/* ====================================== */
/* COMPATIBILIDAD CON TEMA OSCURO */
/* ====================================== */

@media (prefers-color-scheme: dark) {
    .product-card {
        background: #2d2d2d;
        border-color: #444;
    }
    
    .product-image-container {
        background: linear-gradient(135deg, #3a3a3a 0%, #2d2d2d 100%);
    }
    
    .product-model {
        color: #64B5F6;
    }
    
    .product-name {
        color: #e0e0e0;
    }
    
    .product-category {
        background: #3a3a3a;
        color: #bbb;
    }
}

/* ====================================== */
/* GRID AJUSTES PARA MÚLTIPLES PRODUCTOS */
/* ====================================== */

.products-grid.single-product {
    grid-template-columns: 1fr;
    max-width: 400px;
}

.products-grid.two-products {
    grid-template-columns: repeat(2, 1fr);
}

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

/* ====================================== */
/* LOADING STATE */
/* ====================================== */

.product-card.skeleton .product-image-container,
.product-card.skeleton .product-model,
.product-card.skeleton .product-name,
.product-card.skeleton .product-category {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

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

/* ====================================== */
/* AJUSTES FINALES */
/* ====================================== */

.message-content .products-grid {
    margin-top: 0;
}

/* Espacio entre mensaje de texto y productos */
.msg-bot .bubble + .products-grid {
    margin-top: 12px;
}

/* Asegurar que los productos no se desborden */
.products-grid * {
    box-sizing: border-box;
}

