/* =============================================
   Tibor — Cotizador Page Layout
   page-cotizador-dtf.php / page-cotizador-dtf-uv.php
   Solo layout y tabs. No toca estilos del cotizador.
============================================= */

/* ── Variables locales ───────────────────────────────────────── */
.cot-page {
  --cot-accent:  #0b3989;            /* turquesa 2026 */
  --cot-accent-2:#315ca8;
  --cot-primary: #0b3989;            /* navy 2026 */
  --cot-border:  #e2ecf3;
  --cot-muted:   #5a738c;
  --cot-bg:      #f3f8fb;
  --cot-white:   #ffffff;
  --cot-grad:    linear-gradient(135deg,#315ca8,#0b3989 60%,#0b3989);
  --cot-navy-grad:linear-gradient(140deg,#0b3989,#111f92);
  --cot-card-sh: 0 1px 2px rgba(11,57,137,.05), 0 10px 26px rgba(11,57,137,.06);
  --cot-tab-h:   56px;
  background: var(--cot-bg);
  min-height: 70vh;
}

/* =============================================
   BARRA DE TABS
============================================= */
.cot-tabs-nav {
  background: var(--cot-white);
  border-bottom: 2px solid var(--cot-border);
}

.cot-tabs-list {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cot-tabs-list::-webkit-scrollbar { display: none; }

.cot-tab {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 20px;
  height: var(--cot-tab-h);
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  background: transparent;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--cot-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.cot-tab i { font-size: 13px; }
.cot-tab:hover { color: var(--cot-primary); }
.cot-tab.active {
  color: var(--cot-accent);
  border-bottom-color: var(--cot-accent);
}

/* =============================================
   LAYOUT DOS COLUMNAS
============================================= */
.cot-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 28px;
  padding: 28px 0 56px;
  align-items: start;
}

/* Columna izquierda — contenido informativo */
.cot-info { min-width: 0; }

/* Columna derecha — formulario sticky */
.cot-form {
  position: sticky;
  top: 24px;
}

/* =============================================
   CONTENIDO DE TABS
============================================= */
.cot-tab-content { display: none; }
.cot-tab-content.active { display: block; }

/* ── Cabecera del tab ── */
.cot-content-header {
  margin-bottom: 24px;
}
.cot-content-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--cot-primary);
  margin: 0 0 6px;
}
.cot-content-subtitle {
  font-size: .9rem;
  color: var(--cot-muted);
  margin: 0;
}

/* ── Grid de especificaciones ── */
.cot-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.cot-spec-grid.full { grid-template-columns: 1fr; }

.cot-spec-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--cot-white);
  border: 1px solid var(--cot-border);
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.cot-spec-check {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  margin-top: 1px;
}
.cot-spec-body {}
.cot-spec-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--cot-primary);
  margin-bottom: 2px;
}
.cot-spec-desc {
  font-size: 12.5px;
  color: var(--cot-muted);
  line-height: 1.5;
  margin: 0;
}

/* ── Alertas ── */
.cot-alert {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 14px;
  line-height: 1.55;
}
.cot-alert i { font-size: 16px; margin-top: 1px; flex-shrink: 0; }
.cot-alert strong { display: block; margin-bottom: 3px; font-size: 13px; }
.cot-alert p { margin: 0; }

.cot-alert-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}
.cot-alert-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}
.cot-alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

/* ── Pasos numerados ── */
.cot-steps { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }

.cot-step {
  display: flex;
  gap: 14px;
  background: var(--cot-white);
  border: 1px solid var(--cot-border);
  border-radius: 10px;
  padding: 14px 16px;
}
.cot-step-num {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: var(--cot-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.cot-step-body {}
.cot-step-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--cot-primary);
  margin-bottom: 4px;
}
.cot-step-desc {
  font-size: 12.5px;
  color: var(--cot-muted);
  line-height: 1.55;
  margin: 0;
}

