/* style.css */
/* Sistema de diseño moderno y premium para Bahía Super Comparador */

:root {
    --bg-main: #0b0f19;
    --bg-card: #151f32;
    --bg-input: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border-color: #334155;

    /* Colores de marca (Sin sesgo de semáforo) */
    --color-coope: #06b6d4;
    /* Celeste Cian */
    --color-masonline: #a855f7;
    /* Púrpura */
    --color-banderita: #f97316;
    /* Naranja */

    --color-accent: #6366f1;
    /* Índigo */
    --color-accent-hover: #4f46e5;
    --success: #22c55e;

    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-family);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Scrollbar estilizada */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

header h1 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #a5b4fc 0%, #6366f1 50%, #4338ca 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.05em;
    margin-bottom: 0.5rem;
}

header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Grid Principal */
.main-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .main-layout {
        grid-template-columns: 3fr 2fr;
    }
}

/* Panel de Búsqueda */
.search-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 400;
}

.search-box {
    display: flex;
    gap: 0.75rem;
}

.search-input {
    flex: 1;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: var(--transition);
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    display: flex;
}

.search-suggestions {
    position: absolute;
    top: 110%;
    left: 0;
    right: 0;
    background: #1e293b;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    z-index: 500;
    max-height: 220px;
    overflow-y: auto;
    display: none;
    padding: 0.35rem 0;
    animation: fadeIn 0.15s ease-out;
}

