#apc-amprotec-cotizador {
  --bg: transparent;
  --surface: var(--e-global-color-background, #FFFFFF);
  --border: #D6DCE5;
  --text: var(--e-global-color-text, #1A2335);
  --muted: #465365;
  --accent: var(--e-global-color-accent, #E85C2B);
  --accent-dark: #C44820;
  --safe: #176B4B;
  --safe-light: #E7F5EF;
  --warn-bg: #FFF4EF;
  --warn-border: #F4A986;
  --step-done: #176B4B;
  --step-active: var(--e-global-color-accent, #E85C2B);
  --step-idle: #D6DCE5;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 16px rgba(26,35,53,.08);
  --font-head: inherit;
  --font-body: inherit;

  width: 100%;
  max-width: 100%;
  color: var(--text);
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  isolation: isolate;
}

#apc-amprotec-cotizador *, #apc-amprotec-cotizador *::before, #apc-amprotec-cotizador *::after{ box-sizing: border-box; margin: 0; padding: 0; }
#apc-amprotec-cotizador .apc-wizard-wrap{
    width: 100%;
    max-width: 720px;
    padding: 32px 16px 64px;
  }
#apc-amprotec-cotizador .apc-progress-track{
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 32px;
    position: relative;
  }
#apc-amprotec-cotizador .apc-progress-track::before{
    content: "";
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--step-idle);
    z-index: 0;
  }
#apc-amprotec-cotizador .prog-step{
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 1;
    gap: 6px;
  }
#apc-amprotec-cotizador .prog-dot{
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--step-idle);
    border: 2px solid var(--step-idle);
    display: flex; align-items: center; justify-content: center;
    font-size: .7rem; font-weight: 600; color: #fff;
    transition: background .3s, border-color .3s;
  }
#apc-amprotec-cotizador .prog-step.apc-done .prog-dot{ background: var(--step-done); border-color: var(--step-done); }
#apc-amprotec-cotizador .prog-step.apc-active .prog-dot{ background: var(--step-active); border-color: var(--step-active); }
#apc-amprotec-cotizador .prog-label{
    font-size: .62rem;
    font-weight: 500;
    color: var(--muted);
    text-align: center;
    line-height: 1.2;
  }
#apc-amprotec-cotizador .prog-step.apc-active .prog-label{ color: var(--step-active); font-weight: 600; }
#apc-amprotec-cotizador .prog-step.apc-done  .prog-label{ color: var(--step-done); }
#apc-amprotec-cotizador .apc-card{
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
  }
#apc-amprotec-cotizador .apc-step-eyebrow{
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
  }
#apc-amprotec-cotizador .apc-step-title{
    font-family: inherit;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 6px;
  }
#apc-amprotec-cotizador .apc-step-subtitle{
    font-size: .9rem;
    color: var(--muted);
    margin-bottom: 28px;
    line-height: 1.5;
  }
#apc-amprotec-cotizador .apc-alert{
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    margin-bottom: 20px;
    font-size: .875rem;
    line-height: 1.5;
  }
#apc-amprotec-cotizador .apc-alert-warn{
    background: var(--warn-bg);
    border: 1px solid var(--warn-border);
    color: #7A2A0E;
  }
#apc-amprotec-cotizador .apc-alert-safe{
    background: var(--safe-light);
    border: 1px solid #A8E0CB;
    color: #0E4D31;
  }
#apc-amprotec-cotizador .apc-alert strong{ display: block; margin-bottom: 4px; }
#apc-amprotec-cotizador .apc-options-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
  }
#apc-amprotec-cotizador .apc-opt-card{
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    cursor: pointer;
    transition: border-color .2s, background .2s, transform .1s;
    user-select: none;
  }
#apc-amprotec-cotizador .apc-opt-card:hover{ border-color: var(--accent); background: #FFF8F6; }
#apc-amprotec-cotizador .apc-opt-card.apc-selected{ border-color: var(--accent); background: #FFF4EF; }
#apc-amprotec-cotizador .apc-opt-card .apc-opt-icon{ font-size: 1.5rem; margin-bottom: 8px; }
#apc-amprotec-cotizador .apc-opt-card .apc-opt-label{ font-size: .875rem; font-weight: 600; line-height: 1.3; }
#apc-amprotec-cotizador .apc-opt-card .apc-opt-desc{ font-size: .75rem; color: var(--muted); margin-top: 4px; line-height: 1.4; }
#apc-amprotec-cotizador .apc-check-group{ display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
#apc-amprotec-cotizador .apc-check-row{
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color .2s, background .2s;
  }
