/*
 * NWC Elementor Kit 1.2 — header sticky azul de marca, registro comprador / expositor,
 * cinco categorías del directorio. Aislado bajo .nwc-root.nwc-scope.
 */

/* ---------- Header: logo claro solo en modo sticky ---------- */
.nwc-root.nwc-scope .site-header .brand img.nwc-logo-light{display:none}
.nwc-root.nwc-scope .site-header{transition:background-color .45s var(--ease),border-color .45s var(--ease),box-shadow .45s var(--ease),height .3s var(--ease)}

/* ---------- Header sticky en azul de marca ---------- */
.nwc-root.nwc-scope .site-header.scrolled{background:rgba(38,82,155,.97);border-bottom-color:rgba(255,252,247,.14);box-shadow:0 14px 36px -12px rgba(16,32,66,.45);-webkit-backdrop-filter:blur(16px) saturate(1.2);backdrop-filter:blur(16px) saturate(1.2);color:var(--paper)}
.nwc-root.nwc-scope .site-header.scrolled .brand img.nwc-logo-dark{display:none}
.nwc-root.nwc-scope .site-header.scrolled .brand img.nwc-logo-light{display:block}
.nwc-root.nwc-scope .site-header.scrolled .primary-nav a{color:rgba(255,252,247,.9)}
.nwc-root.nwc-scope .site-header.scrolled .primary-nav a:after{background:var(--yellow)}
.nwc-root.nwc-scope .site-header.scrolled .primary-nav a:hover,
.nwc-root.nwc-scope .site-header.scrolled .primary-nav a[aria-current="page"]{color:var(--yellow)}
.nwc-root.nwc-scope .site-header.scrolled .register-top{background:var(--coral);border-color:var(--coral);color:var(--paper)}
.nwc-root.nwc-scope .site-header.scrolled .register-top:hover{background:var(--yellow);border-color:var(--yellow);color:var(--ink)}
.nwc-root.nwc-scope .site-header.scrolled .language-switch{background:rgba(255,252,247,.1);border-color:rgba(255,252,247,.3)}
.nwc-root.nwc-scope .site-header.scrolled .language-switch a{color:rgba(255,252,247,.86)}
.nwc-root.nwc-scope .site-header.scrolled .language-switch a[aria-current="page"]{background:var(--paper);color:var(--blue);box-shadow:0 2px 10px rgba(10,20,45,.25)}
.nwc-root.nwc-scope .site-header.scrolled .language-switch a:not([aria-current="page"]):hover{background:rgba(255,252,247,.18);color:var(--paper)}
.nwc-root.nwc-scope .site-header.scrolled .language-switch a:focus-visible{outline-color:var(--yellow)}
.nwc-root.nwc-scope .site-header.scrolled .language-switch-sep{background:rgba(255,252,247,.28)}
.nwc-root.nwc-scope .site-header.scrolled .menu-trigger{color:var(--paper)}
.nwc-root.nwc-scope .site-header.scrolled .menu-trigger:hover{color:var(--yellow)}
.nwc-root.nwc-scope .site-header.scrolled .menu-trigger:focus-visible,
.nwc-root.nwc-scope .site-header.scrolled .primary-nav a:focus-visible,
.nwc-root.nwc-scope .site-header.scrolled .register-top:focus-visible{outline:2px solid var(--yellow);outline-offset:4px}
.nwc-root.nwc-scope #scroll-progress{background:linear-gradient(90deg,var(--coral),var(--yellow))}

