/* =========================================
1. FICHA DE PRODUCTO
   ========================================= */
.nodos-wrap { margin: 100px auto; font-family: inherit; color: #1d44bf; }
.nodos-row-1 { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 24px; margin-bottom: 60px; align-items: stretch; }
.nodos-r1-left { flex: 1 1 45%; min-width: 260px; display: flex; flex-direction: column; }
.nodos-r1-right { flex: 1 1 45%; min-width: 300px; display: flex; align-items: center; justify-content: center; background: #f4f3ef; }
.nodos-title { font-size: 38px; font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; margin: 0 0 8px 0; line-height: 1.05; color: inherit; }
.nodos-sku { font-size: 16px; color: inherit; font-weight: 500; margin: 0; letter-spacing: 0.03em; }
.nodos-desc { font-size: 14px; line-height: 1.55; color: inherit; margin: 30px 0; }
.nodos-main-img { width: 100%; height: auto; display: block; object-fit: contain; }

.nodos-row-2 { display: flex; flex-wrap: wrap; gap: 50px; margin-bottom: 60px; }
.nodos-r2-col { flex: 1 1 45%; min-width: 300px; }

.nodos-spec-wrap { position: relative; }
.nodos-pill { display: inline-block; background: #fff; color: #1d44bf; font-size: 25px; font-weight: 700; padding: 3px 10px; border-radius: 10px; letter-spacing: 0.06em; margin-bottom: 10px; }
.nodos-table { width: 100%; border-collapse: collapse; margin: 0; }
.nodos-table tr { border-bottom: 1px solid #1d44bf; }
.nodos-table tr:first-child { border-top: 1px solid #1d44bf !important; }
.nodos-table th { text-align: left; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: #1d44bf; padding: 11px; width: 38%; vertical-align: top; }
.nodos-table td { font-size: 13px; color: #1d44bf; padding: 11px; }

.nodos-row-3 { width: 100%; margin-top: 40px; }
.nodos-full-width-img { width: 100%; height: auto; display: block; border-radius: 4px; object-fit: cover; }
.nodos-plano-img { display: block; margin: 0 auto; max-height: 300px; }

.nodos-placeholder-box { padding: 40px; color: #999; font-size: 14px; text-align: center; }
.nodos-placeholder-dashed { border: 1px dashed #ccc; }

/* =========================================
2. GRILLA DE DETALLES Y LIGHTBOX
   ========================================= */
.nodos-detail-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 24px; margin-bottom: 180px; }
.nodos-detail-item { position: relative; aspect-ratio: 1 / 1; background: #f4f3ef; overflow: hidden; }
.nodos-detail-item::after { content: "+"; position: absolute; right: 10px; bottom: 10px; width: 24px; height: 24px; background: #f4f3ef; color: #1d44bf; font-size: 18px; font-weight: 600; line-height: 24px; text-align: center; pointer-events: none; transition: background-color 0.2s ease, color 0.2s ease; }
.nodos-detail-item:hover::after { background: #1d44bf; color: #f4f3ef; }
.nodos-detail-img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.nodos-lightbox-trigger { cursor: zoom-in; }

@media (max-width: 900px) { .nodos-detail-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 540px) { .nodos-detail-grid { grid-template-columns: 1fr; } }

.nodos-lightbox { position: fixed; inset: 0; background: rgba(110, 114, 122, 0.92); z-index: 99999; display: none; align-items: center; justify-content: center; padding: 32px; }
.nodos-lightbox.is-open { display: flex; }
.nodos-lightbox-img { max-width: 92vw; max-height: 86vh; width: auto; height: auto; object-fit: contain; display: block; background: transparent; }
.nodos-lightbox-close,
.nodos-lightbox-prev,
.nodos-lightbox-next { position: fixed; background: transparent; border: 1px solid rgba(255, 255, 255, 0.55); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.nodos-lightbox-close:hover,
.nodos-lightbox-prev:hover,
.nodos-lightbox-next:hover { background: #1d44bf; border-color: #1d44bf; color: #fff; }
.nodos-lightbox-close { top: 20px; right: 24px; width: 42px; height: 42px; border-radius: 50%; font-size: 20px; line-height: 1; }
.nodos-lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; font-size: 18px; }
.nodos-lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; font-size: 18px; }
.nodos-lightbox-caption { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 13px; letter-spacing: 0.03em; text-align: center; max-width: 80vw; }

@media (max-width: 640px) {
    .nodos-lightbox { padding: 16px; }
    .nodos-lightbox-prev { left: 10px; width: 38px; height: 38px; }
    .nodos-lightbox-next { right: 10px; width: 38px; height: 38px; }
    .nodos-lightbox-close { top: 12px; right: 12px; width: 38px; height: 38px; }
}

/* =========================================
3. CONTROLES DE PRESUPUESTO EN FICHA
   ========================================= */
.nodos-quote-controls { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 14px; }
.nodos-quote-controls .nodos-qty-box { display: inline-flex; flex-direction: row; align-items: center; width: auto; height: 46px; border-radius: 0; background: #fff; box-sizing: border-box; box-shadow: none; }
.nodos-quote-controls .nodos-qty-btn { width: 36px; height: 36px; min-width: 36px; min-height: 36px; border: 0; border-radius: 50%; background: transparent; color: #1d44bf; font-size: 18px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; margin: 0; box-shadow: none; }
.nodos-quote-controls .nodos-qty-btn:hover { background: rgba(29, 68, 191, 0.08); }
.nodos-quote-controls .nodos-qty-input { width: 44px; min-width: 44px; height: 36px; min-height: 36px; border: 1px solid #d9dce6; border-radius: 6px; background: #fff; color: #1d44bf; -webkit-text-fill-color: #1d44bf; font-size: 15px; font-weight: 600; line-height: 34px; text-align: center; padding: 0; margin: 0 2px; box-sizing: border-box; box-shadow: none; opacity: 1; -moz-appearance: textfield; }
.nodos-quote-controls .nodos-qty-input::-webkit-outer-spin-button,
.nodos-quote-controls .nodos-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.nodos-quote-controls .nodos-add-quote-btn { height: 46px; padding: 0 28px; border: 1px solid #1d44bf; border-radius: 999px; background: #1d44bf; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; white-space: nowrap; }
.nodos-quote-controls .nodos-add-quote-btn:hover { background: #fff; color: #1d44bf; }
.nodos-quote-feedback { width: 100%; font-size: 13px; margin-top: 8px; min-height: 18px; }

/* =========================================
4. CARRUSEL PRODUCTOS
   ========================================= */
.nodos-carousel-section { position: relative; margin: 40px auto; color: #1d44bf; }
.nodos-carousel-header { display: flex; justify-content: space-between; align-items: baseline; }
.nodos-carousel-heading { font-size: 30px; font-weight: 700; text-transform: uppercase; }
.nodos-carousel-nav { display: flex; gap: 8px; }
.nodos-carousel-btn { background: transparent; border: 1px solid #1d44bf; color: #1d44bf; width: 36px; height: 38px; border-radius: 100%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px; transition: all 0.2s ease; }
.nodos-carousel-btn:hover { background: #1d44bf; color: #fff; }

.nodos-carousel-track { display: flex; gap: 24px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 10px; }
.nodos-carousel-track::-webkit-scrollbar { display: none; }

.nodos-card { flex: 0 0 calc(25% - 18px); min-width: 240px; scroll-snap-align: start; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.nodos-card-img-wrap { background: transparent; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 14px; }
.nodos-card-img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.3s ease; box-shadow: none !important; }
.nodos-card:hover .nodos-card-img { transform: scale(1.04); }

.nodos-card-sku { font-size: 12px; font-weight: 500; letter-spacing: 0.04em; opacity: 0.8; margin-bottom: 4px; }
.nodos-card-title { font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.2; margin: 0; }
.nodos-card:hover .nodos-card-title { color: #51b7f5; }

@media (max-width: 900px) { .nodos-card { flex: 0 0 calc(50% - 12px); } }
@media (max-width: 540px) { .nodos-card { flex: 0 0 82%; } }

/* =========================================
5. PANEL LATERAL Y FORMULARIO DE PRESUPUESTO
   ========================================= */
.nodos-drawer-fab { position: static; background: #1d44bf; color: #fff; border: 1px solid #1d44bf; height: 42px; padding: 0 18px; border-radius: 999px; display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease; }
.nodos-drawer-fab:hover { background: #fff; color: #1d44bf; }
.nodos-drawer-badge { background: #fff; color: #1d44bf; font-size: 11px; font-weight: 800; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; }
.nodos-drawer-fab:hover .nodos-drawer-badge { background: #1d44bf; color: #fff; }

/* Botón dentro del menú de Astra */
.main-header-menu .nodos-menu-quote-item { display: flex; align-items: center; margin-left: 16px; }
@media (max-width: 921px) {
    .main-header-menu .nodos-menu-quote-item { margin-left: 0; padding: 10px 20px; }
}

.nodos-drawer-backdrop { position: fixed; inset: 0; background: rgba(15, 20, 35, 0.45); z-index: 9995; display: none; }
.nodos-drawer-backdrop.is-open { display: block; }
.nodos-drawer { position: fixed; top: 0; right: 0; width: 440px; max-width: 100vw; height: 100vh; background: #fff; color: #1d44bf; z-index: 9998; display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.28s ease; border-left: 1px solid #1d44bf; }
.nodos-drawer.is-open { transform: translateX(0); }

.nodos-drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid #1d44bf; }
.nodos-drawer-title { margin: 0; font-size: 20px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: #1d44bf; }
.nodos-drawer-close { width: 34px; height: 34px; border: 1px solid #1d44bf; background: transparent; color: #1d44bf; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 10px; }
.nodos-drawer-close:hover { background: #1d44bf; color: #fff; }

.nodos-drawer-body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.nodos-quote-empty { font-size: 14px; padding: 24px 0; border-bottom: 1px solid rgba(29, 68, 191, 0.2); margin-bottom: 20px; }
.nodos-quote-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(29, 68, 191, 0.2); }
.nodos-quote-thumb { width: 70px; height: 70px; object-fit: contain; display: block; }
.nodos-quote-item-info { min-width: 0; }
.nodos-quote-item-sku { display: block; font-size: 11px; opacity: 0.8; }
.nodos-quote-item-title { display: block; font-size: 13px; font-weight: 700; text-transform: uppercase; color: #1d44bf; text-decoration: none; margin: 2px 0 8px; }
.nodos-quote-item-title:hover { text-decoration: underline; }
.nodos-quote-item-actions { display: inline-flex; align-items: center; gap: 6px; }
.nodos-mini-qty { width: 48px; height: 30px; border: 1px solid #1d44bf; background: transparent; color: #1d44bf; font-size: 13px; font-weight: 700; text-align: center; }
.nodos-remove-item-btn { background: transparent; border: 0; color: #1d44bf; font-size: 12px; text-decoration: underline; cursor: pointer; padding: 4px; }

.nodos-quote-form { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.nodos-form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 540px) { .nodos-form-row-2 { grid-template-columns: 1fr; } }
.nodos-form-field { display: flex; flex-direction: column; gap: 5px; }
.nodos-form-field label { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.nodos-form-field input,
.nodos-form-field textarea { width: 100%; border: 1px solid #1d44bf; background: transparent; color: #1d44bf; font-family: inherit; font-size: 14px; padding: 9px 11px; box-sizing: border-box; }
.nodos-form-field input:focus,
.nodos-form-field textarea:focus { outline: 1px solid #1d44bf; }
.nodos-submit-quote-btn { height: 46px; background: #1d44bf; color: #fff; border: 1px solid #1d44bf; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease; }
.nodos-submit-quote-btn:hover { background: transparent; color: #1d44bf; }
.nodos-submit-quote-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.nodos-form-status { font-size: 13px; line-height: 1.45; min-height: 18px; }

.nodos-drawer-footer { padding: 14px 24px; border-top: 1px solid #1d44bf; text-align: center; }
.nodos-drawer-link { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #1d44bf; text-decoration: underline; }

.nodos-quote-page-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; margin-top: 32px; align-items: start; }
@media (max-width: 820px) { .nodos-quote-page-grid { grid-template-columns: 1fr; gap: 32px; } }

/* =========================================
6. AJUSTES DE FICHA Y ARCHIVO CPT
   ========================================= */
.single-producto .post-navigation { display: none; }