#apc-amprotec-cotizador .apc-check-row:hover{ border-color: #BBCCE0; }
#apc-amprotec-cotizador .apc-check-row.apc-checked{ border-color: var(--accent); background: #FFF8F6; }
#apc-amprotec-cotizador .apc-check-row input[type=checkbox]{ display:none; }
#apc-amprotec-cotizador .apc-check-box{
    width: 20px; height: 20px; min-width: 20px;
    border: 2px solid var(--border);
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    transition: border-color .2s, background .2s;
    margin-top: 1px;
  }
#apc-amprotec-cotizador .apc-check-row.apc-checked .apc-check-box{ background: var(--accent); border-color: var(--accent); }
#apc-amprotec-cotizador .apc-check-mark{ display: none; color: #fff; font-size: .75rem; font-weight: 700; }
#apc-amprotec-cotizador .apc-check-row.apc-checked .apc-check-mark{ display: block; }
#apc-amprotec-cotizador .apc-check-text .apc-clabel{ font-size: .875rem; font-weight: 600; }
#apc-amprotec-cotizador .apc-check-text .apc-cdesc{ font-size: .75rem; color: var(--muted); margin-top: 2px; line-height: 1.4; }
#apc-amprotec-cotizador .apc-field-group{ display: flex; flex-direction: column; gap: 18px; margin-bottom: 24px; }
#apc-amprotec-cotizador .apc-field{ display: flex; flex-direction: column; gap: 6px; }
#apc-amprotec-cotizador .apc-field label{ font-size: .8rem; font-weight: 600; color: var(--text); }
#apc-amprotec-cotizador .apc-field .apc-hint{ font-size: .72rem; color: var(--muted); margin-top: -2px; }
#apc-amprotec-cotizador .apc-field input, #apc-amprotec-cotizador .apc-field select, #apc-amprotec-cotizador .apc-field textarea{
    font-family: inherit;
    font-size: .9rem;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: #FAFBFC;
    color: var(--text);
    transition: border-color .2s, box-shadow .2s;
    outline: none;
  }
#apc-amprotec-cotizador .apc-field input:focus, #apc-amprotec-cotizador .apc-field select:focus, #apc-amprotec-cotizador .apc-field textarea:focus{
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(232,92,43,.12);
  }
#apc-amprotec-cotizador .apc-field-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
#apc-amprotec-cotizador .range-badge{
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--safe-light);
    border: 1.5px solid #A8E0CB;
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--safe);
    margin-bottom: 12px;
  }
#apc-amprotec-cotizador .range-value{
    font-family: inherit;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--safe);
    line-height: 1;
  }
#apc-amprotec-cotizador .apc-price-table{
    width: 100%;
    border-collapse: collapse;
    font-size: .82rem;
    margin-bottom: 20px;
  }
#apc-amprotec-cotizador .apc-price-table td{ padding: 8px 4px; border-bottom: 1px solid var(--border); }
#apc-amprotec-cotizador .apc-price-table td:last-child{ text-align: right; font-weight: 600; }
#apc-amprotec-cotizador .apc-price-table tr.apc-total td{
    font-size: .95rem;
    font-weight: 700;
    border-top: 2px solid var(--text);
    border-bottom: none;
    padding-top: 12px;
  }
#apc-amprotec-cotizador .apc-price-table .apc-muted{ color: var(--muted); }
#apc-amprotec-cotizador .apc-disclaimer{
    font-size: .72rem;
    color: var(--muted);
    line-height: 1.5;
    padding: 10px 14px;
    background: #F7F9FC;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--border);
    margin-bottom: 24px;
  }
#apc-amprotec-cotizador .apc-btn-row{ display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
#apc-amprotec-cotizador .apc-btn{
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .1s, box-shadow .2s;
    border: none;
    text-decoration: none;
  }
#apc-amprotec-cotizador .apc-btn:active{ transform: scale(.97); }
#apc-amprotec-cotizador .apc-btn-primary{
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 8px rgba(232,92,43,.3);
  }
#apc-amprotec-cotizador .apc-btn-primary:hover{ background: var(--accent-dark); }
#apc-amprotec-cotizador .apc-btn-secondary{ background: var(--bg); color: var(--text); border: 1.5px solid var(--border); }
#apc-amprotec-cotizador .apc-btn-secondary:hover{ border-color: var(--accent); color: var(--accent); }
#apc-amprotec-cotizador .apc-btn-whatsapp{ background: #25D366; color: #fff; }
#apc-amprotec-cotizador .apc-btn-whatsapp:hover{ background: #1da853; }
#apc-amprotec-cotizador .btn-full{ width: 100%; justify-content: center; }
#apc-amprotec-cotizador .apc-eval-block{
    text-align: center;
    padding: 28px;
    background: var(--warn-bg);
    border: 2px solid var(--warn-border);
    border-radius: var(--radius);
    margin-bottom: 24px;
  }
