.cw-hub-modal{position:fixed;inset:0;z-index:99999;display:none;align-items:center;justify-content:center;padding:1rem;font-family:'Montserrat',system-ui,sans-serif}
.cw-hub-modal.is-open{display:flex}
.cw-hub-backdrop{position:absolute;inset:0;background:rgba(2,6,23,.72);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.cw-hub-dialog{position:relative;z-index:1;width:min(520px,100%);max-height:92vh;overflow:auto;background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);border:1px solid #e2e8f0;border-radius:20px;padding:1.55rem 1.45rem 1.4rem;color:#0f172a;box-shadow:0 28px 80px rgba(0,1,71,.28);-webkit-overflow-scrolling:touch}
.cw-hub-close{position:absolute;top:.75rem;right:.85rem;background:#f1f5f9;border:0;color:#334155;font-size:1.35rem;line-height:1;cursor:pointer;width:2rem;height:2rem;border-radius:8px}
.cw-hub-close:hover{background:#e2e8f0}
.cw-hub-head{display:flex;gap:.85rem;align-items:flex-start;margin-bottom:1rem;padding-right:1.75rem}
.cw-hub-head .fab{font-size:2rem;color:#25d366;margin-top:.15rem;flex-shrink:0}
.cw-hub-head h2{margin:0;font-size:1.18rem;font-weight:800;letter-spacing:-.02em;color:#000147}
.cw-hub-head p{margin:.35rem 0 0;font-size:.86rem;color:#64748b;line-height:1.45}
.cw-hub-form-intro{margin:0 0 1.05rem;padding:.85rem .95rem;border-radius:12px;background:linear-gradient(135deg,rgba(0,1,71,.06),rgba(37,211,102,.08));border:1px solid #e2e8f0}
.cw-hub-form-badge{display:inline-flex;align-items:center;gap:.35rem;font-size:.68rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#000147;margin-bottom:.35rem}
.cw-hub-form-intro p{margin:0;font-size:.82rem;color:#475569;line-height:1.45;font-weight:500}
.cw-hub-grid{display:grid;grid-template-columns:1fr 1fr;gap:.85rem;margin:0 0 .15rem}
@media (max-width:520px){.cw-hub-grid{grid-template-columns:1fr}}
@media (max-width:480px){
.cw-hub-modal{
  padding:
    calc(.7rem + env(safe-area-inset-top,0px))
    .7rem
    calc(.7rem + env(safe-area-inset-bottom,0px));
  align-items:stretch;
  justify-content:center;
  box-sizing:border-box;
}
.cw-hub-dialog{
  width:100%;
  max-width:none;
  height:auto;
  max-height:100%;
  min-height:0;
  flex:1 1 auto;
  border-radius:18px;
  border:1px solid #e2e8f0;
  padding:1.15rem 1rem 1.05rem;
  box-shadow:0 24px 80px rgba(0,0,0,.35);
  display:flex;
  flex-direction:column;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
}
.cw-hub-form{flex:1 1 auto}
.cw-hub-close{
  top:.65rem;
  right:.7rem;
  z-index:2;
}
.cw-hub-head{margin-bottom:1rem;padding-top:.15rem}
.cw-hub-head h2{font-size:1.05rem}
.cw-hub-head p{font-size:.82rem}
.cw-hub-submit{padding:.9rem 1rem;font-size:.95rem;border-radius:12px;margin-top:auto}
}
.cw-hub-form{display:flex;flex-direction:column;gap:0}
.cw-hub-form label,.cw-hub-form .cw-hub-field{display:flex;flex-direction:column;gap:.45rem;font-size:.8rem;font-weight:650;color:#334155;margin:0 0 .95rem;line-height:1.35}
.cw-hub-label-text{display:inline-flex;align-items:baseline;flex-wrap:wrap;gap:.3rem;line-height:1.3}
.cw-hub-label-text abbr{color:#dc2626;text-decoration:none;font-weight:800}
.cw-hub-optional{font-weight:400;color:#94a3b8;font-size:.75rem}
.cw-hub-field-hint{display:block;font-weight:400;color:#64748b;font-size:.74rem;line-height:1.4;margin:0;padding:.05rem 0 0}
.cw-hub-form input,
.cw-hub-form select{width:100%;max-width:100%;min-width:0;padding:.78rem .9rem;border-radius:12px;border:1.5px solid #cbd5e1;background:#fff;color:#0f172a;font-size:.94rem;font-family:inherit;box-sizing:border-box;-webkit-appearance:none;appearance:none;transition:border-color .15s,box-shadow .15s}
.cw-hub-form select{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right .9rem center;
  background-size:12px 8px;
  padding-right:2.4rem;
  cursor:pointer;
}
.cw-hub-form input::placeholder{color:#94a3b8;opacity:1}
.cw-hub-form input:focus,
.cw-hub-form select:focus{outline:none;border-color:#000147;box-shadow:0 0 0 3px rgba(0,1,71,.12)}
.cw-hub-phone-row{display:flex;align-items:stretch;gap:.55rem;flex-wrap:wrap;min-width:0;max-width:100%;margin:0}
.cw-hub-phone-row input[name="telefono"]{flex:1 1 8rem;min-width:0;letter-spacing:.02em;width:auto;max-width:100%}
.cw-hub-country{position:relative;flex:0 0 auto}
.cw-hub-country-toggle{display:flex;align-items:center;gap:.45rem;height:100%;min-height:46px;padding:.55rem .65rem;border:1.5px solid #cbd5e1;border-radius:12px;background:#fff;color:#334155;cursor:pointer;white-space:nowrap;-webkit-appearance:none;appearance:none}
.cw-hub-country-toggle:hover{border-color:#64748b}
.cw-hub-country-toggle.is-open,.cw-hub-country-toggle:focus{outline:none;border-color:#000147;box-shadow:0 0 0 3px rgba(0,1,71,.12)}
.cw-hub-flag{width:18px;height:13px;border-radius:2px;box-shadow:0 1px 3px rgba(0,0,0,.1);flex-shrink:0;display:inline-block;background-size:cover}
.cw-hub-country-dial{font-weight:600;font-size:.9rem;color:#334155}
.cw-hub-arrow{font-size:.62rem;color:#64748b;margin-left:.1rem}
.cw-hub-country-menu{display:none;position:absolute;top:calc(100% + 4px);left:0;z-index:20;min-width:220px;max-height:240px;overflow:auto;background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 16px 40px rgba(15,23,42,.16);padding:.35rem}
.cw-hub-country-menu.is-open{display:block}
.cw-hub-country-option{display:flex;align-items:center;gap:.55rem;width:100%;padding:.55rem .65rem;border:0;border-radius:8px;background:transparent;color:#334155;font-size:.84rem;text-align:left;cursor:pointer}
.cw-hub-country-option:hover,.cw-hub-country-option.is-active{background:#f8fafc}
.cw-hub-country-option .cw-hub-country-dial{min-width:2.5rem;font-weight:600}
.cw-hub-country-option .cw-hub-country-name{color:#64748b;font-size:.78rem;margin-left:auto}
.cw-hub-context{font-size:.78rem;color:#475569;background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:.65rem .75rem;margin:0 0 .85rem;line-height:1.45}
.cw-hub-submit{width:100%;margin-top:.2rem;padding:.95rem 1rem;border:0;border-radius:14px;background:linear-gradient(135deg,#25d366 0%,#128c7e 100%);color:#fff;font-weight:750;font-size:1rem;font-family:inherit;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:.5rem;box-shadow:0 12px 28px rgba(18,140,126,.28)}
.cw-hub-submit:hover{filter:brightness(1.04)}
.cw-hub-submit:disabled{opacity:.6;cursor:not-allowed;box-shadow:none}
.cw-hub-privacy{font-size:.72rem;color:#64748b;text-align:center;margin:.75rem 0 0;line-height:1.4}
.cw-hub-form[hidden],
.cw-hub-head[hidden],
.cw-hub-success[hidden],
.cw-hub-context[hidden]{display:none!important}
.cw-hub-success{text-align:center;padding:1.25rem .35rem 1rem;width:100%;box-sizing:border-box}
.cw-hub-success-icon{font-size:3.1rem;color:#16a34a;line-height:1;margin-bottom:.85rem}
.cw-hub-success h3{margin:0 0 .7rem;font-size:1.25rem;color:#000147;line-height:1.3}
.cw-hub-success p{margin:0 0 .8rem;font-size:.94rem;color:#475569;line-height:1.5}
.cw-hub-success-wa{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.55rem;margin-top:.65rem}
.cw-hub-success-wa-text{display:inline-flex;align-items:center;gap:.45rem;padding:.55rem .95rem;border-radius:999px;background:#ecfdf5;color:#047857;font-size:.84rem;font-weight:700}
.cw-hub-wa-open{display:inline-flex;align-items:center;gap:.4rem;padding:.55rem 1rem;border-radius:999px;background:#25d366;color:#fff!important;font-size:.84rem;font-weight:700;text-decoration:none!important;box-shadow:0 8px 18px rgba(37,211,102,.28)}
.cw-hub-wa-open:hover{filter:brightness(1.05);color:#fff!important}
.cw-hub-modal.is-success .cw-hub-close{display:none}
.cw-hub-modal.is-success{align-items:center;justify-content:center;padding:1rem}
.cw-hub-modal.is-success .cw-hub-dialog{display:flex;flex-direction:column;align-items:center;justify-content:center;max-height:min(420px,88vh);overflow:hidden;padding:1.75rem 1.35rem}
.cw-hub-modal.is-success .cw-hub-form,
.cw-hub-modal.is-success .cw-hub-head{display:none!important}
.cw-hub-modal.is-success .cw-hub-success{display:flex!important;flex-direction:column;align-items:center;justify-content:center;margin:0;padding:0}
@media (max-width:480px){
.cw-hub-modal.is-success{
  align-items:center;
  justify-content:center;
  padding:
    calc(.7rem + env(safe-area-inset-top,0px))
    .7rem
    calc(.7rem + env(safe-area-inset-bottom,0px));
}
.cw-hub-modal.is-success .cw-hub-dialog{
  width:100%;
  max-width:none;
  height:auto;
  max-height:100%;
  min-height:0;
  flex:0 1 auto;
  border-radius:18px;
  padding:1.5rem 1.1rem;
}
.cw-hub-modal.is-success .cw-hub-success h3{font-size:1.15rem}
}
