/* ===================================================================
   Gimnasio App — Reclamos / Sugerencias
   Badges tipo/estado + expandable cards + form
   =================================================================== */

/* --- Header Actions --- */
.reclamos-header-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.reclamos-btn-crear {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.reclamos-btn-crear:active {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(0.97);
}

/* --- List --- */
.reclamos-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* --- Card --- */
.reclamo-card {
    background: white;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.15s;
}

.reclamo-card:active {
    transform: scale(0.98);
}

.reclamo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.reclamo-badges {
    display: flex;
    gap: 6px;
}

.reclamo-fecha {
    font-size: 11px;
    color: #9ca3af;
}

/* --- Tipo Badge --- */
.reclamo-tipo-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 4px;
}

.reclamo-tipo-badge.reclamo {
    color: #dc2626;
    background: #fee2e2;
}

.reclamo-tipo-badge.sugerencia {
    color: #2563eb;
    background: #dbeafe;
}

.reclamo-tipo-badge.felicitacion {
    color: #16a34a;
    background: #dcfce7;
}

/* --- Estado Badge --- */
.reclamo-estado-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

.reclamo-estado-badge.pendiente {
    color: #ca8a04;
    background: #fef9c3;
}

.reclamo-estado-badge.en-revision {
    color: #2563eb;
    background: #dbeafe;
}

.reclamo-estado-badge.respondido {
    color: #16a34a;
    background: #dcfce7;
}

.reclamo-estado-badge.cerrado {
    color: #6b7280;
    background: #f3f4f6;
}

/* --- Title --- */
.reclamo-titulo {
    font-size: 14px;
    font-weight: 600;
    color: #1a2332;
    margin: 0;
    line-height: 1.3;
}

/* --- Detail (expandable) --- */
.reclamo-detalle {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.reclamo-descripcion {
    font-size: 13px;
    color: #374151;
    line-height: 1.5;
    margin: 0 0 12px;
}

.reclamo-respuesta {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 12px;
}

.reclamo-respuesta-label {
    font-size: 11px;
    font-weight: 700;
    color: #4682B4;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
}

.reclamo-respuesta p {
    font-size: 13px;
    color: #374151;
    line-height: 1.5;
    margin: 0;
}

.reclamo-respuesta-fecha {
    font-size: 11px;
    color: #9ca3af;
    display: block;
    margin-top: 6px;
}

/* ===================================================================
   FORM — Crear Reclamo
   =================================================================== */

.crear-reclamo-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group-app {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group-app label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

/* --- Tipo Selector --- */
.tipo-selector {
    display: flex;
    gap: 8px;
}

.tipo-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.tipo-btn i {
    font-size: 18px;
}

.tipo-btn.active {
    background: rgba(255, 255, 255, 0.25);
    border-color: white;
    color: white;
}

/* --- Inputs --- */
.input-app {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    color: white;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.input-app::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.input-app:focus {
    border-color: rgba(255, 255, 255, 0.6);
}

.textarea-app {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

/* --- Error --- */
.reclamo-error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fecaca;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* --- Submit Button --- */
.btn-enviar-reclamo {
    background: white;
    color: #4682B4;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-enviar-reclamo:active {
    transform: scale(0.97);
    background: #f0f0f0;
}

.btn-enviar-reclamo:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.spinner-sm {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(70, 130, 180, 0.3);
    border-top-color: #4682B4;
    border-radius: 50%;
    animation: spin-sm 0.6s linear infinite;
}

@keyframes spin-sm {
    to { transform: rotate(360deg); }
}
