/* ========== BASE ========== */
#catalogo-cdo-wrapper { font-family: 'Segoe UI', Arial, sans-serif; max-width: 1400px; margin: 0 auto; padding: 20px; }
body.cdo-no-scroll { overflow: hidden; }

/* ========== GUÍA DE MÉTODOS DE IMPRESIÓN ========== */
.cdo-guia-metodos { margin-bottom: 10px; border: 1px solid #d0e4f7; border-radius: 12px; overflow: hidden; }
.cdo-guia-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 18px; background: linear-gradient(135deg, #e8f0fe, #f0f6ff); border: none; cursor: pointer; font-size: 14px; color: #1F4E79; text-align: left; font-family: inherit; transition: background 0.2s; }
.cdo-guia-toggle:hover { background: linear-gradient(135deg, #dce8fb, #e4f0ff); }
.cdo-guia-arrow { font-size: 12px; color: #2E75B6; flex-shrink: 0; transition: transform 0.2s; }
.cdo-guia-content { padding: 20px; background: white; border-top: 1px solid #e0ecf8; }
details.cdo-guia-metodos summary { list-style: none; }
details.cdo-guia-metodos summary::-webkit-details-marker { display: none; }
.cdo-guia-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-bottom: 16px; }
.cdo-metodo-card { border: 1px solid #e0e0e0; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 2px 6px rgba(0,0,0,0.05); }
.cdo-metodo-header { display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.cdo-metodo-emoji { font-size: 18px; }
.cdo-metodo-titulo { color: white; font-size: 12px; font-weight: 800; letter-spacing: 0.3px; line-height: 1.3; }
.cdo-metodo-body { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; gap: 8px; background: #fafafa; }
.cdo-metodo-desc { font-size: 12px; color: #444; line-height: 1.5; margin: 0; }
.cdo-metodo-sup-title { font-size: 11px; color: #555; margin: 0; }
.cdo-metodo-sups { margin: 0; padding-left: 16px; font-size: 11px; color: #333; line-height: 1.7; }
.cdo-metodo-noapto { font-size: 11px; color: #c62828; background: #ffebee; border-radius: 4px; padding: 4px 8px; margin: 0; font-weight: 600; }
.cdo-guia-footer { text-align: center; font-size: 13px; color: #333; background: #f0f6ff; border: 1px solid #d0e4f7; border-radius: 8px; padding: 12px 16px; margin: 0; line-height: 1.5; }

/* Tooltip en badges de técnicas */
.cdo-tecnica-badge { position: relative; }
.cdo-tecnica-badge[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.88);
    color: white;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.5;
    padding: 8px 12px;
    border-radius: 8px;
    width: 220px;
    white-space: pre-line;
    text-align: left;
    z-index: 9999;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.cdo-tecnica-badge[data-tooltip] { cursor: help; }

/* ========== INTRO BAR ========== */
.cdo-intro-bar { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, #1F4E79 0%, #2E75B6 100%); color: white; border-radius: 12px; padding: 14px 20px; margin-bottom: 12px; flex-wrap: wrap; }
.cdo-intro-icon { font-size: 28px; flex-shrink: 0; }
.cdo-intro-text { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 2px; }
.cdo-intro-text strong { font-size: 15px; font-weight: 800; letter-spacing: 0.2px; }
.cdo-intro-text span { font-size: 12px; opacity: 0.85; line-height: 1.4; }
.cdo-intro-tag { background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.35); color: white; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 20px; white-space: nowrap; text-transform: uppercase; letter-spacing: 0.5px; }

/* ========== FILTROS (sticky) ========== */
.cdo-filters { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; padding: 14px 20px; background: #f8f9fa; border-radius: 12px; border: 1px solid #e0e0e0; position: sticky; top: 0; z-index: 990; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.cdo-filters-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cdo-filters-actions { display: flex; justify-content: center; }
.cdo-search-box { position: relative; flex: 1; min-width: 200px; }
.cdo-sku-box { flex: 0 1 200px; min-width: 160px; }
.cdo-search-box input { width: 100%; padding: 10px 40px 10px 14px; border: 2px solid #ddd; border-radius: 8px; font-size: 14px; transition: border-color 0.2s; box-sizing: border-box; }
.cdo-search-box input:focus { border-color: #2E75B6; outline: none; }
.cdo-search-icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #999; font-size: 16px; }
.cdo-filter-group { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cdo-filter-group select { padding: 10px 14px; border: 2px solid #ddd; border-radius: 8px; font-size: 14px; background: white; cursor: pointer; min-width: 200px; }
.cdo-filter-group select:focus { border-color: #2E75B6; outline: none; }
#cdo-categoria { padding: 10px 14px; border: 2px solid #ddd; border-radius: 8px; font-size: 14px; background: white; cursor: pointer; flex: 1; min-width: 180px; }
#cdo-categoria:focus { border-color: #2E75B6; outline: none; }
#cdo-limpiar { padding: 9px 28px; background: white; border: 2px solid #ddd; border-radius: 8px; font-size: 14px; cursor: pointer; transition: all 0.2s; color: #555; }
#cdo-limpiar:hover { border-color: #e53935; color: #e53935; background: #fff5f5; }
.cdo-contador { margin-bottom: 16px; color: #666; font-size: 14px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.cdo-iva-aviso { font-size: 12px; color: #e65100; background: #fff3e0; border: 1px solid #ffcc80; border-radius: 6px; padding: 4px 10px; font-weight: 600; }

/* ========== LOADING ========== */
.cdo-loading { grid-column: 1/-1; text-align: center; padding: 40px 20px 60px; color: #666; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cdo-loading-logo { margin-top: 10px; }
.cdo-loading-logo img { height: 200px; width: auto; object-fit: contain; animation: cdo-logo-pulse 2s ease-in-out infinite; }
@keyframes cdo-logo-pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.7; transform:scale(0.97); } }
.cdo-spinner { width: 44px; height: 44px; border: 4px solid #e0e0e0; border-top-color: #2E75B6; border-radius: 50%; animation: cdo-spin 0.8s linear infinite; }
@keyframes cdo-spin { to { transform: rotate(360deg); } }
.cdo-loading-text { font-size: 16px; font-weight: 600; color: #1F4E79; margin: 0; }
.cdo-loading-sub { font-size: 13px; color: #aaa; margin: 0; }
.cdo-dots::after { content: ''; animation: cdo-dots-anim 1.5s steps(4,end) infinite; }
@keyframes cdo-dots-anim { 0%{content:'';} 25%{content:'.';} 50%{content:'..';} 75%{content:'...';} }

/* ========== GALERÍA ========== */
.cdo-galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.cdo-no-results, .cdo-error { grid-column: 1/-1; text-align: center; padding: 40px; color: #888; font-size: 16px; }

/* ========== TARJETA ========== */
.cdo-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.08); cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column; position: relative; }
.cdo-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.14); }
.cdo-card-img { width: 100%; height: 180px; overflow: hidden; background: #f5f5f5; display: flex; align-items: center; justify-content: center; }
.cdo-card-img img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.3s; }
.cdo-card:hover .cdo-card-img img { transform: scale(1.05); }
.cdo-no-img { color: #bbb; font-size: 13px; }
.cdo-card-body { padding: 12px 14px 40px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.cdo-badge { display: inline-block; background: #e8f0fe; color: #2E75B6; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 20px; margin-bottom: 4px; width: fit-content; }
.cdo-card-title { font-size: 14px; font-weight: 700; color: #1F4E79; margin: 0; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cdo-card-footer { margin-top: auto; padding-top: 8px; border-top: 1px solid #f0f0f0; }
.cdo-card-precio { font-size: 18px; font-weight: 800; color: #2E75B6; }

/* Círculos mini en tarjeta */
.cdo-colores-mini { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.cdo-color-dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.15); display: inline-block; }
.cdo-color-more { font-size: 10px; color: #888; align-self: center; }

/* Botón rápido + */
.cdo-btn-agregar-quick { position: absolute; bottom: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; background: #2E75B6; color: white; border: none; font-size: 20px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s, transform 0.2s; box-shadow: 0 2px 6px rgba(0,0,0,0.2); }
.cdo-btn-agregar-quick:hover { background: #1F4E79; transform: scale(1.1); }
.cdo-btn-agregar-quick.cdo-added { background: #2e7d32; }

/* ========== CARRITO FLOTANTE ========== */
#cdo-carrito-btn { position: fixed; bottom: 90px; right: 24px; background: #2E75B6; color: white; border: none; border-radius: 50px; padding: 14px 22px; font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 20px rgba(46,117,182,0.5); z-index: 9999; display: flex; align-items: center; gap: 10px; animation: cdo-pulse 2s infinite; }
@keyframes cdo-pulse { 0%,100%{box-shadow:0 4px 20px rgba(46,117,182,0.5);} 50%{box-shadow:0 4px 30px rgba(46,117,182,0.8);} }
#cdo-carrito-count { background: #e53935; color: white; border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }

/* ========== MODAL BASE ========== */
.cdo-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99999; display: flex; align-items: center; justify-content: center; }
.cdo-modal-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.65); }
.cdo-modal-content { position: relative; background: white; border-radius: 16px; max-width: 960px; width: 96%; max-height: 96vh; overflow: hidden; z-index: 1; box-shadow: 0 20px 60px rgba(0,0,0,0.3); display: flex; flex-direction: column; }
.cdo-modal-close { position: absolute; top: 12px; right: 14px; background: rgba(255,255,255,0.9); border: 1px solid #ddd; border-radius: 50%; width: 32px; height: 32px; font-size: 22px; cursor: pointer; color: #555; line-height: 1; z-index: 20; padding: 0; display: flex; align-items: center; justify-content: center; }
.cdo-modal-close:hover { color: #c62828; background: #fee; border-color: #f9a8a8; }

/* ========== MODAL PRODUCTO ========== */
.cdo-modal-body { display: grid; grid-template-columns: 42% 58%; flex: 1; min-height: 0; overflow: hidden; }
.cdo-modal-left { background: #f5f5f5; border-radius: 16px 0 0 16px; display: flex; flex-direction: column; overflow-y: auto; min-height: 0; }

/* IMAGEN MODAL (clic para ampliar) */
.cdo-modal-imagen { position: relative; display: flex; align-items: center; justify-content: center; min-height: 300px; padding: 20px; overflow: hidden; }
.cdo-modal-imagen img { max-width: 100%; max-height: 320px; object-fit: contain; display: block; cursor: zoom-in; transition: opacity 0.15s; border-radius: 6px; }
.cdo-modal-imagen img:hover { opacity: 0.92; }
.cdo-zoom-hint { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); font-size: 11px; color: #888; background: rgba(255,255,255,0.88); padding: 3px 10px; border-radius: 10px; white-space: nowrap; pointer-events: none; }

/* ========== LIGHTBOX ========== */
#cdo-lightbox { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 999999; }
#cdo-lightbox-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.93); cursor: zoom-out; }
#cdo-lightbox-close { position: fixed; top: 14px; right: 20px; font-size: 44px; color: white; background: none; border: none; cursor: pointer; z-index: 1; line-height: 1; padding: 0 8px; opacity: 0.75; font-weight: 300; }
#cdo-lightbox-close:hover { opacity: 1; }
#cdo-lightbox-wrap { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; max-width: 95vw; max-height: 95vh; }
#cdo-lightbox-img { max-width: 92vw; max-height: 92vh; object-fit: contain; display: block; border-radius: 4px; box-shadow: 0 8px 40px rgba(0,0,0,0.5); }

/* Colores en modal */
.cdo-colores { padding: 12px 16px; border-top: 1px solid #e0e0e0; }
.cdo-colores-label { font-size: 12px; font-weight: 700; color: #555; text-transform: uppercase; letter-spacing: 0.5px; margin: 0 0 10px; }
.cdo-colores-grid { display: flex; flex-wrap: wrap; gap: 8px; max-height: 150px; overflow-y: auto; }
.cdo-color-item { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 2px solid transparent; border-radius: 8px; cursor: pointer; transition: all 0.15s; background: white; }
.cdo-color-item:hover { border-color: #2E75B6; background: #f0f6ff; }
.cdo-color-item.active { border-color: #2E75B6; background: #e8f0fe; }
.cdo-color-circle { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.15); flex-shrink: 0; }
.cdo-color-info { display: flex; flex-direction: column; }
.cdo-color-name { font-size: 12px; font-weight: 600; color: #333; }
.cdo-color-stock { font-size: 11px; }

/* ========== AVISO CONDICIONES GENERALES (bajo filtros) ========== */
.cdo-condiciones-aviso { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.cdo-condicion-item { display: flex; align-items: flex-start; gap: 8px; background: #f8f9fa; border: 1px solid #e0e0e0; border-radius: 8px; padding: 10px 14px; font-size: 13px; color: #444; line-height: 1.5; flex: 1; min-width: 280px; }
.cdo-condicion-metodo { border-left: 4px solid #2E75B6; }
.cdo-condicion-matriz { border-left: 4px solid #e65100; }
.cdo-condicion-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }

/* Aviso matriz dentro del modal */
.cdo-modal-matriz-aviso { display: flex; align-items: center; gap: 6px; background: #fff8e1; border: 1px solid #ffe082; border-radius: 6px; padding: 6px 10px; font-size: 11px; color: #5d4037; line-height: 1.4; }
.cdo-aviso-icon { font-size: 13px; flex-shrink: 0; color: #e65100; }

/* ========== CAMPO MATRIZ EN FORMULARIO ========== */
.cdo-form-matriz { background: #f8f9fa; border: 1px solid #e0e0e0; border-radius: 10px; padding: 16px; margin-bottom: 16px; }
.cdo-form-matriz-titulo { font-size: 14px; font-weight: 700; color: #1F4E79; margin: 0 0 12px; }
.cdo-form-matriz-opciones { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.cdo-radio-label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: #333; padding: 8px 12px; border: 2px solid #e0e0e0; border-radius: 8px; background: white; transition: all 0.15s; }
.cdo-radio-label:hover { border-color: #2E75B6; background: #f0f6ff; }
.cdo-radio-label input[type="radio"] { accent-color: #2E75B6; width: 16px; height: 16px; flex-shrink: 0; }
.cdo-radio-label input[type="radio"]:checked + span { font-weight: 700; }
.cdo-radio-label:has(input:checked) { border-color: #2E75B6; background: #e8f0fe; }
.cdo-form-matriz-nota { font-size: 11px; color: #888; margin: 0; line-height: 1.5; padding-top: 8px; border-top: 1px solid #e0e0e0; font-style: italic; }

/* ========== MATERIALES ========== */
.cdo-materiales { padding: 10px 16px; border-top: 1px solid #e0e0e0; }
.cdo-materiales-row { display: flex; flex-wrap: wrap; gap: 6px; }
.cdo-material-chip { display: inline-flex; align-items: center; gap: 5px; background: #f0f4f8; border: 1px solid #d0dce8; border-radius: 20px; padding: 4px 10px; font-size: 12px; color: #333; font-weight: 600; }
.cdo-material-emoji { font-size: 14px; line-height: 1; }

/* ========== TÉCNICAS DE IMPRESIÓN (modal producto) ========== */
.cdo-tecnicas { padding: 8px 0 4px; border-top: 1px solid #eee; }
.cdo-tecnicas-label { font-size: 11px; font-weight: 700; color: #555; text-transform: uppercase; letter-spacing: 0.5px; margin: 0 0 5px; }
.cdo-tecnicas-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 4px; }
.cdo-tecnica-badge { display: inline-flex; align-items: center; gap: 4px; color: white; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 12px; letter-spacing: 0.2px; }
.cdo-tecnica-icon-img { height: 13px; width: auto; filter: brightness(0) invert(1); vertical-align: middle; }
.cdo-tecnicas-nota { font-size: 10px; color: #aaa; margin: 4px 0 0; font-style: italic; }
.cdo-caract-icon-img { height: 16px; width: auto; object-fit: contain; }

/* Info modal */
.cdo-modal-info { padding: 14px 18px; display: flex; flex-direction: column; gap: 5px; overflow-y: auto; min-height: 0; }
.cdo-modal-info h2 { font-size: 18px; font-weight: 800; color: #1F4E79; margin: 2px 0 0; line-height: 1.25; }
.cdo-modal-sku, .cdo-modal-color { font-size: 12px; color: #888; margin: 0; }
.cdo-modal-desc { font-size: 12px; color: #444; line-height: 1.5; margin: 2px 0; max-height: 56px; overflow-y: auto; }
.cdo-modal-precio-stock { display: flex; gap: 14px; flex-wrap: wrap; background: #f8f9fa; border-radius: 8px; padding: 8px 14px; }
.cdo-modal-precio-stock > div { display: flex; flex-direction: column; gap: 2px; }
.cdo-label { font-size: 10px; color: #888; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.cdo-precio-venta { font-size: 22px; font-weight: 800; color: #2E75B6; }
.cdo-precio-iva-tag { display: inline-block; font-size: 11px; font-weight: 700; color: #e65100; background: #fff3e0; border: 1px solid #ffcc80; border-radius: 4px; padding: 1px 6px; margin-left: 6px; vertical-align: middle; }
.cdo-modal-actions { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.cdo-modal-actions #cdo-agregar-cotizacion { flex: 1; margin: 0; }
.cdo-modal-cantidad { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.cdo-modal-cantidad label { font-size: 12px; font-weight: 600; color: #555; }
.cdo-qty-control { display: flex; align-items: center; border: 2px solid #2E75B6; border-radius: 8px; overflow: hidden; }
.cdo-qty-control button { width: 32px; height: 34px; background: #e8f0fe; border: none; font-size: 20px; font-weight: 700; color: #1F4E79 !important; line-height: 1; cursor: pointer; display: flex !important; align-items: center; justify-content: center; flex-shrink: 0; padding: 0; user-select: none; -webkit-user-select: none; }
.cdo-qty-control button:hover { background: #c5d8f6; }
.cdo-qty-control input { width: 48px; height: 34px; border: none; border-left: 1px solid #ddd; border-right: 1px solid #ddd; text-align: center; font-size: 14px; font-weight: 700; color: #333; }
#cdo-agregar-cotizacion { background: #2E75B6; color: white; border: none; padding: 10px 16px; border-radius: 8px; font-size: 14px; font-weight: 700; cursor: pointer; transition: background 0.2s; white-space: nowrap; }
#cdo-agregar-cotizacion:hover { background: #1F4E79; }
#cdo-agregar-cotizacion.cdo-added { background: #2e7d32; }
.cdo-btn-seguir { display: block; width: 100%; text-align: center; background: white; color: #555 !important; border: 1px solid #ddd; padding: 8px 16px; border-radius: 8px; font-weight: 600; font-size: 13px; cursor: pointer; transition: all 0.2s; }
.cdo-btn-ver-cotizacion { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: linear-gradient(135deg, #1a5276, #2E75B6); color: white !important; border: none; padding: 12px 16px; border-radius: 8px; font-weight: 700; font-size: 14px; cursor: pointer; transition: all 0.2s; margin-top: 4px; box-shadow: 0 2px 8px rgba(46,117,182,0.35); }
.cdo-btn-ver-cotizacion:hover { background: linear-gradient(135deg, #154360, #1f618d); box-shadow: 0 4px 14px rgba(46,117,182,0.5); }
.cdo-modal-cot-badge { background: rgba(255,255,255,0.25); border-radius: 20px; padding: 2px 10px; font-size: 12px; font-weight: 600; }
.cdo-btn-seguir:hover { border-color: #2E75B6; color: #2E75B6 !important; background: #f0f6ff; }

/* ========== MODAL COTIZACIÓN ========== */
.cdo-cotizacion-content { position: relative; background: white; border-radius: 16px; max-width: 700px; width: 95%; max-height: 93vh; overflow-y: auto; z-index: 1; box-shadow: 0 20px 60px rgba(0,0,0,0.3); padding: 32px 28px; }
.cdo-cotizacion-content h2 { font-size: 22px; color: #1F4E79; margin: 0 0 20px; }
.cdo-cotizacion-content h3 { font-size: 16px; color: #333; margin: 20px 0 12px; }
.cdo-cot-item { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid #eee; border-radius: 10px; margin-bottom: 10px; }
.cdo-cot-img { width: 60px; height: 60px; flex-shrink: 0; background: #f5f5f5; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.cdo-cot-img img { width: 100%; height: 100%; object-fit: contain; }
.cdo-cot-info { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.cdo-cot-info strong { font-size: 14px; color: #1F4E79; }
.cdo-cot-info span { color: #777; }
.cdo-cot-metodo { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; }
.cdo-cot-metodo label { font-size: 11px; font-weight: 700; color: #555; text-transform: uppercase; letter-spacing: 0.4px; }
.cdo-metodo-select { padding: 6px 10px; border: 2px solid #ddd; border-radius: 6px; font-size: 12px; font-family: inherit; cursor: pointer; background: white; transition: border-color 0.2s; max-width: 260px; }
.cdo-metodo-select:focus { border-color: #2E75B6; outline: none; }
.cdo-metodo-select option[value=""] { color: #aaa; }
.cdo-metodo-nota { font-size: 10px; color: #888; line-height: 1.4; margin-top: 2px; }
.cdo-cot-qty { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.cdo-cot-qty button { width: 28px; height: 28px; border: 1px solid #ddd; background: #f5f5f5; border-radius: 6px; cursor: pointer; font-size: 16px; }
.cdo-cot-subtotal { font-size: 15px; font-weight: 800; color: #2E75B6; min-width: 90px; text-align: right; }
.cdo-cot-remove { background: none; border: none; color: #ccc; font-size: 16px; cursor: pointer; padding: 4px; }
.cdo-cot-remove:hover { color: #c62828; }
.cdo-empty-cart { text-align: center; color: #888; padding: 20px; }
.cdo-cotizacion-total { display: flex; justify-content: space-between; align-items: center; padding: 16px; background: #f0f6ff; border-radius: 10px; margin: 16px 0; font-size: 18px; font-weight: 800; color: #1F4E79; gap: 10px; }
.cdo-cotizacion-total > div { display: flex; flex-direction: column; gap: 3px; }
.cdo-total-neto-nota { font-size: 11px; font-weight: 400; color: #666; line-height: 1.4; }
.cdo-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.cdo-form-grid input, .cdo-form-grid textarea { padding: 10px 14px; border: 2px solid #ddd; border-radius: 8px; font-size: 14px; font-family: inherit; transition: border-color 0.2s; }
.cdo-form-grid input:focus, .cdo-form-grid textarea:focus { border-color: #2E75B6; outline: none; }
.cdo-form-grid textarea { grid-column: 1/-1; resize: vertical; }
#cdo-btn-enviar { width: 100%; padding: 14px; background: #2E75B6; color: white; border: none; border-radius: 8px; font-size: 16px; font-weight: 700; cursor: pointer; transition: background 0.2s; }
#cdo-btn-enviar:hover { background: #1F4E79; }
#cdo-btn-enviar:disabled { background: #aaa; cursor: not-allowed; }
#cdo-form-msg { margin-top: 12px; font-size: 14px; font-weight: 600; text-align: center; line-height: 1.5; }

/* ========== MINI-CART INLINE ========== */
.cdo-minicart { margin-top: 28px; background: white; border: 2px solid #2E75B6; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 20px rgba(46,117,182,0.12); }
.cdo-mc-header { display: flex; align-items: center; justify-content: space-between; background: #2E75B6; padding: 12px 18px; }
.cdo-mc-title { color: white; font-size: 15px; font-weight: 800; }
.cdo-mc-count { background: rgba(255,255,255,0.25); color: white; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.cdo-mc-items { padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; max-height: 280px; overflow-y: auto; }
.cdo-mc-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border: 1px solid #f0f0f0; border-radius: 8px; background: #fafafa; }
.cdo-mc-thumb { width: 48px; height: 48px; object-fit: contain; border-radius: 6px; background: #f5f5f5; flex-shrink: 0; }
.cdo-mc-thumb-empty { width: 48px; height: 48px; border-radius: 6px; background: #eeeeee; flex-shrink: 0; }
.cdo-mc-row-info { flex: 1; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.cdo-mc-row-name { font-size: 13px; font-weight: 700; color: #1F4E79; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cdo-mc-row-detail { font-size: 11px; color: #888; }
.cdo-mc-row-price { font-size: 14px; font-weight: 800; color: #2E75B6; white-space: nowrap; }
.cdo-mc-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 12px 16px; background: #f0f6ff; border-top: 1px solid #d0e4f7; }
.cdo-mc-total { display: flex; align-items: center; gap: 8px; font-size: 15px; color: #333; }
.cdo-mc-total strong { font-size: 20px; font-weight: 800; color: #1F4E79; }
.cdo-mc-iva { font-size: 11px; color: #e65100; background: #fff3e0; border: 1px solid #ffcc80; border-radius: 4px; padding: 1px 6px; font-weight: 700; }
#cdo-mc-abrir-btn { background: #2E75B6; color: white; border: none; padding: 11px 22px; border-radius: 8px; font-size: 14px; font-weight: 700; cursor: pointer; transition: background 0.2s; white-space: nowrap; }
#cdo-mc-abrir-btn:hover { background: #1F4E79; }

/* ========== GALERÍA DE MINIATURAS ========== */
.cdo-gallery-thumbs { display: flex; gap: 6px; padding: 10px 14px; overflow-x: auto; background: #eeeeee; border-top: 1px solid #ddd; scrollbar-width: thin; }
.cdo-gallery-thumbs::-webkit-scrollbar { height: 4px; }
.cdo-gallery-thumbs::-webkit-scrollbar-thumb { background: #bbb; border-radius: 2px; }
.cdo-thumb { width: 58px; height: 58px; border: 2px solid transparent; border-radius: 7px; overflow: hidden; cursor: pointer; flex-shrink: 0; background: white; transition: border-color 0.15s; }
.cdo-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cdo-thumb:hover { border-color: #90caf9; }
.cdo-thumb.active { border-color: #2E75B6; }

/* ========== ESPECIFICACIONES DEL PRODUCTO ========== */
.cdo-packing-specs { background: #f8f9fa; border: 1px solid #e0e8f0; border-radius: 8px; padding: 12px 14px; margin: 0; }
.cdo-specs-title { font-size: 11px; font-weight: 700; color: #555; text-transform: uppercase; letter-spacing: 0.5px; margin: 0 0 8px; }
.cdo-specs-grid { display: flex; flex-direction: column; gap: 5px; }
.cdo-spec-item { display: flex; gap: 10px; font-size: 12px; line-height: 1.4; }
.cdo-spec-key { font-weight: 700; color: #555; white-space: nowrap; min-width: 120px; flex-shrink: 0; }
.cdo-spec-val { color: #333; }

/* ========== RESPONSIVE ========== */
@media (max-width: 700px) {
    .cdo-modal-content { overflow-y: auto; overflow-x: hidden; max-height: 95vh; width: 100%; border-radius: 12px 12px 0 0; margin-top: auto; }
    .cdo-modal-body { display: flex; flex-direction: column; overflow: visible; }
    .cdo-modal-left { border-radius: 12px 12px 0 0; overflow-y: visible; min-height: auto; width: 100%; }
    .cdo-modal-info { overflow-y: visible; min-height: auto; padding: 16px; }
    .cdo-modal-imagen img { max-height: 260px; }
    .cdo-modal-actions { flex-direction: column; gap: 8px; }
    .cdo-modal-actions #cdo-agregar-cotizacion { width: 100%; }
    .cdo-galeria { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
    .cdo-filters { top: 0; border-radius: 0 0 10px 10px; padding: 10px 12px; gap: 6px; }
    .cdo-filters-row { flex-direction: column; gap: 6px; }
    .cdo-search-box { width: 100%; min-width: unset; flex: none; }
    .cdo-sku-box { width: 100%; min-width: unset; flex: none; }
    #cdo-categoria { width: 100%; min-width: unset; flex: none; box-sizing: border-box; }
    .cdo-search-box input { padding: 9px 36px 9px 12px; font-size: 14px; }
    .cdo-filter-group { flex-direction: column; }
    .cdo-filter-group select { min-width: unset; width: 100%; }
    .cdo-form-grid { grid-template-columns: 1fr; }
    #cdo-carrito-btn { bottom: 80px; right: 12px; padding: 10px 16px; font-size: 13px; }
    .cdo-cotizacion-content { padding: 20px 16px; }
    .cdo-intro-bar { padding: 12px 14px; }
    .cdo-intro-tag { display: none; }
    .cdo-mc-footer { flex-direction: column; align-items: stretch; }
    #cdo-mc-abrir-btn { width: 100%; text-align: center; }
    .cdo-guia-grid { grid-template-columns: 1fr; }
}
