/* Vitrina «Productos y precios» (/productos y /productos/{id}/comparar). Móvil primero; sin scroll horizontal.
   Mismo lenguaje que el directorio: banda marino arriba y tarjetas blancas que se elevan al pasar el mouse. */
/* La bandeja y el comparador viven fuera de <main>: también llevan los colores */
.vp, .vc, .vc-bandeja { --vp-marino: var(--marca-marino, #0b2350); --vp-coral: var(--marca-coral, #ff6a45); --vp-gris: #5b6474; --vp-borde: #e3e6ef; --vp-fondo: #f5f7fb; }
.vp { background: var(--vp-fondo); }
/* La plantilla base da a todo .container 113px/90px de relleno: en Comparar precios lo ponen las secciones */
.vp-hero .container, .vp-resultados .container { padding-top: 0; padding-bottom: 0; }

/* --- Banda de título (igual que .pi-hero de paginas-info.css) --- */
.vp-hero { position: relative; overflow: hidden; isolation: isolate; padding: 129px 0 36px; background: var(--vp-marino); color: #fff; }
.vp-hero::after { content: ""; position: absolute; z-index: -1; right: -40px; top: 50%; width: 360px; height: 360px; transform: translateY(-38%) rotate(8deg); background: #fff; opacity: .035; -webkit-mask: url("../img/marca/patron-puntos.png") center / contain no-repeat; mask: url("../img/marca/patron-puntos.png") center / contain no-repeat; pointer-events: none; }
.vp-kicker { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 8px; color: var(--marca-coral-claro, #ff8f72); font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.vp-titulo { margin: 0 0 8px; color: #fff; font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; }
.vp-subtitulo { max-width: 560px; margin: 0; color: var(--marca-marino-claro, #9fb3d9); font-size: 15.5px; line-height: 1.6; }
.vp-volver { margin: 0 0 10px; font-size: 14px; }
.vp-volver a { color: var(--marca-marino-claro, #9fb3d9); text-decoration: none; font-weight: 600; }
.vp-volver a:hover { color: #fff; }
@media (max-width: 1199.98px) { .vp-hero { padding-top: 115px; } }
@media (max-width: 991.98px) {
    .vp-hero { padding: 99px 0 26px; }
    .vp-hero::after { width: 240px; height: 240px; right: -70px; }
    .vp-subtitulo { font-size: 15px; }
}

/* --- Resultados --- */
.vp-resultados { padding: 26px 0 48px; }
.vp-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 576px) { .vp-lista { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
/* Comparar precios (página completa): hasta 4 por fila */
@media (min-width: 992px) { .vp-resultados .vp-lista { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1200px) { .vp-resultados .vp-lista { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Vitrina: a la derecha del chat, hasta 3 por fila (botones más compactos para que entren los dos) */
@media (min-width: 1200px) {
    #vpResultados .vp-lista { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
    #vpResultados .vp-acciones { gap: 6px; padding: 12px 12px 14px; }
    #vpResultados .vp-acciones a { padding: 0 8px; font-size: 13px; }
    #vpResultados .vp-datos { padding: 14px 14px 4px; }
}

/* Tarjeta: foto arriba, datos y botones abajo, misma altura en toda la fila */
.vp-producto { position: relative; display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--vp-borde); border-radius: 16px; box-shadow: 0 1px 2px rgba(11, 35, 80, .04); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.vp-producto:focus-within { border-color: var(--vp-marino); box-shadow: 0 14px 30px -14px rgba(11, 35, 80, .35); }
@media (hover: hover) {
    .vp-producto:hover { transform: translateY(-4px); border-color: var(--vp-marino); box-shadow: 0 18px 34px -16px rgba(11, 35, 80, .38); }
    .vp-foto img { transition: transform .3s ease; }
    .vp-producto:hover .vp-foto img { transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
    .vp-producto:hover, .vp-producto:hover .vp-foto img { transform: none; }
}

.vp-foto { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; overflow: hidden; background: #eef1f7; color: #9aa3b5; font-size: 34px; text-decoration: none; }
.vp-foto img { width: 100%; height: 100%; object-fit: cover; }
.vp-foto.is-sin-foto { background: linear-gradient(145deg, #f4f6fa 0%, var(--marca-marino-suave, #e9eef7) 100%); }
.vp-foto img.vp-foto-logo { width: 38%; height: auto; max-height: 52%; aspect-ratio: 1; object-fit: contain; padding: 10px; border-radius: 16px; background: #fff; box-shadow: 0 6px 18px -10px rgba(11, 35, 80, .35); }
.vp-insignia { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: var(--vp-coral); color: #fff; font-size: 11.5px; font-weight: 700; box-shadow: 0 4px 12px -4px rgba(255, 106, 69, .6); }

.vp-datos { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: 14px 16px 4px; }
.vp-empresa { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; font-size: 12.5px; color: var(--vp-gris); text-decoration: none; min-width: 0; }
.vp-empresa img { border-radius: 6px; object-fit: contain; border: 1px solid var(--vp-borde); background: #fff; flex: none; }
.vp-empresa span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vp-empresa strong { color: #18202e; font-weight: 600; }
.vp-empresa:hover strong { color: var(--vp-marino); text-decoration: underline; }
.vp-nombre { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: #18202e; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vp-descripcion { margin: 0 0 6px; font-size: 13px; line-height: 1.45; color: var(--vp-gris); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* El precio siempre a la misma altura, justo encima de los botones */
.vp-precio-bloque { margin-top: auto; padding-top: 8px; }
.vp-precio-texto { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -0.01em; color: var(--vp-marino); }
.vp-precio-texto.sin-precio { font-size: 14px; color: var(--vp-gris); font-weight: 600; }
.vp-actualizado { margin: 2px 0 0; font-size: 12px; color: #7a8194; }
.vp-actualizado i { margin-right: 2px; }
.vp-actualizado.is-antiguo { color: #9a5b00; }
.vp-comparar { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: 10px; padding: 5px 10px; border-radius: 999px; background: var(--marca-marino-suave, #e9eef7); font-size: 12.5px; font-weight: 700; color: var(--vp-marino); text-decoration: none; }
.vp-comparar:hover { background: var(--vp-marino); color: #fff; }

.vp-acciones { display: flex; gap: 8px; padding: 12px 16px 16px; }
.vp-acciones a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 10px; border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.vp-ws { background: #25d366; color: #fff; }
.vp-ws:hover { background: #1da851; color: #fff; }
.vp-tel { background: var(--marca-marino-suave, #e9eef7); color: var(--vp-marino); }
.vp-tel:hover { background: var(--vp-marino); color: #fff; }
.vp-ver { background: #fff; color: var(--vp-marino); border: 1px solid #d5dae4; }
.vp-ver:hover { border-color: var(--vp-marino); color: var(--vp-marino); }

/* Móvil: tarjeta horizontal compacta, entran más productos por pantalla */
@media (max-width: 575.98px) {
    .vp-producto { display: grid; grid-template-columns: 104px minmax(0, 1fr); grid-template-areas: "foto datos" "acciones acciones"; }
    .vp-foto { grid-area: foto; aspect-ratio: auto; height: 100%; min-height: 120px; font-size: 26px; }
    .vp-foto img.vp-foto-logo { width: 64px; max-height: none; padding: 7px; border-radius: 12px; }
    .vp-insignia { top: 8px; left: 8px; padding: 2px 7px; font-size: 10.5px; }
    .vp-datos { grid-area: datos; padding: 12px 14px 0; }
    .vp-precio-texto { font-size: 18px; }
    .vp-acciones { grid-area: acciones; padding: 10px 14px 14px; }
}

.vp-vacio { text-align: center; padding: 40px 16px; background: #fff; border: 1px solid var(--vp-borde); border-radius: 18px; color: var(--vp-gris); }
.vp-vacio i { font-size: 34px; color: var(--vp-coral); margin-bottom: 10px; }
.vp-paginas { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 28px; }
.vp-paginas a { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid #d5dae4; background: #fff; color: var(--vp-marino); text-decoration: none; font-weight: 700; }
.vp-paginas a.is-actual { background: var(--vp-marino); border-color: var(--vp-marino); color: #fff; }
.vp-nota { margin: 24px 0 0; text-align: center; font-size: 14px; color: var(--vp-gris); }

/* Invitación a las empresas, al final de la vitrina */
.vp-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 32px; padding: 22px 24px; border-radius: 18px; background: var(--vp-marino); color: #fff; }
.vp-cta strong { display: block; font-size: 17px; margin-bottom: 2px; }
.vp-cta p { margin: 0; color: var(--marca-marino-claro, #9fb3d9); font-size: 14.5px; }
.vp-cta-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 999px; background: var(--vp-coral); color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.vp-cta-btn:hover { background: var(--marca-coral-hover, #ff805f); color: #fff; }

/* Comparar precios: diferencia con el que estabas viendo */
.vp-producto.is-destacado { border-color: #ffc9b8; }
.vp-diferencia { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0; vertical-align: middle; }
.vp-diferencia.is-menos { background: #e9f6ee; color: #0f6b37; }
.vp-diferencia.is-mas { background: #fdecec; color: #a12a2a; }
.vp-diferencia.is-igual { background: #f1f3f7; color: var(--vp-gris); }
.vp-seccion { margin: 8px 0 14px; font-size: 17px; font-weight: 800; color: #18202e; }
.vp-seccion span { margin-left: 6px; padding: 1px 9px; border-radius: 999px; background: #e8ecf4; font-size: 13px; color: var(--vp-gris); vertical-align: middle; }
.vp-lista-una { margin-bottom: 28px; }
@media (min-width: 576px) { .vp-lista-una { grid-template-columns: minmax(0, 300px); } }
.vp-resumen { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: #e9f6ee; color: #0f4d2a; font-size: 14px; }
.vp-resumen i { margin-right: 4px; }

/* =====================================================================
   Vitrina con el Asistente IA (productos.html.twig): misma estructura que el directorio
   ===================================================================== */
.vp-area { background: var(--vp-fondo); }
.vp-encabezado { margin-bottom: 14px; }
.vp-encabezado .vp-kicker { margin-bottom: 4px; color: var(--marca-coral-texto, #c8441f); }
.vp-titulo-lista { margin: 0; font-size: clamp(20px, 2vw, 24px); font-weight: 700; letter-spacing: -0.01em; color: var(--vp-marino); }
@media (max-width: 575.98px) { .vp-encabezado { display: none; } }

/* Barra de filtros: píldoras del directorio (directorio.css) */
.vp-barra { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.vp-barra .vp-total { margin-left: auto; }
.vp-chip-ia .dir-chip-toggle { cursor: default; }
.vp-chip-ia .dir-chip-texto { max-width: 260px; }
.vp-menu-grupo { margin: 8px 12px 2px; padding-top: 8px; border-top: 1px solid #eceef4; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9aa0b4; }
.vp-precio-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 8px; }
.vp-precio-form label { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: 12.5px; font-weight: 600; color: var(--vp-gris); }
.vp-precio-form input { width: 100%; min-width: 0; height: 40px; padding: 0 10px; border: 1px solid #d5dae4; border-radius: 10px; font-size: 15px; color: #18202e; }
.vp-precio-form input:focus { outline: none; border-color: var(--vp-marino); }
.vp-precio-form button { grid-column: 1 / -1; height: 42px; border: 0; border-radius: 999px; background: var(--vp-marino); color: #fff; font-weight: 700; }
.vp-precio-form button:hover { background: var(--marca-marino-hover, #1e3a70); }
/* Teléfono: las píldoras en una fila que se desliza (sus menús suben como hoja, fuera de la fila) */
@media (max-width: 575.98px) {
    .vp-barra { flex-wrap: nowrap; gap: 6px; margin: 0 -16px 14px; padding: 0 16px 2px; overflow-x: auto; scrollbar-width: none; }
    .vp-barra::-webkit-scrollbar { display: none; }
    .vp-barra > * { flex: none; }
    .vp-barra .vp-total { order: -1; margin: 0 4px 0 0; white-space: nowrap; }
}

/* Mientras llega la lista nueva, y su entrada */
#vpResultados { transition: opacity .2s ease; }
#vpResultados.is-cargando { opacity: .45; pointer-events: none; }
#vpResultados.is-nuevo .vp-producto { animation: vp-entrar .45s ease both; }
#vpResultados.is-nuevo .vp-producto:nth-child(3n+2) { animation-delay: .06s; }
#vpResultados.is-nuevo .vp-producto:nth-child(3n) { animation-delay: .12s; }
@keyframes vp-entrar { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { #vpResultados.is-nuevo .vp-producto { animation: none; } }
.vp-vacio-btn { display: inline-flex; align-items: center; min-height: 40px; margin-top: 6px; padding: 0 18px; border-radius: 999px; background: var(--vp-marino); color: #fff; font-weight: 700; text-decoration: none; }
.vp-vacio-btn:hover { color: #fff; background: var(--marca-marino-hover, #1e3a70); }

/* «Comparar» en cada tarjeta */
.vp-elegir { position: absolute; z-index: 2; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid #d5dae4; border-radius: 999px; background: rgba(255, 255, 255, .95); color: var(--vp-marino); font-size: 12.5px; font-weight: 700; box-shadow: 0 4px 12px -6px rgba(11, 35, 80, .4); transition: background .15s ease, color .15s ease, border-color .15s ease; }
.vp-elegir i { font-size: 11px; }
.vp-elegir:hover { border-color: var(--vp-marino); }
.vp-elegir.is-elegido { background: var(--vp-marino); border-color: var(--vp-marino); color: #fff; }
.vp-elegir:focus-visible { outline: 2px solid var(--vp-coral); outline-offset: 2px; }
@media (max-width: 575.98px) {
    .vp-elegir { top: 8px; right: 8px; width: 32px; padding: 0; justify-content: center; }
    .vp-elegir span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .vp-producto .vp-empresa { padding-right: 34px; }
}

/* Productos dentro del chat: el primero destacado con sus botones, los otros compactos */
.vp-minis { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.vp-mini { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border: 1px solid #e7e9f0; border-radius: 12px; background: #fff; }
.vp-mini.is-destacado { border-color: #ffd3c6; background: #fffaf8; }
.vp-mini-foto { flex: none; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 10px; background: #eef1f7; color: #9aa3b5; }
.vp-mini.is-destacado .vp-mini-foto { width: 58px; height: 58px; }
.vp-mini-foto img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.vp-mini-datos { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.vp-mini-nombre { color: #18202e; font-weight: 700; font-size: 13px; line-height: 1.3; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vp-mini-nombre:hover { color: var(--vp-marino); text-decoration: underline; }
.vp-mini-precio { color: var(--vp-marino); font-weight: 800; font-size: 14.5px; }
.vp-mini-empresa { color: var(--vp-gris); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vp-mini-acciones { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.vp-mini-acciones a { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 700; text-decoration: none; }
.vp-mini-ws { background: #25d366; color: #fff; }
.vp-mini-ws:hover { background: #1da851; color: #fff; }
.vp-mini-ver { border: 1px solid #d5dae4; color: var(--vp-marino); background: #fff; }
.vp-mini-ver:hover { border-color: var(--vp-marino); color: var(--vp-marino); }
.vp-ideas .ai-chat-suggestion-text { font-size: 12.5px; }

/* =====================================================================
   Comparar con IA: bandeja de elegidos y comparador
   ===================================================================== */
.vc-bandeja { position: fixed; z-index: 1035; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; width: min(860px, calc(100% - 32px)); padding: 10px 12px; background: #fff; border: 1px solid #dfe3ec; border-radius: 18px; box-shadow: 0 18px 44px -18px rgba(11, 35, 80, .55); animation: vc-subir .25s ease both; }
@keyframes vc-subir { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
.vc-bandeja-items { flex: 1; display: flex; gap: 8px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.vc-bandeja-items::-webkit-scrollbar { display: none; }
.vc-elegido { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; max-width: 220px; padding: 5px 6px 5px 5px; border: 1px solid #e3e6ef; border-radius: 12px; background: #f8f9fc; }
.vc-elegido img, .vc-elegido-icono { flex: none; width: 36px; height: 36px; border-radius: 8px; object-fit: contain; background: #fff; display: flex; align-items: center; justify-content: center; color: #9aa3b5; }
.vc-elegido-texto { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.vc-elegido-texto strong { font-size: 12.5px; color: #18202e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-elegido-texto small { font-size: 12px; font-weight: 700; color: var(--vp-marino); }
.vc-elegido button { flex: none; width: 26px; height: 26px; border: 0; border-radius: 50%; background: transparent; color: #7a8194; }
.vc-elegido button:hover { background: #eceff5; color: #18202e; }
.vc-elegido-vacio { padding: 0 14px; min-height: 48px; border-style: dashed; background: #fff; color: #7a8194; font-size: 12.5px; }
.vc-bandeja-acciones { display: flex; align-items: center; gap: 12px; }
.vc-bandeja-n { color: var(--vp-gris); font-size: 13px; font-weight: 600; white-space: nowrap; }
.vc-bandeja-btn { display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--vp-coral); color: #fff; font-weight: 700; white-space: nowrap; transition: background .15s ease, opacity .15s ease; }
.vc-bandeja-btn:hover:not(:disabled) { background: var(--marca-coral-hover, #ff805f); }
.vc-bandeja-btn:disabled { opacity: .45; cursor: not-allowed; }
/* Escritorio: sobre la columna de productos, sin tapar la caja del chat */
@media (min-width: 992px) {
    .vc-bandeja { transform: none; animation-name: vc-subir-lado; } /* left y width: productos-ia.js (alinearBandeja) */
}
@keyframes vc-subir-lado { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.vc-aviso { flex-basis: 100%; order: -1; margin: 0; padding: 6px 10px; border-radius: 10px; background: #fff4e5; color: #8a5300; font-size: 13px; }
body.vc-con-bandeja .vp-area { padding-bottom: 110px; }
body.vc-con-bandeja .scroll-to-top.show { bottom: 110px; }
@media (max-width: 575.98px) {
    .vc-bandeja { bottom: calc(var(--ai-mbar-h, 86px) + 8px); width: calc(100% - 16px); padding: 8px; gap: 8px; border-radius: 16px; }
    .vc-bandeja-acciones { width: 100%; justify-content: space-between; }
    .vc-bandeja-btn { flex: 1; justify-content: center; height: 42px; }
    .vc-elegido { max-width: 170px; }
    body.vc-con-bandeja .vp-area { padding-bottom: calc(var(--ai-mbar-h, 86px) + 140px); }
    body.ai-sheet-open .vc-bandeja { visibility: hidden; }
}

.vc { position: fixed; inset: 0; z-index: 1060; display: flex; align-items: center; justify-content: center; }
.vc[hidden] { display: none; }
.vc-fondo { position: absolute; inset: 0; background: rgba(8, 20, 46, .55); opacity: 0; transition: opacity .2s ease; }
.vc-panel { position: relative; display: flex; flex-direction: column; width: min(980px, calc(100% - 32px)); height: min(88vh, 860px); overflow: hidden; background: #f6f7fb; border-radius: 20px; box-shadow: 0 30px 70px -20px rgba(8, 20, 46, .6); opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .2s ease, transform .2s ease; }
.vc.is-open .vc-fondo { opacity: 1; }
.vc.is-open .vc-panel { opacity: 1; transform: none; }
body.vc-abierto { overflow: hidden; }
.vc-cabecera { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border-bottom: 1px solid #eceef4; }
.vc-cabecera::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #0b2350, #ff8f72, #ff6a45, #ff8f72, #0b2350); background-size: 200% 100%; animation: ai-shimmer 3s linear infinite; }
.vc-cabecera-texto { flex: 1; min-width: 0; }
.vc-cabecera h3 { margin: 0; font-size: 17px; font-weight: 700; color: var(--vp-marino); }
.vc-cabecera-texto span { font-size: 12.5px; color: var(--vp-gris); }
.vc-cerrar { flex: none; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #f1f3f7; color: #495066; }
.vc-cerrar:hover { background: #e4e8f0; color: #18202e; }
.vc-cuerpo { position: relative; flex: 1; min-height: 0; overflow-y: auto; padding: 16px; }
.vc-productos { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.vc-productos::-webkit-scrollbar { display: none; }
.vc-producto { flex: 1 1 0; display: flex; align-items: center; gap: 10px; min-width: 180px; padding: 8px; background: #fff; border: 1px solid #e3e6ef; border-radius: 14px; }
.vc-producto img, .vc-producto .vc-elegido-icono { flex: none; width: 44px; height: 44px; border-radius: 10px; object-fit: contain; background: #fff; }
.vc-producto span { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.vc-producto strong { font-size: 13px; color: #18202e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-producto small { font-size: 12px; color: var(--vp-gris); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-vs { flex: none; font-size: 12px; font-weight: 800; color: var(--vp-coral); text-transform: uppercase; }
.vc-mensajes { display: flex; flex-direction: column; gap: 10px; }
.vc-mensajes .ai-chat-text { font-size: 14px; }
.vc-respuesta .ai-chat-text { max-width: calc(100% - 34px); flex: 1; min-width: 0; }
.vc-entrada { flex: none; margin: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #eceef4; }

.vc-tabla-scroll { margin: 10px 0 4px; overflow-x: auto; border: 1px solid #e3e6ef; border-radius: 12px; }
.vc-tabla { width: 100%; min-width: 460px; border-collapse: collapse; font-size: 13px; }
.vc-tabla th, .vc-tabla td { padding: 9px 10px; border-bottom: 1px solid #eef0f5; text-align: left; vertical-align: top; }
.vc-tabla tr:last-child th, .vc-tabla tr:last-child td { border-bottom: 0; }
.vc-tabla thead th { background: #f8f9fc; vertical-align: bottom; }
.vc-tabla tbody th { position: sticky; left: 0; z-index: 1; width: 22%; background: #fff; color: var(--vp-gris); font-weight: 600; }
.vc-tabla .is-recomendado { background: #fff8f5; }
.vc-tabla thead th.is-recomendado { background: #fff0eb; box-shadow: inset 0 3px 0 var(--vp-coral); }
.vc-col-nombre { display: block; color: #18202e; font-weight: 700; line-height: 1.3; }
.vc-col-precio { display: block; margin-top: 2px; color: var(--vp-marino); font-weight: 800; }
.vc-reco { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 4px; padding: 2px 8px; border-radius: 999px; background: var(--vp-coral); color: #fff; font-size: 11px; font-weight: 700; }
.vc-tabla td.is-ganador { color: #0f6b37; font-weight: 700; }
.vc-tabla td.is-ganador i { color: #1da851; }
.vc-reco-caja { margin-top: 10px; padding: 12px 14px; border: 1px solid #ffd3c6; border-radius: 12px; background: #fff8f5; }
.vc-reco-titulo { margin: 0 0 6px !important; color: var(--marca-coral-texto, #c8441f); font-weight: 800; }
.vc-reco-acciones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.vc-reco-acciones a { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 16px; border-radius: 999px; font-weight: 700; font-size: 13.5px; text-decoration: none; }

@media (max-width: 575.98px) {
    .vc { align-items: stretch; }
    .vc-panel { width: 100%; height: 100%; border-radius: 0; transform: translateY(24px); }
    .vc-cuerpo { padding: 12px; }
    .vc-producto { min-width: 150px; }
    .vc-respuesta .ai-chat-avatar { display: none; }
    .vc-respuesta .ai-chat-text { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .vc-panel, .vc-fondo { transition: none; }
    .vc-bandeja { animation: none; }
}