/* ── Tabla de tarifas de corte ── */
.cot-cut-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--cot-white);
  border: 1px solid var(--cot-border);
  border-radius: 10px;
  overflow: hidden;
  font-size: 13px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.cot-cut-table thead th {
  background: var(--cot-primary);
  color: #fff;
  padding: 11px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.cot-cut-table tbody td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--cot-border);
  color: var(--cot-primary);
}
.cot-cut-table tbody tr:last-child td { border-bottom: none; }
.cot-cut-table tbody tr:hover { background: var(--cot-bg); }
.cot-cut-table .price { font-weight: 700; color: var(--cot-accent); }

/* ── Lista de iconos ── */
.cot-icon-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.cot-icon-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--cot-white);
  border: 1px solid var(--cot-border);
  border-radius: 10px;
  padding: 12px 16px;
}
.cot-icon-item i {
  font-size: 16px;
  color: var(--cot-accent);
  margin-top: 1px;
  flex-shrink: 0;
  width: 18px;
  text-align: center;
}
.cot-icon-item-text {}
.cot-icon-item-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--cot-primary);
  margin-bottom: 2px;
}
.cot-icon-item-desc {
  font-size: 12.5px;
  color: var(--cot-muted);
  margin: 0;
  line-height: 1.5;
}

/* ── Parámetros de plancha ── */
.cot-params-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.cot-param-box {
  background: var(--cot-white);
  border: 1px solid var(--cot-border);
  border-radius: 10px;
  padding: 16px 14px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.cot-param-icon {
  font-size: 22px;
  color: var(--cot-accent);
  margin-bottom: 8px;
}
.cot-param-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--cot-primary);
  line-height: 1.1;
  margin-bottom: 4px;
}
.cot-param-label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--cot-muted);
}

/* =============================================
   MODO PASO 2 — cotizador ocupa ancho completo
   tibor1 usa IDs dinámicos ([uid]-step2). CSS :has() detecta
   .t1-step[id$="-step2"] con display:block (paso 2 activo).
   .cot-step2 es la clase de respaldo vía JS (MutationObserver).
============================================= */

.cot-layout:has( .t1-step[id$="-step2"][style*="display: block"] ),
.cot-layout.cot-step2 {
  grid-template-columns: 1fr;
  gap: 0;
}

.cot-layout:has( .t1-step[id$="-step2"][style*="display: block"] ) .cot-info,
.cot-layout.cot-step2 .cot-info {
  display: none !important;
}

.cot-layout:has( .t1-step[id$="-step2"][style*="display: block"] ) .cot-form,
.cot-layout.cot-step2 .cot-form {
  position: static;
}

.cot-layout:has( .t1-step[id$="-step2"][style*="display: block"] ) .t1-cotizador,
.cot-layout.cot-step2 .t1-cotizador {
  max-width: none !important;  /* gana al max-width:960px base del plugin (cotizador.css) */
  width: 100% !important;
  margin: 0 !important;
  overflow-x: auto;
}

/* Preview siempre horizontal — no colapsa a vertical en ningún tamaño.
   Si la pantalla es estrecha, el contenedor hace scroll horizontal.
   Anula el @media (max-width:680px) y el @container (max-width:620px)
   del plugin porque esta regla tiene mayor especificidad. */
.cot-layout:has( .t1-step[id$="-step2"][style*="display: block"] ) .t1-preview-layout,
.cot-layout.cot-step2 .t1-preview-layout {
  grid-template-columns: 1fr 290px !important;
  min-width: 560px;
}

/* Canvas: altura fija, scroll infinito solo en horizontal.
   !important necesario para ganar al shorthand overflow:auto del plugin. */
.cot-layout:has( .t1-step[id$="-step2"][style*="display: block"] ) .t1-canvas-container,
.cot-layout.cot-step2 .t1-canvas-container {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  height: 320px !important;
  max-height: none !important;
}

