/* ==============================================
   IWS – Si De ley por la niñez | Inscripción
   Clases únicas con prefijo iws-
   ============================================== */

#iws-form-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 0 32px;
  position: relative;
}

/* CABECERA */
#iws-header {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px 10px 0 0;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 0;
}
#iws-header-logo img { max-height: 80px; width: auto; display: block; }
#iws-logo-placeholder { color: #aaa; font-style: italic; margin: 0; }
#iws-price-label { display: block; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; opacity: .6; }
#iws-price-amount { display: block; font-size: 32px; font-weight: 700; line-height: 1; }

/* TÍTULO */
#iws-form-title { margin: 24px 0 2px; font-size: 1.4em; }
#iws-subtitle   { margin: 0 0 20px; opacity: .65; }

/* TARJETA PARTICIPANTE */
.iws-participant {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
  background: #fafafa;
}
.iws-participant-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid currentColor;
}
.iws-participant-num { margin: 0; font-size: 1.1em; }
.iws-num-badge {
  display: inline-block;
  background: currentColor;
  color: #fff !important;
  border-radius: 20px;
  padding: 1px 12px;
  font-size: .85em;
}
/* truco: el badge hereda el color del tema */
.iws-participant-num { color: inherit; }

/* TÍTULOS DE SECCIÓN */
.iws-section-title {
  font-size: .75em;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: .55;
  margin: 18px 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* GRILLA */
.iws-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.iws-row-full { grid-template-columns: 1fr; }
.iws-full { grid-column: 1 / -1; }

/* CAMPOS */
.iws-field label {
  display: block;
  font-size: .72em;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: .6;
  margin-bottom: 4px;
}
.iws-req { color: red; }

.iws-input {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
  background: #fff;
  transition: border-color .2s;
}
.iws-input:focus { outline: none; border-color: #666; }
.iws-input:disabled { background: #f0f0f0; cursor: not-allowed; }

/* TALLAS */
.iws-talla-opts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.iws-talla-lbl { cursor: pointer; }
.iws-talla-lbl input[type="radio"] { display: none; }
.iws-talla-lbl span {
  display: inline-block;
  padding: 6px 14px;
  border: 1.5px solid #bbb;
  border-radius: 5px;
  font-weight: 600;
  font-size: .9em;
  transition: all .15s;
}
.iws-talla-lbl:hover span { border-color: #555; }
.iws-talla-lbl input:checked + span {
  background: #222;
  border-color: #222;
  color: #fff;
}

/* MENORES */
.iws-menor {
  border: 1px dashed #ccc;
  border-radius: 6px;
  padding: 14px;
  margin-bottom: 10px;
  background: #f5f5f5;
  animation: iws-fadein .25s ease;
}
.iws-menor-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: .9em;
}
@keyframes iws-fadein { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }

/* BOTONES */
.iws-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s;
}
.iws-btn-outline {
  background: transparent;
  border-color: #bbb;
  color: inherit;
}
.iws-btn-outline:hover { border-color: #555; }
.iws-btn-primary {
  background: #222;
  color: #fff;
  padding: 13px 32px;
  width: 100%;
  justify-content: center;
  font-size: 1.05em;
}
.iws-btn-primary:hover { opacity: .85; }
.iws-btn-sm {
  padding: 4px 12px;
  font-size: .78em;
  font-weight: 600;
  border-color: #bbb;
  background: transparent;
  color: inherit;
}
.iws-btn-sm:hover { border-color: #555; }
.iws-remove-btn, .iws-remove-menor {
  background: transparent;
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all .15s;
}
.iws-remove-btn:hover, .iws-remove-menor:hover { background: #e00; border-color: #e00; color: #fff; }

/* TOTAL BAR */
#iws-total-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin: 4px 0 16px;
  background: #f9f9f9;
}
#iws-count-label { font-size: .9em; opacity: .65; }
#iws-total-amount { font-size: 1.3em; font-weight: 700; }

/* ADD PARTICIPANTE */
#iws-add-wrap { margin-bottom: 20px; }

/* DESLINDE */
#iws-disclaimer-wrap {
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #f9f9f9;
}
#iws-disclaimer-label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: .95em; }
#iws-disclaimer-check { width: 18px; height: 18px; cursor: pointer; flex-shrink: 0; }
#iws-disclaimer-link { color: inherit; font-weight: 600; }

/* MENSAJES */
#iws-messages {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: .9em;
  line-height: 1.6;
}
#iws-messages.iws-error   { background: #fff0f0; border: 1px solid #f5c0c0; color: #c00; }
#iws-messages.iws-success { background: #f0fff4; border: 1px solid #a8e6b8; color: #1a7a35; }

/* SUBMIT */
#iws-submit-wrap { margin-top: 4px; }

/* SPINNER */
#iws-loading {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.82);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  z-index: 99;
}
#iws-spinner {
  width: 40px; height: 40px;
  border: 3px solid #eee;
  border-top-color: #222;
  border-radius: 50%;
  animation: iws-spin .7s linear infinite;
  margin-bottom: 12px;
}
@keyframes iws-spin { to { transform: rotate(360deg); } }

/* RESPONSIVE */
@media (max-width: 560px) {
  .iws-row { grid-template-columns: 1fr; }
  #iws-header { flex-direction: column; align-items: flex-start; }
  .iws-btn-primary { font-size: .95em; }
}