.suggestion-item {
    width: 100%;
    background: transparent;
    border: none;
    padding: 0.6rem 1rem;
    text-align: left;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.suggestion-item:hover {
    background: rgba(99, 102, 241, 0.15);
}

.suggestion-item i {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.search-btn {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    color: white;
    border: none;
    border-radius: 0.75rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

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

/* Spinner de carga */
.loader-container {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    gap: 1rem;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Columnas de Resultados */
.results-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

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

.super-column {
    background: rgba(21, 31, 50, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    height: 600px;
}

.column-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.column-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
}

.super-badge {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.super-coope {
    background-color: var(--color-coope);
}

.super-masonline {
    background-color: var(--color-masonline);
}

.super-banderita {
    background-color: var(--color-banderita);
}

.products-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-right: 0.25rem;
}

/* Tarjeta de Producto */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    min-height: 250px;
}

.product-card:hover {
    border-color: var(--border-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.product-card.selected-lacoope {
    border-color: var(--color-coope);
}

.product-card.selected-masonline {
    border-color: var(--color-masonline);
}

.product-card.selected-banderita {
    border-color: var(--color-banderita);
}

.product-image-container {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 0.5rem;
    padding: 0.25rem;
}

.product-image {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.product-info {
    flex: 1;
}

.product-brand {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.product-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.6rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-size: 1.15rem;
    font-weight: 700;
}

.price-coope {
    color: var(--color-coope);
}

.price-masonline {
    color: var(--color-masonline);
}

.price-banderita {
    color: var(--color-banderita);
}

.add-btn {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 0.5rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.add-btn:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
}

/* Crear Fila Comparativa Rápida */
.bulk-action-section {
    display: none;
    margin-bottom: 1.5rem;
    text-align: center;
}

.bulk-btn {
    background: rgba(99, 102, 241, 0.1);
    border: 1px dashed var(--color-accent);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.bulk-btn:hover {
    background: var(--color-accent);
    color: white;
    border-style: solid;
}

/* Mi Lista de Compras: Grilla Comparativa Ancha */
.comp-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.comp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.comp-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.comp-table {
    width: 100%;
    border-collapse: collapse;
}

.comp-thead {
    border-bottom: 2px solid var(--border-color);
}

.comp-thead th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 700;
}

.comp-row {
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.comp-row:hover {
    background: rgba(255, 255, 255, 0.01);
}

.comp-row td {
    padding: 1rem;
    vertical-align: middle;
}

/* Celdas Específicas */
.comp-ref-cell {
    max-width: 250px;
}

.comp-ref-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.comp-super-cell {
    position: relative;
    /* Clave para el popover absoluto */
    min-width: 160px;
    max-width: 220px;
}

.comp-item-btn {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 0.5rem;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comp-item-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--color-accent);
}

.comp-item-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    background: white;
    border-radius: 0.25rem;
    padding: 1px;
}

.comp-item-info {
    flex: 1;
    min-width: 0;
    /* Permite truncar */
}

.comp-item-name {
    font-size: 0.75rem;
    color: var(--text-primary);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.comp-item-brand {
    font-size: 0.65rem;
    color: var(--text-secondary);
    display: block;
    text-transform: uppercase;
}

.comp-item-price {
    font-size: 0.85rem;
    font-weight: 700;
}

.cell-lacoope .comp-item-price {
    color: var(--color-coope);
}

.cell-masonline .comp-item-price {
    color: var(--color-masonline);
}

.cell-labanderita .comp-item-price {
    color: var(--color-banderita);
}

/* Celda vacía */
.comp-empty-btn {
    background: transparent;
    border: 1px dashed var(--border-color);
    color: var(--text-secondary);
    border-radius: 0.75rem;
    padding: 0.75rem 0.5rem;
    width: 100%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.comp-empty-btn:hover {
    border-color: var(--color-accent);
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.05);
}

/* Cantidad y Acciones */
.comp-qty-cell {
    width: 120px;
}

.comp-qty-controls {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    width: fit-content;
    overflow: hidden;
}

.qty-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.qty-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.qty-val {
    padding: 0 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.clear-btn {
    background: rgba(239, 68, 68, 0.08);
    border: 1px dashed rgba(239, 68, 68, 0.3);
    color: #ef4444;
    border-radius: 0.5rem;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.clear-btn:hover {
    background: #ef4444;
    color: white;
    border-style: solid;
}

.comp-delete-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.comp-delete-btn:hover {
    color: var(--color-banderita);
    background: rgba(239, 68, 68, 0.1);
}

/* POPOVER DE SELECCIÓN RAPIDA */
.popover-container {
    position: absolute;
    bottom: 110%;
    /* Abre hacia arriba */
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(99, 102, 241, 0.1);
    width: 280px;
    max-height: 320px;
    overflow-y: auto;
    z-index: 200;
    padding: 0.5rem;
    display: none;
    animation: popIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: translate(-50%, 10px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }
}

/* Flecha del popover */
.popover-container::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #1e293b transparent transparent transparent;
}

.popover-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    padding: 0.4rem 0.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.4rem;
}

.popover-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    width: 100%;
    background: transparent;
    border: none;
}

.popover-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.popover-item-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    background: white;
    border-radius: 0.25rem;
    padding: 1px;
    flex-shrink: 0;
}

.popover-item-info {
    flex: 1;
    min-width: 0;
}

.popover-item-title {
    font-size: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.popover-item-brand {
    font-size: 0.65rem;
    color: var(--text-secondary);
    display: block;
    text-transform: uppercase;
}

.popover-item-price {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.popover-action-btn {
    display: block;
    width: 100%;
    padding: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    color: var(--color-banderita);
    background: rgba(239, 68, 68, 0.05);
    border: 1px dashed rgba(239, 68, 68, 0.2);
    border-radius: 0.5rem;
    margin-top: 0.4rem;
    cursor: pointer;
    transition: var(--transition);
}

.popover-action-btn:hover {
    background: var(--color-banderita);
    color: white;
}

/* Panel Lateral Derecho: Resumen */
.aside-summary {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
}

.summary-header {
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.summary-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
}

.summary-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.summary-label {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.summary-value {
    font-weight: 700;
    color: var(--text-primary);
}

.summary-winner-card {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid var(--success);
    border-radius: 0.75rem;
    padding: 0.75rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--success);
    font-weight: 500;
}

.winner-text {
    line-height: 1.4;
    flex: 1;
    text-align: left;
}

.winner-text strong {
    font-weight: 700;
}

.summary-divider {
    border-top: 1px dashed var(--border-color);
    margin: 0.5rem 0;
}

.summary-total {
    font-size: 1.1rem;
    font-weight: 800;
}

/* Panel de Envíos */
.shipping-settings {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1rem;
    margin-top: 1rem;
}

.shipping-settings h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.shipping-inputs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.shipping-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.shipping-field label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.shipping-field input {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 0.4rem;
    padding: 0.4rem;
    color: var(--text-primary);
    font-size: 0.85rem;
    width: 100%;
}

.shipping-field input:focus {
    outline: none;
    border-color: var(--color-accent);
}

/* Utilidades */

/* Modales o utilidades */
.helper-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    text-align: center;
}

/* Responsividad de Tabla e Interacción de Popovers */
.table-responsive {
    overflow-x: auto;
    overflow-y: visible;
}

@media (min-width: 1024px) {
    .table-responsive {
        overflow: visible;
        /* Clave para evitar recortar popovers en desktop */
    }
}

/* Modal de Detalle de Compra Dividida */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-container {
    transform: translateY(0) scale(1);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-accent);
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.modal-close-btn:hover {
    color: var(--color-banderita);
}

.modal-body {
    padding: 1.5rem;
}

.modal-split-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .modal-split-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

.modal-super-column {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-super-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 0.25rem;
}

.modal-prod-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.modal-prod-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.4rem 0.6rem;
}

.modal-prod-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    background: white;
    border-radius: 0.25rem;
}

.modal-prod-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal-prod-price {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.modal-super-totals {
    border-top: 1px dashed var(--border-color);
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.modal-super-row {
    display: flex;
    justify-content: space-between;
}

.modal-super-total-row {
    font-weight: 700;
    font-size: 0.85rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: rgba(30, 41, 59, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-total-banner {
    font-size: 1.1rem;
    font-weight: 800;
}

.modal-total-banner span {
    color: var(--color-accent);
}

.modal-view-details-btn {
    background: rgba(99, 102, 241, 0.1);
    border: 1px dashed var(--color-accent);
    color: var(--color-accent);
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: fit-content;
}

.modal-view-details-btn:hover {
    background: var(--color-accent);
    color: white;
    border-style: solid;
}

/* Indicadores de Precio Más Barato (Verde destacado) */
.comp-item-price.cheapest-price {
    color: #22c55e !important;
    font-weight: 800;
}

.cheapest-badge {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 0.35rem;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.comp-item-btn.cheapest-card {
    border-color: rgba(34, 197, 94, 0.3) !important;
    background: rgba(34, 197, 94, 0.03) !important;
}

.comp-item-btn.cheapest-card:hover {
    border-color: #22c55e !important;
    background: rgba(34, 197, 94, 0.08) !important;
}