/* Barra de tabs: ocultar en paso 2.
   .cot-tabs-nav es hermano anterior de .cot-layout (no descendiente),
   por eso el selector debe partir del padre común .cot-page. */
.cot-page:has( .t1-step[id$="-step2"][style*="display: block"] ) .cot-tabs-nav,
.cot-page.cot-step2 .cot-tabs-nav {
  display: none;
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 960px) {
  .cot-layout { grid-template-columns: 1fr 360px; gap: 20px; }
}

@media (max-width: 820px) {
  .cot-layout {
    grid-template-columns: 1fr;
    padding: 20px 0 40px;
    gap: 20px;
  }
  /* Cotizador primero en mobile/tablet */
  .cot-form { order: -1; position: static; }
  .cot-info { order: 1; }

  .cot-params-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 540px) {
  .cot-tab { padding: 0 14px; font-size: 10.5px; gap: 5px; }
  .cot-tab i { display: none; }
  .cot-spec-grid { grid-template-columns: 1fr; }
  .cot-params-grid { grid-template-columns: 1fr 1fr; }
  .cot-content-title { font-size: 1.15rem; }
}

/* =============================================
   PASO 2 — MÓVIL: apilar canvas + panel precio
   La regla "MODO PASO 2" de arriba fuerza 1fr 290px !important
   con min-width:560px (necesario en escritorio). En móvil hay que
   apilar (previsualizador arriba, panel precio debajo) y permitir
   que el contenedor se contraiga al viewport.
   ============================================= */
@media (max-width: 760px) {

  .cot-layout:has( .t1-step[id$="-step2"][style*="display: block"] ) .t1-preview-layout,
  .cot-layout.cot-step2 .t1-preview-layout {
    grid-template-columns: 1fr !important;
    min-width: 0 !important;
    gap: 14px;
  }

  .cot-layout:has( .t1-step[id$="-step2"][style*="display: block"] ) .t1-price-panel,
  .cot-layout.cot-step2 .t1-price-panel {
    width: 100%;
    max-width: 100%;
  }
}

/* =============================================
   SKIN 2026 — rediseño elegante (solo presentación, aditivo).
   No toca el layout de columnas, el JS de tabs ni la lógica :has()/paso 2.
============================================= */

/* ── Tabs "folder" apiladas (estilo referencia): se solapan, gris progresivo,
      activa blanca elevada por encima. Solo presentación. ── */
