.amg-calc{
  /* ---- Tokens extraídos del sistema real de AM Group ---- */
  --amg-ink:#0C2117;
  --amg-green:#105733;
  --amg-green-dark:#0A5832;
  --amg-green-deep:#003A22;
  --amg-accent:#14C46B;
  --amg-accent-soft:rgba(20,196,107,.08);
  --amg-accent-line:rgba(20,196,107,.4);
  --amg-muted:#3D4D46;
  --amg-bg:#F2F5F0;
  --amg-bg-alt:#F4F7F4;
  --amg-line:rgba(205,210,219,.6);
  --amg-line-soft:rgba(205,210,219,.35);
  --amg-white:#fff;
  --amg-radius-card:20px;
  --amg-radius-btn:40px;
  --amg-shadow:0 1px 2px rgba(12,33,23,.04), 0 12px 32px -18px rgba(12,33,23,.24);

  font-family:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--amg-ink);
  max-width:920px;
  margin:0 auto;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
.amg-calc *,.amg-calc *::before,.amg-calc *::after{box-sizing:border-box;}
.amg-calc h1,.amg-calc h2,.amg-calc h3,.amg-calc h4{
  font-family:"Manrope",sans-serif;color:var(--amg-ink);margin:0;letter-spacing:-.02em;line-height:1.2;
}
.amg-calc p{margin:0;}
.amg-calc button{font-family:inherit;cursor:pointer;border:0;background:none;color:inherit;}
.amg-calc :focus-visible{outline:2px solid var(--amg-green);outline-offset:3px;border-radius:4px;}

/* ---------- Cabecera ---------- */
.amg-head{text-align:center;margin-bottom:28px;}
.amg-pill{
  display:inline-flex;align-items:center;gap:8px;
  background:var(--amg-white);border:1px solid var(--amg-line);
  border-radius:9999px;padding:5px 14px;
  font-size:13px;font-weight:500;color:var(--amg-muted);margin-bottom:18px;
}
.amg-pill i{width:6px;height:6px;border-radius:50%;background:var(--amg-accent);flex:none;}
.amg-head h1{font-size:clamp(28px,4.2vw,44px);font-weight:800;margin-bottom:12px;}
.amg-head h1 em{font-style:normal;color:var(--amg-green);}
.amg-head p{color:var(--amg-muted);font-size:17px;max-width:560px;margin:0 auto;}

/* ---------- Tarjeta principal ---------- */
.amg-card{
  background:var(--amg-white);border:1px solid var(--amg-line-soft);
  border-radius:var(--amg-radius-card);box-shadow:var(--amg-shadow);overflow:hidden;
}

/* ---------- Barra de progreso ---------- */
.amg-progress{padding:20px 32px 0;}
.amg-progress-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;}
.amg-step-label{font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--amg-muted);}
.amg-back{
  font-size:13px;font-weight:600;color:var(--amg-muted);display:inline-flex;align-items:center;gap:6px;
  padding:4px 8px;border-radius:6px;transition:color .18s;
}
.amg-back:hover{color:var(--amg-green);}
.amg-back[hidden]{display:none;}
.amg-bar{height:3px;background:var(--amg-line-soft);border-radius:2px;overflow:hidden;}
.amg-bar span{display:block;height:100%;width:0;background:var(--amg-green);border-radius:2px;transition:width .45s cubic-bezier(.4,0,.2,1);}

/* ---------- Pasos ---------- */
.amg-step{padding:28px 32px 32px;display:none;}
.amg-step.is-active{display:block;animation:amgIn .35s cubic-bezier(.4,0,.2,1);}
@keyframes amgIn{from{opacity:0;transform:translateY(8px);}to{opacity:1;transform:none;}}
.amg-calc .amg-q{font-size:23px;font-weight:700;margin-bottom:6px;}
.amg-calc .amg-hint{font-size:14px;color:var(--amg-muted);margin-bottom:22px;}

