/* ── WP Referidos Public CSS ────────────────────────────────────────── */

/* Formulario de registro */
.wpr-form-wrap {
    max-width: 480px;
    margin: 0 auto;
    padding: 32px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}
.wpr-form-wrap h2 { margin-top: 0; }
.wpr-field { margin-bottom: 16px; }
.wpr-field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.wpr-field input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border .2s;
}
.wpr-field input:focus { border-color: #2563eb; outline: none; box-shadow: 0 0 0 3px rgba(37,99,235,.15); }

/* Botones */
.wpr-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: opacity .2s;
}
.wpr-btn:hover { opacity: .85; }
.wpr-btn--primary { background: #2563eb; color: #fff; width: 100%; justify-content: center; margin-top: 8px; }
.wpr-btn--sm { padding: 6px 12px; font-size: 13px; background: #e5e7eb; color: #374151; }

/* Avisos */
.wpr-notice {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 12px;
}
.wpr-notice--info    { background: #dbeafe; color: #1e40af; }
.wpr-notice--warning { background: #fef9c3; color: #713f12; }
.wpr-notice--error   { background: #fee2e2; color: #991b1b; }
.wpr-notice--success { background: #d1fae5; color: #065f46; }

/* Panel del socio */
.wpr-panel { max-width: 860px; margin: 0 auto; }
.wpr-panel__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}
.wpr-panel__header h2 { margin: 0; }

.wpr-section {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 24px;
    margin-bottom: 20px;
}
.wpr-section h3 { margin-top: 0; }

/* Herramientas */
.wpr-tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .wpr-tools-grid { grid-template-columns: 1fr; } }
.wpr-tool-card { background: #f9fafb; border-radius: 10px; padding: 16px; }
.wpr-tool-card__label { font-weight: 700; margin: 0 0 8px; font-size: 13px; text-transform: uppercase; color: #6b7280; }
.wpr-tool-card__hint { font-size: 12px; color: #6b7280; margin: 8px 0 0; }
.wpr-copy-wrap { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.wpr-code-big { font-size: 22px; letter-spacing: 2px; color: #1d4ed8; background: #eff6ff; padding: 6px 12px; border-radius: 6px; }
.wpr-input-link { flex: 1; min-width: 0; padding: 8px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px; }

/* Estadísticas */
.wpr-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
.wpr-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px;
    background: #f9fafb;
    border-radius: 10px;
}
.wpr-stat--highlight { background: #eff6ff; border: 2px solid #2563eb; }
.wpr-stat__icon  { font-size: 28px; }
.wpr-stat__value { font-size: 22px; font-weight: 700; color: #111827; margin: 6px 0 2px; }
.wpr-stat__label { font-size: 12px; color: #6b7280; }

/* Badge */
.wpr-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
}
.wpr-badge--activo    { background: #d1fae5; color: #065f46; }
.wpr-badge--inactivo  { background: #fee2e2; color: #991b1b; }
.wpr-badge--pendiente { background: #fef9c3; color: #713f12; }
.wpr-badge--aprobada  { background: #dbeafe; color: #1e40af; }
.wpr-badge--rechazada { background: #fee2e2; color: #991b1b; }
.wpr-badge--pagada    { background: #d1fae5; color: #065f46; }

/* Tabla mini */
.wpr-table-mini { width: 100%; border-collapse: collapse; font-size: 14px; }
.wpr-table-mini th { background: #f3f4f6; padding: 8px 12px; text-align: left; font-size: 12px; text-transform: uppercase; color: #6b7280; }
.wpr-table-mini td { padding: 8px 12px; border-bottom: 1px solid #f3f4f6; }
.wpr-table-mini tr:last-child td { border-bottom: none; }

.wpr-empty { color: #9ca3af; font-style: italic; font-size: 14px; }

/* Botón logout */
.wpr-btn--logout {
    background: #fee2e2;
    color: #991b1b;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background .2s;
}
.wpr-btn--logout:hover { background: #fecaca; color: #7f1d1d; }

/* Campo requerido */
.wpr-req { color: #d63638; }
