/**
 * ECONS Elementor Widgets - Estilos Visuales Premium
 */

/* ── 1. Widget Hero Industrial ────────────────────────────────────────── */
.econs-hero-container {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.econs-badge-wrapper {
  margin-bottom: 20px;
}
.econs-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #1e40af;
  background: #dbeafe;
  border: 1px solid #93c5fd;
  padding: 6px 16px;
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(30, 64, 175, 0.08);
}
.econs-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
  animation: econs-pulse 2s infinite;
}
@keyframes econs-pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(37, 99, 235, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}
.econs-hero-title {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 900;
  line-height: 1.15;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 0 0 20px 0;
}
.econs-hero-highlight {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.econs-hero-desc {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
  color: #475569;
  max-width: 720px;
  margin: 0 0 32px 0;
}
.econs-hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.econs-hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid #e2e8f0;
  flex-wrap: wrap;
}
.econs-hero-stat-item {
  display: flex;
  flex-direction: column;
}
.stat-number {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
}
.stat-text {
  font-size: 13px;
  color: #64748b;
}
.econs-hero-stat-sep {
  width: 1px;
  height: 36px;
  background: #cbd5e1;
}

/* ── 2. Widget Categorías ──────────────────────────────────────────────── */
.econs-cats-section {
  padding: 40px 0;
}
.econs-section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px auto;
}
.econs-section-title {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  color: #0f172a;
  margin: 10px 0 12px 0;
}
.econs-section-sub {
  font-size: 16px;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}
.econs-cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.econs-cat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px;
  text-decoration: none !important;
  color: inherit !important;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
.econs-cat-card:hover {
  transform: translateY(-4px);
  border-color: #2563eb;
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.12);
}
.econs-cat-icon {
  font-size: 36px;
  margin-bottom: 16px;
}
.econs-cat-name {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 10px 0;
}
.econs-cat-desc {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}
.econs-cat-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}
.econs-cat-badge {
  font-size: 11px;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  padding: 3px 8px;
  border-radius: 6px;
}
.econs-cat-arrow {
  font-size: 18px;
  color: #2563eb;
  transition: transform 0.2s;
}
.econs-cat-card:hover .econs-cat-arrow {
  transform: translateX(4px);
}

/* ── 3. Widget Calculadora ─────────────────────────────────────────────── */
.econs-calc-widget {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
  max-width: 900px;
  margin: 0 auto;
}
.econs-calc-header {
  text-align: center;
  margin-bottom: 28px;
}
.econs-calc-header h2 {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  margin: 8px 0 10px 0;
}
.econs-calc-header p {
  color: #64748b;
  font-size: 15px;
  margin: 0;
}
.econs-calc-tabs {
  display: flex;
  gap: 8px;
  background: #f1f5f9;
  padding: 6px;
  border-radius: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.econs-calc-tab {
  flex: 1;
  min-width: 140px;
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: #475569;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.econs-calc-tab.active {
  background: #ffffff;
  color: #1e3a8a;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.econs-calc-panel {
  display: none;
}
.econs-calc-panel.active {
  display: block;
}
.econs-calc-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.calc-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}
.calc-field input, .calc-field select {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
}
.calc-field input:focus, .calc-field select:focus {
  border-color: #2563eb;
  outline: none;
}
.econs-calc-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}
.calc-result-box {
  display: flex;
  flex-direction: column;
}
.res-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 4px;
}
.res-value {
  font-size: 18px;
  font-weight: 800;
  color: #1e3a8a;
}
.econs-calc-cta {
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}
.econs-calc-cta p {
  font-size: 14px;
  color: #475569;
  margin: 0 0 12px 0;
}

/* ── 4. Widget KPI Stats ──────────────────────────────────────────────── */
.econs-kpis-wrapper {
  padding: 30px 0;
}
.econs-kpis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.econs-kpi-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px;
  transition: transform 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.econs-kpi-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.06);
}
.econs-kpi-emoji {
  font-size: 32px;
  display: inline-block;
  margin-bottom: 12px;
}
.econs-kpi-number {
  font-size: 32px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.econs-kpi-unit {
  font-size: 14px;
  font-weight: 700;
  color: #2563eb;
  margin: 4px 0 10px 0;
}
.econs-kpi-text {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

/* ── 5. Widget Banner Acceso Clientes ─────────────────────────────────── */
.econs-client-cta-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 20px;
  padding: 40px;
  color: #ffffff;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
  margin: 40px 0;
}
.econs-client-cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.econs-client-cta-content {
  max-width: 650px;
}
.econs-client-cta-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: #ffffff;
  margin: 10px 0 12px 0;
}
.econs-client-cta-desc {
  font-size: 15px;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
}

