/* Guía de tallas: botón, ventana, tablas y formulario */
.re-sg-open{
  display:inline-flex;align-items:center;gap:8px;
  background:none;border:0;padding:4px 0;margin:0 0 14px;
  color:var(--re-gold-bright,#f3d371);font:inherit;font-weight:600;font-size:.92rem;
  cursor:pointer;text-decoration:underline;text-underline-offset:4px;text-decoration-color:rgba(243,211,113,.4);
  transition:text-decoration-color .2s;
}
.re-sg-open:hover{text-decoration-color:currentColor;background:none;color:var(--re-gold-bright,#f3d371);}

body.re-sg-lock{overflow:hidden;}
.re-sg-modal{
  position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;
  padding:20px;background:rgba(0,0,0,.72);backdrop-filter:blur(8px);
}
.re-sg-modal[hidden]{display:none;}
.re-sg-modal__box{
  position:relative;width:100%;max-width:760px;max-height:calc(100vh - 40px);overflow:auto;
  background:#0f0f11;border:1px solid var(--re-border-strong,rgba(255,255,255,.2));border-radius:22px;
  padding:28px 28px 32px;box-shadow:0 30px 80px rgba(0,0,0,.6);
}
.re-sg-modal__close{
  position:sticky;top:0;float:right;margin:-12px -12px 0 0;z-index:2;
  width:40px;height:40px;border-radius:50%;border:1px solid var(--re-border,rgba(255,255,255,.09));
  background:#1a1a1d;color:#fff;font-size:24px;line-height:1;cursor:pointer;padding:0;
}
.re-sg-modal__close:hover{background:#26262a;color:#fff;}

.re-sg{color:var(--re-white,#f5f5f7);}
.re-sg__title{font-size:1.1rem;margin:0 0 14px;color:var(--re-white,#f5f5f7);letter-spacing:.01em;}
.re-sg__tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px;}
.re-sg__tab{
  background:rgba(255,255,255,.05);border:1px solid var(--re-border,rgba(255,255,255,.09));color:var(--re-gray,#9a9aa1);
  padding:9px 16px;border-radius:999px;font:inherit;font-size:.88rem;font-weight:600;cursor:pointer;
}
.re-sg__tab:hover{color:#fff;background:rgba(255,255,255,.09);}
.re-sg__tab.is-active{background:var(--re-gold,#d4af37);border-color:var(--re-gold,#d4af37);color:#111;}

.re-sg__panel[hidden]{display:none;}
.re-sg__scroll{overflow-x:auto;border-radius:14px;border:1px solid var(--re-border,rgba(255,255,255,.09));}
.re-sg__table{width:100%;border-collapse:collapse;font-size:.95rem;background:rgba(255,255,255,.03);}
.re-sg__table th,.re-sg__table td{
  padding:12px 10px;text-align:center;border:0;border-bottom:1px solid var(--re-border,rgba(255,255,255,.09));
  border-right:1px solid var(--re-border,rgba(255,255,255,.09));color:var(--re-white,#f5f5f7);
}
.re-sg__table tr>:last-child{border-right:0;}
.re-sg__table tbody tr:last-child>*{border-bottom:0;}
.re-sg__table thead th{
  background:rgba(212,175,55,.16);color:var(--re-gold-bright,#f3d371);
  font-size:.74rem;letter-spacing:.07em;text-transform:uppercase;font-weight:700;white-space:nowrap;
}
.re-sg__table tbody th{font-weight:800;color:var(--re-gold-bright,#f3d371);background:rgba(255,255,255,.03);}
.re-sg__table tbody th.re-sg__grp{text-transform:uppercase;letter-spacing:.08em;font-size:.8rem;}
.re-sg__table td{color:var(--re-white,#f5f5f7);font-variant-numeric:tabular-nums;}
.re-sg__table tbody tr:hover td{background:rgba(255,255,255,.04);}
.re-sg__table--wide{font-size:.86rem;}
.re-sg__table--wide th,.re-sg__table--wide td{padding:11px 7px;}
.re-sg__note{margin:10px 2px 0;color:var(--re-gray,#9a9aa1);font-size:.82rem;}

/* Formulario */
.re-sg__finder{
  margin-top:28px;padding:22px;border-radius:18px;
  background:linear-gradient(180deg,rgba(212,175,55,.09),rgba(255,255,255,.03));
  border:1px solid var(--re-gold-dim,rgba(212,175,55,.35));
}
.re-sg__lead{margin:-6px 0 18px;color:var(--re-gray,#9a9aa1);font-size:.9rem;}
.re-sg__field{margin:0 0 16px;}
.re-sg__field[hidden]{display:none;}
.re-sg__fieldhead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px;}
.re-sg__fieldhead label{font-weight:700;font-size:.9rem;color:var(--re-white,#f5f5f7);margin:0;}
.re-sg__seg{display:inline-flex;background:rgba(255,255,255,.07);border-radius:999px;padding:3px;}
.re-sg__seg button{
  background:none;border:0;color:var(--re-gray,#9a9aa1);font:inherit;font-size:.8rem;font-weight:700;
  padding:5px 14px;border-radius:999px;cursor:pointer;
}
.re-sg__seg button.is-on{background:#fff;color:#111;}
.re-sg__inputs{display:flex;gap:10px;}
.re-sg__inputs[hidden]{display:none;}
.re-sg__in{position:relative;display:block;flex:1;margin:0;}
.re-sg__in input{
  width:100%;box-sizing:border-box;height:52px;padding:0 54px 0 16px;
  background:rgba(0,0,0,.45);border:1px solid var(--re-border-strong,rgba(255,255,255,.2));border-radius:14px;
  color:#fff;font:inherit;font-size:1.05rem;
}
.re-sg__in input:focus{outline:0;border-color:var(--re-gold,#d4af37);box-shadow:0 0 0 3px rgba(212,175,55,.22);}
.re-sg__in span{position:absolute;right:16px;top:50%;transform:translateY(-50%);color:var(--re-gray,#9a9aa1);font-size:.85rem;pointer-events:none;}
.re-sg__pills{display:flex;gap:10px;flex-wrap:wrap;}
.re-sg__pills label{margin:0;cursor:pointer;}
.re-sg__pills input{position:absolute;opacity:0;pointer-events:none;}
.re-sg__pills span{
  display:inline-block;padding:10px 18px;border-radius:999px;font-size:.9rem;font-weight:600;
  border:1px solid var(--re-border-strong,rgba(255,255,255,.2));color:var(--re-white,#f5f5f7);background:rgba(255,255,255,.04);
}
.re-sg__pills input:checked+span{background:var(--re-gold,#d4af37);border-color:var(--re-gold,#d4af37);color:#111;}
.re-sg__pills input:focus-visible+span{box-shadow:0 0 0 3px rgba(212,175,55,.35);}

.re-sg__go{
  width:100%;height:54px;border-radius:999px;border:0;cursor:pointer;
  background:var(--re-white,#f5f5f7);color:#0b0b0c;font:inherit;font-weight:800;font-size:1rem;
}
.re-sg__go:hover{background:var(--re-gold-bright,#f3d371);color:#0b0b0c;}

.re-sg__result:empty{display:none;}
.re-sg__result{margin-top:18px;padding:18px;border-radius:16px;background:rgba(0,0,0,.4);border:1px solid var(--re-border,rgba(255,255,255,.09));}
.re-sg__rec{display:flex;align-items:baseline;justify-content:space-between;gap:12px;}
.re-sg__rec span{color:var(--re-gray,#9a9aa1);font-size:.9rem;}
.re-sg__rec strong{font-size:2.6rem;line-height:1;color:var(--re-gold-bright,#f3d371);}
.re-sg__why{margin:10px 0 0;color:var(--re-gray,#9a9aa1);font-size:.88rem;line-height:1.5;}
.re-sg__err{margin:0;color:#ff8a80;}
.re-sg__actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px;}
.re-sg__pick,.re-sg__wa{
  flex:1 1 180px;text-align:center;padding:13px 18px;border-radius:999px;font:inherit;font-weight:700;font-size:.92rem;
  cursor:pointer;text-decoration:none;
}
.re-sg__pick{background:var(--re-gold,#d4af37);border:0;color:#111;}
.re-sg__pick:hover{background:var(--re-gold-bright,#f3d371);color:#111;}
.re-sg__wa{background:transparent;border:1px solid var(--re-border-strong,rgba(255,255,255,.2));color:var(--re-white,#f5f5f7);}
.re-sg__wa:hover{border-color:#25d366;color:#25d366;}

.re-sg-page{max-width:820px;margin:0 auto;}

@media (max-width:600px){
  .re-sg-modal{padding:0;align-items:flex-end;}
  .re-sg-modal__box{max-height:92vh;border-radius:22px 22px 0 0;padding:22px 16px 28px;}
  .re-sg__finder{padding:18px 14px;}
  .re-sg__table{font-size:.85rem;}
  .re-sg__table th,.re-sg__table td{padding:10px 6px;}
}
