/* IWS – Si De ley por la niñez | v1.1 */

#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; }
#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:.75em; letter-spacing:1px; text-transform:uppercase; opacity:.6; }
#iws-price-amount { display:block; font-size:2em; font-weight:700; line-height:1; }
#iws-form-title { margin:24px 0 2px; font-size:1.4em; }
#iws-subtitle { margin:0 0 20px; opacity:.6; }

/* ── ACORDEÓN PARTICIPANTE ── */
.iws-participant { border:1px solid #ddd; border-radius:8px; margin-bottom:12px; overflow:hidden; }

.iws-acc-head {
    display:flex; justify-content:space-between; align-items:center;
    padding:14px 18px; cursor:pointer; background:#f7f7f7;
    border-bottom:1px solid #eee; user-select:none;
    transition: background .15s;
}
.iws-acc-head:hover { background:#f0f0f0; }
.iws-participant.iws-open .iws-acc-head { background:#fff; border-bottom-color:#ddd; }

.iws-acc-info { display:flex; flex-direction:column; gap:2px; }
.iws-acc-num { font-weight:700; font-size:1em; }
.iws-acc-summary { font-size:.82em; opacity:.6; min-height:1em; }

.iws-acc-controls { display:flex; align-items:center; gap:10px; }

.iws-acc-toggle {
    font-size:.8em; opacity:.5; transition:transform .25s;
    display:inline-block;
}
.iws-participant.iws-open .iws-acc-toggle { transform: rotate(180deg); }

.iws-acc-body { padding:18px; display:none; }
.iws-participant.iws-open .iws-acc-body { display:block; }

/* TÍTULOS DE SECCIÓN */
.iws-section-title { font-size:.72em; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; opacity:.5; 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:#555; }
.iws-input:disabled { background:#f0f0f0; }

/* IMAGEN CAMISETA */
.iws-shirt-img-wrap { text-align:center; margin-bottom:14px; }
.iws-shirt-img { max-height:160px; max-width:100%; object-fit:contain; border-radius:6px; }

/* TALLAS */
.iws-talla-opts { display:flex; gap:8px; flex-wrap:wrap; margin-top:4px; }
.iws-talla-lbl { cursor:pointer; }
.iws-talla-lbl input[type="radio"] { display:none; }
.iws-talla-lbl span { display:inline-block; padding:6px 16px; 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:#fafafa; animation:iws-fadein .22s 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:3px 12px; font-size:.75em; border-color:#bbb; background:transparent; color:inherit; border-radius:4px; }
.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 */
#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; }
#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; }
#iws-submit-wrap { margin-top:4px; }

/* SPINNER */
#iws-loading { position:absolute; inset:0; background:rgba(255,255,255,.85); 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; }
}