/* ── 6. Widget GPS Tracking ───────────────────────────────────────────── */
.econs-gps-widget {
  background: #0f172a;
  border-radius: 20px;
  padding: 36px;
  color: #ffffff;
}
.econs-gps-header {
  margin-bottom: 24px;
}
.econs-gps-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #34d399;
  margin-bottom: 10px;
}
.live-dot {
  width: 8px;
  height: 8px;
  background: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: econs-pulse-green 2s infinite;
}
@keyframes econs-pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.econs-gps-header h3 {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}
.econs-gps-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.econs-gps-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 20px;
}
.econs-gps-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.econs-unit-badge {
  font-size: 13px;
  font-weight: 700;
  color: #38bdf8;
}
.econs-eta-badge {
  font-size: 11px;
  background: #334155;
  padding: 3px 8px;
  border-radius: 6px;
  color: #94a3b8;
}
.econs-gps-card-body p {
  font-size: 13px;
  color: #cbd5e1;
  margin: 4px 0;
}
.econs-gps-bar {
  background: #334155;
  height: 6px;
  border-radius: 9999px;
  margin-top: 14px;
  overflow: hidden;
}
.econs-gps-bar-fill {
  background: #38bdf8;
  height: 100%;
}

/* ── 7. Widget Cotizador Modal B2B ────────────────────────────────────── */
.econs-btn-pulse {
  animation: econs-btn-pulse 2.5s infinite;
}
@keyframes econs-btn-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
  70% { box-shadow: 0 0 0 14px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}
.econs-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.econs-modal-content {
  background: #ffffff;
  border-radius: 20px;
  max-width: 640px;
  width: 100%;
  padding: 36px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-height: 90vh;
  overflow-y: auto;
}
.econs-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 28px;
  color: #64748b;
  cursor: pointer;
  line-height: 1;
}
.econs-modal-header {
  margin-bottom: 24px;
}
.econs-modal-header h3 {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin: 6px 0 6px 0;
}
.econs-modal-header p {
  color: #64748b;
  font-size: 14px;
  margin: 0;
}
.econs-form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}
.econs-form-col {
  flex: 1;
}
.econs-form-col label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.econs-form-col input, .econs-form-col select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
}
.econs-form-col input:focus, .econs-form-col select:focus {
  border-color: #2563eb;
  outline: none;
}

/* ── 8. Widget Productos WooCommerce ──────────────────────────────────── */
.econs-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.econs-product-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}
.econs-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}
.econs-product-thumb {
  position: relative;
  height: 200px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.econs-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.econs-placeholder-img {
  font-size: 48px;
}
.econs-product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}
.econs-product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.econs-product-min {
  font-size: 11px;
  font-weight: 700;
  color: #2563eb;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.econs-product-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 10px 0;
}
.econs-product-title a {
  color: #0f172a !important;
  text-decoration: none !important;
}
.econs-product-price {
  margin-bottom: 16px;
}
.econs-quote-only {
  font-size: 14px;
  font-weight: 700;
  color: #059669;
}
.econs-tax-note {
  display: block;
  font-size: 11px;
  color: #94a3b8;
}
.econs-product-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.econs-product-actions .econs-btn {
  flex: 1;
}

/* ── 9. Widget Escalas de Descuento ───────────────────────────────────── */
.econs-discounts-wrapper {
  padding: 40px 0;
}
.econs-discounts-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px auto;
}
.econs-discounts-header h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  color: #0f172a;
  margin: 10px 0 10px 0;
}
.econs-discounts-header p {
  color: #64748b;
  font-size: 16px;
  margin: 0;
}
.econs-discounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.econs-tier-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 30px 24px;
  text-align: center;
  position: relative;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}
.econs-tier-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}
.econs-tier-card.econs-tier-featured {
  border-color: #2563eb;
  background: #f8fafc;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.12);
}
.econs-popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #2563eb;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 9999px;
}
.econs-tier-name {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 10px 0;
}
.econs-tier-vol {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 12px;
}
.econs-tier-disc {
  font-size: 26px;
  font-weight: 900;
  color: #1e3a8a;
  margin-bottom: 16px;
}
.econs-tier-desc {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 24px;
  flex-grow: 1;
}