.cot-tabs-nav{ background:transparent; border-bottom:1px solid var(--cot-border); padding-top:20px; }
.cot-tabs-list{ gap:0; padding-left:0; align-items:flex-end; }
.cot-tab{
  position:relative;
  height:auto; padding:11px 26px 12px; margin:0 0 -1px -12px;
  border-radius:14px 14px 0 0;
  border:1px solid var(--cot-border); border-bottom:none;
  background:#eef3f8; color:var(--cot-muted);
  font-weight:600; font-size:12.5px; text-transform:none; letter-spacing:0;
  transform:translateY(4px);
  transition:background .18s, color .18s, transform .18s, box-shadow .18s;
  z-index:1;
}
.cot-tab:first-child{ margin-left:0; }
/* Profundidad de pila: cada pestaña más a la derecha, un pelín más gris y por detrás */
.cot-tab:nth-child(1){ z-index:6; }
.cot-tab:nth-child(2){ z-index:5; background:#e7eef4; }
.cot-tab:nth-child(3){ z-index:4; background:#e0e8f0; }
.cot-tab:nth-child(4){ z-index:3; background:#d9e2eb; }
.cot-tab:nth-child(5){ z-index:2; background:#d2dce7; }
.cot-tab i{ color:#9db4c7; font-size:13px; transition:color .18s; }
/* Hover en inactivas: sube casi a ras, se aclara hacia blanco y pasa al frente */
.cot-tab:hover{
  background:#f5f9fc; color:var(--cot-primary);
  transform:translateY(1px); z-index:8;
  box-shadow:0 -3px 12px rgba(11,57,137,.06);
}
.cot-tab:hover i{ color:var(--cot-accent); }
/* Activa: tarjeta blanca a ras, elevada y por encima de todas */
.cot-tab.active{
  background:#fff; color:var(--cot-primary);
  border-color:var(--cot-border); border-bottom-color:#fff;
  transform:translateY(0); z-index:7;
  box-shadow:0 -6px 18px rgba(11,57,137,.07);
}
.cot-tab.active i{ color:var(--cot-accent); }
.cot-tab.active::after{
  content:""; position:absolute; left:-1px; right:-1px; top:0; height:3px;
  border-radius:14px 14px 0 0; background:var(--cot-grad);
}

/* ── Cabecera de sección con barra de acento ── */
.cot-content-header{ position:relative; padding-left:16px; margin-bottom:26px; }
.cot-content-header::before{
  content:""; position:absolute; left:0; top:3px; bottom:3px; width:4px;
  border-radius:4px; background:var(--cot-grad);
}
.cot-content-title{ font-size:1.5rem; letter-spacing:-.01em; }

/* ── Tarjetas de especificación: check con gradiente + hover elevado ── */
.cot-spec-card{
  border-radius:14px; border-color:#e7eef4; padding:16px 18px;
  box-shadow:var(--cot-card-sh);
  transition:transform .18s, box-shadow .18s, border-color .18s;
}
.cot-spec-card:hover{ transform:translateY(-2px); border-color:#cbd9ee; box-shadow:0 12px 26px rgba(11,57,137,.10); }
.cot-spec-card{ align-items:center; gap:14px; }
/* Icono temático en chip de color (estilo referencia) */
.cot-spec-check{
  width:44px; height:44px; min-width:44px; border-radius:13px;
  font-size:18px; background:#eef3fb; color:var(--cot-accent);
  box-shadow:none;
}
.cot-spec-check.c-teal  { background:#eef3fb; color:#0b3989; }
.cot-spec-check.c-blue  { background:#e7f1fb; color:#2b7fc4; }
.cot-spec-check.c-indigo{ background:#e7eef8; color:#2455a5; }
.cot-spec-check.c-violet{ background:#f2ebfe; color:#7c3aed; }
.cot-spec-check.c-amber { background:#fdf1e0; color:#d98410; }
.cot-spec-label{ letter-spacing:.01em; font-size:13px; }

/* ── Alertas: barra de acento a la izquierda + más aire ── */
.cot-alert{ border-radius:14px; border-left-width:4px; padding:15px 18px; align-items:flex-start; }
.cot-alert i{ width:22px; text-align:center; }
.cot-alert-warning{ background:#fffaf0; border-color:#fde3a7; border-left-color:#eaa21a; color:#8a5a12; }
.cot-alert-info{ background:#eef3fb; border-color:#cbd9ee; border-left-color:var(--cot-accent); color:#0b3989; }
.cot-alert-success{ background:#eefaf1; border-color:#c2e8cf; border-left-color:#16a34a; color:#15803d; }

/* ── Pasos: número con gradiente + tarjeta con hover (timeline) ── */
.cot-steps{ position:relative; }
.cot-step{ border-radius:14px; border-color:#e7eef4; box-shadow:var(--cot-card-sh); transition:transform .18s, box-shadow .18s; }
.cot-step:hover{ transform:translateY(-2px); box-shadow:0 12px 26px rgba(11,57,137,.10); }
.cot-step-num{ background:var(--cot-grad); box-shadow:0 6px 14px rgba(11,57,137,.30); }

/* ── Parámetros de plancha: icono en chip con gradiente ── */
.cot-param-box{ border-radius:14px; border-color:#e7eef4; box-shadow:var(--cot-card-sh); transition:transform .18s, box-shadow .18s; padding:20px 14px; }
.cot-param-box:hover{ transform:translateY(-3px); box-shadow:0 14px 30px rgba(11,57,137,.12); }
.cot-param-icon{
  width:46px; height:46px; margin:0 auto 12px; font-size:20px;
  display:flex; align-items:center; justify-content:center;
  border-radius:13px; background:var(--cot-grad); color:#fff;
  box-shadow:0 6px 16px rgba(11,57,137,.30);
}
.cot-param-value{ font-size:20px; }

/* ── Lista de iconos: icono en chip turquesa suave ── */
.cot-icon-item{ border-radius:14px; border-color:#e7eef4; box-shadow:var(--cot-card-sh); transition:transform .18s, box-shadow .18s; padding:14px 16px; gap:14px; }
.cot-icon-item:hover{ transform:translateY(-2px); box-shadow:0 12px 26px rgba(11,57,137,.10); }
.cot-icon-item > i{
  width:36px; height:36px; font-size:15px; margin-top:0;
  display:flex; align-items:center; justify-content:center;
  border-radius:11px; background:#e6f6fb; color:var(--cot-accent);
}
/* Variedad de color por fila (estilo referencia) */
.cot-icon-list .cot-icon-item:nth-child(5n+1) > i{ background:#eef3fb; color:#0b3989; }
.cot-icon-list .cot-icon-item:nth-child(5n+2) > i{ background:#e7f1fb; color:#2b7fc4; }
.cot-icon-list .cot-icon-item:nth-child(5n+3) > i{ background:#e7eef8; color:#2455a5; }
.cot-icon-list .cot-icon-item:nth-child(5n+4) > i{ background:#f2ebfe; color:#7c3aed; }
.cot-icon-list .cot-icon-item:nth-child(5n+5) > i{ background:#fdf1e0; color:#d98410; }

/* =============================================
   COLUMNA DERECHA = TARJETA ÚNICA TIPO MODAL (estilo upload limpio)
   Acotado a .cot-form → solo esta página. El cotizador (plugin) pierde su
   fondo/tarjeta interna y se integra plano dentro de esta tarjeta. Sin tocar JS.
============================================= */
.cot-form{
  background:#fff; border:1px solid #e7eef4; border-radius:20px;
  box-shadow:0 1px 2px rgba(11,57,137,.05), 0 20px 48px rgba(11,57,137,.09);
  padding:18px 20px 20px;
}
/* Cabecera del modal */
.cot-form-head{
  display:flex; align-items:center; gap:12px;
  padding-bottom:16px; margin-bottom:6px; border-bottom:1px solid #eef3f8;
}
.cot-form-ico{
  width:44px; height:44px; border-radius:13px; flex:none;
  display:flex; align-items:center; justify-content:center;
  background:var(--cot-grad); color:#fff; font-size:18px;
  box-shadow:0 8px 18px rgba(11,57,137,.30);
}
.cot-form-title{ font-size:1.02rem; font-weight:800; color:var(--cot-primary); line-height:1.2; }
.cot-form-sub{ font-size:.8rem; color:var(--cot-muted); margin-top:2px; }

/* La app del cotizador: sin su propia tarjeta (la da .cot-form) */
.cot-form .t1-cotizador{ background:transparent; border:none; box-shadow:none; padding:0; margin:0; max-width:none; }
/* Secciones internas planas, separadas por línea sutil */
.cot-form .t1-section{ background:transparent; border:none; box-shadow:none; padding:16px 2px; margin:0; }
.cot-form .t1-section:hover{ transform:none; box-shadow:none; }
.cot-form .t1-section + .t1-section{ border-top:1px solid #eef3f8; }
.cot-form .t1-tiers-block{ background:transparent; border:none; box-shadow:none; padding:12px 2px 2px; }
.cot-form .t1-nav-bar{ padding-top:14px; margin-top:4px; border-top:1px solid #eef3f8; }

/* Barra de progreso al añadir archivos (visual, estilo modal upload) */
.cot-form .t1-fake-prog{ margin-top:6px; }
.cot-form .t1-fake-status{ display:block; font-size:11px; color:var(--cot-muted); margin-bottom:5px; }
.cot-form .t1-fake-status b{ color:var(--cot-primary); font-weight:700; }
.cot-form .t1-fake-bar{ height:6px; border-radius:999px; background:#e6eef5; overflow:hidden; }
.cot-form .t1-fake-fill{
  height:100%; width:0; border-radius:999px;
  background:linear-gradient(90deg,#315ca8,#2455a5 55%,#7c3aed);
  transition:width .12s linear;
}

/* ── Tabla de tarifas: cabecera navy con gradiente ── */
.cot-cut-table{ border-radius:14px; border-color:#e7eef4; box-shadow:var(--cot-card-sh); }
.cot-cut-table thead th{ background:var(--cot-navy-grad); }
.cot-cut-table tbody tr:hover{ background:#f3f8fb; }
.cot-cut-table .price{ color:var(--cot-accent); }

/* =============================================
   PROPUESTA 1 — tab "Cómo preparar un archivo"
   Grid 3×2 con iconos circulares + badges, tarjeta amarilla,
   caja de tip junto al título y barra de "Facturación por tramos".
   Solo afecta al tab-preparar (clases .cols-3 / .has-tip / nuevas).
============================================= */

/* Cabecera con caja de tip a la derecha */
.cot-content-header.has-tip{
  display:flex; align-items:flex-start; justify-content:space-between; gap:22px;
}
.cot-content-head-main{ min-width:0; }
.cot-tip{
  flex:none; max-width:290px;
  display:flex; align-items:center; gap:12px;
  background:#eef3fb; border:1px solid #cbd9ee; border-radius:14px;
  padding:12px 16px; color:#0b3989; font-size:12.5px; line-height:1.45; font-weight:500;
}
.cot-tip i{ flex:none; color:var(--cot-accent); font-size:18px; }

/* Grid de 3 columnas: tarjetas verticales (icono+badge arriba, texto debajo) */
.cot-spec-grid.cols-3{ grid-template-columns:repeat(3,1fr); gap:14px; }
.cot-spec-grid.cols-3 .cot-spec-card{
  flex-direction:column; align-items:stretch; gap:0;
  padding:18px 18px 16px;
}
.cot-spec-top{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px; margin-bottom:15px;
}
.cot-spec-grid.cols-3 .cot-spec-check{
  width:54px; height:54px; min-width:54px; border-radius:50%;
  font-size:21px; box-shadow:none;
}
.cot-spec-grid.cols-3 .cot-spec-label{ font-size:15px; margin-bottom:6px; }
.cot-spec-grid.cols-3 .cot-spec-desc{ font-size:13px; }

/* Badges */
.cot-badge{
  flex:none; align-self:flex-start;
  font-size:11px; font-weight:600; line-height:1.5;
  padding:3px 11px; border-radius:999px; white-space:nowrap;
}
.cot-badge.b-req{ background:#e8eefc; color:#4256c4; }
.cot-badge.b-rec{ background:#fce6ef; color:#c1477e; }
.cot-badge.b-imp{ background:#fdefd3; color:#b0761a; }

/* Tarjeta "Fondo provisional" en amarillo */
.cot-spec-card--warn{ background:#fffaf0; border-color:#fbe3ad; }
.cot-spec-check.c-warn{ background:#fdecc8; color:#e0940f; }

/* Barra "Facturación por tramos" (full-width, horizontal) */
.cot-feature-card{
  display:flex; align-items:center; gap:16px; margin-top:4px;
  background:#fff; border:1px solid #e7eef4; border-radius:16px;
  padding:16px 20px; box-shadow:var(--cot-card-sh);
}
.cot-feature-card .cot-spec-check{
  width:46px; height:46px; min-width:46px; border-radius:50%;
  font-size:18px; box-shadow:none;
}
.cot-feature-card .cot-spec-body{ flex:1 1 auto; min-width:0; }
.cot-feature-card .cot-spec-label{ font-size:14px; }

/* Responsive del grid nuevo */
@media (max-width:820px){
  .cot-spec-grid.cols-3{ grid-template-columns:1fr 1fr; }
}
@media (max-width:540px){
  .cot-spec-grid.cols-3{ grid-template-columns:1fr; }
  .cot-content-header.has-tip{ flex-direction:column; }
  .cot-tip{ max-width:none; }
  .cot-feature-card{ flex-wrap:wrap; }
}

/* =============================================
   AJUSTE FINO Propuesta 1 — zonas 1 (tabs), 2 (cabecera/tip) y 3 (cotizador)
   Solo presentación. La zona 3 va ACOTADA a .cot-form → no toca el plugin tibor1.
============================================= */

/* ── ZONA 1 · Pestañas estilo Propuesta 1:
      activa = pastilla NAVY sólida (fondo oscuro + texto blanco);
      inactivas = texto plano gris, sin fondo ni "carpeta". ── */
.cot-tabs-nav{ padding-top:16px; background:transparent; border-bottom:1px solid var(--cot-border); }
.cot-tabs-list{ gap:6px; align-items:center; padding-bottom:12px; }

/* Base de cada pestaña (neutraliza el estilo folder: borde/overlap/hilo) */
.cot-tabs-list .cot-tab{
  margin:0; transform:none; z-index:auto; box-shadow:none;
  height:auto; padding:11px 20px;
  font-size:13px; font-weight:600; text-transform:none; letter-spacing:0;
  border:none; border-radius:10px;
  background:transparent; color:var(--cot-muted);
}
.cot-tabs-list .cot-tab:first-child{ margin-left:0; }
.cot-tabs-list .cot-tab i{ color:#9db4c7; }
/* Anula los grises escalonados y el hilo de acento del estilo folder anterior */
.cot-tabs-list .cot-tab:nth-child(n){ background:transparent; }
.cot-tabs-list .cot-tab.active::after{ display:none; }

/* Hover en inactivas: pastilla clara sutil */
.cot-tabs-list .cot-tab:hover{
  background:#eef3f8; color:var(--cot-primary); transform:none; box-shadow:none;
}
.cot-tabs-list .cot-tab:hover i{ color:var(--cot-accent); }

/* Activa: pastilla navy sólida, texto e icono en blanco */
.cot-tabs-list .cot-tab.active{
  background:var(--cot-navy-grad); color:#fff; transform:none;
  box-shadow:0 8px 20px rgba(1,42,76,.22);
}
.cot-tabs-list .cot-tab.active i{ color:#fff; }

/* ── ZONA 2 · Cabecera con más presencia + caja de tip cómoda ── */
.cot-content-title{ font-size:1.85rem; }
.cot-content-header.has-tip{ align-items:center; margin-bottom:30px; }
.cot-tip{ max-width:300px; padding:14px 18px; gap:13px; border-radius:16px; }
.cot-tip i{ font-size:20px; }

/* ── ZONA 3 · Cotizador como timeline de 4 pasos (acotado a .cot-form) ── */
/* Círculos 1 y 2 en navy (como la Propuesta 1) */
.cot-form .t1-section-num{
  width:30px; height:30px; min-width:30px; font-size:14px;
  background:var(--cot-navy-grad); box-shadow:0 6px 14px rgba(1,42,76,.28);
}
.cot-form .t1-section-title{ color:var(--cot-primary); }
/* Numerar Tarifas (3) y Pedido (4) igual que las secciones 1 y 2 */
.cot-form .t1-tiers-label,
.cot-form .t1-pedido-label{
  position:relative; padding-left:40px; min-height:30px;
  display:inline-flex; align-items:center; color:var(--cot-primary);
}
.cot-form .t1-tiers-label::before{ content:"3"; }
.cot-form .t1-pedido-label::before{ content:"4"; }
.cot-form .t1-tiers-label::before,
.cot-form .t1-pedido-label::before{
  position:absolute; left:0; top:50%; transform:translateY(-50%);
  width:30px; height:30px; border-radius:50%; letter-spacing:0;
  display:flex; align-items:center; justify-content:center;
  background:var(--cot-navy-grad); color:#fff; font-weight:800; font-size:14px;
  box-shadow:0 6px 14px rgba(1,42,76,.28);
}

/* ── STEPPER · rail + estados de progreso (pendiente / actual / hecho).
   Las clases .step-current / .step-done las pone un script aditivo del tema
   leyendo el estado del cotizador — NO se toca el plugin. ── */

/* Rail vertical que une los 4 círculos (detrás de ellos) */
.cot-form .t1-cotizador{ position:relative; }
.cot-form .t1-cotizador::before{
  content:""; position:absolute; left:16px; top:30px; bottom:34px; width:2px;
  background:#e2ecf3; z-index:0; border-radius:2px;
}
.cot-form .t1-section,
.cot-form .t1-tiers-block,
.cot-form .t1-nav-bar{ position:relative; z-index:1; }
.cot-form .t1-section-num,
.cot-form .t1-tiers-label,
.cot-form .t1-pedido-label{ z-index:2; }

/* Círculos 1 y 2 (elemento real .t1-section-num) */
.cot-form .t1-section-num{ position:relative; transition:background .25s, box-shadow .25s; }
.cot-form .t1-section.step-current .t1-section-num{ animation:cotPulse 1.7s ease-out infinite; }
.cot-form .t1-section.step-done .t1-section-num{
  background:linear-gradient(135deg,#16a34a,#15803d); color:transparent;
}
.cot-form .t1-section.step-done .t1-section-num::after{
  content:"\2713"; position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:15px; font-weight:800; animation:cotPop .32s ease;
}

/* Círculos 3 (Tarifas) y 4 (Pedido) — pseudo ::before */
.cot-form .t1-tiers-label.step-current::before,
.cot-form .t1-pedido-label.step-current::before{ animation:cotPulse 1.7s ease-out infinite; }
.cot-form .t1-tiers-label.step-done::before,
.cot-form .t1-pedido-label.step-done::before{
  content:"\2713"; background:linear-gradient(135deg,#16a34a,#15803d);
  animation:cotPopY .32s ease;
}

@keyframes cotPulse{
  0%  { box-shadow:0 0 0 0 rgba(11,57,137,.45); }
  70% { box-shadow:0 0 0 9px rgba(11,57,137,0); }
  100%{ box-shadow:0 0 0 0 rgba(11,57,137,0); }
}
@keyframes cotPop{
  0%{ transform:scale(.55); } 60%{ transform:scale(1.18); } 100%{ transform:scale(1); }
}
@keyframes cotPopY{
  0%{ transform:translateY(-50%) scale(.55); }
  60%{ transform:translateY(-50%) scale(1.18); }
  100%{ transform:translateY(-50%) scale(1); }
}

/* Avisos refinados (22-10-2026): mismo acabado que el personalizador y WooCommerce. Fondo
   claro, franja de color a la izquierda, esquinas suaves y sombra ligera. Se conservan el
   color del texto, los tamaños y la posición; solo cambia el acabado. */
.cot-alert { border-radius: 12px; box-shadow: 0 1px 4px rgba(15, 23, 42, .06); border-left-width: 3px; }
.cot-alert-warning { border: 1px solid #f3e2b3; border-left: 3px solid #f59e0b; background: #fffdf7; }
.cot-alert-success { border: 1px solid #cfe9d8; border-left: 3px solid #16a34a; background: #ffffff; }