/* ---------- Registro: comprador / expositor ---------- */
.nwc-root.nwc-scope .nwc-reg{display:block;margin-top:6px}
.nwc-root.nwc-scope .nwc-reg-tabs{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:0;padding:5px;margin:0 0 26px;border-radius:999px;background:#efe8dd;border:1px solid rgba(23,23,22,.08);isolation:isolate}
.nwc-root.nwc-scope .nwc-reg-thumb{position:absolute;z-index:-1;top:5px;bottom:5px;left:5px;width:calc(50% - 5px);border-radius:999px;background:var(--ink);box-shadow:0 8px 20px -10px rgba(23,23,22,.6);transition:transform .5s var(--ease),background-color .4s}
.nwc-root.nwc-scope .nwc-reg[data-active="exhibitor"] .nwc-reg-thumb{transform:translateX(100%);background:var(--blue)}
.nwc-root.nwc-scope .nwc-reg-tab{display:flex;flex-direction:column;align-items:center;gap:3px;margin:0;padding:11px 10px 12px;border:0;border-radius:999px;background:transparent;color:var(--soft-ink);font:inherit;text-align:center;cursor:pointer;transition:color .35s}
.nwc-root.nwc-scope .nwc-reg-tab small{font-size:8.5px;font-weight:750;letter-spacing:.16em;line-height:1.2;opacity:.75}
.nwc-root.nwc-scope .nwc-reg-tab strong{font-size:14px;font-weight:750;letter-spacing:-.02em;line-height:1.15}
.nwc-root.nwc-scope .nwc-reg-tab[aria-selected="true"]{color:var(--paper)}
.nwc-root.nwc-scope .nwc-reg-tab[aria-selected="true"] small{color:var(--yellow);opacity:1}
.nwc-root.nwc-scope .nwc-reg-tab:focus-visible{outline:2px solid var(--coral);outline-offset:3px}
.nwc-root.nwc-scope .nwc-reg-pane{display:block;animation:nwcPaneIn .55s var(--ease) both}
.nwc-root.nwc-scope .nwc-reg-pane[hidden]{display:none}
@keyframes nwcPaneIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.nwc-root.nwc-scope .nwc-reg-title{margin:0 0 10px;font-size:clamp(24px,2.1vw,32px);line-height:1.06;letter-spacing:-.05em;font-weight:750;color:var(--ink)}
.nwc-root.nwc-scope .nwc-reg-title em{font-family:"Cormorant Garamond",Georgia,serif;font-style:italic;font-weight:500;font-size:1.15em;color:var(--coral)}
.nwc-root.nwc-scope .nwc-reg[data-active="exhibitor"] .nwc-reg-title em{color:var(--blue)}
.nwc-root.nwc-scope .nwc-reg-text{margin:0 0 22px;font-size:13px;line-height:1.6;color:#66615b}
.nwc-root.nwc-scope .nwc-lead-form .field textarea{display:block;width:100%;min-height:84px;padding:11px 12px;background:transparent;border:1px solid #d0c8c0;border-radius:3px;color:var(--ink);font:inherit;font-size:12px;line-height:1.5;resize:vertical;transition:border-color .2s}
.nwc-root.nwc-scope .nwc-lead-form .field textarea:focus{border-color:var(--blue);outline:0}
.nwc-root.nwc-scope .nwc-lead-form .field textarea::placeholder{color:#908982}
.nwc-root.nwc-scope .nwc-field-row{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}
.nwc-root.nwc-scope .nwc-check-group{margin:0 0 18px;padding:0;border:0;min-width:0}
.nwc-root.nwc-scope .nwc-check-group legend{display:block;padding:0;margin:0 0 9px;font-size:11px;font-weight:750}
.nwc-root.nwc-scope .nwc-check-group legend span{color:var(--blue)}
.nwc-root.nwc-scope .nwc-check-group legend small{font-weight:400;color:#7d7872}
.nwc-root.nwc-scope .nwc-check-chips{display:flex;flex-wrap:wrap;gap:7px}
.nwc-root.nwc-scope .nwc-check-chip{position:relative;display:inline-flex;cursor:pointer}
.nwc-root.nwc-scope .nwc-check-chip input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.nwc-root.nwc-scope .nwc-check-chip span{display:inline-flex;align-items:center;gap:7px;padding:8px 13px;border:1px solid #d6cdc1;border-radius:999px;background:#fff;color:#4c4743;font-size:11px;font-weight:700;line-height:1.1;transition:background-color .2s,border-color .2s,color .2s,transform .2s}
.nwc-root.nwc-scope .nwc-check-chip span:before{content:"";width:8px;height:8px;border-radius:50%;background:var(--chip);flex:none;transition:box-shadow .2s}
.nwc-root.nwc-scope .nwc-check-chip:hover span{transform:translateY(-1px);border-color:var(--chip)}
.nwc-root.nwc-scope .nwc-check-chip input:checked+span{background:var(--chip);border-color:var(--chip);color:#fff}
.nwc-root.nwc-scope .nwc-check-chip input:checked+span:before{background:#fff;box-shadow:0 0 0 2px rgba(255,255,255,.35)}
.nwc-root.nwc-scope .nwc-check-chip input:focus-visible+span{outline:2px solid var(--blue);outline-offset:2px}
.nwc-root.nwc-scope .registration-panel .nwc-reg-tabs{margin-top:4px}
@media(max-width:660px){
  .nwc-root.nwc-scope .nwc-field-row{grid-template-columns:1fr}
  .nwc-root.nwc-scope .nwc-reg-tab{padding:10px 6px}
  .nwc-root.nwc-scope .nwc-reg-tab strong{font-size:13px}
  .nwc-root.nwc-scope .nwc-reg-tab small{font-size:7.5px;letter-spacing:.12em}
}

/* ---------- Directorio: cinco categorías ---------- */
.nwc-root.nwc-scope .dir-chip-clothing{border-color:#b9ddd5;color:#2c6e62;background:#ecf7f4}
.nwc-root.nwc-scope .dir-chip-clothing[aria-pressed='true']{background:#3d8c7e;border-color:#3d8c7e;color:#fff}
.nwc-root.nwc-scope .dir-chip-industrial{border-color:#cfc8bf;color:#3d3a36;background:#f3efe9}
.nwc-root.nwc-scope .dir-chip-industrial[aria-pressed='true']{background:#4e4b47;border-color:#4e4b47;color:#fff}
.nwc-root.nwc-scope .dir-cat-more{display:inline-block;margin-left:4px;padding:2px 6px;border-radius:99px;background:rgba(23,23,22,.08);font-size:.9em;font-weight:800;letter-spacing:0;vertical-align:1px}
.nwc-root.nwc-scope .dir-exhibitor dd.dir-cat-tags{display:flex;flex-wrap:wrap;gap:5px}
.nwc-root.nwc-scope .dir-exhibitor dd.dir-cat-tags span{display:inline-block;padding:3px 8px;border-radius:99px;font-size:10px;font-weight:700;color:var(--tag);background:color-mix(in srgb,var(--tag) 12%,#fff)}

/* 1.2.2 · Mega menú: panel de registro más compacto, sin antetítulo ni símbolo */
.nwc-root.nwc-scope .mega-content{padding-top:clamp(24px,2.8vw,44px)}
.nwc-root.nwc-scope .mega-form-panel{border-radius:44px 44px 0 0;padding-top:clamp(26px,2.6vw,40px);align-self:start}
.nwc-root.nwc-scope .mega-form-panel h2{margin-top:0}
.nwc-root.nwc-scope .mega-form-panel .panel-head{display:none}
@media (max-width:660px){
  .nwc-root.nwc-scope .mega-form-panel{border-radius:32px 32px 0 0;margin-top:20px}
}
/* 1.2.2 · Safari: las tarjetas 3D del abanico se colaban sobre el mega menú
   (línea oscura "trabada" sobre los formularios). Con el menú abierto se
   ocultan y el menú se pinta en su propia capa. */
.nwc-root.nwc-scope .mega-menu.is-open{isolation:isolate;-webkit-transform:translateZ(0);transform:translateZ(0)}
body.menu-open .nwc-root.nwc-scope .nwc-fan-deck,
body.menu-open .nwc-root.nwc-scope .nwc-fan-controls{visibility:hidden}
.nwc-root.nwc-scope .nwc-reg-thumb{-webkit-backface-visibility:hidden;backface-visibility:hidden;will-change:transform}

/* 1.3.0 · Formularios: expositores (1.ª pestaña) / visitantes */
.nwc-root.nwc-scope .nwc-reg .nwc-reg-thumb,.nwc-root.nwc-scope .nwc-reg[data-active="exhibitor"] .nwc-reg-thumb{transform:none;background:var(--blue)}
.nwc-root.nwc-scope .nwc-reg[data-active="visitor"] .nwc-reg-thumb{transform:translateX(100%);background:var(--ink)}
.nwc-root.nwc-scope .nwc-radio-chip{--chip:var(--coral)}
.nwc-root.nwc-scope .nwc-lead-single .form-progress-track span{transition:width .45s var(--ease)}
/* Teléfono / WhatsApp con código de país */
.nwc-root.nwc-scope .nwc-phone{display:grid;grid-template-columns:auto 1fr;gap:8px}
.nwc-root.nwc-scope .nwc-phone-cc{position:relative;display:flex;align-items:center;gap:6px;min-width:96px;height:45px;padding:0 10px 0 12px;border:1px solid #d0c8c0;border-radius:3px;background:transparent;color:var(--ink);font-size:12px;font-weight:700;letter-spacing:.02em;white-space:nowrap;transition:border-color .2s}
.nwc-root.nwc-scope .nwc-phone-cc-view{flex:1}
.nwc-root.nwc-scope .nwc-phone-cc-caret{width:14px;height:14px;opacity:.6;flex:none}
.nwc-root.nwc-scope .field .nwc-phone-cc select{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;border:0;opacity:0;cursor:pointer;font-size:16px;-webkit-appearance:none;appearance:none}
.nwc-root.nwc-scope .nwc-phone-cc:focus-within{border-color:var(--blue);outline:2px solid rgba(38,82,155,.18);outline-offset:1px}
.nwc-root.nwc-scope .nwc-phone input{min-width:0}