#apc-amprotec-cotizador .apc-eval-block .apc-eval-icon{ font-size: 2.5rem; margin-bottom: 12px; }
#apc-amprotec-cotizador .apc-eval-block h3{ font-family: inherit; font-size: 1.2rem; margin-bottom: 8px; }
#apc-amprotec-cotizador .apc-eval-block p{ font-size: .875rem; color: var(--muted); line-height: 1.5; max-width: 420px; margin: 0 auto 20px; }
#apc-amprotec-cotizador .apc-eval-reasons{ text-align: left; margin-bottom: 20px; }
#apc-amprotec-cotizador .apc-eval-reasons li{
    font-size: .82rem;
    color: #7A2A0E;
    padding: 4px 0 4px 20px;
    position: relative;
  }
#apc-amprotec-cotizador .apc-eval-reasons li::before{ content: "→"; position: absolute; left: 0; }
#apc-amprotec-cotizador .apc-success-block{ text-align: center; padding: 16px 0; }
#apc-amprotec-cotizador .apc-success-icon{ font-size: 3rem; margin-bottom: 16px; }
#apc-amprotec-cotizador .apc-success-block h2{ font-family: inherit; font-size: 1.5rem; margin-bottom: 8px; }
#apc-amprotec-cotizador .apc-success-block p{ font-size: .9rem; color: var(--muted); max-width: 400px; margin: 0 auto; line-height: 1.6; }
#apc-amprotec-cotizador .apc-step{ display: none; }
#apc-amprotec-cotizador .apc-step.apc-active{ display: block; }
@media (max-width: 520px){#apc-amprotec-cotizador .apc-card{ padding: 20px; }
#apc-amprotec-cotizador .apc-step-title{ font-size: 1.2rem; }
#apc-amprotec-cotizador .apc-field-row{ grid-template-columns: 1fr; }
#apc-amprotec-cotizador .apc-options-grid{ grid-template-columns: 1fr 1fr; }
#apc-amprotec-cotizador .prog-label{ display: none; }}

#apc-amprotec-cotizador,
#apc-amprotec-cotizador *,
#apc-amprotec-cotizador *::before,
#apc-amprotec-cotizador *::after {
  box-sizing: border-box;
}

#apc-amprotec-cotizador .apc-wizard-wrap {
  margin-inline: auto;
  background: transparent;
}

#apc-amprotec-cotizador :where(
  .apc-step-subtitle,
  .apc-opt-desc,
  .apc-cdesc,
  .apc-hint,
  .apc-disclaimer,
  .apc-eval-block p,
  .apc-success-block p,
  .prog-label
) {
  color: var(--muted);
}

#apc-amprotec-cotizador :where(button, input, select, textarea, a) {
  font-family: inherit;
}

#apc-amprotec-cotizador :where(button, input, select, textarea) {
  letter-spacing: inherit;
  text-transform: none;
}

#apc-amprotec-cotizador .apc-btn-whatsapp,
#apc-amprotec-cotizador .apc-btn-whatsapp:link,
#apc-amprotec-cotizador .apc-btn-whatsapp:visited,
#apc-amprotec-cotizador .apc-btn-whatsapp:hover,
#apc-amprotec-cotizador .apc-btn-whatsapp:focus,
#apc-amprotec-cotizador .apc-btn-whatsapp:active {
  color: #FFFFFF !important;
  text-decoration: none !important;
}

#apc-amprotec-cotizador .apc-btn-whatsapp {
  background: #25D366;
  transition: background-color .18s ease, box-shadow .18s ease;
}

#apc-amprotec-cotizador .apc-btn-whatsapp:hover,
#apc-amprotec-cotizador .apc-btn-whatsapp:focus {
  background: #1EAF55;
  color: #FFFFFF !important;
  transform: none !important;
  box-shadow: 0 3px 10px rgba(37, 211, 102, .24);
}

#apc-amprotec-cotizador #apc-amprotecSubmitBtn[disabled] {
  cursor: wait;
  opacity: .72;
}

/* Formulario puente de Contact Form 7: operativo, pero fuera de la vista. */
.amprotec-cf7-bridge {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Compatibilidad con Elementor y visibilidad de respaldo */
.amprotec-cotizador-plugin,
#apc-amprotec-cotizador {
  display: block !important;
  width: 100%;
}

#apc-amprotec-cotizador .apc-wizard-wrap {
  margin-left: auto;
  margin-right: auto;
}


/* Aislamiento reforzado v1.3 */
#apc-amprotec-cotizador {
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  position:relative !important;
  min-height:120px;
  contain: layout style;
}
#apc-amprotec-cotizador .apc-wizard-wrap {
  display:block !important;
  visibility:visible !important;
}
#apc-amprotec-cotizador .apc-step.apc-active {
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
}


/* Respaldo de carga v1.4 */
.apc-plugin-shell {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  min-height: 240px;
}

.apc-plugin-shell #apc-amprotec-cotizador {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.apc-plugin-shell #apc-amprotec-cotizador .apc-step.apc-active {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