/* ---------- Opciones ---------- */
.amg-options{display:grid;gap:10px;}
.amg-options.cols-2{grid-template-columns:repeat(2,1fr);}
.amg-options.cols-3{grid-template-columns:repeat(3,1fr);}
.amg-opt{
  display:flex;align-items:flex-start;gap:12px;width:100%;text-align:left;
  padding:16px 18px;border:1px solid var(--amg-line);border-radius:14px;
  background:var(--amg-white);transition:border-color .18s,background .18s,transform .18s;
}
.amg-opt:hover{border-color:var(--amg-accent-line);background:var(--amg-accent-soft);transform:translateY(-1px);}
.amg-opt.is-selected{border-color:var(--amg-green);background:var(--amg-accent-soft);box-shadow:inset 0 0 0 1px var(--amg-green);}
.amg-opt-mark{
  flex:none;width:20px;height:20px;border-radius:50%;border:1.5px solid var(--amg-line);
  margin-top:2px;display:grid;place-items:center;transition:border-color .18s;
}
.amg-opt.is-selected .amg-opt-mark{border-color:var(--amg-green);}
.amg-opt-mark::after{content:"";width:9px;height:9px;border-radius:50%;background:var(--amg-green);transform:scale(0);transition:transform .18s;}
.amg-opt.is-selected .amg-opt-mark::after{transform:scale(1);}
.amg-opt-body b{display:block;font-family:"Manrope",sans-serif;font-size:15px;font-weight:700;margin-bottom:2px;}
.amg-opt-body small{display:block;font-size:13px;color:var(--amg-muted);line-height:1.45;}

/* ---------- Campos de importe ---------- */
.amg-fields{display:grid;gap:14px;}
.amg-field label{display:block;font-size:14px;font-weight:600;margin-bottom:6px;}
.amg-field label small{display:block;font-weight:400;font-size:12.5px;color:var(--amg-muted);margin-top:2px;}
.amg-input{position:relative;display:flex;align-items:center;}
.amg-input input{
  width:100%;font-family:"Manrope",sans-serif;font-size:17px;font-weight:600;color:var(--amg-ink);
  padding:13px 42px 13px 16px;border:1px solid var(--amg-line);border-radius:12px;background:var(--amg-bg-alt);
  transition:border-color .18s,background .18s;-moz-appearance:textfield;
}
.amg-input input::-webkit-outer-spin-button,.amg-input input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}
.amg-input input:focus{outline:none;border-color:var(--amg-green);background:var(--amg-white);box-shadow:0 0 0 3px var(--amg-accent-soft);}
.amg-input span{position:absolute;right:16px;font-family:"Manrope",sans-serif;font-weight:600;color:var(--amg-muted);pointer-events:none;}
.amg-field.is-sub{margin-left:18px;padding-left:16px;border-left:2px solid var(--amg-accent-line);}
.amg-total{
  display:flex;justify-content:space-between;align-items:baseline;
  margin-top:6px;padding:14px 18px;background:var(--amg-bg-alt);border-radius:12px;border:1px dashed var(--amg-line);
}
.amg-total span{font-size:13px;font-weight:600;color:var(--amg-muted);text-transform:uppercase;letter-spacing:.06em;}
.amg-total b{font-family:"Manrope",sans-serif;font-size:22px;font-weight:800;}

/* ---------- Botones ---------- */
.amg-calc .amg-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  font-family:"Manrope",sans-serif;font-size:15px;font-weight:700;line-height:1.5;
  padding:16px 32px;border-radius:var(--amg-radius-btn);
  background:var(--amg-green);color:#fff;transition:background .2s,transform .18s,opacity .2s;
}
.amg-calc .amg-btn:hover{background:var(--amg-green-dark);transform:translateY(-1px);}
.amg-calc .amg-btn:disabled{opacity:.35;pointer-events:none;}
.amg-calc .amg-btn.is-block{width:100%;}
.amg-calc .amg-btn.is-ghost{background:transparent;color:var(--amg-ink);border:1px solid var(--amg-line);}
.amg-calc .amg-btn.is-ghost:hover{background:var(--amg-bg-alt);border-color:var(--amg-ink);}
.amg-actions{margin-top:24px;display:flex;gap:12px;flex-wrap:wrap;}
.amg-err{display:none;margin-top:12px;font-size:13.5px;color:#B3261E;font-weight:500;}
.amg-err.is-on{display:block;}

/* ---------- Resultado ---------- */
.amg-result-hero{
  background:var(--amg-green-deep);color:#fff;padding:40px 32px 34px;text-align:center;position:relative;overflow:hidden;
}
.amg-result-hero::after{
  content:"";position:absolute;inset:auto -20% -60% -20%;height:220px;
  background:radial-gradient(closest-side,rgba(20,196,107,.35),transparent 70%);pointer-events:none;
}
.amg-result-hero .amg-kicker{
  position:relative;font-size:12px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;
  color:rgba(255,255,255,.65);margin-bottom:14px;
}
.amg-amount{position:relative;font-family:"Manrope",sans-serif;font-weight:800;letter-spacing:-.03em;line-height:1;}
.amg-amount .from{display:block;font-size:15px;font-weight:600;color:rgba(255,255,255,.7);margin-bottom:6px;letter-spacing:0;}
.amg-amount .big{font-size:clamp(40px,8vw,68px);color:#fff;}
.amg-amount .to{display:block;font-size:15px;font-weight:600;color:var(--amg-accent);margin-top:10px;letter-spacing:0;}
.amg-result-hero .amg-sub{position:relative;margin-top:16px;font-size:15px;color:rgba(255,255,255,.78);}
.amg-chips{position:relative;display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:22px;}
.amg-chip{
  font-size:12.5px;font-weight:500;padding:5px 12px;border-radius:9999px;
  background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);color:rgba(255,255,255,.9);
}

/* ---------- Zona bloqueada ---------- */
.amg-locked{position:relative;padding:30px 32px;}
.amg-preview{filter:blur(7px);opacity:.5;pointer-events:none;user-select:none;}
.amg-gate{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:24px;
  background:linear-gradient(180deg,rgba(255,255,255,.72) 0%,rgba(255,255,255,.97) 42%);
}
.amg-gate-inner{width:100%;max-width:440px;text-align:center;}
.amg-lock{
  width:42px;height:42px;border-radius:50%;background:var(--amg-accent-soft);border:1px solid var(--amg-accent-line);
  display:grid;place-items:center;margin:0 auto 14px;
}
.amg-gate h3{font-size:21px;font-weight:700;margin-bottom:8px;}
.amg-gate>.amg-gate-inner>p{font-size:14.5px;color:var(--amg-muted);margin-bottom:20px;}
.amg-form{display:grid;gap:10px;text-align:left;}
.amg-form input[type=text],.amg-form input[type=email],.amg-form input[type=tel]{
  width:100%;font-family:inherit;font-size:15px;padding:13px 16px;
  border:1px solid var(--amg-line);border-radius:12px;background:var(--amg-white);color:var(--amg-ink);transition:border-color .18s;
}
.amg-form input:focus{outline:none;border-color:var(--amg-green);box-shadow:0 0 0 3px var(--amg-accent-soft);}
.amg-form .row{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.amg-consent{display:flex;gap:10px;align-items:flex-start;font-size:12.5px;color:var(--amg-muted);line-height:1.5;margin-top:4px;}
.amg-consent input{margin-top:2px;accent-color:var(--amg-green);width:16px;height:16px;flex:none;}
.amg-consent a{color:var(--amg-green);text-decoration:underline;}
.amg-trust{margin-top:14px;font-size:12px;color:var(--amg-muted);display:flex;gap:14px;justify-content:center;flex-wrap:wrap;}

/* ---------- Desglose ---------- */
.amg-unlocked{padding:30px 32px;display:none;}
.amg-unlocked.is-on{display:block;animation:amgIn .4s cubic-bezier(.4,0,.2,1);}
.amg-sec-title{
  font-size:12px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--amg-muted);
  margin:0 0 14px;display:flex;align-items:center;gap:10px;
}
.amg-sec-title::after{content:"";flex:1;height:1px;background:var(--amg-line-soft);}
.amg-table{width:100%;border-collapse:collapse;margin-bottom:28px;}
.amg-table tr{border-bottom:1px solid var(--amg-line-soft);}
.amg-table tr:last-child{border-bottom:0;}
.amg-table td{padding:12px 0;font-size:14.5px;vertical-align:top;}
.amg-table td:first-child{color:var(--amg-muted);}
.amg-table td:last-child{text-align:right;font-family:"Manrope",sans-serif;font-weight:700;white-space:nowrap;padding-left:16px;}
.amg-table tr.is-total td{border-top:2px solid var(--amg-ink);padding-top:14px;font-size:16px;}
.amg-table tr.is-total td:first-child{color:var(--amg-ink);font-weight:600;}
.amg-table tr.is-total td:last-child{font-size:19px;color:var(--amg-green);}
.amg-routes{display:grid;gap:12px;margin-bottom:28px;}
.amg-route{
  border:1px solid var(--amg-line);border-radius:14px;padding:18px 20px;background:var(--amg-bg-alt);
  display:flex;gap:14px;align-items:flex-start;
}
.amg-route.is-primary{border-color:var(--amg-green);background:var(--amg-accent-soft);}
.amg-route-num{
  flex:none;width:26px;height:26px;border-radius:8px;background:var(--amg-white);border:1px solid var(--amg-line);
  display:grid;place-items:center;font-family:"Manrope",sans-serif;font-size:12px;font-weight:800;color:var(--amg-green);
}
.amg-route h4{font-size:15px;font-weight:700;margin-bottom:4px;}
.amg-route p{font-size:13.5px;color:var(--amg-muted);}
.amg-route .amg-figure{font-family:"Manrope",sans-serif;font-weight:800;color:var(--amg-green);font-size:15px;}

/* ---------- CTA final ---------- */
.amg-cta{
  background:var(--amg-green-deep);color:#fff;border-radius:16px;padding:30px 28px;text-align:center;
}
.amg-cta h3{color:#fff;font-size:23px;font-weight:800;margin-bottom:10px;}
.amg-cta p{font-size:15px;color:rgba(255,255,255,.78);max-width:460px;margin:0 auto 22px;}
.amg-calc .amg-cta .amg-btn{background:var(--amg-accent);color:var(--amg-green-deep);}
.amg-calc .amg-cta .amg-btn:hover{background:#1DD968;}
.amg-cta .amg-note{font-size:12.5px;color:rgba(255,255,255,.55);margin-top:14px;}

.amg-disclaimer{
  padding:20px 32px 26px;font-size:11.5px;line-height:1.6;color:var(--amg-muted);
  background:var(--amg-bg-alt);border-top:1px solid var(--amg-line-soft);
}
.amg-restart{margin-top:16px;text-align:center;}
.amg-restart button{font-size:13.5px;font-weight:600;color:var(--amg-muted);text-decoration:underline;}
.amg-restart button:hover{color:var(--amg-green);}

/* ---------- Spinner ---------- */
.amg-spin{width:16px;height:16px;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:amgSpin .7s linear infinite;}
@keyframes amgSpin{to{transform:rotate(360deg);}}

/* ---------- Responsive ---------- */
@media(max-width:680px){
  .amg-step,.amg-locked,.amg-unlocked{padding-left:20px;padding-right:20px;}
  .amg-progress{padding-left:20px;padding-right:20px;}
  .amg-result-hero{padding:32px 20px 28px;}
  .amg-disclaimer{padding:18px 20px 22px;}
  .amg-options.cols-2,.amg-options.cols-3{grid-template-columns:1fr;}
  .amg-form .row{grid-template-columns:1fr;}
  .amg-calc .amg-actions .amg-btn{width:100%;}
  .amg-field.is-sub{margin-left:0;}
}
@media(prefers-reduced-motion:reduce){
  .amg-calc *,.amg-calc *::before,.amg-calc *::after{animation:none!important;transition:none!important;}
}
/* ============================================================
   v2 · añadidos
   ============================================================ */
.amg-calc [hidden]{display:none!important;}

/* Honeypot antispam: fuera de pantalla, no display:none (algunos bots lo detectan) */
.amg-calc .amg-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden;}

.amg-nota-it{
  font-size:13px;color:var(--amg-muted);line-height:1.5;
  padding:12px 16px;border-radius:12px;background:var(--amg-accent-soft);border:1px solid var(--amg-accent-line);
}

.amg-form input.is-error{border-color:#B3261E!important;box-shadow:0 0 0 3px rgba(179,38,30,.08);}

/* Página de resultado */
.amg-table small{font-size:12.5px;opacity:.75;}
.amg-table tr.is-sep{border-bottom:0;}
.amg-table tr.is-sep td{padding:4px 0;}
.amg-restart a{font-size:13.5px;font-weight:600;color:var(--amg-muted);text-decoration:underline;}
.amg-restart a:hover{color:var(--amg-green);}
.amg-calc--resultado .amg-cta .amg-btn{text-decoration:none;}
.amg-calc .amg-btn{text-decoration:none;}

.amg-vacio{padding:48px 32px;text-align:center;}
.amg-vacio h2{font-size:24px;font-weight:800;margin-bottom:10px;}
.amg-vacio p{color:var(--amg-muted);margin:0 auto 22px;max-width:440px;}

@media(max-width:680px){
  .amg-vacio{padding:36px 20px;}
}

/* Algunos temas (Astra incluido) estilan button[type=submit]; esto lo neutraliza */
.amg-calc button.amg-btn,.amg-calc a.amg-btn{border:0;box-shadow:none;text-transform:none;letter-spacing:normal;min-height:0;width:auto;}
.amg-calc button.amg-btn.is-block{width:100%;}
.amg-calc button.amg-btn{background:var(--amg-green);color:#fff;}
.amg-calc button.amg-btn:hover{background:var(--amg-green-dark);color:#fff;}

/* ============================================================
   v2.1 · Hero oscuro a sangre (patrón de las páginas de am-group.es,
   cuya cabecera es transparente y va superpuesta al primer bloque)
   ============================================================ */
.amg-calc{max-width:920px!important;margin-left:auto!important;margin-right:auto!important;padding-bottom:72px;}
.amg-calc .amg-head{
  position:relative;
  margin:0 calc(50% - 50vw) 0;
  padding:150px 20px 140px;
  text-align:center;
  background:
    radial-gradient(60% 80% at 85% 10%,rgba(20,196,107,.16),transparent 70%),
    radial-gradient(50% 70% at 10% 100%,rgba(20,196,107,.10),transparent 70%),
    linear-gradient(180deg,#0C2117 0%,#003A22 100%);
  color:#fff;
}
.amg-calc .amg-head > *{max-width:760px;margin-left:auto;margin-right:auto;}
.amg-calc .amg-crumbs{
  display:flex;justify-content:center;flex-wrap:wrap;gap:8px;
  font-size:13px;color:rgba(255,255,255,.6);margin-bottom:22px;
}
.amg-calc .amg-crumbs a{color:var(--amg-accent);text-decoration:none;}
.amg-calc .amg-crumbs a:hover{text-decoration:underline;}
.amg-calc .amg-head .amg-pill{
  background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.16);color:rgba(255,255,255,.85);
}
.amg-calc .amg-head h1{color:#fff;font-weight:700;}
.amg-calc .amg-head h1 em{color:var(--amg-accent);}
.amg-calc .amg-head p{color:rgba(255,255,255,.75);}

/* La tarjeta monta sobre el borde inferior del hero */
.amg-calc .amg-head + .amg-card{position:relative;margin-top:-92px;}
.amg-calc .amg-card{box-shadow:0 1px 2px rgba(12,33,23,.06),0 24px 60px -28px rgba(12,33,23,.45);}

@media(max-width:680px){
  .amg-calc{padding-left:16px;padding-right:16px;padding-bottom:48px;}
  .amg-calc .amg-head{margin:0 calc(50% - 50vw);padding:118px 20px 112px;}
  .amg-calc .amg-head + .amg-card{margin-top:-72px;}
  .amg-calc .amg-head h1{font-size:28px;}
  .amg-calc .amg-head p{font-size:15.5px;}
}
/* El tema fija margin:0 en encabezados y párrafos del contenido */
.amg-calc .amg-head h1,.amg-calc .amg-head p,.amg-calc .amg-head .amg-crumbs{margin-left:auto!important;margin-right:auto!important;}
.amg-calc .amg-head h1{margin-bottom:14px!important;}
.amg-calc .amg-head .amg-pill{margin-bottom:18px;}

/* ============================================================
   v2.1.2 · Blindaje frente a los estilos globales del tema
   (Astra + kit de Elementor pisan botones, títulos, inputs y márgenes)
   ============================================================ */
.amg-calc .amg-q{font-weight:700!important;margin:0 0 6px!important;}
.amg-calc .amg-hint{margin:0 0 22px!important;}
.amg-calc .amg-gate h3,.amg-calc .amg-route h4,.amg-calc .amg-cta h3,.amg-calc .amg-vacio h2{font-family:"Manrope",sans-serif!important;font-weight:700!important;}
.amg-calc .amg-cta h3{color:#fff!important;}
.amg-calc .amg-route p,.amg-calc .amg-sub,.amg-calc .amg-kicker,.amg-calc .amg-note{margin-top:0;}
.amg-calc .amg-route p{margin:0!important;}

/* Opciones */
.amg-calc button.amg-opt{
  border:1px solid var(--amg-line)!important;background:#fff!important;box-shadow:none!important;
  border-radius:14px!important;color:var(--amg-ink)!important;text-transform:none!important;
  letter-spacing:normal!important;font-weight:400!important;line-height:1.4!important;padding:16px 18px!important;
}
.amg-calc button.amg-opt:hover{border-color:var(--amg-accent-line)!important;background:var(--amg-accent-soft)!important;}
.amg-calc button.amg-opt.is-selected{border-color:var(--amg-green)!important;background:var(--amg-accent-soft)!important;box-shadow:inset 0 0 0 1px var(--amg-green)!important;}
.amg-calc button.amg-back{background:none!important;border:0!important;box-shadow:none!important;padding:4px 8px!important;color:var(--amg-muted)!important;font-size:13px!important;}
.amg-calc button.amg-back:hover{color:var(--amg-green)!important;}

/* Campos */
.amg-calc .amg-input input,.amg-calc .amg-form input[type=text],.amg-calc .amg-form input[type=email],.amg-calc .amg-form input[type=tel]{
  height:auto!important;min-height:50px;line-height:1.4!important;border-radius:12px!important;box-shadow:none;
}
.amg-calc .amg-input input{padding:13px 42px 13px 16px!important;font-size:17px!important;border:1px solid var(--amg-line)!important;background:var(--amg-bg-alt)!important;}
.amg-calc .amg-input input:focus{border-color:var(--amg-green)!important;background:#fff!important;box-shadow:0 0 0 3px var(--amg-accent-soft)!important;}
.amg-calc .amg-form input[type=text],.amg-calc .amg-form input[type=email],.amg-calc .amg-form input[type=tel]{padding:13px 16px!important;font-size:15px!important;border:1px solid var(--amg-line)!important;background:#fff!important;}
.amg-calc .amg-form input:focus{border-color:var(--amg-green)!important;box-shadow:0 0 0 3px var(--amg-accent-soft)!important;}
.amg-calc .amg-form input.is-error{border-color:#B3261E!important;}
/* Tablas: el tema añade bordes y fondos a td */
.amg-calc .amg-table,.amg-calc .amg-table td,.amg-calc .amg-table tr{border-left:0!important;border-right:0!important;border-top:0!important;background:transparent!important;}
.amg-calc .amg-table{border:0!important;margin:0 0 28px!important;}
.amg-calc .amg-table td{border-bottom:0!important;padding-left:0!important;}
.amg-calc .amg-table td:last-child{padding-left:16px!important;padding-right:0!important;}
.amg-calc .amg-table tr.is-total td{border-top:2px solid var(--amg-ink)!important;}
/* En móvil el contenedor de Astra ya aporta 20px laterales */
@media(max-width:680px){.amg-calc{padding-left:0!important;padding-right:0!important;}}
/* v2.1.5 · CTA final con más aire (el tema anula márgenes de h3 y p) */
.amg-calc .amg-cta{padding:52px 44px 44px!important;border-radius:20px!important;margin-top:12px;}
.amg-calc .amg-cta h3{font-size:27px!important;line-height:1.25!important;letter-spacing:-.02em;margin:0 auto 16px!important;max-width:560px;}
.amg-calc .amg-cta p{max-width:540px!important;margin:0 auto 32px!important;font-size:15.5px!important;line-height:1.7!important;}
.amg-calc .amg-cta .amg-btn{padding:17px 38px!important;}
.amg-calc .amg-cta .amg-note{margin:20px auto 0!important;font-size:12.5px!important;line-height:1.5!important;}
.amg-calc .amg-routes{margin-bottom:40px!important;}
@media(max-width:680px){
  .amg-calc .amg-cta{padding:38px 22px 32px!important;}
  .amg-calc .amg-cta h3{font-size:22px!important;}
  .amg-calc .amg-cta p{margin-bottom:26px!important;font-size:15px!important;}
  .amg-calc .amg-cta .amg-btn{width:100%;padding:16px 20px!important;}
}
.amg-calc .amg-route{padding:20px 22px!important;gap:16px!important;}
.amg-calc .amg-route h4{margin:0 0 6px!important;font-size:15.5px!important;line-height:1.35!important;}
.amg-calc .amg-route p{line-height:1.65!important;font-size:14px!important;}
.amg-calc .amg-routes{gap:14px!important;}
/* Hero del resultado: el tema anula los márgenes de los párrafos */
.amg-calc .amg-result-hero{padding:44px 32px 38px!important;}
.amg-calc .amg-result-hero .amg-kicker{margin:0 0 16px!important;}
.amg-calc .amg-amount .from{margin-bottom:8px!important;}
.amg-calc .amg-amount .to{margin-top:12px!important;}
.amg-calc .amg-result-hero .amg-sub{margin:18px auto 0!important;}
.amg-calc .amg-chips{margin-top:24px!important;}
/* v2.2 · Descarga en PDF */
.amg-calc .amg-pdf-bar{display:flex;justify-content:flex-end;margin:0 0 18px;}
.amg-calc button.amg-pdf-btn{
  display:inline-flex!important;align-items:center;gap:8px;padding:9px 16px!important;border-radius:40px!important;
  border:1px solid var(--amg-line)!important;background:#fff!important;color:var(--amg-green)!important;box-shadow:none!important;
  font-family:"Manrope",sans-serif!important;font-size:13.5px!important;font-weight:700!important;line-height:1.2!important;cursor:pointer;
}
.amg-calc button.amg-pdf-btn:hover{border-color:var(--amg-green)!important;background:var(--amg-accent-soft)!important;}
.amg-calc button.amg-pdf-btn:disabled{opacity:.6;cursor:wait;}
@media(max-width:680px){.amg-calc .amg-pdf-bar{justify-content:stretch;}.amg-calc button.amg-pdf-btn{width:100%;justify-content:center;}}
/* Documento PDF */
.amg-calc--pdf .amg-card{box-shadow:none!important;border:1px solid var(--amg-line-soft);}
.amg-calc--pdf .amg-pdf-cab{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;padding:0 4px 16px;margin-bottom:18px;border-bottom:2px solid var(--amg-green);font-size:12px;color:var(--amg-muted);}
.amg-calc--pdf .amg-pdf-cab div{display:flex;flex-direction:column;gap:2px;}
.amg-calc--pdf .amg-pdf-cab div:last-child{text-align:right;}
.amg-calc--pdf .amg-pdf-cab strong{font-family:"Manrope",sans-serif;font-size:16px;color:var(--amg-ink);}
.amg-calc--pdf .amg-unlocked{animation:none!important;}
@media print{
  body *{visibility:hidden;}
  #amgResultado .amg-card,#amgResultado .amg-card *{visibility:visible;}
  #amgResultado .amg-card{position:absolute;left:0;top:0;width:100%;box-shadow:none!important;}
  #amgResultado [data-pdf-ignore]{display:none!important;}
}
/* v2.2.1 · Logo y botón en el PDF */
.amg-calc--pdf .amg-pdf-cab{align-items:center!important;}
.amg-calc--pdf .amg-pdf-marca img{display:block;height:34px;width:auto;margin-bottom:6px;}
.amg-calc--pdf .amg-pdf-marca span{font-size:11px;letter-spacing:.06em;text-transform:uppercase;}
.amg-calc--pdf .amg-cta .amg-btn{display:inline-block!important;text-decoration:none!important;}
.amg-calc--pdf .amg-cta .amg-btn{background:#fff!important;color:#003A22!important;}
/* PDF más compacto para que quepa en dos páginas */
.amg-calc--pdf .amg-result-hero{padding:30px 28px 26px!important;}
.amg-calc--pdf .amg-unlocked{padding:22px 28px 24px!important;}
.amg-calc--pdf .amg-table{margin-bottom:20px!important;}
.amg-calc--pdf .amg-table td{padding:8px 0!important;}
.amg-calc--pdf .amg-table td:last-child{padding-left:16px!important;}
.amg-calc--pdf .amg-routes{gap:10px!important;margin-bottom:22px!important;}
.amg-calc--pdf .amg-route{padding:14px 18px!important;}
.amg-calc--pdf .amg-cta{padding:30px 36px 26px!important;}
.amg-calc--pdf .amg-cta p{margin-bottom:22px!important;}
.amg-calc--pdf .amg-disclaimer{padding:14px 28px 16px!important;}
/* La copia que hace html2canvas captura las transiciones a medias */
.amg-calc--pdf,.amg-calc--pdf *{transition:none!important;animation:none!important;}
.amg-calc--pdf .amg-cta .amg-btn{opacity:1!important;transform:none!important;}
